6 date: "2016-03-08T00:29:46+00:00"
7 guid: http://juplo.de/?p=711
14 title: 'Release Of A Maven-Plugin to Maven Central Fails With "error: unknown tag: goal"'
15 url: /release-of-a-maven-plugin-to-maven-central-fails-with-error-unknown-tag-goal/
18 ## error: unknown tag: goal
20 Releasing a maven-plugin via Maven Central does not work, if you have switched to Java 8.
21 This happens, because hidden in the `oss-parent`, that you have to configure as `parent` of your project to be able to release it via Sonatype, the `maven-javadoc-plugin` is configured for you.
22 And the version of `javadoc`, that is shipped with Java 8, by default checks the syntax of the comments and fails, if anything unexpected is seen.
24 **Unfortunatly, the special javadoc-tag's, like `@goal` or `@phase`, that are needed to configure the maven-plugin, are unexpected for javadoc.**
26 ## Solution 1: Turn Of The Linting Again
28 As described elswehere, you can easily [turn of the linting](http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html "Read, how to turn of the automatic linting of javadoc in Java 8") in the plugins-section of your `pom.xml`:
32 <groupId>org.apache.maven.plugins</groupId>
33 <artifactId>maven-javadoc-plugin</artifactId>
34 <version>2.7</version>
36 <additionalparam>-Xdoclint:none</additionalparam>
42 ## Solution 2: Tell javadoc About The Unknown Tags
44 Another not so well known approach, that I found in a [fix](https://github.com/julianhyde/hydromatic-resource/commit/da5b2f203402324c68dd2eb2e5ce628f722fefbb "Read the fix with the additional configuration for the unknown tags") for [an issue of some project](https://github.com/julianhyde/hydromatic-resource/issues/1 "See the issue, that lead me to the fix"), is, to add the unknown tag's in the configuration of the `maven-javadoc-plugin`:
48 <groupId>org.apache.maven.plugins</groupId>
49 <artifactId>maven-javadoc-plugin</artifactId>
50 <version>2.7</version>
55 <placement>a</placement>
60 <placement>a</placement>
64 <name>threadSafe</name>
65 <placement>a</placement>
66 <head>Thread Safe:</head>
69 <name>requiresDependencyResolution</name>
70 <placement>a</placement>
71 <head>Requires Dependency Resolution:</head>
74 <name>requiresProject</name>
75 <placement>a</placement>
76 <head>Requires Project:</head>
84 ## Funded by the Europian Union
86 This article was published in the course of a
87 [resarch-project](http://yourshouter.com/projekte/crowdgest%C3%BCtzte-veranstaltungs-suchmaschine.html "Show details about the funded resarch-project"),
88 that is funded by the European Union and the federal state Northrhine-Wetphalia.
90 [](http://yourshouter.com/projekte/crowdgest%C3%BCtzte-veranstaltungs-suchmaschine.html "Show details about the funded resarch-project")