[ 
http://jira.codehaus.org/browse/CBUILDS-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_121609
 ] 

stimpy edited comment on CBUILDS-22 at 1/28/08 11:39 PM:
---------------------------------------------------------------

Patch Description
------------------------

The MOJO C Builds code has not been able to compile since the deprecation of 
the BuildContext and BuildContextManager classes in the core maven codebase.  A 
note on John Casey's blog mentioned that MavenSession is to be used instead of 
these classes and since this code made extensive use of the former deprecated 
classes, a large rewrite ensued.  Wherever possible, dependencies were upgraded 
to latest code releases and JUnit code was reworked to execute.  I believe this 
to be a pure Maven 2.1 plugin.

Other Features
--------------------

The platform detector correctly detects MacIntosh and will create RPM's for 
i386 Mac.  RPM on Mac is easily installed via MacPorts "sudo port install rpm"

The plugins will now create "NOARCH" RPM's which is useful for 
Java/Ruby/PerlModule packages which don't need recompilation on different 
architectures.

If the RPM "release" number is bumped in the POM, the plugin will upgrade the 
RPM as expected.  Prior to this patch, the plugin would backoff forcing the 
user to manually upgrade which was cumbersome.

To apply the patch
-------------------------

$ svn co https://svn.codehaus.org/mojo/c-builds/trunk c-builds
$ patch -p0 < ~/c-builds_MavenSession.patch
$ mvn install 

      was (Author: stimpy):
    Patch Description
------------------------

The MOJO C Builds code has not been able to compile since the deprecation of 
the BuildContext and BuildContextManager classes in the core maven codebase.  A 
note on John Casey's blog mentioned that MavenSession is to be used instead of 
these classes and since this code made extensive use of the former deprecated 
classes, a large rewrite ensued.  Wherever possible, dependencies were upgraded 
to latest code releases and JUnit code was reworked to execute.  I believe this 
to be a pure Maven 2.1 plugin.

Other Features
--------------------

The platform detector correctly detects MacIntosh and will create RPM's for 
i386 Mac.  RPM on Mac is easily installed via MacPorts "sudo port install rpm"

The plugins will now create "NOARCH" RPM's which is useful for 
Java/Ruby/PerlModule packages which don't need recompilation on different 
architectures.

If the RPM "release" number is pbumped in the POM, the plugin will upgrade the 
RPM as expected.  Prior to this patch, the plugin would backoff forcing the 
user to manually upgrade which was cumbersome.

To apply the patch
-------------------------

$ svn co https://svn.codehaus.org/mojo/c-builds/trunk c-builds
$ patch -p0 < ~/c-builds_MavenSession.patch
$ mvn install 
  
> project no longer compiiles due to Maven internals changes
> ----------------------------------------------------------
>
>                 Key: CBUILDS-22
>                 URL: http://jira.codehaus.org/browse/CBUILDS-22
>             Project: Mojo C Builds
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-4, 1.0-alpha-5, 1.0
>            Reporter: Lee Thompson
>            Priority: Blocker
>             Fix For: 1.0-alpha-5
>
>         Attachments: c-builds_MavenSession.patch
>
>
> BuildContext and BuildContextManager classes have been removed from maven so 
> the project no longer compiiles.
> I am developing a patch and will post here.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to