Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 214970 - Introduce ability to upload EclipseLink jars to maven repository
Summary: Introduce ability to upload EclipseLink jars to maven repository
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard: Fixed in 1.0M4
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-10 17:38 EST by Mitesh Meswani CLA
Modified: 2022-06-09 10:23 EDT (History)
2 users (show)

See Also:


Attachments
Ant acript that can upload to maven repository (2.58 KB, text/xml)
2008-01-15 22:04 EST, Mitesh Meswani CLA
no flags Details
Template for corresponding pom (1.54 KB, text/plain)
2008-01-15 22:05 EST, Mitesh Meswani CLA
peter.krogh: iplog+
Details
Version of ant script removing dependency on wagon-svn (1.94 KB, text/xml)
2008-01-29 17:00 EST, Mitesh Meswani CLA
peter.krogh: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mitesh Meswani CLA 2008-01-10 17:38:35 EST
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
Comment 1 Mitesh Meswani CLA 2008-01-10 17:41:43 EST
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>
Comment 2 Mitesh Meswani CLA 2008-01-15 22:04:13 EST
Created attachment 87001 [details]
Ant acript that can upload to maven repository

Need to resolve TODO comments in file
Comment 3 Mitesh Meswani CLA 2008-01-15 22:05:13 EST
Created attachment 87002 [details]
Template for corresponding pom
Comment 4 Mitesh Meswani CLA 2008-01-16 14:26:42 EST
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
Comment 5 Mitesh Meswani CLA 2008-01-29 17:00:17 EST
Created attachment 88205 [details]
Version of ant script removing dependency on wagon-svn
Comment 6 Tom Ware CLA 2008-01-30 15:38:50 EST
pom.xml.template and pom.xml.template have been checked into the trunk directory.

'still working on including them in the builds.
Comment 7 Tom Ware CLA 2008-02-07 15:40:15 EST
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.

Comment 8 Eclipse Webmaster CLA 2022-06-09 10:23:35 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink