Well...if you check the pom.xml I attached, "<packaging>war</packaging>"
is there.

-----Original Message-----
From: Colomer Cornejo, Marcelo [mailto:[EMAIL PROTECTED] 
Sent: September 19, 2007 09:13 AM
To: Maven Users List
Subject: RE: Question about maven-war-plugin

Hi,
Try to use:
  <packaging>war</packaging>

Marcelo.

-----Original Message-----
From: Dave Rathnow [mailto:[EMAIL PROTECTED]
Sent: 19 September 2007 17:15
To: Maven Users List
Subject: Question about maven-war-plugin

 
I've been able to use the war plugin to build a war file under the
"target" directory of my project using the "package" goal.  It also
creates a couple of other files, including a jar file.  However, when I
try to use the install to put it into my local repository, it appeares
as though it is copying the jar file to the repository and renaming it
".war".

Can someone tell me what I'm doing wrong?
 
Dave.
 
Here's my pom:
 
<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>
 <parent>
  <groupId>fdexec</groupId>
  <artifactId>fdexec</artifactId>
  <version>4.8.0</version>
  <relativePath>../../Support/build/pom.xml</relativePath>
 </parent>
 <artifactId>httpbridge</artifactId>
 <version>${parent.version}</version>
 <packaging>war</packaging>
 <name>fdexec::httpbridge</name>
 <description>HTTP Bridge</description>
 <scm>
 
<connection>scm:svn:http://elmer/svn/umsrepo/trunk/fdexec/Applications</
connection>
  <url>scm:svn:http://elmer/svn/umsrepo/trunk/fdexec/Applications</url>
 </scm>
 
 <properties>
 
<maven.war.webxml>./src/main/resources/WEB-INF/web.xml</maven.war.webxml
>
 </properties>
 
 <dependencies>
  <dependency>
   <groupId>fdexec</groupId>
   <artifactId>bridge</artifactId>
   <version>4.8.0</version>
  </dependency>
  <dependency>
   <groupId>fdexec</groupId>
   <artifactId>bridge</artifactId>
   <version>4.8.0</version>
   <type>test-jar</type>
   <scope>test</scope>
  </dependency>
  <dependency>
   <groupId>javax</groupId>
   <artifactId>javaee</artifactId>
   <version>1.5</version>
  </dependency>
 </dependencies>
 <build>
  <finalName>httpbridge</finalName>
  <plugins>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
     <excludes>
      <exclude>**/*.java</exclude>
     </excludes>
    </configuration>
   </plugin>
   <plugin>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
     <source>1.5</source>
     <target>1.5</target>
    </configuration>
   </plugin>
  </plugins>
 </build>
</project>


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


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

Reply via email to