Re: Eclipse pde with maven

2012-03-28 Thread Jeff MAURY
Nexus OSS does support p2 since version 2.0

Jeff
Le 29 mars 2012 06:28, "Barrie Treloar"  a écrit :

> On Thu, Mar 29, 2012 at 1:27 PM, Not Zippy  wrote:
> > I just wanted to verify that there wasnt a better plugin to do the job
> for
> > an eclipse pde, thats why I asked here first.
>
> Not that I am aware of.
>
> We still use pde-maven-plugin which has long been abandoned.
> Its just a shell to the Eclipse Ant build framework anyway.
>
> I'm trying to migrate to tycho but the lack of p2 mirror support in
> Nexus is causing me pain being behind a firewall and annoying since it
> always wants to download the damn index file - which I assume hasn't
> changed since the last time I invoked it.
> Nexus OSS doesn't support p2 - only the commercial product.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Quick question on Super POM plugin management usage

2012-03-28 Thread Anders Hammar
Don't call this a "super pom"! It's a parent (pom). There is only ONE
Super-POM and it's part of Maven Core. Calling some other artifact a
super-pom will only confuse people.

/Anders

On Thu, Mar 29, 2012 at 02:47, Daivish Shah  wrote:
> Hi,
>
> I am trying to use the super POM in my all of the project and seems like
> PluginManagement doesn't work like this way.
>
> Super-Pom Project
>
> pom.xml
>
> 
> 
> 
> 
>
>
>  org.apache.maven.plugins
> maven-javadoc-plugin
> 2.8.1
> 
>      
> 
> 
>
>
>
> Using Super POM in my other project as followed.
>
> pom.xml
>
>  
>  com.super
>  super-pom
>  0.0.1-SNAPSHOT
> 
>
> 
> 
>                      
>
>                           org.apache.maven.plugins
>
>                           maven-javadoc-plugin
>
>                       
>                
>         
>
>
>
> When i try to use like this way compiler throws me WARNING/ERROR message
> and looks like i have to apply VERSION ID again when i use any of the
> plugin which is listed in my super POM Project. Which doesn't make sense to
> declare PLUGIN things in my SUPER POM Project.
>
>
> Any idea what's going on here ? Is that the way MAVEN designed or i am
> doing something wrong here ?
>
> Thanks,
> daivish.

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



Re: Eclipse pde with maven

2012-03-28 Thread Not Zippy
On Wed, Mar 28, 2012 at 9:27 PM, Barrie Treloar  wrote:
>
> On Thu, Mar 29, 2012 at 1:27 PM, Not Zippy  wrote:
> > I just wanted to verify that there wasnt a better plugin to do the job for
> > an eclipse pde, thats why I asked here first.
>
> Not that I am aware of.
>
> We still use pde-maven-plugin which has long been abandoned.
> Its just a shell to the Eclipse Ant build framework anyway.
>
> I'm trying to migrate to tycho but the lack of p2 mirror support in
> Nexus is causing me pain being behind a firewall and annoying since it
> always wants to download the damn index file - which I assume hasn't
> changed since the last time I invoked it.
> Nexus OSS doesn't support p2 - only the commercial product.
>

Im thinking a shell to ant would be easier - the first time i ran with
the techo it spent over an hour downloading packages, I kept thinking
I had not properly set the plugin up properly - finally I left it to
run and it finished. But gave me a zip with only the configuration
files and it did not compile the source code. But if I changed the
packaging to "jar" the source would compile.

Ill talk to the other list and see if I am looking at the right thing.

thx
Nz

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



Re: Eclipse pde with maven

2012-03-28 Thread Barrie Treloar
On Thu, Mar 29, 2012 at 1:27 PM, Not Zippy  wrote:
> I just wanted to verify that there wasnt a better plugin to do the job for
> an eclipse pde, thats why I asked here first.

Not that I am aware of.

We still use pde-maven-plugin which has long been abandoned.
Its just a shell to the Eclipse Ant build framework anyway.

I'm trying to migrate to tycho but the lack of p2 mirror support in
Nexus is causing me pain being behind a firewall and annoying since it
always wants to download the damn index file - which I assume hasn't
changed since the last time I invoked it.
Nexus OSS doesn't support p2 - only the commercial product.

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



Re: MyEclipse and Maven -- configuration over convention?

2012-03-28 Thread RobertsM
MyEclipse already has Maven support based on m2eclipse, so that plug-in
probably wouldn't install.

I'm not familiar with spring but I created a simple app with spring, in
Netbeans then imported it, as a maven app, to MyEclipse and it worked first
time - the spring context file definitely loaded or the output would have
been different.

Mike

--
View this message in context: 
http://maven.40175.n5.nabble.com/MyEclipse-and-Maven-configuration-over-convention-tp5599186p5602628.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Eclipse pde with maven

2012-03-28 Thread Not Zippy
I just wanted to verify that there wasnt a better plugin to do the job for
an eclipse pde, thats why I asked here first.

thx

On Wed, Mar 28, 2012 at 3:32 PM, Barrie Treloar  wrote:

> On Thu, Mar 29, 2012 at 8:36 AM, Not Zippy  wrote:
> > Hi
> >
> > I am porting over an existing ant project build from ant to maven. I have
> > the core assets compiling with maven without issues. I also was able to
> get
> > plugin built for netbeans with very little difficulty at all. But with
> > eclipse it is turning into another beast all together.
> >
> > Currently I am trying the org.eclipse.tycho plugin and I got it working
> so
> > that it packages but that's all it does (it does not appear to compile
> the
> > source or include any of the dependent projects). In the eclipse pom I
> > define the packaging as "eclipse-plugin", do I need to have the source
> > files in a separate project & pom ?
> >
> > Anyone have an example of using this plugin ? or should I use another ..
> >
> > thanks
> > Nz
>
> You could try the tycho user list?
> Details available https://dev.eclipse.org/mailman/listinfo/tycho-user
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven-clean-plugin to clean up dependencies in assembly project

