Hi Karthik V,
The <properties> tag for dependencies are no longer suppported. Can you
post your pom so that we can see what you are actually doing?
Regards,
Henry
Karthik V wrote:
looks like things have changed :( ... the <properties> tag is not being
recognized.
On 1/17/06, Max Cooper <[EMAIL PROTECTED]> wrote:
Note: this is for Maven 1 (1.0.2, 1.1-beta-2, I don't know if anything
has changed for Maven 2)
In the ear project where you specify the dependencies, you specify
properties to tell the ear plugin what to do with your jars and wars.
Here's an example:
<!-- ejb jar -->
<dependency>
<groupId>myproject</groupId>
<artifactId>ejb</artifactId>
<version>${pom.currentVersion}</version>
<type>ejb</type>
<properties>
<ear.bundle>true</ear.bundle>
</properties>
</dependency>
<!-- war -->
<dependency>
<groupId>myproject</groupId>
<artifactId>web</artifactId>
<version>${pom.currentVersion}</version>
<type>war</type>
<properties>
<ear.bundle>true</ear.bundle>
<ear.appxml.war.context-root>/</ear.appxml.war.context-root>
</properties>
</dependency>
<!-- utility jar -->
<dependency>
<groupId>myproject</groupId>
<artifactId>util</artifactId>
<version>${pom.currentVersion}</version>
<type>jar</type>
<properties>
<ear.module>true</ear.module>
</properties>
</dependency>
This is all described at the bottom of this page:
http://maven.apache.org/maven-1.x/reference/plugins/ear/properties.html
Note that the ear.bundle.dir property will allow you to control the
directory (inside the ear file) where the dependency ends up.
-Max
On Tue, 2006-01-17 at 13:18 -0500, Karthik V wrote:
when someone answers this question, please give a general answer to this
question - how do I copy a jar file specified as dependency into the
final
artifact, inside the folder I want?
On 1/17/06, Karthik V <[EMAIL PROTECTED]> wrote:
I have an ear project that needs to pack 2 other projects artifacts
(jar
and war). In the ear project pom, I've added dependencies on both.
However,
the ear file produced doesnt contain these. How do I fix this problem?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.19/231 - Release Date: 1/16/2006
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]