Le 06/11/2014 08:53, Raaj S a écrit : Hi Raaj,
> 1. are we supposed to search for deb package for each dependency in > pom.xml? Yes. I suggest using 'apt-file find <artifactId> | grep pom' to search for the deb package. > 2. if yes then what is use of .m2 repository and all the jars in it? The local repository in the user directory is not used when building Debian packages. The system directory in /usr/share/maven-repo is used exclusively. > 3. why does mh_make look into /usr/share/maven-repo or which is the > export variable which points it. changing $REPO is not making it look > into ~/.m2 This is a consequence of the Debian Free Software Guidelines. If you want to add a package in Debian it has to be built from sources, including its dependencies. And the sources have to be available as a buildable Debian package. This means you can't download compiled code over the Internet during the build like a jar from a remote Maven repository. To work around this issue we assemble a system repository made of Maven artifacts from Debian packages only. Note that this constraint really apply to *official* Debian packages. If you are building a package for your own usage or for your company, mh_make is not the best tool. In this case I recommend using jdeb (https://github.com/tcurdt/jdeb). > 4. why do we need a deb package for a pom jar dependency if at all we > need it. Not sure to understand what you mean here. I assume you are referring to the parent poms like the commonly used sonatype oss-parent. You can tell mh_make to ignore them. Emmanuel Bourg -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/545b2feb.40...@apache.org