Community
Participate
Working Groups
Current nightly and promoted builds of EclipseLink are published on EclipseLink download site <http://www.eclipse.org/eclipselink/downloads/index.php>. Having these builds in a maven repository with corresponding sources will help EclipseLink users who develop using maven. This bug is entered to track this activity
Given that EclipseLink is not built using maven and there is no maven repository available on eclipse.org, we will go with following approach * Use the svn repository for EclipseLink <https://dev.eclipse.org/svnroot/technology/org.eclipse.persistence/> as the maven repository to publish to. * The build infrastructure that builds and publishes nightly/promoted builds of EclipseLink will be updated to publish EclipseLink artifacts into this repository * This can be done using simple ant scripts. The only maven artifact required on EclipseLink build infrastructure is the jar antlib for maven <http://maven.apache.org/ant-tasks.html>
Created attachment 87001 [details] Ant acript that can upload to maven repository Need to resolve TODO comments in file
Created attachment 87002 [details] Template for corresponding pom
Here are the steps to try the scripts in your environment : 1. Download the ant script (uploadToMaven.xml) and pom.xml.template attached to the bug in top level dir of your workspace (at same level as top level build.xml). 2. Create a lib dir under your top level dir of your workspace and download ant tasks for maven from http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-ant-tasks-2.0.8.jar 3. Update the <url> under <distributionManagement> in pom.xml.template to point to your svn repository 4.Make sure you have built a version of eclipselink.jar in your workspace. 5. Run the ant script using ant -f uploadToMaven.xml. It will upload eclipselink.jar from your workspace to the svn repository 6. To test whether the upload was successful, In a separate maven app, try declaring dependency on eclipselink as follows <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>eclipselink</artifactId> <version>1.0-SNAPSHOT</version> <scope>compile</scope> </dependency> Add the repository to which you uploaded to your repositories section <repositories> <repository> <id>local svn</id> <name>local svn repo</name> <url>http://<pointer to your svn repository> </url> </repository> </repositories> 7. when you try to compile the maven app, eclipselink jar would be downloaded
Created attachment 88205 [details] Version of ant script removing dependency on wagon-svn
pom.xml.template and pom.xml.template have been checked into the trunk directory. 'still working on including them in the builds.
I reviewed and checked in Mitesh's changes. Tested through several build script runs. The build script has been running nightly builds that include these changes for several days without incident.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink