You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Srinivasan, Nithya (Cognizant)" <Ni...@cognizant.com> on 2006/09/27 07:46:03 UTC

Packaging to War using maven 2.X and eclipse


Hi,

I am using Maven 2.X with Eclipse, how do I specify the name of the War
it has to generate? This is how my pom.xml looks like


<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.po</groupId>
  <artifactId>StrutsDemo</artifactId>
  <packaging>war</packaging>
  <version>0.0.1</version>
  <description></description>
   <build>
   <directory>D:\WorkSpace\StrutsDemo</directory>
    <finalName>WebRoot</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.2</version>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.0.1</version>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.2</version>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.0</version>
      </plugin>
    </plugins>
    </build>
    <repositories>
    <repository>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>Maven Repository Switchboard</name>
      <url>http://repo1.maven.org/maven2</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <releases>
        <updatePolicy>never</updatePolicy>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>Maven Plugin Repository</name>
      <url>http://repo1.maven.org/maven2</url>
    </pluginRepository>
  </pluginRepositories>
  <reporting>
    <outputDirectory>target/site</outputDirectory>
  </reporting>
</project>

Thanks
Nithya


-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Kent Tong
Sent: Friday, August 18, 2006 1:32 PM
To: users@maven.apache.org
Subject: Re: Does maven2 eclipse plugin suppor multi-module projects

Barrie Treloar <baerrach <at> gmail.com> writes:

> How are your dependencies declared?
> A parent pom, since it is just a container project and does not create

> an artifact, does not have dependencies.
> Only your modules have dependencies.

Oh! This is it (I think)! Thanks!




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org