Re: How to properly use a custom maven archetype

2015-05-14 Thread Manfred Moser
It should be listed but if you know the GAV coordinates for it you can also 
specify them

Like

mvn archetype:generate -DarchetypeGroupId=com.example.maven 

the rest of the parameters are here

http://maven.apache.org/archetype/maven-archetype-plugin/generate-mojo.html

manfred

Maven User wrote on 14.05.2015 16:43:

> Hi all -
> 
> Now that I've created and released my archetype to my nexus server, I
> can see it listed in the catalog file.
> 
> How can I reference that archetype via maven?
> 
> I've tried filtering the archetype listings by my groupId of the
> archetype but it's never found.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven assembly pulls in FAR more dependencies than shown by dependency:test ?

2015-05-14 Thread Karl Heinz Marbaise

Hi Kevin,

if you have really the assumption seeing a bug than it would be helpful 
to create a test project or offer the project where you can observe the 
problem so we can take a deeper look into it?


Kind regards
karl Heinz Marbaise

On 5/14/15 11:22 PM, Kevin Burton wrote:

Yes. IT seems I’m a weird type of dependency hell.  The dependencySet is
using test… and if I manually add exclusions to some of these, it
overwrites the exclusion used in the original POM.

But at least I know there’s a core bug causing all this insanity.  (I hope)

On Thu, May 14, 2015 at 1:51 PM, Kevin Burton  wrote:


I think I figured it out… I think the dependencySet is ALWAYS using test.
Even if I set it to runtime.

I looked in the pom for the project that I’m including and the
dependencies its pulling in are from it’s test scope.

On Thu, May 14, 2015 at 1:43 PM, Kevin Burton  wrote:


(sorry, hit send by accident on that other one)

totally stumped here and was wondering if you guys had some feedback.

I’m building all the dependency jars for my project by using the assembly
plugin.

 
 
 lib
 true
 runtime
 
 

which works.

the problem is that I added a new dependency, and now it’s pulling in a
LOT more than I had anticipated. FAR more than is listed in dependency:tree

More importantly, I’m getting conflicting packages.  Like Jetty 6 and
Jetty 9, and conflicting servlet-api .jars and things I don’t want in the
classpath.

I can’t figure out how it’s magically doing this… I would assume these
dependencies are going to show up in the dependency tree - but they’re not.



--


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



How to properly use a custom maven archetype

2015-05-14 Thread Maven User
Hi all -

Now that I've created and released my archetype to my nexus server, I
can see it listed in the catalog file.

How can I reference that archetype via maven?

I've tried filtering the archetype listings by my groupId of the
archetype but it's never found.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven assembly pulls in FAR more dependencies than shown by dependency:test ?

2015-05-14 Thread Kevin Burton
Yes. IT seems I’m a weird type of dependency hell.  The dependencySet is
using test… and if I manually add exclusions to some of these, it
overwrites the exclusion used in the original POM.

But at least I know there’s a core bug causing all this insanity.  (I hope)

On Thu, May 14, 2015 at 1:51 PM, Kevin Burton  wrote:

> I think I figured it out… I think the dependencySet is ALWAYS using test.
> Even if I set it to runtime.
>
> I looked in the pom for the project that I’m including and the
> dependencies its pulling in are from it’s test scope.
>
> On Thu, May 14, 2015 at 1:43 PM, Kevin Burton  wrote:
>
>> (sorry, hit send by accident on that other one)
>>
>> totally stumped here and was wondering if you guys had some feedback.
>>
>> I’m building all the dependency jars for my project by using the assembly
>> plugin.
>>
>> 
>> 
>> lib
>> true
>> runtime
>> 
>> 
>>
>> which works.
>>
>> the problem is that I added a new dependency, and now it’s pulling in a
>> LOT more than I had anticipated. FAR more than is listed in dependency:tree
>>
>> More importantly, I’m getting conflicting packages.  Like Jetty 6 and
>> Jetty 9, and conflicting servlet-api .jars and things I don’t want in the
>> classpath.
>>
>> I can’t figure out how it’s magically doing this… I would assume these
>> dependencies are going to show up in the dependency tree - but they’re not.
>>
>>
>>
>> --
>>
>> Founder/CEO Spinn3r.com
>> Location: *San Francisco, CA*
>> blog: http://burtonator.wordpress.com
>> … or check out my Google+ profile
>> 
>>
>>
>
>
> --
>
> Founder/CEO Spinn3r.com
> Location: *San Francisco, CA*
> blog: http://burtonator.wordpress.com
> … or check out my Google+ profile
> 
>
>


