Last package in this bunch...
Package builds a number of jars in a hierarchical build. One of these is really what I think is called an ũber-jar, and that's the only one I want to package.
However, since the %mvn_build/%mvn_install discovers also the other jars, they also get installed. I could of course just remove them after %mvn_install, but they are also part of the metadata, so...
My question: is there any sane way to remove one or more jars from the installed set? Something like %mvn_remove_artifact?
Cheers!
--alec
Il 16/03/2015 17:05, Alec Leamas ha scritto:
Last package in this bunch...
Package builds a number of jars in a hierarchical build. One of these is really what I think is called an ũber-jar, and that's the only one I want to package.
However, since the %mvn_build/%mvn_install discovers also the other jars, they also get installed. I could of course just remove them after %mvn_install, but they are also part of the metadata, so...
My question: is there any sane way to remove one or more jars from the installed set? Something like %mvn_remove_artifact?
%mvn_package groupId:artifactId __noinstall regards
Cheers!
--alec
java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel
On Mon, Mar 16, 2015, 12:06 Alec Leamas leamas.alec@gmail.com wrote:
Last package in this bunch...
Package builds a number of jars in a hierarchical build. One of these is really what I think is called an ũber-jar, and that's the only one I want to package.
However, since the %mvn_build/%mvn_install discovers also the other jars, they also get installed. I could of course just remove them after %mvn_install, but they are also part of the metadata, so...
My question: is there any sane way to remove one or more jars from the installed set? Something like %mvn_remove_artifact?
Cheers!
--alec -- java-devel mailing list java-devel@lists.fedoraproject.org https:// https://admin.fedoraproject.org/mailman/listinfo/java-devel admin.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel/mailman/ https://admin.fedoraproject.org/mailman/listinfo/java-devellistinfo https://admin.fedoraproject.org/mailman/listinfo/java-devel/ https://admin.fedoraproject.org/mailman/listinfo/java-develjava- https://admin.fedoraproject.org/mailman/listinfo/java-develdevel https://admin.fedoraproject.org/mailman/listinfo/java-devel
Why would you want to? What I'd other developers want to depend on those other artifacts? Is there a problem with keeping them?
On 16/03/15 17:23, Christopher wrote:
On Mon, Mar 16, 2015, 12:06 Alec Leamas <leamas.alec@gmail.com mailto:leamas.alec@gmail.com> wrote:
My question: is there any sane way to remove one or more jars from the installed set? Something like %mvn_remove_artifact?
Why would you want to? What I'd other developers want to depend on those other artifacts? Is there a problem with keeping them?
I just don't want to expose this internal structure. After all, isn't this the very idea with what seemingly is called an über-jar?
Cheers!
--alec
On 16 March 2015 at 16:28, Alec Leamas leamas.alec@gmail.com wrote:
On 16/03/15 17:23, Christopher wrote:
On Mon, Mar 16, 2015, 12:06 Alec Leamas <leamas.alec@gmail.com mailto:leamas.alec@gmail.com> wrote:
My question: is there any sane way to remove one or more jars from the
installed set? Something like %mvn_remove_artifact?
Why would you want to? What I'd other developers want to depend on those
other artifacts? Is there a problem with keeping them?
I just don't want to expose this internal structure. After all, isn't this the very idea with what seemingly is called an über-jar?
Cheers!
--alec
-- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel
How is the package distributed upstream? For example, are both fine-grained and uber jars in maven central or only the uber jar?
As a point of reference, the "objectweb-asm" package in Fedora has both an "all" uber jar and fine-grained jars for those users who only need a subset of the functionality. I'm sure there are other examples of this too.
On Mon, Mar 16, 2015, 12:30 Alec Leamas leamas.alec@gmail.com wrote:
On 16/03/15 17:23, Christopher wrote:
On Mon, Mar 16, 2015, 12:06 Alec Leamas <leamas.alec@gmail.com mailto:leamas.alec@gmail.com> wrote:
My question: is there any sane way to remove one or more jars from the installed set? Something like %mvn_remove_artifact?
Why would you want to? What I'd other developers want to depend on those other artifacts? Is there a problem with keeping them?
I just don't want to expose this internal structure. After all, isn't this the very idea with what seemingly is called an über-jar?
Cheers!
--alec
über-jars can go against the spirit of maven (that's not to say there isn't a use for them) as they cause problems for dependency management. I'd just think that there should be a good reason for excluding those artifacts, so you don't have to force people to use the über one.
Il 16/03/2015 17:28, Alec Leamas ha scritto:
On 16/03/15 17:23, Christopher wrote:
On Mon, Mar 16, 2015, 12:06 Alec Leamas <leamas.alec@gmail.com mailto:leamas.alec@gmail.com> wrote:
My question: is there any sane way to remove one or more jars from the installed set? Something like %mvn_remove_artifact?
Why would you want to? What I'd other developers want to depend on those other artifacts? Is there a problem with keeping them?
I just don't want to expose this internal structure. After all, isn't this the very idea with what seemingly is called an über-jar?
Cheers!
--alec
which project you are working? usually a "uber-jar" is created by assembler plugin you should remove the plugin or change the configuration of this one if is a module just adding %pom_disable_module ... regards gil
-- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel
On 03/16/2015 05:05 PM, Alec Leamas wrote:
Last package in this bunch...
Package builds a number of jars in a hierarchical build. One of these is really what I think is called an ũber-jar, and that's the only one I want to package.
It's recommended to package all the small JAR files instead of "uber jar". See http://fedoraproject.org/wiki/Packaging:Java#Split_JAR_files
However, since the %mvn_build/%mvn_install discovers also the other jars, they also get installed. I could of course just remove them after %mvn_install, but they are also part of the metadata, so...
My question: is there any sane way to remove one or more jars from the installed set? Something like %mvn_remove_artifact?
%mvn_install does "the right thing" by default, but if you really want to invent your own way of packaging you can always install JAR file manually w/o using %mvn_install.
It is also possible to skip installation of some JARs using "%mvn_package ... __noinstall" macro. See man mvn_package
java-devel@lists.fedoraproject.org