Can you try with a more recent version of CXF to see if the error's fixed,
e.g. 3.4.4?

Colm.

On Wed, Jun 9, 2021 at 2:51 AM Mike Oliver <
mikeolive...@open4businessonline.com> wrote:

> 🤔🤔🤔My pom is showing the following error in two projects.  One I created
> and one I got from github.
>
> The POM plugin element is...
>
> <plugin>
>    <groupId>org.apache.cxf</groupId>
>    <artifactId>cxf-codegen-plugin</artifactId>
>    <version>3.2.4</version>
>    <executions>
>       <execution>
>          <id>generate-sources</id>
>          <phase>generate-sources</phase>
>          <configuration>
>             <wsdlOptions>
>                <wsdlOption>
>                   <wsdl>src/main/resources/wsdl/BookService.wsdl</wsdl>
>                </wsdlOption>
>             </wsdlOptions>
>          </configuration>
>          <goals>
>             <goal>wsdl2java</goal>
>          </goals>
>       </execution>
>    </executions>
> </plugin>
>
> The queer thing is that it does generate the classes from the command line
> but refuses from eclipse due to the following error flagged at the
> execution line in this plugin element.
>
> xecution generate-sources of goal
> org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java failed: A required class
> was missing while executing org.apache.cxf:cxf-codegen-
>  plugin:3.2.4:wsdl2java:
> javax/xml/bind/annotation/adapters/HexBinaryAdapter
> ----------------------------------------------------- realm =
> plugin>org.apache.cxf:cxf-codegen-
>  plugin:3.2.4-2101806389 strategy =
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] =
> file:/C:/esb/.m2/repository/org/apache/cxf/cxf-codegen-plugin/3.2.4/cxf-
>  codegen-plugin-3.2.4.jar urls[1] =
>
> file:/C:/esb/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
> urls[2] = file:/C:/esb/.m2/repository/org/codehaus/
>  plexus/plexus-archiver/1.2/plexus-archiver-1.2.jar urls[3] =
>
> file:/C:/esb/.m2/repository/org/codehaus/plexus/plexus-io/1.0.1/plexus-io-1.0.1.jar
> urls[4] = file:/C:/esb/.m2/repository/
>  org/apache/cxf/cxf-core/3.2.4/cxf-core-3.2.4.jar urls[5] =
>
> file:/C:/esb/.m2/repository/com/fasterxml/woodstox/woodstox-core/5.0.3/woodstox-core-5.0.3.jar
> urls[6] = file:/C:/
>
>  esb/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar
>
> For a while I was also getting a complaint on isJava9Compatible()Z but I
> changed the compliance to 11.0 and did a clean and that error was replaced
> by this one.
>
> but a "mvn clean install" gives it back...
>
> Microsoft Windows [Version 10.0.19042.985]
> (c) Microsoft Corporation. All rights reserved.
>
> C:\Users\MO Tec\git\OracleAtomicService\OracleAtomicService>mvn clean
> install
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ----------------< ph.me:OracleAtomicService >-----------------
> [INFO] Building Oracle Atomic Service Soap 1.0.0-SNAPSHOT
> [INFO] -------------------------------[ bundle
> ]-------------------------------
> Downloading from jboss-public:
>
> https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
> Downloading from maven-central:
>
> https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
> Downloaded from maven-central:
>
> https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
> (1.8 kB at 198 B/s)
> Downloaded from jboss-public:
>
> https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
> (407 B at 43 B/s)
> Downloading from maven-central:
>
> https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
> Downloading from jboss-public:
>
> https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
> Downloaded from maven-central:
>
> https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
> (663 B at 212 B/s)
> Downloading from maven-central:
>
> https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
> Downloading from jboss-public:
>
> https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
> Downloaded from maven-central:
>
> https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
> (749 B at 226 B/s)
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
> OracleAtomicService ---
> [INFO] Deleting C:\Users\MO
> Tec\git\OracleAtomicService\OracleAtomicService\target
> [INFO]
> [INFO] --- cxf-codegen-plugin:3.2.4:wsdl2java (generate-sources) @
> OracleAtomicService ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  29.267 s
> [INFO] Finished at: 2021-06-09T09:09:22+08:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java (generate-sources) on
> project OracleAtomicService:
> org.apache.cxf.helpers.JavaUtils.isJava9Compatible()Z -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
>
>
>
>
>
>
>
> *Mike Oliver** Founder**, Open 4 Business Online*
> Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> US Toll free: 1-800-985-4766 **NEW*
> http://www.o4bo.com
> Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> [image: Facebook]
> <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176>
> [image:
> Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> <https://angel.co/open-4-business-online/> [image: Blogger]
> <http://blog.open4businessonline.com/> [image: eBay]
> <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> Plus Page] <https://plus.google.com/113688478700619104336/posts>
> Contact me: [image: Google Talk] mikeolive...@open4businessonline.com
> [image:
> Skype] MikeOliverAZ
>

Reply via email to