I further found out that this problem is solved in m1.1b2. If I want to, in my custom plugin, to detect maven's version number, how can I do that? I want to make sure the user runs a maven of version greater than 1.0.2. Anything like this as in perl?
Cheers, AK -----Original Message----- From: Anthony Kong [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 October 2005 10:02 AM To: 'Maven Users List' Subject: RE: [m1.0.2] war file not in dependency list in goal execution 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: users@maven.apache.org 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]