Bug 264625 - Automatic maven repo synchronization
Summary: Automatic maven repo synchronization
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 1.6.5   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-11 21:44 EST by Andrew Clement CLA
Modified: 2009-06-18 12:53 EDT (History)
1 user (show)

See Also:


Attachments
Patches the build.xml file and the *.pom files for maven repo deploy (10.76 KB, text/plain)
2009-04-14 08:03 EDT, Simone Gianni CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Clement CLA 2009-02-11 21:44:09 EST
There is always a delay at the moment from when an AspectJ version is released and it appears in the maven central repo.  That is because it is entirely a manual process - sometimes I do it, sometimes community members help me out and do it.  We can't continue like this, it should be automated.  There are two parts:

1. Create the repo shaped thing after a build, with all the right poms and md5/sha1 digests
2. Uploading
Comment 1 Andrew Clement CLA 2009-02-11 21:46:03 EST
All the Ant has been written to now construct the repo in the right layout.  It includes source jars and is driven from the same local.properties file as the existing build process.  To create the repo simply modify the local.properties (to set the right version numbers), then

Cleanup:

ant clean

Build the distribution:

ant

Create the repo

ant repo

Now under the aj-build/repo folder will be the entire structure suitable for upload to maven.
Comment 2 Simone Gianni CLA 2009-04-14 08:02:06 EDT
I set up an rsync space on my own server for AspectJ to use, cause I badly need AspectJ in Maven.

I've modified the build.xml file to call Maven to deploy to a repository. This includes the rsync space that will act as a bridge to the main Maven repository, but can also be used by anyone using a local or intranet repository to manually build and deploy a patched or modified version of AspectJ on their own repos.

This took me quite some time cuase there is no current Ant->Maven task (see http://jira.codehaus.org/browse/MANTTASKS-71 ) so Maven has to be called using an Ant exec task.

Anyway the advantage is huge, cause all the repository specific stuff is delegated to Maven, that correctly handles a number of other things like metadata.xml that are needed for rsync uploads to main repository.

This means, you need to have Maven installed and properly setup for this to work.

I also modified the pom files to include all elemente required by the main maven repository, see http://maven.apache.org/guides/mini/guide-central-repository-upload.html for an explanation.

I sent Andrew Celement some infos on how to configure it so that it can upload to my rsync space and asking him to perform some more tests on it. Once we're sure it is working correctly, I'll ask Maven folks to sync my space with the central repository and all should be working.


Comment 3 Simone Gianni CLA 2009-04-14 08:03:21 EDT
Created attachment 131760 [details]
Patches the build.xml file and the *.pom files for maven repo deploy
Comment 4 Simone Gianni CLA 2009-06-18 12:51:43 EDT
Isn't this closed?
Comment 5 Andrew Clement CLA 2009-06-18 12:53:11 EDT
it is now.  I just did a huge batch update for all 1.6.5 bugs and this was caught up in it.