summaryrefslogtreecommitdiffstats
path: root/common.xml
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-09-04 22:56:14 +0300
committerArtur Signell <artur@vaadin.com>2012-09-09 11:23:22 +0300
commit93ed08119c3fb45a750998f05ba4f67643787295 (patch)
tree50e91615cd4062f561764523029029cc91635fe9 /common.xml
parent5463416fd7f3e44d68cb1a4d446dcc352ee5d58e (diff)
downloadvaadin-framework-93ed08119c3fb45a750998f05ba4f67643787295.tar.gz
vaadin-framework-93ed08119c3fb45a750998f05ba4f67643787295.zip
Generate pom artifacts and automatically publish to local Maven (#9299)
Diffstat (limited to 'common.xml')
-rw-r--r--common.xml14
1 files changed, 12 insertions, 2 deletions
diff --git a/common.xml b/common.xml
index 191b522bc4..c457d827a9 100644
--- a/common.xml
+++ b/common.xml
@@ -20,7 +20,7 @@
<target name="pom.xml" description="Generates a pom.xml based on the Ivy configuration">
<fail unless="result.dir" message="No result.dir parameter given" />
<property name="ivy.xml" location="${result.dir}/../ivy.xml" />
- <property name="pom.xml" location="${result.dir}/pom.xml" />
+ <property name="pom.xml" location="${result.dir}/lib/${module.name}-${vaadin.version}.pom" />
<property name="conf" value="build, build-provided" />
<ivy:makepom templatefile="${vaadin.basedir}/pom-template.xml" ivyfile="${ivy.xml}" pomfile="${pom.xml}" conf="${conf}">
@@ -86,7 +86,6 @@
<fileset dir="${classes}" excludes="${classes.exclude}" />
<fileset dir="${src}" excludes="${jar.exclude}" />
<fileset refid="common.files.for.all.jars" />
- <fileset file="${pom.xml}" />
<union refid="extra.jar.includes" />
</union>
<jar destfile="${result.jar}" duplicate="fail" index="true">
@@ -211,5 +210,16 @@
<artifacts pattern="${result.dir}/lib/[artifact]-[revision](-[classifier]).[ext]" />
</ivy:publish>
+ <ivy:publish conf="${conf}" resolver="local-maven" overwrite="true">
+ <artifacts pattern="${result.dir}/lib/[artifact]-[revision](-[classifier]).[ext]" />
+ </ivy:publish>
+ </target>
+
+ <target name="publish.to.local.maven">
+ <property name="conf" value="*(public)" />
+
+ <ivy:resolve conf="${conf}" />
+ <ivy:publish conf="${conf}" resolver="local-maven" overwrite="true">
+ </ivy:publish>
</target>
</project> \ No newline at end of file