Hello,
I'm having trouble executing the plugin directly through the "generate"
goal. I define the plugin in my pom as:
...
<repositories>
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Maven 2 Repository</name>
<url>
http://download.java.net/maven/2</url>
</repository>
<repository>
<id>maven-repository.dev.java.net</id>
<name>Java.net Maven 1 Repository (legacy)</name>
<url>
http://download.java.net/maven/1</url>
<layout>legacy</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Maven 2 Repository</name>
<url>
http://download.java.net/maven/2</url>
</pluginRepository>
<pluginRepository>
<id>maven-repository.dev.java.net</id>
<name>Java.net Maven 1 Repository (legacy)</name>
<url>
http://download.java.net/maven/1</url>
<layout>legacy</layout>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
....
....
*<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.7.2</version>
<configuration>
<generatePackage>com.aquent.showcase.domain</generatePackage>
<generateDirectory>src/main/java</generateDirectory>
</configuration>
</plugin>*
</plugins>
</build>
Then I try to execute two goals sequentially through the command:
*mvn exec:java jaxb2:generate*
Only the exec:java goal runs, but if I just run *mvn jaxb2:generate *it
works.
Is there an issue running multiple goals with the jaxb2 plugin?
thanks,
tony