[
https://issues.apache.org/jira/browse/CXF-9188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18047653#comment-18047653
]
Andriy Redko commented on CXF-9188:
-----------------------------------
[~arutgen] please check the release versions that the fix targets (on the top
of this issue), it will be available once the respective versions will be
officially out. You could play with snapshots tough, thank you
> Update Maven Archetypes and "JAX-RS: Maven Plugins" guide
> ---------------------------------------------------------
>
> Key: CXF-9188
> URL: https://issues.apache.org/jira/browse/CXF-9188
> Project: CXF
> Issue Type: Bug
> Components: Configuration, Documentation, JAX-RS
> Affects Versions: 3.5.4
> Environment: {code:java}
> ➜ mvn --version
> Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> Maven home: C:\Users\sbnet\Maven\apache-maven-3.9.9
> Java version: 11.0.24, vendor: Oracle Corporation, runtime: C:\Program
> Files\Java\jdk-11
> Default locale: ru_RU, platform encoding: Cp1251
> OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"{code}
> Reporter: Arut
> Assignee: Andriy Redko
> Priority: Minor
> Labels: documentation
> Fix For: 4.1.5, 3.6.10, 4.0.11
>
>
> I'm trying to launch a project based on the
> [guide|https://cxf.apache.org/docs/jax-rs-maven-plugins.html].
> I use *Java 8* to run (but specifically *11* is used to generate the
> archetype) and {*}Maven 3.9.9{*}:
> 1. It is unclear which version of JDK and Maven should work on.
> 2. If I enter "{{{}mvn archetype:generate
> -Dfilter=org.apache.cxf.archetype:{}}}" {*}no corresponding archetypes are
> found{*}.
> 3. When selecting the version of {*}cxf-jaxrs-service 2.5.1{*}, if the
> "{{{}clean tomcat:run{}}}" startup configuration with *Java 8* and *Maven
> 3.9.9* is used to launch the project, an error is returned:
> {code:java}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile
> (default-compile) on project
> prof_sse_test_2: Compilation failure: Compilation failure:
> [ERROR] Source option 5 is no longer supported. Use 6 or later.
> [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.{code}
> 4. If you select the *latest* version ({*}3.5.4{*}), the error occurs:
> {code:java}
> SEVERE: Unable to process Jar entry [module-info.class] from Jar
> [jar:file:/C:/Users/sbnet/.m2/repository/org/codehaus/
> woodstox/stax2-api/4.2.1/stax2-api-4.2.1.jar!/] for annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag
> in constant pool: 19
> at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:133)
> at
> org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60)
> at
> org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
> at
> org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)
> at
> org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2101)
> at
> org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1977)
> at
> org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1943)
> at
> org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1928)
> at
> org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1322)
> at
> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)
> at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:750){code}
> Can you please update this
> [guide|https://cxf.apache.org/docs/jax-rs-maven-plugins.html] so that you can
> start using it?
> Thank you in advance.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)