-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile



Re: Maven assembly pulls in FAR more dependencies than shown by dependency:test ?

2015-05-14 Thread Kevin Burton
I think I figured it out… I think the dependencySet is ALWAYS using test.
Even if I set it to runtime.

I looked in the pom for the project that I’m including and the dependencies
its pulling in are from it’s test scope.

On Thu, May 14, 2015 at 1:43 PM, Kevin Burton  wrote:

> (sorry, hit send by accident on that other one)
>
> totally stumped here and was wondering if you guys had some feedback.
>
> I’m building all the dependency jars for my project by using the assembly
> plugin.
>
> 
> 
> lib
> true
> runtime
> 
> 
>
> which works.
>
> the problem is that I added a new dependency, and now it’s pulling in a
> LOT more than I had anticipated. FAR more than is listed in dependency:tree
>
> More importantly, I’m getting conflicting packages.  Like Jetty 6 and
> Jetty 9, and conflicting servlet-api .jars and things I don’t want in the
> classpath.
>
> I can’t figure out how it’s magically doing this… I would assume these
> dependencies are going to show up in the dependency tree - but they’re not.
>
>
>
> --
>
> Founder/CEO Spinn3r.com
> Location: *San Francisco, CA*
> blog: http://burtonator.wordpress.com
> … or check out my Google+ profile
> 
>
>


-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile



Maven assembly pulls in FAR more dependencies than shown by dependency:test ?

2015-05-14 Thread Kevin Burton
(sorry, hit send by accident on that other one)

totally stumped here and was wondering if you guys had some feedback.

I’m building all the dependency jars for my project by using the assembly
plugin.



lib
true
runtime



which works.

the problem is that I added a new dependency, and now it’s pulling in a LOT
more than I had anticipated. FAR more than is listed in dependency:tree

More importantly, I’m getting conflicting packages.  Like Jetty 6 and Jetty
9, and conflicting servlet-api .jars and things I don’t want in the
classpath.

I can’t figure out how it’s magically doing this… I would assume these
dependencies are going to show up in the dependency tree - but they’re not.



-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile



Maven assembly pulls in FAR more dependencies than shown by dependency:test ?

2015-05-14 Thread Kevin Burton
totally stumped here and was wondering if you guys had some feedback.

I’m building all the dependency jars for my project by using the assembly
plugin.


-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile



Re: Problems building maven from source from behind a firewall: Unable to initialize POM dependencies.xml

2015-05-14 Thread Stephen Connolly
On Thursday, May 14, 2015, Karl Heinz Marbaise  wrote:

> Hi Andrew,
>
>
> On 5/14/15 10:44 AM, andrew.mar...@sungard.com wrote:
>
>> It should, in principle, be possible to build maven from the source.
>>
>
> That was not the point.. It is possible to build Maven from source using
> Ant but why would you like to do so? What's the intention?


More like it is possible to bootstrap maven with ant. You can build just
enough maven to let maven take over and build itself.

Longer term there is very little reason to maintain the ant bootstrap and
we may switch to building maven with an older release of maven


>
> Kind regards
> Karl Heinz Marbaise
>
>>
>> -Original Message-
>> From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de]
>> Sent: 14 May 2015 09:36
>> To: Maven Users List
>> Cc: marlow.age...@gmail.com
>> Subject: Re: Problems building maven from source from behind a firewall:
>> Unable to initialize POM dependencies.xml
>>
>> Hi Andrew,
>>
>> why are you building Maven from source and not downloading from
>> http://maven.apache.org/download.html the distribution...(-bin.tar.gz
>> unix -bin.zip for windows).
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

-- 
Sent from my phone


Re: (Very basic) Command line completion for Fish-Shell

2015-05-14 Thread Curtis Rueden
Hi Johannes,

> https://github.com/jschneider/fish-maven-completion/blob/master/mvn.fish

FWIW, zsh is also a great modern shell, with many plugins available,
including pretty nice completion for Maven [1] from the Oh My Zsh! project.

Using a plugin manager like zgen [2] with zsh, you can easily cherry-pick
desired plugins from all over the web [3].

Regards,
Curtis

[1]
https://github.com/robbyrussell/oh-my-zsh/blob/140034605edd0f72c548685d39e49687a44c1b23/plugins/mvn/mvn.plugin.zsh
[2] https://github.com/tarjoilija/zgen
[3] E.g., my config:
https://github.com/ctrueden/dotfiles/blob/e8bc3d2f4b7913a55844265b31d7c5bedb129598/zshrc

