[ https://jira.codehaus.org/browse/MNGSITE-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MNGSITE-177: ----------------------------------- Description: On http://maven.apache.org/guides/plugin/guide-java-plugin-development.html the Code for a plugin seems to be wrong: at least at my environment, I can't use the annotation @Mojo( name = "sayhi"). Instead (copied from another site) I can specify the name of a new mojo via the annotation {code} /** * Goal which touches a timestamp file. * * @goal touch * * @phase process-sources */ {code} As I copied the dependency, my version of the Mojo-API should be up-to-date, and I can't find a @Mojo annotation in http://maven.apache.org/developers/mojo-api-specification.html anyway, so the problem seems to be the documentation at the site. was: On http://maven.apache.org/guides/plugin/guide-java-plugin-development.html the Code for a plugin seems to be wrong: at least at my environment, I can't use the annotation @Mojo( name = "sayhi"). Instead (copied from another site) I can specify the name of a new mojo via the annotation /** * Goal which touches a timestamp file. * * @goal touch * * @phase process-sources */ As I copied the dependency, my version of the Mojo-API should be up-to-date, and I can't find a @Mojo annotation in http://maven.apache.org/developers/mojo-api-specification.html anyway, so the problem seems to be the documentation at the site. > Annotation not existing > ----------------------- > > Key: MNGSITE-177 > URL: https://jira.codehaus.org/browse/MNGSITE-177 > Project: Maven Project Web Site > Issue Type: Bug > Environment: Ubuntu 12.10 > Reporter: David Georg Reichelt > Priority: Minor > > On http://maven.apache.org/guides/plugin/guide-java-plugin-development.html > the Code for a plugin seems to be wrong: at least at my environment, I can't > use the annotation @Mojo( name = "sayhi"). Instead (copied from another site) > I can specify the name of a new mojo via the annotation > {code} > /** > * Goal which touches a timestamp file. > * > * @goal touch > * > * @phase process-sources > */ > {code} > As I copied the dependency, my version of the Mojo-API should be up-to-date, > and I can't find a @Mojo annotation in > http://maven.apache.org/developers/mojo-api-specification.html anyway, so the > problem seems to be the documentation at the site. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira