The docs for the War plugin explain that this is the way to indicate that a dependency is copied into the webapp or war. See <http://maven.apache.org/reference/plugins/war/properties.html>

The XML in project.xml mostly just provides values for bean properties of an instance of org.apache.maven.project.Project. See <http://maven.apache.org/apidocs/org/apache/maven/project/Project.html>. If you track that down to a Dependency object, you see that it extends org.apache.maven.project.BaseObject, and those have a Properties object. http://maven.apache.org/apidocs/org/apache/maven/project/BaseObject.html

You can see how the war plugin uses the "war.bundle.jar" property of a dependency by looking at $MAVEN_HOME/plugins/maven-war-plugin-#.#/plugin.jelly (where #.# is a version number).

I'm not sure how you'd know ahead of time that you can do what the War plugin does, but now that you've seen it... well, that's kind of how open source projects work, I guess.

Joe


At 20:06 -0400 6/4/03, Scott Stirling wrote:
> -----Original Message-----
From: Gabriel Bauman [mailto:[EMAIL PROTECTED]
[snip]
My deps look like this:

 <dependency>
        <groupId>torque</groupId>
        <artifactId>torque</artifactId>
        <version>SNAPSHOT</version>
        <url>http://db.apache.org/torque/</url>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
 </dependency>

Hi,


How did you know you could nest a <properties> element under a <dependency>?
And what does that do?

Thanks,

Scott Stirling
Framingham, MA



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "If nature worked that way, the universe would crash all the time." --Jaron Lanier


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to