Details
-
Bug
-
Resolution: Done
-
Critical
-
8.0.0.Beta
-
None
-
False
-
None
-
False
-
Documentation (Ref Guide, User Guide, etc.)
Description
Maven 3.8.5 and prior bring version of org.apache.maven.plugins:maven-war-plugin < 3.3.2. This causes following issue on JDK 17 when trying to package war application with wildfly-maven-plugin:
[WARNING] Error injecting: org.apache.maven.plugin.war.WarMojo
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error injecting constructor, java.lang.ExceptionInInitializerError: Cannot access defaults field of Properties
at org.apache.maven.plugin.war.WarMojo.<init>(Unknown Source)
while locating org.apache.maven.plugin.war.WarMojo
1 error
at com.google.inject.internal.InternalProvisionException.toProvisionException (InternalProvisionException.java:226)
the workaround is to configure org.apache.maven.plugins:maven-war-plugin:3.3.2 in application pom.xml:
... <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>${version.maven.war.plugin}</version> </plugin> </plugins> ...
This might change with future version of Maven. Currently there is no newer version of Maven.
Attachments
Issue Links
- relates to
-
EAPDOC-1381 Release notes for JBEAP-23474
- Closed