Re: Re: Maven from source - version 2.x or 3.x ?
Jörg Schaible <[email protected]> Thu, 26 May 2011 18:18:19 +0200
| Newsgroups | gmane.linux.gentoo.java |
|---|---|
| Message-ID | <[email protected]> |
Kasun Gajasinghe wrote: > Hi J=C3=B6rg, and Robert, >=20 >>> FWIW one unresolved challenge for linux distributions with the rise o= f >>> bytecode languages (such as Java) is that compressed bytecodes are no= t >>> binaries in the usual sense (platform dependent machine executable >>> machine code). i know that it's a hard thing for the linux community >>> to hear but it's about time that the community acknowledged that thes= e >>> languages are now mainstream and stop trying to force them into a >>> inappropriate provisioning model. >=20 > So... what exactly are you suggesting? Switch in to using binaries > instead of building from source paradigm? For Java: Yes. Use flags are still useful for dropping optional deps. I=20 recommended that already years ago. >> To build Maven from source in Gentoo I wonder about the hen-and-egg >> problem. >=20 > Yes. To Bootstrap maven, the work around for this is by: first > generate ANT build.xml via `mvn ant:ant`. maven-bin will provide the > mvn command in this case. Then patch that build.xml to the source. > After that, ANT will take care of the building from source. >=20 > If any of you is interested, you are welcome to have a look at the > proposal for Maven from source for Gentoo [1]. Feedback is much > appreciated. >=20 > [1] >=20 [http://socghop.appspot.com/gsoc/proposal/review/google/gsoc2011/kasun_ga= jasinghe/1 One hint only: You might take a closer look at Tycho. That one replaces t= he=20 default dependency mechanism with a DependencyResolver that reads the=20 dependencies from the OSGi entries in the manifest and uses a complete=20 different repo layout (more or less what you see, when you look into=20 Eclipse's plugins directory). It might be possible to develop a solution=20 that uses similar hooks into the Maven core - to resolve deps and to supp= ort=20 a different repo layout. However, that requires a Gentoo-version of Maven= =20 ... - J=C3=B6rg