[ https://jira.codehaus.org/browse/MEAR-214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=363558#comment-363558 ]
Luke Hamaty commented on MEAR-214: ---------------------------------- This works correctly: maven-ear-plugin: resolved to version 2.11-20150218.152705-91 > RarModule not seen as standard artifact type > -------------------------------------------- > > Key: MEAR-214 > URL: https://jira.codehaus.org/browse/MEAR-214 > Project: Maven Ear Plugin > Issue Type: Bug > Affects Versions: 2.10 > Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) > Java version: 1.6.0_33 > Reporter: Luke Hamaty > Assignee: Karl-Heinz Marbaise > Priority: Blocker > Fix For: 2.10.1 > > > Configuration with a RarModule e.g.: > {code:xml} > <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> > {code} > Results in an IllegalStateException: > {color:red} > {noformat} > 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) > {noformat} > {color} > 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 -- This message was sent by Atlassian JIRA (v6.1.6#6162)