2012-03-28 Thread zebahmad
It looks like the default directory clean was responsible for removing all
the jars. It works now, after adding this:

 
   
true
.
.
.
.


Thanks,
Zeba

--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-clean-plugin-to-clean-up-dependencies-in-assembly-project-tp5600724p5602455.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: maven-clean-plugin to clean up dependencies in assembly project

2012-03-28 Thread zebahmad
Yeah, doesn't work :(

Thanks,
Zeba

--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-clean-plugin-to-clean-up-dependencies-in-assembly-project-tp5600724p5602388.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Quick question on Super POM plugin management usage

2012-03-28 Thread Barrie Treloar
On Thu, Mar 29, 2012 at 11:17 AM, Daivish Shah  wrote:
> Hi,
>
> I am trying to use the super POM in my all of the project and seems like
> PluginManagement doesn't work like this way.
>
> Super-Pom Project
>
> pom.xml
>
> 
> 
> 
> 
>
>
>  org.apache.maven.plugins
> maven-javadoc-plugin
> 2.8.1
> 
>      
> 
> 
>
>
>
> Using Super POM in my other project as followed.
>
> pom.xml
>
>  
>  com.super
>  super-pom
>  0.0.1-SNAPSHOT
> 
>
> 
> 
>                      
>
>                           org.apache.maven.plugins
>
>                           maven-javadoc-plugin
>
>                       
>                
>         
>
>
>
> When i try to use like this way compiler throws me WARNING/ERROR message
> and looks like i have to apply VERSION ID again when i use any of the
> plugin which is listed in my super POM Project. Which doesn't make sense to
> declare PLUGIN things in my SUPER POM Project.
>
>
> Any idea what's going on here ? Is that the way MAVEN designed or i am
> doing something wrong here ?
>
> Thanks,
> daivish.

javadoc is a reporting plugin.
You will probably need to *duplicate* the information in the
 section.
See http://jira.codehaus.org/browse/MSITE-443 for more details.

I think you can leave out the version from the pluginManagement section.
It may depend on whether you ever want to run javadoc directly, which
is normally not what you want, you want to run all the reporting stuff
via "mvn site"

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



Quick question on Super POM plugin management usage

2012-03-28 Thread Daivish Shah
Hi,

I am trying to use the super POM in my all of the project and seems like
PluginManagement doesn't work like this way.

Super-Pom Project

pom.xml







 org.apache.maven.plugins
maven-javadoc-plugin
2.8.1

  





Using Super POM in my other project as followed.

pom.xml

  
  com.super
  super-pom
  0.0.1-SNAPSHOT




  

   org.apache.maven.plugins

   maven-javadoc-plugin

   

 



When i try to use like this way compiler throws me WARNING/ERROR message
and looks like i have to apply VERSION ID again when i use any of the
plugin which is listed in my super POM Project. Which doesn't make sense to
declare PLUGIN things in my SUPER POM Project.


Any idea what's going on here ? Is that the way MAVEN designed or i am
doing something wrong here ?

Thanks,
daivish.


Can we use dependency unpacking in an Archetype?

2012-03-28 Thread Stefan

Hi guys,

Here's the story - we've recently generated a few archetypes for GATE 
 plugins and some specific machine learning 
components. We need those archetypes, because it's often required to 
create similarly structured components and we've kind of developed a 
convention about where different types of resources should be located in 
such projects.


It was really nice and easy using the create-from-project goal of the 
archetype plugin. So far so good.


However, we would like to generate the same couple of source files in a 
few different archetypes - like the App.java and AppTest.java in 
maven-quickstart. Finally the question - is there any way we could pass 
an artifact encompassing those sources (or resources in general), so we 
could directly reuse it in the archetypes?


What we are trying to avoid is keeping the same (re)source in different 
archetype projects, because we'll probably have maintenance issues in 
the future.


Please, excuse my ignorance in case this is documented, I just couldn't 
find anything on the topic. Any advice is welcome!


Many thanks,
Stefan

--
Stefan Enev
Software Engineer
Ontotext AD



Re: Eclipse pde with maven

2012-03-28 Thread Barrie Treloar
On Thu, Mar 29, 2012 at 8:36 AM, Not Zippy  wrote:
> Hi
>
> I am porting over an existing ant project build from ant to maven. I have
> the core assets compiling with maven without issues. I also was able to get
> plugin built for netbeans with very little difficulty at all. But with
> eclipse it is turning into another beast all together.
>
> Currently I am trying the org.eclipse.tycho plugin and I got it working so
> that it packages but that's all it does (it does not appear to compile the
> source or include any of the dependent projects). In the eclipse pom I
> define the packaging as "eclipse-plugin", do I need to have the source
> files in a separate project & pom ?
>
> Anyone have an example of using this plugin ? or should I use another ..
>
> thanks
> Nz

You could try the tycho user list?
Details available https://dev.eclipse.org/mailman/listinfo/tycho-user

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



Re: Filename too long while compiling a project

