This is an automated email from the ASF dual-hosted git repository.
dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/master by this push:
new 6971ac7 add ivy profile to generate ivy.xml desriptors for java
artifacts
6971ac7 is described below
commit 6971ac739aee41bfd62dcd4031f6c848bb0b2d4e
Author: radai-rosenblatt <[email protected]>
AuthorDate: Thu Apr 13 09:41:16 2017 -0700
add ivy profile to generate ivy.xml desriptors for java artifacts
---
pom.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/pom.xml b/pom.xml
index 7577fbc..a8aa3c1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -370,6 +370,50 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>ivy</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>${antrun-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>generate-ivy</id>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <target name="generate-ivy"
xmlns:ivy="antlib:org.apache.ivy.ant">
+ <ivy:convertpom pomFile="${project.basedir}/pom.xml"
ivyFile="${project.build.directory}/ivy.xml" />
+ <!-- publish to local ivy cache so downstream modules
could find it -->
+ <!-- (required for them to build their own ivy.xml files,
so cannot be one during install phase) -->
+ <ivy:publish
+ resolver="local"
+ organisation="${project.groupId}"
+ module="${project.artifactId}"
+ revision="${project.version}"
+ overwrite="true"
+ >
+ <artifacts pattern="${project.build.directory}/ivy.xml"
/>
+ </ivy:publish>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.ivy</groupId>
+ <artifactId>ivy</artifactId>
+ <version>2.4.0</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>