Maven2 package requires too many dependencie
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maven2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: maven2
Just installed Karmic and was pleased that Maven 2.2.1 is finally in the repos. I wanted to install it but was shocked to see the dependency tree. Not mentioning that recommended packages are installed for some stupid reason too, the weight of all necessary packages is way too much.
I ran apt-get with: sudo apt-get install maven2 --no-install-
See the output as attached file. As you can see it wants to install 41 new packages with a total weight of 25,6 MiB on disk. Installing 2.2.1 manually to /opt requires only 3,2 MiB (du -h) on disk. This is it simply.
I am aware that the debian package completely dissects the uber jar to separate packages but consider the following:
1. Maven will download necessary packages on its own as it thinks fit, it does not care for any other packages in the system. Everything has to be oin the local repo. E.g. libplexus-
2. dissecting should have minimal deps which is easily feasible.
This package and its dependecy tree should be skimmed for 10.4!
Mike
I second that. When I tried to install the maven2 package it tries to install - amongst many other things that I don't want and that are not necessary to run maven - gcj (I have the sun jdk, what do I need gcj for???) and ant. I attached my output from apt-get install maven2 since it is in English and might be easier to understand for some people.
If I know how to do it, I would provide a maven2 package for Ubuntu without the unnecessary dependencies. Are there any pointers on how to create a deb package from a java source?