2012-03-28 Thread Jeff MAURY
On which platform are you running ? There is a limit of Windows file
systems (http://en.wikipedia.org/wiki/NTFS#Limitations) that you may have
reached which is not of Maven concern ?

Jeff

On Tue, Mar 27, 2012 at 1:59 PM, John Patrick wrote:

> Is this a Unix* or Windows filesystem?
>
> What plugin is doing the code generation?
>
> Have you executed the plugin with any debugging enabled, i.e. mvn -X ...
>
> If you move the project to say /tmp/ or c:/tmp/ and build their does
> the same error occur? I'm thinking is it filename or directory name,
> or directory depth.
>
> John
>
> On 13 March 2012 08:08, Mikhail Tsaplin  wrote:
> > Hi all.
> > I'm trying to compile source code with maven. It falls with an error:
> filename is too long ... However file system allows me to create the
> problem class file, and also this project was successful compiled with
> eclipse. Is there any configuration tweaks to avoid this problem. The code
> that I'm trying to compile is autogenerated and I can't modify it to reduce
> class'es names length.
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Jeff MAURY

"Legacy code" often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: How can I use a Maven plugin to change Eclipse WebSphere Deployment Classloader mode to PARENT_LAST

2012-03-28 Thread Wayne Fay
On Wed, Mar 28, 2012 at 4:35 PM, Chris Harris  wrote:
> I know it was in the OP.  I edited the OP and removed that info upon
> discovery.

You do realize that the Maven Users list is archived in places *other*
than Nabble, right? And those places do not allow people to randomly
edit old emails to remove anything.

Don't send anything to this list that you don't want permanently
archived and indexed by search engines. ;-)

Wayne

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



Re: How can I use a Maven plugin to change Eclipse WebSphere Deployment Classloader mode to PARENT_LAST

2012-03-28 Thread Chris Harris
I know it was in the OP.  I edited the OP and removed that info upon
discovery.

Good to know about m2e and eclipse:rad.  Someone else also PM'ed me (which
is fine but another reason I hope to have my info/disclaimer removed from
the reply) and provided me with another alternative (thanks to Datta):

" http://maven.40175.n5.nabble.com/file/n5601870/RAD_m2e.pdf RAD_m2e.pdf You
have to do everything what is mentioned in the attached document which I
believe you have. Then as usual generate the ibmconfig files by  right click
-> JAVA EE -> generate deployment disctriptor.

You then have to copy the generated files into
src/main/application/META-INF. 

You will have to add the following line in the
“org.eclipse.wst.common.component”  file and everything works like a charm.

Changing the “org.eclipse.wst.common.component” file will let maven + RAD
know where to go and find the CLassLoader information. Then you can go and
change the  class loader to what you want . whether it is parent_last or
parent_first. 

By not changing it m2eclipse does not know and then evertime you do a clean
it will over ride it."

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-can-I-use-a-Maven-plugin-to-change-Eclipse-WebSphere-Deployment-Classloader-mode-to-PARENT-LAST-tp4727822p5601870.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: How can I use a Maven plugin to change Eclipse WebSphere Deployment Classloader mode to PARENT_LAST

2012-03-28 Thread Barrie Treloar
On Thu, Mar 29, 2012 at 5:31 AM, Chris Harris  wrote:
> Nabble didn't ever email me that I had replies to my post, so apologies to
> you two for never responding until now.  paulv, Could you please remove my
> Email info from your reply?

Chris, your email details are clearly listed in the header details of your post.
If you were expected anonymous posting from nabble you might want to
check that.

> Eclipse/RAD now has better Maven support via m2e, which is what I was using
> within RAD 8.0.x.  This WTP/Maven improvement is what prompted me to revisit
> my post's problem, which seems to be resolved now.
>
> I happened to visit the page for the eclipse:rad plugin, and, lo and behold,
> the most recent version is v2.9, which includes:
[del]

m2e and eclipse:rad are not the compatible.

Choose one and stick with it.
m2e should provide a warning if you have configured your project via
the maven-eclipse-plugin.

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



RE: How can I use a Maven plugin to change Eclipse WebSphere Deployment Classloader mode to PARENT_LAST

2012-03-28 Thread Chris Harris
Nabble didn't ever email me that I had replies to my post, so apologies to
you two for never responding until now.  paulv, Could you please remove my
Email info from your reply?

Anyway, I happened to revisit this issue recently since I first posted.

Eclipse/RAD now has better Maven support via m2e, which is what I was using
within RAD 8.0.x.  This WTP/Maven improvement is what prompted me to revisit
my post's problem, which seems to be resolved now.

I happened to visit the page for the eclipse:rad plugin, and, lo and behold,
the most recent version is v2.9, which includes:

classpathContainersLast:
Put classpath container entries last in eclipse classpath configuration.
Note that this behaviour, although useful in situations were you want to
override resources found in classpath containers, will made JRE classes
loaded after 3rd party jars, so enabling it is not suggested.

Type: boolean
Since: 2.9
Required: No
Expression: ${eclipse.classpathContainersLast}
Default: false

Today is a good day :-)

 - Chris

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-can-I-use-a-Maven-plugin-to-change-Eclipse-WebSphere-Deployment-Classloader-mode-to-PARENT-LAST-tp4727822p5601450.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: maven-clean-plugin to clean up dependencies in assembly project

