-
Notifications
You must be signed in to change notification settings - Fork 0
/
maven.xml
24 lines (20 loc) · 962 Bytes
/
maven.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<!-- default goal for the project builds and installs the war in the local repository -->
<project xmlns:j="jelly:core" xmlns:maven="jelly:maven"
xmlns:u="jelly:util" default="full">
<!-- the common "full" goal invokes the default goal. Used in maven -Dgoal=full multiproject:goal from .. -->
<goal name="full">
<!--attainGoal name="dependencies" /-->
<attainGoal name="deploy" />
</goal>
<goal name="deploy" prereqs="war:install">
<maven:property defaultValue="${pom.artifactId}" var="webappName"
name="deploy.webappname" />
<j:set var="destination"
value="${maven.tomcat.home}/webapps/${webappName}" />
<delete dir="${destination}"/>
<echo>Copying ${maven.war.build.dir}/${maven.war.final.name} to ${destination}.war</echo>
<copy file="${maven.war.build.dir}/${maven.war.final.name}"
tofile="${destination}.war"/>
</goal>
</project>