I tried to send the whole project zipped up but got rejected as spam. So
here goes - parent, ear pom and war pom (just in case).
On 1/29/07, Patrick Schneider <[EMAIL PROTECTED]> wrote:
Can you send your parent pom and the ear pom?
On 1/29/07, Andi Anderson <[EMAIL PROTECTED]> wrote:
>
> did you try putting
> <version>[1.0,)</version> in the dependancy section of
> the ear pom for the war?
>
>
> --- Thierry Lach <[EMAIL PROTECTED]> wrote:
>
> > I'm working on a small "example" project and am
> > trying to incorporate a lot
> > of maven features into it. It's got a main pom and
> > modules for multiple
> > jars, a war, and an ear. I've just added
> > dependencyManagement, but the ear
> > pom does not seem to pick up the version from the
> > dependencyManagement and
> > still requires me to put in the version for the war
> > dependency. Is this by
> > intent or is it a bug?
> >
>
>
> I ka 'olelo ke ola, i ka 'olelo ka make
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>example</artifactId>
<packaging>pom</packaging>
<name>Example Parent</name>
<version>1.0-SNAPSHOT</version>
<modules>
<module>example-war</module>
<module>example-om</module>
<module>example-taglib</module>
<module>example-ear</module>
<module>example-ug</module>
</modules>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<testSourceDirectory>src/test/java</testSourceDirectory>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${basedir}</directory>
<includes>
<include>velocity.log</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
<fileset>
<directory>${basedir}/bin</directory>
<includes>
<include>**</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>local-repository</id>
<name>Local Maven 2 Repository</name>
<releases>
<updatePolicy>interval:1</updatePolicy>
</releases>
<snapshots>
<!-- this can change very quickly so we check often -->
<updatePolicy>interval:1</updatePolicy>
</snapshots>
<url>file:///maven2/repository</url>
</repository>
<repository>
<id>codehaus-legacy</id>
<url>http://dist.codehaus.org/</url>
<layout>legacy</layout>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>local-plugin-repository</id>
<name>Local Maven 2 Repository</name>
<url>file:///maven2/repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>codehaus-plugins</id>
<url>http://dist.codehaus.org/</url>
<layout>legacy</layout>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
<pluginRepository>
<id>apache.snapshots</id>
<url>http://people.apache.org/maven-snapshot-repository/</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.example</groupId>
<artifactId>example-om</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.example</groupId>
<artifactId>example-taglib</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.example</groupId>
<artifactId>example-war</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<reporting>
<plugins>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<reportSets>
<reportSet>
<reports>
<report>dependencies</report>
<report>project-team</report>
<report>mailing-list</report>
<report>cim</report>
<!--
<report>issue-tracking</report>
-->
<report>license</report>
<report>scm</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
</plugin>
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
</plugin>
</plugins>
</reporting>
<distributionManagement>
<repository>
<id>local-repository</id>
<name>Local Maven 2 Repository</name>
<url>file:///maven2/repository</url>
</repository>
<site>
<id>example.org</id>
<url>scp://example.org/deploy/path</url>
</site>
</distributionManagement>
</project><?xml version="1.0"?><project>
<parent>
<groupId>org.example</groupId>
<artifactId>example</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>example-ear</artifactId>
<packaging>ear</packaging>
<name>Example Ear</name>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<modules>
<webModule>
<groupId>${project.groupId}</groupId>
<artifactId>example-war</artifactId>
<contextRoot>example</contextRoot>
</webModule>
</modules>
<jboss>
<version>4</version>
<unauthenticated-principal>guest:guest</unauthenticated-principal>
</jboss>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>example-war</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>local-repository</id>
<name>Local Maven 2 Repository</name>
<url>file:///maven2/repository</url>
</repository>
</distributionManagement>
</project><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>example</artifactId>
<groupId>org.example</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>example-war</artifactId>
<packaging>war</packaging>
<name>Example War</name>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0</version>
<configuration>
<webXml>${project.build.directory}/generated-resources/xdoclet/web.xml</webXml>
</configuration>
</plugin>
<plugin>
<groupId>xdoclet</groupId>
<artifactId>maven2-xdoclet2-plugin</artifactId>
<executions>
<execution>
<id>xdoclet</id>
<phase>generate-sources</phase>
<goals>
<goal>xdoclet</goal>
</goals>
<configuration>
<configs>
<config>
<components>
<component>
<classname>org.xdoclet.plugin.web.WebPlugin</classname>
<params>
<mergedir>src/main/xdoclet/web/</mergedir>
<servletversion>2.4</servletversion>
<validate>true</validate>
</params>
</component>
<component>
<classname>org.xdoclet.plugin.jmx.MBeanPlugin</classname>
<params>
<mergedir>src/main/xdoclet/jmx/</mergedir>
<validate>true</validate>
</params>
</component>
</components>
<includes>**/**.java</includes>
<params>
<destdir>${project.build.directory}/generated-resources/xdoclet</destdir>
</params>
</config>
</configs>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>xdoclet-plugins</groupId>
<artifactId>xdoclet-plugin-web</artifactId>
<version>1.0.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>xdoclet-plugins</groupId>
<artifactId>xdoclet-plugin-jmx</artifactId>
<version>1.0.4-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>example-om</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>example-taglib</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>local-repository</id>
<name>Local Maven 2 Repository</name>
<url>file:///maven2/repository</url>
</repository>
</distributionManagement>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]