Hi, Here is a quick feedback on this subject
On 29/12/2013 17:40, Vincent Danjean wrote: > I just subscribed to this ML (so no need to CC me). > While I think I'm a experimented developer, in particular in C > and low-level system stuff, I'm rather newbie about java. I know > the language and very basic tools (java, javac, javadoc, > classpath, ...) but I never really do experiments with complexes > frameworks such as maven/OSGi. > > For my hobby, I would like to use a maven application: openhab [1] > (it is used to control and interface various domotic systems). I can > compile it standalone, but I would really like to package it in > Debian. openHab compiles fine on a stable release. Note that I did it in a vm with few packages installed (mainly maven and its dependencies). The compilation of openHab download and install locally lots of java jar. Perhaps some of them would have been available in Debian. I did not check. However, on my unstable laptop, openHab does not compile. There is an initial problem that I quickly workaround: the maven version in testing/unstable (3.0.5-1) fails with: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Unable to build project '/home/vdanjean/debian/mainteneur/openhab/openhab/pom.xml; it requires Maven version 3.0 This is due to the following code in pom.xml: <prerequisites> <maven>3.0</maven> </prerequisites> Removing it allows to continue. Note that maven 3.0.4-3 in stable does not have this problem. Then, when I tried to compile openhab on unstable, I quickly get error messages about problem within dependencies such as : [INFO] Unable to find resource 'org.eclipse.tycho:tycho-surefire:pom:0.18.1' in repository openhab.repository (http://repository-openhab.forge.cloudbees.com/release/) Downloading: https://oss.sonatype.org/content/groups/public//org/eclipse/tycho/tycho-surefire/0.18.1/tycho-surefire-0.18.1.pom 2K downloaded (tycho-surefire-0.18.1.pom) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: unknown:tycho-surefire Reason: Cannot find layout implementation corresponding to: 'p2' for remote repository with id: 'eclipse'. for project unknown:tycho-surefire I did no[INFO] Unable to find resource 'org.eclipse.tycho:tycho-surefire:pom:0.18.1' in repository openhab.repository (http://repository-openhab.forge.cloudbees.com/release/) Downloading: https://oss.sonatype.org/content/groups/public//org/eclipse/tycho/tycho-surefire/0.18.1/tycho-surefire-0.18.1.pom 2K downloaded (tycho-surefire-0.18.1.pom) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: unknown:tycho-surefire Reason: Cannot find layout implementation corresponding to: 'p2' for remote repository with id: 'eclipse'. for project unknown:tycho-surefire I do not get them on my stable vm. I do not know if this is due to stable/unstable difference or if this is due to the fact that I have more lib*-java packages installed on my laptop (so maven try to use them and it exists some incompatibilities...) > I already read (and learn at lot about Debian java packaging) the > wiki page (and various links). This leads me to maven-debian-helper > and mh_make. > > The more difficult part I see in packaging openhab is that it > seems that lots of dependencies are missing :-( [...] > In any case, my first stop is tycho[2]. Looking at the web, it seems > that this is a maven plugin to help to build projects. I take a look at this maven plugin and tried to start a package. I quickly find that this is way above my technical skills in java. This plugin is responsible to, itself, locate and download other java software. Packaging it (so that it can work in local without network) requires to understand its internals. I cannot. So, for now, I use openhab in my Debian stable VM and I've stop my try to package it. I will probably try again if I see tycho packaged in Debian in the future. Regards, Vincent -- Vincent Danjean GPG key ID 0x9D025E87 vdanj...@debian.org GPG key fingerprint: FC95 08A6 854D DB48 4B9A 8A94 0BF7 7867 9D02 5E87 Unofficial pkgs: http://moais.imag.fr/membres/vincent.danjean/deb.html APT repo: deb http://people.debian.org/~vdanjean/debian unstable main -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52eac2bc.9030...@free.fr