2012-03-28 Thread Wayne Fay
> Actually, I'm able to delete the jars now. But the exclude is not working
> still :( My plugin configuration in pom.xml is:

Did you try removing the  and just using the ?

Wayne

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



Re: maven-clean-plugin to clean up dependencies in assembly project

2012-03-28 Thread zebahmad
Actually, I'm able to delete the jars now. But the exclude is not working
still :( My plugin configuration in pom.xml is:


maven-clean-plugin
2.4.1


auto-clean
install

clean




target

*.jar



com.mycompany.something:ModuleA.jar

com.mycompany.something:AssembledModuleB.jar

com.mycompany.something:ModuleC.jar


false







Thanks,
Zeba

--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-clean-plugin-to-clean-up-dependencies-in-assembly-project-tp5600724p5600969.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: need to rename a file at package phase

2012-03-28 Thread Wayne Fay
> Within the maven-war-plugin config we have other filtering (includes and
> excludes) happening, but can the built persistence.xml file be renamed to
> persistence-spring.xml in our build where it is packaged with the .war file?

Can you not just copy persistence.xml to persistence-spring.xml and
leave both in?

Otherwise the Assembly plugin might be able to help (see
files/file/{source, destName}).

Wayne

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



maven-clean-plugin to clean up dependencies in assembly project

2012-03-28 Thread zebahmad
I have a maven project with a parent pom that builds the child modules. One
of the child modules is an assembly project that simply assembles other
child modules

ParentA
   |---ModuleA
   |---AssembledModuleB
|---ModuleB1
|---ModuleB2
   |---ModuleC

Here, ParentA only contains a pom that simply builds ModuleA,
AssembledModuleB & ModuleC. ModuleB1 & ModuleB2 are separate projects on
which AssembledModuleB depends. 

Firstly, after the build, I need to clean up the jars ModuleB1.jar and
ModuleB2.jar and retain only the composite jar AssembledModuleB.jar. I tried
using the maven-clean-plugin, but no matter what combination I try, these
don't get deleted :( 


maven-clean-plugin
2.4.1



target
 
*.jar 
 

ModuleA.jar
AssembledModuleB.jar
ModuleC.jar

false





I have tried various options such as

*:jar 

<..groupid..>:jar 

com.mycompany.somthing:ModuleA:jar

But none of these seem to work :( The aim is to delete the built jars from
the target folders of ModuleB1 and ModuleB2

Secondly, i need to ensure that the plugin is called *after* the build is
completed.

Thanks in advance,

Regards
Zeba

--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-clean-plugin-to-clean-up-dependencies-in-assembly-project-tp5600724p5600724.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: substitute a repository with another one in pom.xml?

2012-03-28 Thread ryenus blatt
Thank you Aldrin, this behaves exactly as I expected.

In my ~/.m2/settings.xml, I've added the mirror below

> **
> *  *
> *maven.jenkins-ci.org*
> *m.g.o-public*
> *http://maven.jenkins-ci.org/content/groups/artifacts*
> *  *
> **
>
> Thanks

On Wed, Mar 28, 2012 at 01:25, Aldrin Leal  wrote:

> You can create a mirror. If you supply the right id, it will simply work.
>
> http://maven.apache.org/guides/mini/guide-mirror-settings.html
>
> --
> -- *Aldrin Leal,  / http://meadiciona.com/aldrinleal*
>
> On Tue, Mar 27, 2012 at 11:17 AM, ryenus blatt  wrote:
>
>> hello,
>>
>> in pom.xml, is it possible to setup a substitution rule to replace a
>> repository with another one? e.g.:
>>
>>   xxx  http://yyy.org/  
>> http://zzz.org/ 
>>
>> the reason is, in case the repository zzz.org is down, with the
>> substitution rule set, maven can immediately turn to yyy.org, instead of
>> try zzz.org and wait and fail then turn to yyy.org, the latter, which is
>> the current situation, would waste a lot of time if their are too many
>> (e.g. 100+) artifacts supposed to be fetched from zzz.org.
>>
>> my case? maven.glassfish.org is down and it took me more than 30 mins to
>> run mvn eclipse:eclipse, the project is
>> https://github.com/ikeike443/HudsonPluginForPlay
>>
>


RE: private key definition through profile activated property

2012-03-28 Thread Lyons, Roy
Just a gentle 2 week nudge.

Some additional info that I have, realizing that this didn't really outline 
some infrastructure details...

The idea here is that we can give a package to our support group to allow 
distribution to all developers.  Since the key location will be different for 
each user, and most users find maven to be a magical being that cavorts with 
unicorns on rainbows, it would be awesome to create a definition for the 
location of the keyfile that can be determined through use of known (and always 
set) variables -- as well as a path determination based on what OS the user is 
on.

>From my experimentation so far, it appears that the key location is evaluated 
>before any profiles are -- and that presents a problem for me.

I am really hoping to be proven wrong, and perhaps have something silly pointed 
out, like "hey, if you want to change the variable just use 
${settings.somevar.someothervar.privateKey} -- it won't evaluate variables in 
this field so forget putting one in there."

I have searched and searched, and have not found any documentation which tells 
me something like that though -- and that makes me a sad panda.  Turn my frown 
upside-down!

Thanks,

Roy

From: Lyons, Roy
Sent: Wednesday, March 14, 2012 1:16 PM
To: 'users@maven.apache.org'
Subject: private key definition through profile activated property

I am looking to set the location of the key file to be used based on the OS the 
user is executing within a distributable settings.xml file.  This would be for 
a company-wide change, not just a per-project basis.  Unfortunately, All I get 
is:

[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be 
retrieved from repository: InternalReleasePlugin due to an error: 
Authentication failed: Private key '${scp.key}' not found


windows


windows




//fileserverhostname/home/${user.name}/.ssh/${user.name}



linux


unix




/home/${user.name}/.ssh/${user.name}




This happens on both unix and windows executions, and "mvn 
help:active-profiles" reports that the correct profile is being activated.

Is there a different way in which I need to address this property to allow it 
to be expanded to the value I provided?


RE: There is a way to override distributionManagement in Maven

2012-03-28 Thread Lyons, Roy
:) that looks exciting actually.  That would be quite usable.  Hopefully this 
will fix the original poster's issue as well.

Somehow I didn't run across this in my documentation travels, and my 
documentation passport is generally well stamped...  

-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Sent: Wednesday, March 28, 2012 8:42 AM
To: Maven Users List
Subject: Re: There is a way to override distributionManagement in Maven

and what is exactly wrong with

mvn -DaltDeploymentRepository=id::default::url deploy

?

no change to pom required

On 28 March 2012 14:35, Lyons, Roy  wrote:
> Actually, this makes some sense to me.  If you really want to test out your 
> build scripts, but do not want to make actual changes to the corporate repo, 
> you would want to instead publish to a temporary area.  You don't actually 
> want to disable the "deploy" but you don't want it overwriting your current 
> binaries since Java was so awesome as to always create binaries with a new 
> md5sum (AWESOME feature let me tell you...).
>
> I would be interested in the outcome of this as well, since at the moment our 
> only way of setting up a test environment is to create entirely new code 
> repos and update poms.  Of course code and poms get out of date -- so 
> unexpected "goodness" has the ability to creep up on us during production 
> builds.
>
> -Original Message-
> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> Sent: Wednesday, March 28, 2012 2:45 AM
> To: Maven Users List
> Subject: Re: There is a way to override distributionManagement in 
> Maven
>
> Take a step back and try and explain exactly what the problem is that you 
> think you are trying to solve.
>
> I have a sneaky feeling you are trying to get functionality similar to 
> staging/promotion available from the good repository managers (iirc 
> nexus free does not, but nexus pro and artifactory certainly have the 
> capability, I would need to check archivia, but I suspect it might)
>
> On Tuesday, 27 March 2012,   wrote:
>> Hello Maven users,
>>
>> I have a project master pom.xml with a distribution management 
>> section
> defined like this:
>>
>>  
>>    
>>      one
>>      Blah Managed Releases Repository
>>      http://:8080/archiva/repository/one/
>>      default
>>    
>>    
>>      snapshots
>>      Blah Managed Snapshots Repository
>>      http://:8080/archiva/repository/snapshots/
>>      true
>>      default
>>    
>>  
>>
>> I want to be able to override this values on a test and production 
>> setup,
> having the production setting enabled by default; After reading the Maven 
> site it seems than the only way to do this is by using profiles but after 
> some reading on this list it seems than the are not a good choice (many 
> caveats).
>>
>> There is a cleaner way to achieve this?
>> Can someone point me to some examples? I'm not sure what to put where
>>
>> Thanks in advance,
>>
>> --Jose
>>
>> Barclays is one of the world's leading banks, and we believe that by
> continuing to integrate the organisation we can better deliver the full power 
> of Barclays to customers, clients and the communities in which we work. As a 
> visible sign of that integration we are moving to a single Barclays brand for 
> the majority of our divisions, including those formerly known as Barclays 
> Capital, Barclays Wealth and Barclays Corporate.
>>
>> ___
>>
>> This e-mail may contain information that is confidential, privileged 
>> or
> otherwise protected from
>> disclosure. If you are not an intended recipient of this e-mail, do 
>> not
> duplicate or redistribute
>> it by any means. Please delete it and any attachments and notify the
> sender that you have received
>> it in error. Unless specifically indicated, this e-mail is not an 
>> offer
> to buy or sell or a
>> solicitation to buy or sell any securities, investment products or 
>> other
> financial product or
>> service, an official confirmation of any transaction, or an official
> statement of Barclays. Any
>> views or opinions presented are solely those of the author and do not
> necessarily represent those
>> of Barclays. This e-mail is subject to terms available at the 
>> following
> link: www.barcap.com/emaildisclaimer.
>> By messaging with Barclays you consent to the foregoing.  Barclays 
>> offers
> premier investment banking
>> products and services to its clients through Barclays Bank PLC, a 
>> company
> registered in England
>> (number 1026167) with its registered office at 1 Churchill Place, 
>> London,
> E14 5HP.  This email may
>> relate to or be sent from other members of the Barclays Group.
>>
>> ___
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

---

Re: There is a way to override distributionManagement in Maven

2012-03-28 Thread Stephen Connolly
and what is exactly wrong with

mvn -DaltDeploymentRepository=id::default::url deploy

?

no change to pom required

On 28 March 2012 14:35, Lyons, Roy  wrote:
> Actually, this makes some sense to me.  If you really want to test out your 
> build scripts, but do not want to make actual changes to the corporate repo, 
> you would want to instead publish to a temporary area.  You don't actually 
> want to disable the "deploy" but you don't want it overwriting your current 
> binaries since Java was so awesome as to always create binaries with a new 
> md5sum (AWESOME feature let me tell you...).
>
> I would be interested in the outcome of this as well, since at the moment our 
> only way of setting up a test environment is to create entirely new code 
> repos and update poms.  Of course code and poms get out of date -- so 
> unexpected "goodness" has the ability to creep up on us during production 
> builds.
>
> -Original Message-
> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> Sent: Wednesday, March 28, 2012 2:45 AM
> To: Maven Users List
> Subject: Re: There is a way to override distributionManagement in Maven
>
> Take a step back and try and explain exactly what the problem is that you 
> think you are trying to solve.
>
> I have a sneaky feeling you are trying to get functionality similar to 
> staging/promotion available from the good repository managers (iirc nexus 
> free does not, but nexus pro and artifactory certainly have the capability, I 
> would need to check archivia, but I suspect it might)
>
> On Tuesday, 27 March 2012,   wrote:
>> Hello Maven users,
>>
>> I have a project master pom.xml with a distribution management section
> defined like this:
>>
>>  
>>    
>>      one
>>      Blah Managed Releases Repository
>>      http://:8080/archiva/repository/one/
>>      default
>>    
>>    
>>      snapshots
>>      Blah Managed Snapshots Repository
>>      http://:8080/archiva/repository/snapshots/
>>      true
>>      default
>>    
>>  
>>
>> I want to be able to override this values on a test and production
>> setup,
> having the production setting enabled by default; After reading the Maven 
> site it seems than the only way to do this is by using profiles but after 
> some reading on this list it seems than the are not a good choice (many 
> caveats).
>>
>> There is a cleaner way to achieve this?
>> Can someone point me to some examples? I'm not sure what to put where
>>
>> Thanks in advance,
>>
>> --Jose
>>
>> Barclays is one of the world's leading banks, and we believe that by
> continuing to integrate the organisation we can better deliver the full power 
> of Barclays to customers, clients and the communities in which we work. As a 
> visible sign of that integration we are moving to a single Barclays brand for 
> the majority of our divisions, including those formerly known as Barclays 
> Capital, Barclays Wealth and Barclays Corporate.
>>
>> ___
>>
>> This e-mail may contain information that is confidential, privileged
>> or
> otherwise protected from
>> disclosure. If you are not an intended recipient of this e-mail, do
>> not
> duplicate or redistribute
>> it by any means. Please delete it and any attachments and notify the
> sender that you have received
>> it in error. Unless specifically indicated, this e-mail is not an
>> offer
> to buy or sell or a
>> solicitation to buy or sell any securities, investment products or
>> other
> financial product or
>> service, an official confirmation of any transaction, or an official
> statement of Barclays. Any
>> views or opinions presented are solely those of the author and do not
> necessarily represent those
>> of Barclays. This e-mail is subject to terms available at the
>> following
> link: www.barcap.com/emaildisclaimer.
>> By messaging with Barclays you consent to the foregoing.  Barclays
>> offers
> premier investment banking
>> products and services to its clients through Barclays Bank PLC, a
>> company
> registered in England
>> (number 1026167) with its registered office at 1 Churchill Place,
>> London,
> E14 5HP.  This email may
>> relate to or be sent from other members of the Barclays Group.
>>
>> ___
>>
>
> -
> 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: There is a way to override distributionManagement in Maven

2012-03-28 Thread Lyons, Roy
Actually, this makes some sense to me.  If you really want to test out your 
build scripts, but do not want to make actual changes to the corporate repo, 
you would want to instead publish to a temporary area.  You don't actually want 
to disable the "deploy" but you don't want it overwriting your current binaries 
since Java was so awesome as to always create binaries with a new md5sum 
(AWESOME feature let me tell you...).  

I would be interested in the outcome of this as well, since at the moment our 
only way of setting up a test environment is to create entirely new code repos 
and update poms.  Of course code and poms get out of date -- so unexpected 
"goodness" has the ability to creep up on us during production builds.

-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Sent: Wednesday, March 28, 2012 2:45 AM
To: Maven Users List
Subject: Re: There is a way to override distributionManagement in Maven

Take a step back and try and explain exactly what the problem is that you think 
you are trying to solve.

I have a sneaky feeling you are trying to get functionality similar to 
staging/promotion available from the good repository managers (iirc nexus free 
does not, but nexus pro and artifactory certainly have the capability, I would 
need to check archivia, but I suspect it might)

On Tuesday, 27 March 2012,   wrote:
> Hello Maven users,
>
> I have a project master pom.xml with a distribution management section
defined like this:
>
>  
>
>  one
>  Blah Managed Releases Repository
>  http://:8080/archiva/repository/one/
>  default
>
>
>  snapshots
>  Blah Managed Snapshots Repository
>  http://:8080/archiva/repository/snapshots/
>  true
>  default
>
>  
>
> I want to be able to override this values on a test and production 
> setup,
having the production setting enabled by default; After reading the Maven site 
it seems than the only way to do this is by using profiles but after some 
reading on this list it seems than the are not a good choice (many caveats).
>
> There is a cleaner way to achieve this?
> Can someone point me to some examples? I'm not sure what to put where
>
> Thanks in advance,
>
> --Jose
>
> Barclays is one of the world's leading banks, and we believe that by
continuing to integrate the organisation we can better deliver the full power 
of Barclays to customers, clients and the communities in which we work. As a 
visible sign of that integration we are moving to a single Barclays brand for 
the majority of our divisions, including those formerly known as Barclays 
Capital, Barclays Wealth and Barclays Corporate.
>
> ___
>
> This e-mail may contain information that is confidential, privileged 
> or
otherwise protected from
> disclosure. If you are not an intended recipient of this e-mail, do 
> not
duplicate or redistribute
> it by any means. Please delete it and any attachments and notify the
sender that you have received
> it in error. Unless specifically indicated, this e-mail is not an 
> offer
to buy or sell or a
> solicitation to buy or sell any securities, investment products or 
> other
financial product or
> service, an official confirmation of any transaction, or an official
statement of Barclays. Any
> views or opinions presented are solely those of the author and do not
necessarily represent those
> of Barclays. This e-mail is subject to terms available at the 
> following
link: www.barcap.com/emaildisclaimer.
> By messaging with Barclays you consent to the foregoing.  Barclays 
> offers
premier investment banking
> products and services to its clients through Barclays Bank PLC, a 
> company
registered in England
> (number 1026167) with its registered office at 1 Churchill Place, 
> London,
E14 5HP.  This email may
> relate to or be sent from other members of the Barclays Group.
>
> ___
>

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



Re: dependency plugin versus the reactor

2012-03-28 Thread Stephen Connolly
Iirc the latest version does, but older versions didn't (except with m3
where the older versions might also pull from reactor)

On Wednesday, 28 March 2012, Benson Margulies  wrote:
> Does dependency:copy (note, not copy-dependencies) interact with the
> reactor? In a multi-module project, can a project consume the output
> of one of its predecessors this way?
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


RE: substitute a repository with another one in pom.xml?

2012-03-28 Thread jose.nunez-zuleta
Hello Hammar,

I do have a repository manager but I needed this to test a new deployment 
artefact framework I'm working on; So far using a global property did it for me 
(I got access to my emails just this morning and I see you suggested the same), 
and is simple enough to maintain.

Thanks for your help!

--Jose

-Original Message-
From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of 
Anders Hammar
Sent: Wednesday, March 28, 2012 7:04 AM
To: Maven Users List
Subject: Re: substitute a repository with another one in pom.xml?

I suggest installing a repository manager. Nexus for example has this
mirror feature which is would then use if the original repo is down. A
good Maven-based development infrastructure utilizes a repo manager
instead of working directly towards remote repositories.

/Anders
On Wed, Mar 28, 2012 at 01:25, Aldrin Leal  wrote:
> You can create a mirror. If you supply the right id, it will simply work.
>
> http://maven.apache.org/guides/mini/guide-mirror-settings.html
>
> --
> -- Aldrin Leal,  / http://meadiciona.com/aldrinleal
>
>
> On Tue, Mar 27, 2012 at 11:17 AM, ryenus blatt  wrote:
>
>> hello,
>>
>> in pom.xml, is it possible to setup a substitution rule to replace a
>> repository with another one?
>> e.g.:
>>
>> 
>>  xxx
>>  http://yyy.org/
>>  http://zzz.org/
>> 
>>
>> the reason is, in case the repository zzz.org is down, with the
>> substitution rule set, maven can immediately turn to yyy.org, instead of
>> try zzz.org and wait and fail then turn to yyy.org, the latter, which is
>> the current situation, would waste a lot of time if their are too many
>> (e.g. 100+) artifacts supposed to be fetched from zzz.org.
>>
>> my case? maven.glassfish.org is down and it took me more than 30 mins to
>> run mvn eclipse:eclipse, the project is
>> https://github.com/ikeike443/HudsonPluginForPlay
>>

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

Barclays is one of the world's leading banks, and we believe that by continuing 
to integrate the organisation we can better deliver the full power of Barclays 
to customers, clients and the communities in which we work. As a visible sign 
of that integration we are moving to a single Barclays brand for the majority 
of our divisions, including those formerly known as Barclays Capital, Barclays 
Wealth and Barclays Corporate.

___

This e-mail may contain information that is confidential, privileged or 
otherwise protected from 
disclosure. If you are not an intended recipient of this e-mail, do not 
duplicate or redistribute 
it by any means. Please delete it and any attachments and notify the sender 
that you have received 
it in error. Unless specifically indicated, this e-mail is not an offer to buy 
or sell or a 
solicitation to buy or sell any securities, investment products or other 
financial product or 
service, an official confirmation of any transaction, or an official statement 
of Barclays. Any 
views or opinions presented are solely those of the author and do not 
necessarily represent those 
of Barclays. This e-mail is subject to terms available at the following link: 
www.barcap.com/emaildisclaimer. 
By messaging with Barclays you consent to the foregoing.  Barclays offers 
premier investment banking 
products and services to its clients through Barclays Bank PLC, a company 
registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP.  This email may 
relate to or be sent from other members of the Barclays Group.

___

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



Re: substitute a repository with another one in pom.xml?

2012-03-28 Thread Anders Hammar
I suggest installing a repository manager. Nexus for example has this
mirror feature which is would then use if the original repo is down. A
good Maven-based development infrastructure utilizes a repo manager
instead of working directly towards remote repositories.

/Anders
On Wed, Mar 28, 2012 at 01:25, Aldrin Leal  wrote:
> You can create a mirror. If you supply the right id, it will simply work.
>
> http://maven.apache.org/guides/mini/guide-mirror-settings.html
>
> --
> -- Aldrin Leal,  / http://meadiciona.com/aldrinleal
>
>
> On Tue, Mar 27, 2012 at 11:17 AM, ryenus blatt  wrote:
>
>> hello,
>>
>> in pom.xml, is it possible to setup a substitution rule to replace a
>> repository with another one?
>> e.g.:
>>
>> 
>>  xxx
>>  http://yyy.org/
>>  http://zzz.org/
>> 
>>
>> the reason is, in case the repository zzz.org is down, with the
>> substitution rule set, maven can immediately turn to yyy.org, instead of
>> try zzz.org and wait and fail then turn to yyy.org, the latter, which is
>> the current situation, would waste a lot of time if their are too many
>> (e.g. 100+) artifacts supposed to be fetched from zzz.org.
>>
>> my case? maven.glassfish.org is down and it took me more than 30 mins to
>> run mvn eclipse:eclipse, the project is
>> https://github.com/ikeike443/HudsonPluginForPlay
>>

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



Re: There is a way to override distributionManagement in Maven

2012-03-28 Thread Anders Hammar
One possibility is to use properties in the distributionMgmt section
and then override the property values from command line. Have a look
at how this is done in the Apache parent pom (for snapshotRepository
distribution):
http://repo.maven.apache.org/maven2/org/apache/apache/10/apache-10.pom

/Anders

On Wed, Mar 28, 2012 at 09:45, Stephen Connolly
 wrote:
> Take a step back and try and explain exactly what the problem is that you
> think you are trying to solve.
>
> I have a sneaky feeling you are trying to get functionality similar to
> staging/promotion available from the good repository managers (iirc nexus
> free does not, but nexus pro and artifactory certainly have the capability,
> I would need to check archivia, but I suspect it might)
>
> On Tuesday, 27 March 2012,   wrote:
>> Hello Maven users,
>>
>> I have a project master pom.xml with a distribution management section
> defined like this:
>>
>>  
>>    
>>      one
>>      Blah Managed Releases Repository
>>      http://:8080/archiva/repository/one/
>>      default
>>    
>>    
>>      snapshots
>>      Blah Managed Snapshots Repository
>>      http://:8080/archiva/repository/snapshots/
>>      true
>>      default
>>    
>>  
>>
>> I want to be able to override this values on a test and production setup,
> having the production setting enabled by default; After reading the Maven
> site it seems than the only way to do this is by using profiles but after
> some reading on this list it seems than the are not a good choice (many
> caveats).
>>
>> There is a cleaner way to achieve this?
>> Can someone point me to some examples? I'm not sure what to put where
>>
>> Thanks in advance,
>>
>> --Jose
>>
>> Barclays is one of the world's leading banks, and we believe that by
> continuing to integrate the organisation we can better deliver the full
> power of Barclays to customers, clients and the communities in which we
> work. As a visible sign of that integration we are moving to a single
> Barclays brand for the majority of our divisions, including those formerly
> known as Barclays Capital, Barclays Wealth and Barclays Corporate.
>>
>> ___
>>
>> This e-mail may contain information that is confidential, privileged or
> otherwise protected from
>> disclosure. If you are not an intended recipient of this e-mail, do not
> duplicate or redistribute
>> it by any means. Please delete it and any attachments and notify the
> sender that you have received
>> it in error. Unless specifically indicated, this e-mail is not an offer
> to buy or sell or a
>> solicitation to buy or sell any securities, investment products or other
> financial product or
>> service, an official confirmation of any transaction, or an official
> statement of Barclays. Any
>> views or opinions presented are solely those of the author and do not
> necessarily represent those
>> of Barclays. This e-mail is subject to terms available at the following
> link: www.barcap.com/emaildisclaimer.
>> By messaging with Barclays you consent to the foregoing.  Barclays offers
> premier investment banking
>> products and services to its clients through Barclays Bank PLC, a company
> registered in England
>> (number 1026167) with its registered office at 1 Churchill Place, London,
> E14 5HP.  This email may
>> relate to or be sent from other members of the Barclays Group.
>>
>> ___
>>

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



Re: There is a way to override distributionManagement in Maven

2012-03-28 Thread Stephen Connolly
Take a step back and try and explain exactly what the problem is that you
think you are trying to solve.

I have a sneaky feeling you are trying to get functionality similar to
staging/promotion available from the good repository managers (iirc nexus
free does not, but nexus pro and artifactory certainly have the capability,
I would need to check archivia, but I suspect it might)

On Tuesday, 27 March 2012,   wrote:
> Hello Maven users,
>
> I have a project master pom.xml with a distribution management section
defined like this:
>
>  
>
>  one
>  Blah Managed Releases Repository
>  http://:8080/archiva/repository/one/
>  default
>
>
>  snapshots
>  Blah Managed Snapshots Repository
>  http://:8080/archiva/repository/snapshots/
>  true
>  default
>
>  
>
> I want to be able to override this values on a test and production setup,
having the production setting enabled by default; After reading the Maven
site it seems than the only way to do this is by using profiles but after
some reading on this list it seems than the are not a good choice (many
caveats).
>
> There is a cleaner way to achieve this?
> Can someone point me to some examples? I'm not sure what to put where
>
> Thanks in advance,
>
> --Jose
>
> Barclays is one of the world's leading banks, and we believe that by
continuing to integrate the organisation we can better deliver the full
power of Barclays to customers, clients and the communities in which we
work. As a visible sign of that integration we are moving to a single
Barclays brand for the majority of our divisions, including those formerly
known as Barclays Capital, Barclays Wealth and Barclays Corporate.
>
> ___
>
> This e-mail may contain information that is confidential, privileged or
otherwise protected from
> disclosure. If you are not an intended recipient of this e-mail, do not
duplicate or redistribute
> it by any means. Please delete it and any attachments and notify the
sender that you have received
> it in error. Unless specifically indicated, this e-mail is not an offer
to buy or sell or a
> solicitation to buy or sell any securities, investment products or other
financial product or
> service, an official confirmation of any transaction, or an official
statement of Barclays. Any
> views or opinions presented are solely those of the author and do not
necessarily represent those
> of Barclays. This e-mail is subject to terms available at the following
link: www.barcap.com/emaildisclaimer.
> By messaging with Barclays you consent to the foregoing.  Barclays offers
premier investment banking
> products and services to its clients through Barclays Bank PLC, a company
registered in England
> (number 1026167) with its registered office at 1 Churchill Place, London,
E14 5HP.  This email may
> relate to or be sent from other members of the Barclays Group.
>
> ___
>