Adding Classifiers when building
Hello Everyone I would like to know if it is possible to add classifiers while building as a maven parameter, for example if I want to add the classifier dev to an artifact, when building. Thank you in Advance, hope to hear from you. Best Regards Ruben Fragoso
Re: Adding Classifiers when building
though it is usually better to stick to the well known qualifiers: alpha, beta, rc, milestone, etc On 8 July 2014 09:35, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Classifiers are not for what you think they are for... they are for flagging side artifacts... and in general they should not be used. A good example of a case for side artifacts is the javadocs.jar. You normally do not depend on the javadocs jar, it is a side artifact for IDEs. If you want to flag that a specific build is, e.g. for development use, then just reflect that in the version, i.e. 1.0-dev-1-SNAPSHOT On 8 July 2014 09:21, Fragoso, Ruben ruben.frag...@ca.com wrote: Hello Everyone I would like to know if it is possible to add classifiers while building as a maven parameter, for example if I want to add the classifier dev to an artifact, when building. Thank you in Advance, hope to hear from you. Best Regards Ruben Fragoso
Re: Adding Classifiers when building
Classifiers are not for what you think they are for... they are for flagging side artifacts... and in general they should not be used. A good example of a case for side artifacts is the javadocs.jar. You normally do not depend on the javadocs jar, it is a side artifact for IDEs. If you want to flag that a specific build is, e.g. for development use, then just reflect that in the version, i.e. 1.0-dev-1-SNAPSHOT On 8 July 2014 09:21, Fragoso, Ruben ruben.frag...@ca.com wrote: Hello Everyone I would like to know if it is possible to add classifiers while building as a maven parameter, for example if I want to add the classifier dev to an artifact, when building. Thank you in Advance, hope to hear from you. Best Regards Ruben Fragoso
Re: Adding Classifiers when building
This is a bad practice and runs counter to continuous delivery which is commonly accepted as a good thing. You always want to build in such a way that anything being built can be used as a release without any further transformation. On Jul 8, 2014, at 4:21 AM, Fragoso, Ruben ruben.frag...@ca.com wrote: Hello Everyone I would like to know if it is possible to add classifiers while building as a maven parameter, for example if I want to add the classifier dev to an artifact, when building. Thank you in Advance, hope to hear from you. Best Regards Ruben Fragoso Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl http://twitter.com/takari_io - I never make the mistake of arguing with people for whose opinions I have no respect. -- Edward Gibbon
RE: Adding Classifiers when building
Thank you Jason, Yes, this was feeling counter-intuitive, that is why I asking this. Thank you All Regards Ruben Fragoso -Original Message- From: Jason van Zyl [mailto:ja...@takari.io] Sent: Tuesday, July 08, 2014 2:48 PM To: Maven Users List Subject: Re: Adding Classifiers when building This is a bad practice and runs counter to continuous delivery which is commonly accepted as a good thing. You always want to build in such a way that anything being built can be used as a release without any further transformation. On Jul 8, 2014, at 4:21 AM, Fragoso, Ruben ruben.frag...@ca.com wrote: Hello Everyone I would like to know if it is possible to add classifiers while building as a maven parameter, for example if I want to add the classifier dev to an artifact, when building. Thank you in Advance, hope to hear from you. Best Regards Ruben Fragoso Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl http://twitter.com/takari_io - I never make the mistake of arguing with people for whose opinions I have no respect. -- Edward Gibbon - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Running maven shade on a preexisting jar
Ignore the sales pitch and the unpacking complexity. 1. Make an ordinary new project with no source code. 2. List your jar as a dependency. 3. Configure shade. It can be configured to operate on dependencies. On Jul 8, 2014 6:30 AM, james northrup northrup.ja...@gmail.com wrote: MG: sure or http://en.wikipedia.org/wiki/Java_Decompiler On Mon, Jul 7, 2014 at 4:13 PM, Martin Gainty mgai...@hotmail.com wrote: From: northrup.ja...@gmail.com Date: Mon, 7 Jul 2014 14:31:31 -0700 Subject: Re: Running maven shade on a preexisting jar To: users@maven.apache.org shade is a uber jar plugin. there are 3 uber jar plugins that matter, shade, maven-assembly, and proguard. for beginners: all of them work more or less by merging a project into a single new jar just reading the pom dependencies. maven assembly does the least work. good for quick jobs shade-plugin sometimes does a good job but imho if it works once you are buying into a false sense of security and will be bitten as you grow a project. proguard is industrial strength and imho returns the best result for investing in rtfm. all of the above have a special configs to do parts and pieces. a beginner's mistake would be to pursue that course of action. don't. make a simple uber-jar project with one output jar combined from all of the input jars, and learn how to exclude collisions. if you have some proprietary jar with no source spend some time with jad to make source and refactor your packages to do the above, simple uber-jar MGJames i had some difficulty locating Java Decompiler (JAD) ..can i assume this is JAD repository we should reference? MGhttp://varaneckas.com/jad/ On Mon, Jul 7, 2014 at 2:15 PM, Robert James srobertja...@gmail.com wrote: How do I run Maven Shade on a standalone jar (ie with no sources to build from)? Please realize that I'm a beginner to Maven. On 7/7/14, james northrup northrup.ja...@gmail.com wrote: hi shade can possibly juxtapose jar deps diffrently from one build to the next in my experience. if you think you are having collisions you should probably do 2 things 1) use exclude on the older jar from the older dependency to avoid the collision 2) see if proguard fixes what shade breaks, if shade stays broken after #1. it's pretty intense On Mon, Jul 7, 2014 at 12:21 PM, Robert James srobertja...@gmail.com wrote: I have a jar that I need to shade - that is, change the name of many of the internal classes (to avoid conflicts with another jar) except for a few classes which remain exposed. The jar is already built, source is not at hand. How can I use maven shade to shade that jar? (Disclaimer: I'm a maven neophyte) - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Jim Northrup * (408) 837-2270 * - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Jim Northrup * (408) 837-2270 * -- Jim Northrup * (408) 837-2270 *
RE: Running maven shade on a preexisting jar
will do thanks Benson M- Date: Tue, 8 Jul 2014 11:49:44 -0400 Subject: Re: Running maven shade on a preexisting jar From: bimargul...@gmail.com To: users@maven.apache.org Ignore the sales pitch and the unpacking complexity. 1. Make an ordinary new project with no source code. 2. List your jar as a dependency. 3. Configure shade. It can be configured to operate on dependencies. On Jul 8, 2014 6:30 AM, james northrup northrup.ja...@gmail.com wrote: MG: sure or http://en.wikipedia.org/wiki/Java_Decompiler On Mon, Jul 7, 2014 at 4:13 PM, Martin Gainty mgai...@hotmail.com wrote: From: northrup.ja...@gmail.com Date: Mon, 7 Jul 2014 14:31:31 -0700 Subject: Re: Running maven shade on a preexisting jar To: users@maven.apache.org shade is a uber jar plugin. there are 3 uber jar plugins that matter, shade, maven-assembly, and proguard. for beginners: all of them work more or less by merging a project into a single new jar just reading the pom dependencies. maven assembly does the least work. good for quick jobs shade-plugin sometimes does a good job but imho if it works once you are buying into a false sense of security and will be bitten as you grow a project. proguard is industrial strength and imho returns the best result for investing in rtfm. all of the above have a special configs to do parts and pieces. a beginner's mistake would be to pursue that course of action. don't. make a simple uber-jar project with one output jar combined from all of the input jars, and learn how to exclude collisions. if you have some proprietary jar with no source spend some time with jad to make source and refactor your packages to do the above, simple uber-jar MGJames i had some difficulty locating Java Decompiler (JAD) ..can i assume this is JAD repository we should reference? MGhttp://varaneckas.com/jad/ On Mon, Jul 7, 2014 at 2:15 PM, Robert James srobertja...@gmail.com wrote: How do I run Maven Shade on a standalone jar (ie with no sources to build from)? Please realize that I'm a beginner to Maven. On 7/7/14, james northrup northrup.ja...@gmail.com wrote: hi shade can possibly juxtapose jar deps diffrently from one build to the next in my experience. if you think you are having collisions you should probably do 2 things 1) use exclude on the older jar from the older dependency to avoid the collision 2) see if proguard fixes what shade breaks, if shade stays broken after #1. it's pretty intense On Mon, Jul 7, 2014 at 12:21 PM, Robert James srobertja...@gmail.com wrote: I have a jar that I need to shade - that is, change the name of many of the internal classes (to avoid conflicts with another jar) except for a few classes which remain exposed. The jar is already built, source is not at hand. How can I use maven shade to shade that jar? (Disclaimer: I'm a maven neophyte) - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Jim Northrup * (408) 837-2270 * - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Jim Northrup * (408) 837-2270 * -- Jim Northrup * (408) 837-2270 *
Extracting a reactor artifact set out of maven repo
Hi My company is doing daily release builds for quite a few components ( which fill up maven release repo after a while). and we dont use staging ( please dont drill me on this ). Eventually one of the build need to be promoted to a another repo ( ie RTM). Is there such a plugin what can extract the artifact set of a reactor, and move it to another repo. I think the move/merge into another repo can be done via wagon-maven-plugin. Assume that each component has its own top level groupId. Thanks -Dan
[ANN] Mock Repository Manager Maven Plugin 1.0-beta-2 Released
Hi, The Mojo team is pleased to announce the release of the Mock Repository Manager Maven Plugin version 1.0-beta-2. The Mock Repository Manager Plugin is used when you want to test Maven plugins against specific sets of dependencies in a repository. http://mojo.codehaus.org/mrm-maven-plugin/ To get this update, simply specify the version in your project's plugin configuration: plugin groupIdorg.codehaus.mojo/groupId artifactIdmrm-maven-plugin/artifactId version1.0-beta-2/version /plugin Release Notes - Mojo's Mock Repository Manager - Version 1.0-beta-2 ** Bug * [MMOCKRM-9] - Site goals page only lists help goal (other goals missing in list) * [MMOCKRM-11] - Param propertyName should have a default value * [MMOCKRM-13] - downloading /favicon.ico throws an emptyStackException ** Improvement * [MMOCKRM-12] - Expose settings.xml for non-localhost users Enjoy, The Mojo team. Robert Scholte - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven Central's is nexus?
Hi I wonder if maven central is a nexus running smart proxy to sync all sibling repos? Thanks -Dan
Re: Maven Central's is nexus?
Hi Dan, On Tue, Jul 08, 2014 at 11:51:36AM -0700, Dan Tran wrote: I wonder if maven central is a nexus running smart proxy to sync all sibling repos? Forges running Nexus instances have mostly been converted to use smart proxy to feed to Central: the largest of these is OSSRH. However, we do pull from some organizations forges using rsync and other mechanisms. Jason @sonatype_ops - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org