You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by laredotornado-3 <la...@gmail.com> on 2012/08/09 03:41:22 UTC
Maven ear plugin is telling me I don't have a dependency, but I do
... ideas?
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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven ear plugin is telling me I don't have a dependency, but I do ... ideas?
Posted by Jörg Schaible <Jo...@scalaris.com>.
laredotornado-3 wrote:
> 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.
Does the documentation help?
http://maven.apache.org/plugins/maven-ear-plugin/examples/using-app-
client.html
- Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven ear plugin is telling me I don't have a dependency, but I
do ... ideas?
Posted by Anders Hammar <an...@hammar.net>.
I'm looking at this sentence:
"Artifact[app-client:org.mainco.myco:myclient] is not a dependency of the
project."
See the "app-client"? Could it be that the as this is a
appClientModule the plugin is adding a classifier ("app-client") or
something?
The order in the a:b:c doesn't follow the de facto standard so I'm
just guessing though.
/Anders
On Thu, Aug 9, 2012 at 4:57 AM, Wayne Fay <wa...@gmail.com> wrote:
>> 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 ...
>
> Don't just look at the pom.xml file. Look at the pom which Maven sees
> as generated by "mvn help:effective-pom".
>
> For example, I see that you did not declare a scope for myclient.
> Perhaps it is declared in a depMgmt section in the "orders" parent pom
> with a scope that will prevent it from being packaged in your ear? Or
> maybe there is some m-ear-p config being inherited from a parent which
> is affecting this project, and you just don't realize it?
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven ear plugin is telling me I don't have a dependency, but I
do ... ideas?
Posted by Wayne Fay <wa...@gmail.com>.
> 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 ...
Don't just look at the pom.xml file. Look at the pom which Maven sees
as generated by "mvn help:effective-pom".
For example, I see that you did not declare a scope for myclient.
Perhaps it is declared in a depMgmt section in the "orders" parent pom
with a scope that will prevent it from being packaged in your ear? Or
maybe there is some m-ear-p config being inherited from a parent which
is affecting this project, and you just don't realize it?
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org