Search in sources :

Example 16 with ArtifactTypeMappingService

use of org.apache.maven.plugins.ear.util.ArtifactTypeMappingService in project maven-plugins by apache.

the class ArtifactTypeMappingServiceTest method testIsMappedToTypeForKnownType.

public void testIsMappedToTypeForKnownType() {
    ArtifactTypeMappingService service = getServiceWithRarMappingToMyRar();
    assertTrue(service.isMappedToType("rar", "MyRar"));
}
Also used : ArtifactTypeMappingService(org.apache.maven.plugins.ear.util.ArtifactTypeMappingService)

Aggregations

ArtifactTypeMappingService (org.apache.maven.plugins.ear.util.ArtifactTypeMappingService)16 PlexusConfigurationException (org.codehaus.plexus.configuration.PlexusConfigurationException)7 EarPluginException (org.apache.maven.plugins.ear.EarPluginException)6 XmlPlexusConfiguration (org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration)6 ArtifactRepository (org.apache.maven.plugins.ear.util.ArtifactRepository)5 Test (org.junit.Test)5 UnknownArtifactTypeException (org.apache.maven.plugins.ear.UnknownArtifactTypeException)2 ArrayList (java.util.ArrayList)1 Artifact (org.apache.maven.artifact.Artifact)1 ScopeArtifactFilter (org.apache.maven.artifact.resolver.filter.ScopeArtifactFilter)1 MojoExecutionException (org.apache.maven.plugin.MojoExecutionException)1 JavaEEVersion (org.apache.maven.plugins.ear.util.JavaEEVersion)1