Author: epbernard
Date: 2008-03-19 17:15:57 -0400 (Wed, 19 Mar 2008)
New Revision: 14469
Added:
jpa-api/trunk/ivy/maven-ant-tasks.jar
jpa-api/trunk/pom.xml
Modified:
jpa-api/trunk/build.xml
jpa-api/trunk/ivy.xml
Log:
Add Maven2 deploy tasks
Modified: jpa-api/trunk/build.xml
===================================================================
--- jpa-api/trunk/build.xml 2008-03-18 14:24:07 UTC (rev 14468)
+++ jpa-api/trunk/build.xml 2008-03-19 21:15:57 UTC (rev 14469)
@@ -7,7 +7,8 @@
-->
<project name="EJB-API" default="jar" basedir="."
- xmlns:ivy="antlib:fr.jayasoft.ivy.ant">
+ xmlns:ivy="antlib:fr.jayasoft.ivy.ant"
+ xmlns:artifact="urn:maven-artifact-ant">
<!-- Give user a chance to override without editing this file or typing -D -->
<property file="build.properties"/>
@@ -15,16 +16,20 @@
<!-- Name of project and version, used to create filenames -->
<property name="name" value="ejb3-persistence"/>
- <property name="version" value="3.0 Final Release
(1.0.1.GA)"/>
+ <property name="version" value="3.0 Final Release
(1.0.2.GA)"/>
<!-- set global properties for this build -->
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="metainf.dir" value="etc"/>
<property name="classes.dir" value="${build.dir}/classes"/>
- <property name="jar.name" value="${name}"/>
+ <property name="jar.name" value="${name}"/>
- <property name="javac.debug" value="on"/>
+ <!-- maven properties -->
+ <property name="src.jar" value="${build.dir}/src.jar"/>
+ <property name="pom.file" value="pom.xml"/>
+
+ <property name="javac.debug" value="on"/>
<property name="javac.optimize" value="off"/>
<patternset id="src.files">
@@ -40,10 +45,16 @@
<path id="ivy.lib.path">
<fileset dir="${ivy.jar.dir}" includes="*.jar"/>
</path>
- <taskdef resource="fr/jayasoft/ivy/ant/antlib.xml"
+ <path id="maven-ant-tasks.path"
path="${ivy.jar.dir}/maven-ant-tasks.jar" />
+ <taskdef resource="fr/jayasoft/ivy/ant/antlib.xml"
uri="antlib:fr.jayasoft.ivy.ant"
classpathref="ivy.lib.path"/>
+ <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
+ uri="urn:maven-artifact-ant"
+ classpathref="maven-ant-tasks.path" />
+ <artifact:remoteRepository id="offline.repository.jboss.org"
url="file://${offline.repository.jboss.org}" />
+
<!-- ############################ Targets #############################-->
<target name="clean" description="Cleans up build and dist
directories">
@@ -106,6 +117,21 @@
/>
</target>
+ <target name="deploy" depends="jar">
+ <jar jarfile="${src.jar}" basedir="${src.dir}">
+ <include name="**/*.java" />
+ <exclude name="**/test/*.java" />
+ <!-- patternset refid="meta.files" / -->
+ </jar>
+
+ <artifact:deploy file="${build.dir}/${jar.name}.jar">
+ <pom file="${pom.file}" />
+ <remoteRepository refId="offline.repository.jboss.org">
+ </remoteRepository>
+ <attach file="${src.jar}" classifier="sources" />
+ </artifact:deploy>
+ </target>
+
<target name="javadoc" description="Compile the Javadoc API
documentation">
<mkdir dir="${build.dir}/api"/>
<javadoc
Added: jpa-api/trunk/ivy/maven-ant-tasks.jar
===================================================================
(Binary files differ)
Property changes on: jpa-api/trunk/ivy/maven-ant-tasks.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: jpa-api/trunk/ivy.xml
===================================================================
--- jpa-api/trunk/ivy.xml 2008-03-18 14:24:07 UTC (rev 14468)
+++ jpa-api/trunk/ivy.xml 2008-03-19 21:15:57 UTC (rev 14469)
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"http://www.jayasoft.org/misc/ivy/ivy.xsd">
- <info organisation="org.hibernate" module="ejb3-persistence"
revision="1.0.1.GA" status="release"/>
+ <info organisation="org.hibernate" module="ejb3-persistence"
revision="1.0.2.GA" status="release"/>
<publications>
<artifact name="ejb3-persistence" type="jar" />
</publications>
Added: jpa-api/trunk/pom.xml
===================================================================
--- jpa-api/trunk/pom.xml (rev 0)
+++ jpa-api/trunk/pom.xml 2008-03-19 21:15:57 UTC (rev 14469)
@@ -0,0 +1,15 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.hibernate</groupId>
+ <artifactId>ejb3-persistence</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0.2.GA</version>
+
+ <name>Java Persistence API</name>
+ <description>Java Persistence API</description>
+ <url>http://www.hibernate.org</url>
+</project>