EAR plugin fails when project contains a dependency of type pom
---------------------------------------------------------------

         Key: MEAR-25
         URL: http://jira.codehaus.org/browse/MEAR-25
     Project: Maven 2.x Ear Plugin
        Type: Bug

    Versions: 2.0    
    Reporter: Evan Deaubl


I have a project that constructs an EAR as an artifact, and it references a 
dependency of type pom, which is simply a project that lists dependencies 
provided by the platform we are deploying on (jboss).  When I attempt to build 
the EAR, I receive the following error:

[ERROR] FATAL ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] Could not handle artifact type[pom]
[INFO] 
----------------------------------------------------------------------------
[INFO] Trace
java.lang.IllegalStateException: Could not handle artifact type[pom]
        at 
org.apache.maven.plugin.ear.EarModuleFactory.newEarModule(EarModuleFactory.java:75)
        at 
org.apache.maven.plugin.ear.AbstractEarMojo.execute(AbstractEarMojo.java:119)
        at 
org.apache.maven.plugin.ear.GenerateApplicationXmlMojo.execute(GenerateApplicationXmlMojo.java:96)
...trimmed output here...

To my way of thinking, pom dependencies are Maven-internal, and should be 
ignored by the EAR plugin.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to