|
16 | 16 |
|
17 | 17 |
|
18 | 18 | <!-- top level targets --> |
19 | | - <target name="publish-maven-central-only-pom-artifacts" depends="publish-only-pom-windows,publish-only-pom-unix"> |
| 19 | + |
| 20 | + <target name="publish-maven-central-only-pom-artifacts" depends="publish-central-only-pom-windows,publish-central-only-pom-unix"> |
| 21 | + </target> |
| 22 | + |
| 23 | + <target name="publish-maven-central-code-artifacts" depends="publish-central-windows,publish-code-unix"> |
20 | 24 | </target> |
21 | 25 |
|
22 | 26 |
|
23 | | - <target name="publish-maven-central-code-artifacts" depends="publish-code-windows,publish-code-unix"> |
| 27 | + <target name="publish-maven-milestone-only-pom-artifacts" depends="maven.init"> |
| 28 | + <maven:deploy> |
| 29 | + <remoteRepository url="s3://${publish.bucket}/maven/bundles/${adjusted.release.type}"> |
| 30 | + <authentication username="${accessKey}" passphrase="${secretKey}"/> |
| 31 | + </remoteRepository> |
| 32 | + <pom file="${local.pom.output.file}"/> |
| 33 | + </maven:deploy> |
24 | 34 | </target> |
25 | 35 |
|
| 36 | + <target name="publish-maven-milestone-code-artifacts" depends="maven.init"> |
| 37 | + <maven:deploy file="${jar.output.file}"> |
| 38 | + <remoteRepository url="s3://${publish.bucket}/maven/bundles/${adjusted.release.type}"> |
| 39 | + <authentication username="${accessKey}" passphrase="${secretKey}"/> |
| 40 | + </remoteRepository> |
| 41 | + <pom file="${pom.output.file}"/> |
| 42 | + <attach file="${source-jar.output.file}" classifier="sources"/> |
| 43 | + </maven:deploy> |
| 44 | + </target> |
| 45 | + |
| 46 | + |
26 | 47 | <target name="install-pom" depends="maven.init"> |
27 | 48 | <maven:install> |
28 | 49 | <pom file="${local.pom.output.file}"/> |
|
33 | 54 |
|
34 | 55 | <!-- POM only deployment --> |
35 | 56 |
|
36 | | - <target name="publish-only-pom-windows" depends="maven.init" if="is.windows"> |
| 57 | + <target name="publish-central-only-pom-windows" depends="maven.init" if="is.windows"> |
37 | 58 | <maven:deploy> |
38 | 59 | <!-- Due to http://jira.codehaus.org/browse/MANTTASKS-103 in 2.0.8 on windows, fixed in 2.0.9 --> |
39 | 60 | <!-- Assuming using local file, value of variable should be of the form L:\temp\maven-repo-test --> |
|
42 | 63 | </maven:deploy> |
43 | 64 | </target> |
44 | 65 |
|
45 | | - <target name="publish-only-pom-unix" depends="maven.init" unless="is.windows"> |
| 66 | + <target name="publish-central-only-pom-unix" depends="maven.init" unless="is.windows"> |
46 | 67 | <maven:deploy> |
47 | 68 | <remoteRepository url="${maven.central.repository}"/> |
48 | 69 | <pom file="${local.pom.output.file}"/> |
|
52 | 73 |
|
53 | 74 | <!-- jar, source-jar and POM deployment --> |
54 | 75 |
|
55 | | - <target name="publish-code-windows" depends="maven.init"> |
| 76 | + <target name="publish-central-windows" depends="maven.init"> |
56 | 77 | <maven:deploy file="${jar.output.file}"> |
57 | 78 | <!-- Due to http://jira.codehaus.org/browse/MANTTASKS-103 in 2.0.8 on windows, fixed in 2.0.9 --> |
58 | 79 | <!-- Assuming using local file, value of variable should be of the form L:\temp\maven-repo-test --> |
|
0 commit comments