Skip to content

Commit 9771cbb

Browse files
committed
build.xml: deploy snapshot sources, by having non-unique version.
1 parent 154ba7b commit 9771cbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,17 @@ Ahmed Ashour
133133
<arg value="-DrepositoryId=${maven-snapshots-repository-id}" />
134134
<arg value="-DpomFile=pom.xml" />
135135
<arg value="-Dfile=${jar}" />
136+
<arg value="-DuniqueVersion=false" />
136137
</artifact:mvn>
137-
<!-- this doesn't work as it produces a new snapshot timestamp different from the one for the jar
138138
<artifact:mvn>
139139
<arg value="org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file" />
140140
<arg value="-Durl=${maven-snapshots-repository-url}" />
141141
<arg value="-DrepositoryId=${maven-snapshots-repository-id}" />
142142
<arg value="-DpomFile=pom.xml" />
143143
<arg value="-Dfile=${jar.sources}" />
144144
<arg value="-Dclassifier=sources" />
145+
<arg value="-DuniqueVersion=false" />
145146
</artifact:mvn>
146-
-->
147147
</target>
148148

149149
<target name="install-mvn-local" depends="check-maven-ant-tasks,jar-with-source"

0 commit comments

Comments
 (0)