I think I have found out the cause (not the solution, though)
Actually in my dependency list I have these entries:
...
<dependency>
<groupId>myprojectA</groupId>
<artifactId>myapp</artifactId>
<version>3.1.4</version>
<type>ejb</type>
</dependency>
<dependency>
<groupId>myprojectA</groupId>
<artifactId>myapp</artifactId>
<version>3.1.4</version>
<type>war</type>
<properties>
<ear.bundle>true</ear.bundle>
</properties>
</dependency>
...
Obviously some kind of list building in maven exclude the myapp-3.1.4.war
file from the dependency list. If I introduce a war file of different
groupId and artfactId (says "haha"), I can see this particular war file
(haha-x.y.z.war) ...
Is it a bug? Is there a workaround of this issue?
Cheers,
AK
-----Original Message-----
From: Anthony Kong [mailto:[EMAIL PROTECTED]
Sent: Thursday, 6 October 2005 9:32 AM
To: [email protected]
Subject: [m1.0.2] war file not in dependency list in goal execution
Hi, all,
Due to a particular need of my project, i have to copy some dependencies to
another directory. The dependencies include a war file. I have written this
code fragment in a maven.xml
<j:forEach var="lib" items="${pom.artifacts}">
<ant:echo> ${lib.name}</ant:echo>
<j:set var="dep" value="${lib.dependency}"/>
<j:set var="group" value="${dep.artifactDirectory}"/>
<j:if test="${group=='myprojectA' or group=='myprojectB'}">
<j:set var="artifact" value="${dep.artifact}"/>
<j:set var="type" value="${dep.type}"/>
<ant:echo>Copy ${artifact} to ${maven.ear.src}</ant:echo>
<ant:copy toDir="${maven.ear.src}"
file="${maven.repo.local}/${group}/${type}s/${artifact}"
/>
</j:if>
</j:forEach>
and in my project.xml,
...
<dependency>
<groupId>myprojectA</groupId>
<artifactId>myapp</artifactId>
<version>3.1.4</version>
<type>war</type>
<properties>
<ear.bundle>true</ear.bundle>
</properties>
</dependency>
...
The war file never show up in the above <j:forEach/> loop. Why is that? Is
war file not included by default?
Cheers,
AK
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]