Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install war file at server deploy directory

I'm want to have the war file deployed in the server deploy directory (or any directory of my choice) along with the one deployed in the repository. Also, can I control the name of the war file deployed like, I don't want the war file to be projectname-1.0.war I just want the name of the war file be projectname.war.

Thanks,

Ravi

like image 296
Ravi Avatar asked Jun 22 '26 02:06

Ravi


1 Answers

Thanks guys,

I got it working. here is what I did.

I added this in my pom.xml file

<build>
<plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
            <warName>mavenproject1</warName>
            <outputDirectory>C:\jboss-5.1.0.GA\server\default\deploy</outputDirectory>
        </configuration>
    </plugin>

</plugins>

This solved both my naming and placing the war file.

Ravi

like image 198
Ravi Avatar answered Jun 26 '26 08:06

Ravi