Hi, As I am running mvn clean install in Eclipse and the following configuration is being executed ...
<build> .... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxb2-maven-plugin</artifactId> <executions> <execution> <id>profileXYZ</id> <goals><goal>xjc</goal></goals> <phase>generate-sources</phase> <configuration> <packageName>com.somename.profile</packageName> <schemaDirectory>src/main/resources/xsd</schemaDirectory> <schemaFiles>profileXYZ.xsd</schemaFiles> <bindingDirectory>src/main/resources/bind</bindingDirectory> <bindingFiles>binding.xml</bindingFiles> <staleFile>${project.build.directory}/jaxb2/.xjcStaleFlagProfile</staleFile> <clearOutputDir>false</clearOutputDir> <strict>false</strict> <extension>true</extension> </configuration> </execution> </executions> </plugin> </build> I get error: [ERROR] *Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc (profileNBA_WAE_Merged) on project xyz: null: MojoExecutionException: UndeclaredThrow ion: javax.xml.bind.annotation.XmlElementRef.required() -> [Help 1]* Eclipse displays error as well:*Execution profileXYZ of goal org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc failed: An API incompatibility was encountered while executing org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc: java.lang.NoSuchMethodError:* in Eclipse , in POM.xml Adding <target>2.1</target> after extension allows me to run successfully */mvn clean install /*in command line, but Eclipse still shows the same error in POM.xml Any ideas ....thx for help in advance Thanks, Boris -- View this message in context: http://maven.40175.n5.nabble.com/An-API-incompatibility-was-encountered-while-executing-org-codehaus-mojo-jaxb2-maven-plugin-1-6-xjc--tp5788280.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org