Hi Folks,

I need to create a ant build script for a simple web project.

When I run "mvn install" it runs fine and creates a war file. When I run
"mvn ant:ant" and execute the resulting script it just produces a jar
file. How can I tell the ant plugin to create web specific build script?

Regards,

Christian

My pom.xml:
<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";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>de.tonline.app.forum</groupId>
  <artifactId>WebProj</artifactId>
  <packaging>war</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>My Little Webproject</name>
  <url>http://www.mysite.net</url>
  <dependencies>
  </dependencies>
  <build>
    <finalName>APForum</finalName>
    <directory>target</directory>
    <outputDirectory>WebRoot/WEB-INF/classes</outputDirectory>
    <sourceDirectory>src</sourceDirectory>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-war-plugin</artifactId>
          <configuration>
            <warSourceDirectory>WebRoot</warSourceDirectory>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>


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

Reply via email to