I am using Maven 2.0.2 and followed the how-to instructions on http://mojo.codehaus.org/castor-maven-plugin/howto.html.

 

When I follow the how-to instructions I get this maven exception when I execute “mvn compile”

 

org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. Reaso

n: Unrecognised tag: 'goal' (position: START_TAG seen ...<execution>\r\n

          <goal>... @55:25)

        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)

 

It appears the GOAL tag is not acceptable here. 

 

When I comment out the goal tag I get multiple java compile messages saying….

 

package org.exolab.castor.xml does not exist

 

 

 

 

 

Also, there is a typo in how-to instructions page (http://mojo.codehaus.org/castor-maven-plugin/howto.html) for the Castor Mavin plugin.  Both XML plugin fragments are missing the closing slash for the executions element.

 

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>castor-maven-plugin</artifactId>
  <version>1.0</version>
  <executions>
  <execution>
     <goal>generate</goal>
  </execution>
  <[MISSING SLASH]executions>
</plugin>

 

LEGAL NOTICE:
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this e-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.

Reply via email to