maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luke Hamaty (JIRA)" <j...@codehaus.org>
Subject [jira] (MEAR-214) RarModule not seen as standard artifact type
Date Fri, 13 Feb 2015 01:12:17 GMT
Luke Hamaty created MEAR-214:
--------------------------------

             Summary: 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


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)

Mime
View raw message