-
Notifications
You must be signed in to change notification settings - Fork 1
/
maven.xml
46 lines (40 loc) · 1.67 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="UTF-8"?>
<!-- default goal for the project builds and installs the war in the local repository -->
<project default="full" xmlns:j="jelly:core"
xmlns:maven="jelly:maven">
<!-- the common "full" goal invokes the default goal. Used in maven -Dgoal=full multiproject:goal from .. -->
<goal name="full">
<!--attainGoal name="dependencies" /-->
<attainGoal name="war:install" />
</goal>
<!-- Override jar:install goal to compose "partial WAR" strategy -->
<goal name="jar:install">
<attainGoal name="war:install"/>
</goal>
<!-- This standard stanza is required for any webapps participating in the
"partial WAR" build strategy -->
<preGoal name="war:resources">
<echo>Expanding webapp dependencies</echo>
<mkdir dir="${maven.war.webapp.dir}" />
<j:forEach var="lib" items="${pom.artifacts}">
<j:set var="dep" value="${lib.dependency}" />
<j:if test="${dep.getProperty('explode') == 'true'}">
<j:if test="${dep.type =='war'}">
<unjar src="${lib.path}" dest="${maven.war.webapp.dir}" />
</j:if>
</j:if>
</j:forEach>
</preGoal>
<!-- Do not deploy for now, will be folded into each deployed user
<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>