On Thu, May 14, 2015 at 9:04 AM, Johannes Schneider 
wrote:

> A lot is missing, but much better than nothing:
>
> https://github.com/jschneider/fish-maven-completion/blob/master/mvn.fish
>
> Install by copying to ~/.config/fish/completions/mvn.fish
>
>
> Pull requests very welcome.
>
>
> Regards,
>
> Johannes
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: deployAtEnd really works?

2015-05-14 Thread Dan Tran
I hit the same usecase discussed at your blog, and have to orchestrate
maven to activate all modules at release time ( maven -B release:prepare
release:perform -Dmy-release  together with additional profile activation
at release plugin configuration.

For the currently setup, it will not go thru release plugin, it is a way
for me to create a single maven build by combine a bunch of independent
component sources thru Perforce mapping

-D

On Thu, May 14, 2015 at 1:21 AM, Karl Heinz Marbaise 
wrote:

> Hi Dan,
>
> On 5/14/15 8:12 AM, Dan Tran wrote:
>
>> Hi Bernd ,
>>
>> I dont configure or execute any maven-deploy-plugin at my top level parent
>> pom.
>>
>> The only thing that I have which may not be very conventional:
>>
>> all of my modules are conditional activated by profile looking for
>> existing
>> existing pom
>>
>>  
>>enable-compX
>>
>>  
>>components/compX/pom.xml
>>  
>>
>>
>>  components/compX
>>
>>  
>>
>>
>> I am using Maven 3.2.3
>>
>
> What's the reason having a module activating via profile...
>
>
> http://blog.soebes.de/blog/2013/11/09/why-is-it-bad-to-activate-slash-deactive-modules-by-profiles-in-maven/
>
> Kind regards
> Karl Heinz Marbaise
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


(Very basic) Command line completion for Fish-Shell

2015-05-14 Thread Johannes Schneider
A lot is missing, but much better than nothing:

https://github.com/jschneider/fish-maven-completion/blob/master/mvn.fish

Install by copying to ~/.config/fish/completions/mvn.fish


Pull requests very welcome.


Regards,

Johannes

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: [EXTERNAL] dependency management with ant quick question

2015-05-14 Thread Justin Georgeson
Thanks for the correction. 

> -Original Message-
> From: Manfred Moser [mailto:manf...@mosabuam.com]
> Sent: Wednesday, May 13, 2015 11:20 PM
> To: users@maven.apache.org
> Subject: Re: [EXTERNAL] dependency management with ant quick question
> 
> Do NOT use the Maven Ant tasks.. they are outdated and based on Maven 2.
> 
> Instead use the dep resolution library used in Maven itself called Eclipse
> Aether and its Ant tasks..
> 
> http://eclipse.org/aether/
> 
> http://wiki.eclipse.org/Aether/Ant_Tasks
> 
> 
> 
> Zk W wrote on 13.05.2015 20:25:
> 
> > Hi Justin
> >
> > Thanks for replying.
> > Let us think more of your suggestion here and update.
> >
> > Thanks
> >
> > On Wed, May 13, 2015 at 8:14 PM, Justin Georgeson
> 
> > wrote:
> >
> >> https://maven.apache.org/ant-tasks/
> >>
> >> 1. There is a task to resolve/retrieve dependencies.
> >>
> >> 2. The dependency task can create classpath and fileset refids for
> >> the dependencies, and per-dependency properties, so you shouldn't
> >> have to worry about copy jars to and fro.
> >>
> >> 3. There are examples at the link above.
> >>
> >> 
> >> From: Zk W [mpc8...@gmail.com]
> >> Sent: Wednesday, May 13, 2015 10:00 PM
> >> To: users@maven.apache.org
> >> Subject: [EXTERNAL] dependency management with ant quick question
> >>
> >> Hi All
> >>
> >> We are new to Maven and we are an ant shop.
> >> We like to use Maven's dependency management feature, not ivy.
> >>
> >> 1- Can we just use Maven's dependency management feature to work
> with
> >> our ant build script ?
> >>
> >> 2- Since .m2 is the default folder for all the jars, do we use ant
> >> copy task to copy jars from .m2 folder to different project folders
> >> to compile properly ?
> >>
> >> 3. Are there examples out there that use ant for build purpose in
> >> conjunction with maven's dependency management ?
> >>
> >> Thank you.
> >>
> >> -
> >> - This e-mail, including any attached files, may contain confidential
> >> and privileged information for the sole use of the intended
> >> recipient.  Any review, use, distribution, or disclosure by others is
> >> strictly prohibited.
> >> If you are not the intended recipient (or authorized to receive
> >> information for the intended recipient), please contact the sender by
> >> reply e-mail and delete all copies of this message.
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: deployAtEnd really works?

2015-05-14 Thread Robert Scholte
deployAtEnd works for most projects, not all. Hence, it is 'false' by  
default.


Improvements need to be made in Maven Core itself[1]
It seems like Jason wants to fix this for the next release.

[1] https://issues.apache.org/jira/browse/MNG-5666

Op Thu, 14 May 2015 10:21:19 +0200 schreef Karl Heinz Marbaise  
:



Hi Dan,

On 5/14/15 8:12 AM, Dan Tran wrote:

Hi Bernd ,

I dont configure or execute any maven-deploy-plugin at my top level  
parent

pom.

The only thing that I have which may not be very conventional:

all of my modules are conditional activated by profile looking for  
existing

existing pom

 
   enable-compX
   
 
   components/compX/pom.xml
 
   
   
 components/compX
   
 


I am using Maven 3.2.3


What's the reason having a module activating via profile...

http://blog.soebes.de/blog/2013/11/09/why-is-it-bad-to-activate-slash-deactive-modules-by-profiles-in-maven/

Kind regards
Karl Heinz Marbaise

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Problems building maven from source from behind a firewall: Unable to initialize POM dependencies.xml

2015-05-14 Thread Karl Heinz Marbaise

Hi Andrew,


On 5/14/15 10:44 AM, andrew.mar...@sungard.com wrote:

It should, in principle, be possible to build maven from the source.


That was not the point.. It is possible to build Maven from source using 
Ant but why would you like to do so? What's the intention?



Kind regards
Karl Heinz Marbaise


-Original Message-
From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de]
Sent: 14 May 2015 09:36
To: Maven Users List
Cc: marlow.age...@gmail.com
Subject: Re: Problems building maven from source from behind a firewall: Unable 
to initialize POM dependencies.xml

Hi Andrew,

why are you building Maven from source and not downloading from 
http://maven.apache.org/download.html the distribution...(-bin.tar.gz unix 
-bin.zip for windows).





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Problems building maven from source from behind a firewall: Unable to initialize POM dependencies.xml

2015-05-14 Thread Andrew.Marlow
It should, in principle, be possible to build maven from the source.

-Original Message-
From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de] 
Sent: 14 May 2015 09:36
To: Maven Users List
Cc: marlow.age...@gmail.com
Subject: Re: Problems building maven from source from behind a firewall: Unable 
to initialize POM dependencies.xml

Hi Andrew,

why are you building Maven from source and not downloading from 
http://maven.apache.org/download.html the distribution...(-bin.tar.gz unix 
-bin.zip for windows).


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


Re: Problems building maven from source from behind a firewall: Unable to initialize POM dependencies.xml

2015-05-14 Thread Karl Heinz Marbaise

Hi Andrew,

why are you building Maven from source and not downloading from 
http://maven.apache.org/download.html the distribution...(-bin.tar.gz 
unix -bin.zip for windows).


A proxy in maven (settings.xml) is something different than using 
http_proxy see https://maven.apache.org/settings.html


Best is to setup a Nexus repository manager inside the corporate 
environment and let handle Nexus the proxy / access to internet things...


http://books.sonatype.com/nexus-book/reference/config-maven.html


On 5/14/15 10:23 AM, andrew.mar...@sungard.com wrote:

Hello everyone,

I am trying to build maven from source in a corporate environment behind a 
firewall.


To be behind a firewall / proxy is a usual corporate setupnothing 
unsual...


> It fails to download a pom, eventually timing out.

You should the reason in the logging output if you trying to run on 
console...


>  I read of others with the same problem and the "solutions"
> posted always
>  involve configuring an http proxy.
> Different solutions have different ways of
> specifying the proxy settings.

There is the environment variable http_proxy, there's the maven 
settings.xml in $HOME/.m2,


The settings.xml file is the correct location

> and even the ANT_OPTS variable.

Why ANT_OPTS ? This is not related to Maven...you should try MAVEN_OPTS 
instead...if you really need..if you use settings.xml you don't need to...



>  I have tried them all but to no avail.

> The pom it's trying to get is 
http://repo1.maven.org/maven2/org/apache/maven/maven-parent/23/maven-parent-23.pom.

>  I can retrieve this file using wget (with http_proxy set)
> but somehow the maven retrieve fails. I hope someone can help me.

Settings up things in settings.xml like here:

https://maven.apache.org/settings.html#Proxies



Also, given that I am trying to build a source distribution,

> why it is going off to remote repos to fetch various files?

To build things in Maven plugins are needed which need dependencies of 
their own...plus the dependencies of the code...so downloading of the 
pom is to analyze the transitive dependencies...


>  Shouldn't they come with the source distro anyway?
If you really like to build from source you should use ANT which also 
tries to download some files (I can't remember which, don't that ages 
before...).


The binary distro contains only Maven itself no plugins etc...which will 
be downloaded automatically if you have a proxy/mirror settings.xml 
correctly or better using a repository manager...



Kind regards
Karl Heinz Marbaise

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Problems building maven from source from behind a firewall: Unable to initialize POM dependencies.xml

2015-05-14 Thread Andrew.Marlow
Hello everyone,

I am trying to build maven from source in a corporate environment behind a 
firewall. It fails to download a pom, eventually timing out. I read of others 
with the same problem and the "solutions" posted always involve configuring an 
http proxy. Different solutions have different ways of specifying the proxy 
settings. There is the environment variable http_proxy, there's the maven 
settings.xml in $HOME/.m2, and even the ANT_OPTS variable. I have tried them 
all but to no avail.

The pom it's trying to get is 
http://repo1.maven.org/maven2/org/apache/maven/maven-parent/23/maven-parent-23.pom.
 I can retrieve this file using wget (with http_proxy set) but somehow the 
maven retrieve fails. I hope someone can help me.

Also, given that I am trying to build a source distribution, why it is going 
off to remote repos to fetch various files? Shouldn't they come with the source 
distro anyway?

Regards,

Andrew M.



Re: deployAtEnd really works?

2015-05-14 Thread Karl Heinz Marbaise

Hi Dan,

On 5/14/15 8:12 AM, Dan Tran wrote:

Hi Bernd ,

I dont configure or execute any maven-deploy-plugin at my top level parent
pom.

The only thing that I have which may not be very conventional:

all of my modules are conditional activated by profile looking for existing
existing pom

 
   enable-compX
   
 
   components/compX/pom.xml
 
   
   
 components/compX
   
 


I am using Maven 3.2.3


What's the reason having a module activating via profile...

http://blog.soebes.de/blog/2013/11/09/why-is-it-bad-to-activate-slash-deactive-modules-by-profiles-in-maven/

Kind regards
Karl Heinz Marbaise

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: deployAtEnd really works?

2015-05-14 Thread domi
I think to remember that I had the same problem when a module was included via 
profile, deployAtEnd seems not to work in that case 
Domi



> Am 14.05.2015 um 09:01 schrieb Cintia Del Rio :
> 
> I was able to achieve similar results using this plugin:
> 
> https://github.com/sonatype/nexus-maven-plugins/tree/master/staging/maven-plugin
> 
> It's possible to disable the 'remote' staging and use only local staging -
> it's called 'Deferred deploy'. Effectively it's the same as deployAtEnd.
> 
> 
> The nexus staging plugin works with files to keep the state, so it's not
> affected by the customised lifecycles.
> 
>> On 14 May 2015 at 16:48, Dan Tran  wrote:
>> 
>> Darn, I am using rpm-maven-plugin, and it has its own build lifecycle.
>> 
>> what a bug.  It is  a very good feature
>> 
>> Thanks
>> 
>> -Dan
>> 
>> On Wed, May 13, 2015 at 11:19 PM, Cintia Del Rio 
>> wrote:
>> 
>>> Do you have a customised lifecycle plugin in your reactor?
>>> 
>>> https://jira.codehaus.org/browse/MDEPLOY-176
>>> 
>>> 
 On 14 May 2015 at 16:12, Dan Tran  wrote:
 
 Hi Bernd ,
 
 I dont configure or execute any maven-deploy-plugin at my top level
>>> parent
 pom.
 
 The only thing that I have which may not be very conventional:
 
 all of my modules are conditional activated by profile looking for
>>> existing
 existing pom
 

  enable-compX
  

  components/compX/pom.xml

  
  
components/compX
  

 
 
 I am using Maven 3.2.3
 
 -Dan
 
 
 On Wed, May 13, 2015 at 10:56 PM, Bernd Eckenfels <
>>> e...@zusammenkunft.net>
 wrote:
 
> Am Wed, 13 May 2015 22:47:15 -0700
> schrieb Dan Tran :
> 
>> I am using this feature the first time and it does not seem to work
>> 
>>  mvn clean deploy -DdeployAtEnd=true
>> 
>> Each module displays this string at deploy phase
>> 
>> [INFO] *--- maven-deploy-plugin:2.8.2:deploy (default-deploy) @
>> x*
>> 
>> [INFO] Deploying x:0.0.1-SNAPSHOT at end
>> 
>> 
>> Once the whole build is done, no deploy activity
>> 
>> 
>> Am I missing any thing?
> 
> Do you have a deploy plugin invocation in the aggregator pom?
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>>> 
>>> 
>>> 
>>> --
>>> ---
>>> Sent from TARDIS. Typos might be a timey whyney thingy.
>>> Enviado da TARDIS, podem existir erros devido à diferenças de
>> espaço-tempo.
>>> 
>>> Cintia Del Rio
> 
> 
> 
> -- 
> ---
> Sent from TARDIS. Typos might be a timey whyney thingy.
> Enviado da TARDIS, podem existir erros devido à diferenças de espaço-tempo.
> 
> Cintia Del Rio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: deployAtEnd really works?

2015-05-14 Thread Cintia Del Rio
I was able to achieve similar results using this plugin:

https://github.com/sonatype/nexus-maven-plugins/tree/master/staging/maven-plugin

It's possible to disable the 'remote' staging and use only local staging -
it's called 'Deferred deploy'. Effectively it's the same as deployAtEnd.


The nexus staging plugin works with files to keep the state, so it's not
affected by the customised lifecycles.

On 14 May 2015 at 16:48, Dan Tran  wrote:

> Darn, I am using rpm-maven-plugin, and it has its own build lifecycle.
>
> what a bug.  It is  a very good feature
>
> Thanks
>
> -Dan
>
> On Wed, May 13, 2015 at 11:19 PM, Cintia Del Rio 
> wrote:
>
> > Do you have a customised lifecycle plugin in your reactor?
> >
> > https://jira.codehaus.org/browse/MDEPLOY-176
> >
> >
> > On 14 May 2015 at 16:12, Dan Tran  wrote:
> >
> > > Hi Bernd ,
> > >
> > > I dont configure or execute any maven-deploy-plugin at my top level
> > parent
> > > pom.
> > >
> > > The only thing that I have which may not be very conventional:
> > >
> > > all of my modules are conditional activated by profile looking for
> > existing
> > > existing pom
> > >
> > > 
> > >   enable-compX
> > >   
> > > 
> > >   components/compX/pom.xml
> > > 
> > >   
> > >   
> > > components/compX
> > >   
> > > 
> > >
> > >
> > > I am using Maven 3.2.3
> > >
> > > -Dan
> > >
> > >
> > > On Wed, May 13, 2015 at 10:56 PM, Bernd Eckenfels <
> > e...@zusammenkunft.net>
> > > wrote:
> > >
> > > > Am Wed, 13 May 2015 22:47:15 -0700
> > > > schrieb Dan Tran :
> > > >
> > > > > I am using this feature the first time and it does not seem to work
> > > > >
> > > > >   mvn clean deploy -DdeployAtEnd=true
> > > > >
> > > > > Each module displays this string at deploy phase
> > > > >
> > > > >  [INFO] *--- maven-deploy-plugin:2.8.2:deploy (default-deploy) @
> > > > > x*
> > > > >
> > > > > [INFO] Deploying x:0.0.1-SNAPSHOT at end
> > > > >
> > > > >
> > > > > Once the whole build is done, no deploy activity
> > > > >
> > > > >
> > > > > Am I missing any thing?
> > > >
> > > > Do you have a deploy plugin invocation in the aggregator pom?
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > > For additional commands, e-mail: users-h...@maven.apache.org
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > ---
> > Sent from TARDIS. Typos might be a timey whyney thingy.
> > Enviado da TARDIS, podem existir erros devido à diferenças de
> espaço-tempo.
> >
> > Cintia Del Rio
> >
>



-- 
---
Sent from TARDIS. Typos might be a timey whyney thingy.
Enviado da TARDIS, podem existir erros devido à diferenças de espaço-tempo.

Cintia Del Rio