Remote repositories protocols

2014-07-08 Thread Eric Cornely
Hi,

I read in the documentation (
https://maven.apache.org/guides/introduction/introduction-to-repositories.html)
that "maven repositories can be accessed by a variety of protocols such as
file:// and http://";

By curiosity I'm wondering what are the other protocols supported by maven.
Is there a list of them or a way I could make it ? by listing existing
wagon ? (Is wagon used only when deploy ?)

I'm really wondering about ftp://, ftps://, ssh://, sftp:// and smb://
support. If you know one of these works as a repository url, tell me.

Kind regards,

Eric Cornely
-- 
Eric Cornely
ericcorn...@gmail.com

Please consider the environment before printing this e-mail


Re: Re:

2014-07-08 Thread Eric Cornely
Thanks a lot, that's a perfect example.
I would have loved to see it in the documentation about lifecycles.

Kr,

Eric


> See my answer here for some of the issues:
>
> http://stackoverflow.com/questions/12433120/creating-a-new-phase/12480505#12480505
>
>
> On 7 July 2014 11:34, Eric Cornely  wrote:
>
>
>
>> Hello,
>>
>> I have a few questions about maven lifecycles that you can probably
>> answer.
>>
>> I see many articles about modifying the default lifecycle where people
>> change the associated plugin goal of a certain phase by an other.
>>
>> Would it be possible to create a completely new lifecycle with phases that
>> have new names ? like a lifecycle named 'foo' with a 'bar' phase and than
>> I
>> could run from command line "mvn bar"
>>
>> In case it is not possible, how can I bind more than one plugin goal to a
>> single phase in my extension project components.xml file ? (Is there any
>> DTD or XSD for component-set ?)
>>
>> Kind regards,
>>
>> Eric Cornely
>> -- 
>>
>> Eric Cornely
>> ericcorn...@gmail.com
>>
>> Please consider the environment before printing this e-mail
>>
>

-- 
 

Eric Cornely
IT Consultant and Trainer  @ Vision Consulting Group
Chaussée de Louvain 431 (Bât H)
1380 Lasne
Mobile : +32 (0)494 25 22 77
ericcorn...@gmail.com

Please consider the environment before printing this e-mail


Re: Maven Central's is nexus?

2014-07-08 Thread Jason Swank
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



Maven Central's is nexus?

2014-07-08 Thread Dan Tran
Hi

I wonder if maven central is a nexus running smart proxy to sync all
sibling repos?

Thanks

-Dan


[ANN] Mock Repository Manager Maven Plugin 1.0-beta-2 Released

2014-07-08 Thread Robert Scholte

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:


  org.codehaus.mojo
  mrm-maven-plugin
  1.0-beta-2


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



Extracting a reactor artifact set out of maven repo

2014-07-08 Thread Dan Tran
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


RE: Running maven shade on a preexisting jar

2014-07-08 Thread Martin Gainty
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"  wrote:
> 
> > MG: sure or
> > http://en.wikipedia.org/wiki/Java_Decompiler
> >
> >
> > On Mon, Jul 7, 2014 at 4:13 PM, Martin Gainty  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
> > > MG>James i had some difficulty locating Java Decompiler (JAD) ..can i
> > > assume this is JAD repository we should reference?
> > > MG>http://varaneckas.com/jad/
> > > >
> > > >
> > > > On Mon, Jul 7, 2014 at 2:15 PM, Robert James 
> > > 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  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  on the older jar from the older  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

2014-07-08 Thread Benson Margulies
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"  wrote:

> MG: sure or
> http://en.wikipedia.org/wiki/Java_Decompiler
>
>
> On Mon, Jul 7, 2014 at 4:13 PM, Martin Gainty  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
> > MG>James i had some difficulty locating Java Decompiler (JAD) ..can i
> > assume this is JAD repository we should reference?
> > MG>http://varaneckas.com/jad/
> > >
> > >
> > > On Mon, Jul 7, 2014 at 2:15 PM, Robert James 
> > 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  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  on the older jar from the older  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: Adding Classifiers when building

2014-07-08 Thread Fragoso, Ruben
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  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: Adding Classifiers when building

2014-07-08 Thread Jason van Zyl
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  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

2014-07-08 Thread Stephen Connolly
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 
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  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

2014-07-08 Thread Stephen Connolly
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  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
>
>


Adding Classifiers when building

2014-07-08 Thread Fragoso, Ruben
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