Revision 39889 branches/v2_0_0_prep/build/ant-tasks/maven-goals.xml
maven-goals.xml | ||
---|---|---|
69 | 69 |
<maven arg="-Dmaven.test.skip=true clean install" /> |
70 | 70 |
</target> |
71 | 71 |
|
72 |
<target name="mvn-dependency-tree" |
|
73 |
description="Creates a text tree with the project dependencies"> |
|
74 |
<maven arg="dependency:tree" /> |
|
75 |
</target> |
|
76 |
|
|
72 | 77 |
<target name="mvn-deploy" |
73 | 78 |
description="Compiles, installs and deploys"> |
74 | 79 |
<maven arg="deploy" /> |
75 | 80 |
</target> |
76 | 81 |
|
77 |
<target name="mvn-deploy-release" |
|
78 |
description="Compiles, installs and deploys for release"> |
|
79 |
<maven arg="-P release deploy" /> |
|
80 |
</target> |
|
82 |
<target name="release.get.params"> |
|
83 |
<!-- Default values --> |
|
84 |
<property name="svn.username" value="${user.name}"/> |
|
81 | 85 |
|
86 |
<readpom/> |
|
87 |
<property name="svn.tag" value="${mypom.version}"/> |
|
88 |
<propertyregex property="svn.tag" input="${svn.tag}" |
|
89 |
regexp="(.*)-SNAPSHOT" select="\1" casesensitive="false" override="true" /> |
|
90 |
|
|
91 |
<antform title="Release parameters" image="${gvsiglogo}" resetMessage="Cancel" |
|
92 |
previousTarget="cancel"> |
|
93 |
|
|
94 |
<label>Set the values needed to perform the release.</label> |
|
95 |
|
|
96 |
<textProperty label="SVN user name: " property="svn.username" |
|
97 |
password="false" /> |
|
98 |
<textProperty label="SVN user password: " property="svn.password" |
|
99 |
password="true" /> |
|
100 |
<textProperty label="SVN tag: " property="svn.tag" |
|
101 |
password="false" /> |
|
102 |
<textProperty label="Next development version: " |
|
103 |
property="developmentVersion" |
|
104 |
password="false" /> |
|
105 |
<label> |
|
106 |
Note: |
|
107 |
Don't include the suffix "-SNAPSHOT" in the development version, |
|
108 |
it will be automatically included where needed. |
|
109 |
</label> |
|
110 |
</antform> |
|
111 |
</target> |
|
112 |
|
|
113 |
<target name="mvn-release-prepare-perform" depends="release.get.params" description="Prepares and performs (tag, version upgrade and deploys) a new release of the project"> |
|
114 |
<echo>mvn release:clean release:prepare release:perform -DpreparationGoals='clean install' -Dusername=${svn.username} -Dpassword=******* -Dtag=${svn.tag} -DdevelopmentVersion=${developmentVersion}-SNAPSHOT</echo> |
|
115 |
<maven arg="release:clean release:prepare release:perform -DpreparationGoals='clean install' -Dusername=${svn.username} -Dpassword=${svn.password} -Dtag=${svn.tag} -DdevelopmentVersion=${developmentVersion}-SNAPSHOT" /> |
|
116 |
</target> |
|
117 |
|
|
118 |
<target name="mvn-release-prepare-dry-run" depends="release.get.params" description="Performs a dry run (does not perform the real release) of a new release of the project"> |
|
119 |
<echo>mvn release:clean release:prepare -DdryRun=true -Dtag=${svn.tag} -DdevelopmentVersion=${developmentVersion}-SNAPSHOT</echo> |
|
120 |
<maven arg="release:clean release:prepare -DdryRun=true -Dtag=${svn.tag} -DdevelopmentVersion=${developmentVersion}-SNAPSHOT" /> |
|
121 |
</target> |
|
122 |
|
|
123 |
<target name="mvn-release-clean" description="Cleans all files created by the release-prepare* targets"> |
|
124 |
<maven arg="release:clean" /> |
|
125 |
</target> |
|
126 |
|
|
82 | 127 |
<target name="mvn-configure-eclipse-workspace" |
83 | 128 |
description="Configures the eclipse workspace for maven integration"> |
84 | 129 |
|
Also available in: Unified diff