Maven 2 & 3

Build Maven2 on free java SDK

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Ubuntu breezy with GCJ 4.0.1
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

It would make maven2 more "GNU Classpath" friendly if there is less flexibility in maven 2 bootstraping ode.
For example in maven-mboot2/src/main/java/compile/JavacCompiler.java, the class "com.sun.tools.javac.Main" is hardcoded. This result in a NullPointerException when trying to build maven2 with GCJ.

Activity

Hide
Brett Porter added a comment -

shouldn't GCJ implement that class? AFAIK that is the standard API for accessing a javac-like compiler.

Anyway, we should definitely have other alternatives in the bootstrap. We could probably download the plexus compilers we use instead of having one hardcoded in the bootstrap

Show
Brett Porter added a comment - shouldn't GCJ implement that class? AFAIK that is the standard API for accessing a javac-like compiler. Anyway, we should definitely have other alternatives in the bootstrap. We could probably download the plexus compilers we use instead of having one hardcoded in the bootstrap
Hide
Trygve Laugstol added a comment -

Damien: I have a set of tools that builds Maven 2 with free tools only. I haven't use any of the GNU tools, only the java-based ones but it shouldn't be hard adding support for GCJ and co. I can publish these somewhere if there's an interest in that.

Brett: The biggest issue with the MBoot for the Linux distros is that it's downloading stuff of the internet which is not something that builds are allowed to do. I have a technique in my scripts that basically builds everything (including dependencies) from source.

Show
Trygve Laugstol added a comment - Damien: I have a set of tools that builds Maven 2 with free tools only. I haven't use any of the GNU tools, only the java-based ones but it shouldn't be hard adding support for GCJ and co. I can publish these somewhere if there's an interest in that. Brett: The biggest issue with the MBoot for the Linux distros is that it's downloading stuff of the internet which is not something that builds are allowed to do. I have a technique in my scripts that basically builds everything (including dependencies) from source.
Hide
Trygve Laugstol added a comment -

Brett: Not that downloading the implementation isn't useful

Show
Trygve Laugstol added a comment - Brett: Not that downloading the implementation isn't useful
Hide
Brett Porter added a comment -

sure, I'm still writing that mail on how I see us addressing this.

Show
Brett Porter added a comment - sure, I'm still writing that mail on how I see us addressing this.
Hide
Jason van Zyl added a comment -

We will build and test against released and certified JDKs, trying to support all variants of GJC is untentable.

Show
Jason van Zyl added a comment - We will build and test against released and certified JDKs, trying to support all variants of GJC is untentable.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: