Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.10
-
None
-
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.6.0_33
Description
Configuration with a RarModule e.g.:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.10</version> <configuration> <defaultLibBundleDir>APP-INF/lib</defaultLibBundleDir> <skinnyWars>true</skinnyWars> <skipClassPathModification>true</skipClassPathModification> <generateApplicationXml>true</generateApplicationXml> <modules> <!-- Resource Adapter for SSA Application --> <rarModule> <groupId>some-group</groupId> <artifactId>some-rar</artifactId> <bundleFileName>some.rar</bundleFileName> </rarModule>
Results in an IllegalStateException:
java.lang.IllegalStateException: Artifact type[connector] is not a standard Ear artifact type[[jar, ejb, ejb3, par, ejb-client, app-client, rar, war, sar, wsr, har]]
at org.apache.maven.plugin.ear.util.ArtifactTypeMappingService.isMappedToType(ArtifactTypeMappingService.java:127)
at org.apache.maven.plugin.ear.util.ArtifactRepository.getArtifacts(ArtifactRepository.java:138)
at org.apache.maven.plugin.ear.util.ArtifactRepository.getUniqueArtifact(ArtifactRepository.java:75)
at org.apache.maven.plugin.ear.AbstractEarModule.resolveArtifact(AbstractEarModule.java:144)
at org.apache.maven.plugin.ear.AbstractEarMojo.execute(AbstractEarMojo.java:228)
at org.apache.maven.plugin.ear.GenerateApplicationXmlMojo.execute(GenerateApplicationXmlMojo.java:162)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
This does not occur with 2.9.1.
This appears to have been introduced with revision 1645331 of RarModule.java, which incorrectly changed type from "rar" to RAR_MODULE