Building Java packages that use Maven
Simple question... I have some piece of Java software that is built using maven. There is no maven in openSUSE because it's too hard to build according to http://en.opensuse.org/openSUSE:Maven I have a hard time believing that by using openSUSE, I'm shut off from the world of maven-based Java software. So is it possible to include such software in openSUSE, without having to do ridiculous gymnastics like re-creating the entire build process in a custom ant file, etc.? Thanks, -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
Hi Archie,
On Wed, Dec 11, 2013 at 9:50 PM, Archie Cobbs
Simple question...
I have some piece of Java software that is built using maven.
There is no maven in openSUSE because it's too hard to build according to http://en.opensuse.org/openSUSE:Maven
I have a hard time believing that by using openSUSE, I'm shut off from the world of maven-based Java software.
So is it possible to include such software in openSUSE, without having to do ridiculous gymnastics like re-creating the entire build process in a custom ant file, etc.?
Do you want to build it or include it? You can always create packages from binary artifacts. Of course, those won't be viable for Factory, but if that's not a goal for you... I package for instance Maven this way at [0]. Robert [0]: https://build.opensuse.org/package/show?project=home%3Arobert_munteanu&package=maven
Thanks, -Archie
-- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
-- http://robert.muntea.nu/ -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
On Wed, Dec 11, 2013 at 2:02 PM, Robert Munteanu
On Wed, Dec 11, 2013 at 9:50 PM, Archie Cobbs
wrote: So is it possible to include such software in openSUSE, without having to do ridiculous gymnastics like re-creating the entire build process in a custom ant file, etc.?
Do you want to build it or include it? You can always create packages from binary artifacts.
Right, and I have done that. But these can't be shared except via home projects, which is vastly inferior to being part of "official" openSUSE. For example, there's no way to have one "official" build of a piece of software that everyone uses and standardizes on. So yes I want to build stuff in a way that is compatible with devel projects, Factory, and "official" openSUSE. -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
On Wed, Dec 11, 2013 at 01:50:21PM -0600, Archie Cobbs wrote:
Simple question...
I have some piece of Java software that is built using maven.
There is no maven in openSUSE because it's too hard to build according to http://en.opensuse.org/openSUSE:Maven
I have a hard time believing that by using openSUSE, I'm shut off from the world of maven-based Java software.
So is it possible to include such software in openSUSE, without having to do ridiculous gymnastics like re-creating the entire build process in a custom ant file, etc.?
Hi, the problem is called bootstrapping or better to say avoiding a build cycles, which are no go. I have to fight quite hard for every added edge (last case was in ant-contrib). There was an excellent idea from SUSE Manager folks to create a binary bootstrapping packages, which will break cycles and can be used to build the whole stack. Unfortunatelly this requires some tooling, which is not done, so no progress atm. Basically the most important feature is to have an ability to refresh the -bootstrap package by already built rpms in order to not diverge that much. Regards Michal Vyskocil
Thanks, -Archie
-- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
On Thu, Dec 12, 2013 at 3:43 AM, Michal Vyskocil
On Wed, Dec 11, 2013 at 01:50:21PM -0600, Archie Cobbs wrote:
So is it possible to include such software in openSUSE, without having to do ridiculous gymnastics like re-creating the entire build process in a custom ant file, etc.?
the problem is called bootstrapping or better to say avoiding a build cycles, which are no go. I have to fight quite hard for every added edge (last case was in ant-contrib).
There was an excellent idea from SUSE Manager folks to create a binary bootstrapping packages, which will break cycles and can be used to build the whole stack. Unfortunatelly this requires some tooling, which is not done, so no progress atm.
Interesting idea. I hope there is progress. In the meantime, is it feasible to pursue a strategy of just breaking all the cycles? In other words: 1. Identify every package X on which Maven's build depends. 2. Fix the build of X so that it uses ant (or whatever) instead of maven 3. Alter maven's build so that it uses the X packages instead of pulling from maven central This would work except (as I understand it) maven's build also depends on itself. Dumb question: is it possible in OBS for a build to require itself (i.e., any previously built earlier version)? As long as the repository exists, seems like it could work in theory. However, I'm guessing it's probably not allowed. -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-java+owner@opensuse.org
participants (3)
-
Archie Cobbs
-
Michal Vyskocil
-
Robert Munteanu