[jboss-jira] [JBoss JIRA] Commented: (JGRP-819) Source jar should be released to Maven2 repo as well
Richard Achmatowicz (JIRA)
jira-events at lists.jboss.org
Thu Sep 4 10:41:40 EDT 2008
[ https://jira.jboss.org/jira/browse/JGRP-819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12428263#action_12428263 ]
Richard Achmatowicz commented on JGRP-819:
------------------------------------------
I've had a look at the issue and have a proposal:
1. At present, JGroups uses an ant-based build, so that the maven-source-plugin for generating the file jgroups-sources.jar isn't practicable. Easiest is to add a new target to the JGroups ant build to build the jgroups-sources.jar file (which has a format different from that of the JGroups-x.y.z.src.zip file) and place it in the dist directory along with jgroups-all.jar and jgroups-core.jar.
2. At present, we update the buildmagic repository (component-info.xml, lib/jgroups.jar) by hand by checking out the jgroups subdirectory, creating directories and adding in the files required to the working copy, and then committing the changes. We update the maven2 repository (maven-meta-data, jgroups.jar, checksums) in a similar way, but making use of the maven command deploy:deploy-file to create directories, copy and rename files, and create checksums:
> mvn deploy:deploy-file -Dfile=$JGROUPS/dist/jgroups-all.jar -Durl=file://$JG_REPO -DpomFile=$JGROUPS/jgroups-pom.xml
With the file jgroups-sources.jar available in the distribution, we can add a copy of jgroups-sources.jar to the repo, appropriately renamed and checksums updated, by using the command:
> mvn deploy:deploy-file -Dfile=$JGROUPS/dist/jgroups-sources.jar -Durl=file://$JG_REPO -DpomFile=$JGROUPS/jgroups-pom.xml -Dclassifier=sources
This is the only extra step in the release process required once the ant tasks have been created.
If this seems OK, i'll go ahead and
(i) add the ant tasks to 2.7 and 2.6.4 to build the jgroups-sources.jar by default when the distribution is built
(ii) update the release docs to describe the process above in more detail so anyone can carry it out
(iii) update the JGroups entry on the JBoss QA wiki with the same info
(iv) put the source files up there so that Manik can have access to them
> Source jar should be released to Maven2 repo as well
> ----------------------------------------------------
>
> Key: JGRP-819
> URL: https://jira.jboss.org/jira/browse/JGRP-819
> Project: JGroups
> Issue Type: Task
> Reporter: Manik Surtani
> Assignee: Richard Achmatowicz
> Priority: Minor
> Fix For: 2.6.4, 2.7
>
>
> Updating release processes to include a -sources.jar file onto the Maven2 repo is very useful for projects consuming JGroups, as it allows Maven IDE plugins to automatically pull down sources when stepping through code with a debugger.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list