Hi,

I'm using Maven 3.0.3 and trying to use the maven-ear-plugin (2.7).  When
building the ear project, I'm getting the error, "[ERROR] Failed to execute
goal org.apache.maven.plugins:maven-ear-plugin:2.7:generate-application-xml
(default-generate-application-xml) on project orders-ear:
Artifact[app-client:org.mainco.myco:myclient] is not a dependency of the
project. -> [Help 1]".  I'm losing my mind because looking at my pom.xml
file, it IS a dependency of my project.  Here is my pom.xml file ...

================Begin pom.xml ==========================
<project>
        <modelVersion>4.0.0</modelVersion>
        <parent>
                <groupId>org.mainco.myco</groupId>
                <artifactId>orders</artifactId>
                <version>1.0-SNAPSHOT</version>
        </parent>
        <artifactId>orders-ear</artifactId>
        <name>Orders :: Enterprise Application</name>
        <packaging>ear</packaging>
        <description>Orders EAR</description>

        <dependencies>
                <dependency>
                        <groupId>org.mainco.myco</groupId>
                        <artifactId>myclient</artifactId>
                        <version>1.0-SNAPSHOT</version>
                </dependency>
        </dependencies>

        <build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-ear-plugin</artifactId>
                                <version>2.7</version>
                                <configuration>
                                        <displayName>Orders</displayName>
                                        <description>Runs periodic jobs to 
process DIDO orders.</description>
                                        
<defaultLibBundleDir>lib</defaultLibBundleDir>
                                        <modules>
                                                <appClientModule>
                                                        
<groupId>org.mainco.myco</groupId>
                                                        
<artifactId>myclient</artifactId>
                                                        
<bundleDir>lib</bundleDir>
                                                </appClientModule>
                                        </modules>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
</project>
================= End pom.xml ==========================

I've verified the artifact is in my ~/.m2/repository.  Here is the last part
of my "mvn clean install" command.  Any ideas where I'm going wrong?


=====================Begin output ==============================
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ myclient
---
[INFO] Installing
/Users/davea/Dropbox/workspace/orders/myclient/target/myclient-1.0-SNAPSHOT.jar
to
/Users/davea/.m2/repository/org/mainco/myco/myclient/1.0-SNAPSHOT/myclient-1.0-SNAPSHOT.jar
[INFO] Installing /Users/davea/Dropbox/workspace/orders/myclient/pom.xml to
/Users/davea/.m2/repository/org/mainco/myco/myclient/1.0-SNAPSHOT/myclient-1.0-SNAPSHOT.pom
[INFO] Installing
/Users/davea/Dropbox/workspace/orders/myclient/target/myclient-1.0-SNAPSHOT-jar-with-dependencies.jar
to
/Users/davea/.m2/repository/org/mainco/myco/myclient/1.0-SNAPSHOT/myclient-1.0-SNAPSHOT-jar-with-dependencies.jar
[INFO]                                                                         
[INFO]
------------------------------------------------------------------------
[INFO] Building orders 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ orders ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ orders ---
[INFO] Installing /Users/davea/Dropbox/workspace/orders/pom.xml to
/Users/davea/.m2/repository/org/mainco/myco/orders/1.0-SNAPSHOT/orders-1.0-SNAPSHOT.pom
[INFO]                                                                         
[INFO]
------------------------------------------------------------------------
[INFO] Building Orders :: Enterprise Application 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ orders-ear ---
[INFO] 
[INFO] --- maven-ear-plugin:2.7:generate-application-xml
(default-generate-application-xml) @ orders-ear ---
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] myclient ........................................ SUCCESS [7.527s]
[INFO] orders ............................................ SUCCESS [0.004s]
[INFO] Orders :: Enterprise Application .................. FAILURE [0.595s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8.260s
[INFO] Finished at: Wed Aug 08 20:32:42 CDT 2012
[INFO] Final Memory: 15M/81M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-ear-plugin:2.7:generate-application-xml
(default-generate-application-xml) on project orders-ear:
Artifact[app-client:org.mainco.myco:myclient] is not a dependency of the
project. -> [Help 1]
======================End output ==============================


Thanks, - Dave



--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-ear-plugin-is-telling-me-I-don-t-have-a-dependency-but-I-do-ideas-tp5716554.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to