mvn release plugin with extssh

2009-10-01 Thread fflyw

Hi

Do anybody know how toconfiguere  connection for extssh?

I did use   

scm:cvs:extssh:${serv}:/shr/csvroot..

and ran mvn release:prepare

but this do not work, it throws problem - unknown transport extssh

I did try use

scm:cvs:ext:${serv}:/shr/csvroot.. instead, but

but it throws

[INFO] Executing: cvs -z3 -f -d :ext:m...@mylex:/shr/csvroot -n -q update -d
[INFO] Working directory: C:\projekts\lims\workspace\lims
java.lang.IllegalArgumentException: password argument is null
at
ch.ethz.ssh2.Connection.authenticateWithPassword(Connection.java:307)

even i have setted  and  in plugin configuration

if i ran 

mvn release:prepare  -Dmaven.scm.provider.cvs.implementation=cvs_native 
build freezes  on 
[INFO] Executing: cvs -z3 -f -d :ext:m...@mylex:/shr/csvroot -n -q update -d
[INFO] Working directory: C:\projekts\lims\workspace\lims

why?

can somebody help me?

Thanks
-- 
View this message in context: 
http://www.nabble.com/mvn-release-plugin-with-extssh-tp25693455p25693455.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



AW: Reactor - skip parent project build

2009-10-01 Thread Entner Harald
Actually, you can. But it is not that straightforward as you may wish.

Fact 1: A profile is inherited only, when it's defined in the child pom.

So you could move your plugin definition into a profile. 
-Give it an (profile) id
-Inherit the profile in your child pom (and give it a phase)

That way, it should work. I did the same with the glassfish:plugin. 

You can have a look here for a more detailed explanation:

http://mail-archives.apache.org/mod_mbox/maven-users/200812.mbox/%3cb04c95f40812011251o5524add9h9ba3f27308edd...@mail.gmail.com%3e

There will be still some duplication, so if there is a better way i would be 
happy to hear about it, but afaik there is not other way to deal with this 
problem. (When there is no default phase, you can also leave the phase besides, 
so the plugin should not execute too, still you will have to define the plugin 
in the childs, but without configuration) 

Hope this helps

Harald. 

-Ursprüngliche Nachricht-
Von: Brian Fox [mailto:bri...@infinity.nu] 
Gesendet: Donnerstag, 1. Oktober 2009 07:31
An: Maven Users List
Betreff: Re: Reactor - skip parent project build

You can't. The parent will always run first in a reactor before
anything that inherits from it.

On Wed, Sep 30, 2009 at 6:03 PM, droidin.net  wrote:
>
> I have a parent POM which defines 5 modules (5 subprojects). Since each
> module is executed in exactly the same way I pull  section
> into the parent POM to get rid of the duplicate code. Now - if I execute
> build individually from each module it works, however if I want to build all
> modules at once and move to the parent directory I got error since the very
> first thing Maven tries to execute is the parent project itself:
>
>>mvn package -P release
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   DWD Parent project
> [INFO]   Projects
>
> After that build fails because exec plugin tries to execute something that
> is not there. Looking at the output it is pretty obvious that reactor plugin
> is driving the build but how can I configure reactor to skip the parent?
> --
> View this message in context: 
> http://www.nabble.com/Reactor---skip-parent-project-build-tp25691730p25691730.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
>
>

-
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: Reactor - skip parent project build

2009-10-01 Thread Paul Benedict
Doesn't the maven-reactor-plugin allow which projects to select?

On Thu, Oct 1, 2009 at 2:51 AM, Entner Harald  wrote:
> Actually, you can. But it is not that straightforward as you may wish.
>
> Fact 1: A profile is inherited only, when it's defined in the child pom.
>
> So you could move your plugin definition into a profile.
> -Give it an (profile) id
> -Inherit the profile in your child pom (and give it a phase)
>
> That way, it should work. I did the same with the glassfish:plugin.
>
> You can have a look here for a more detailed explanation:
>
> http://mail-archives.apache.org/mod_mbox/maven-users/200812.mbox/%3cb04c95f40812011251o5524add9h9ba3f27308edd...@mail.gmail.com%3e
>
> There will be still some duplication, so if there is a better way i would be 
> happy to hear about it, but afaik there is not other way to deal with this 
> problem. (When there is no default phase, you can also leave the phase 
> besides, so the plugin should not execute too, still you will have to define 
> the plugin in the childs, but without configuration)
>
> Hope this helps
>
> Harald.
>
> -Ursprüngliche Nachricht-
> Von: Brian Fox [mailto:bri...@infinity.nu]
> Gesendet: Donnerstag, 1. Oktober 2009 07:31
> An: Maven Users List
> Betreff: Re: Reactor - skip parent project build
>
> You can't. The parent will always run first in a reactor before
> anything that inherits from it.
>
> On Wed, Sep 30, 2009 at 6:03 PM, droidin.net  wrote:
>>
>> I have a parent POM which defines 5 modules (5 subprojects). Since each
>> module is executed in exactly the same way I pull  section
>> into the parent POM to get rid of the duplicate code. Now - if I execute
>> build individually from each module it works, however if I want to build all
>> modules at once and move to the parent directory I got error since the very
>> first thing Maven tries to execute is the parent project itself:
>>
>>>mvn package -P release
>> [INFO] Scanning for projects...
>> [INFO] Reactor build order:
>> [INFO]   DWD Parent project
>> [INFO]   Projects
>>
>> After that build fails because exec plugin tries to execute something that
>> is not there. Looking at the output it is pretty obvious that reactor plugin
>> is driving the build but how can I configure reactor to skip the parent?
>> --
>> View this message in context: 
>> http://www.nabble.com/Reactor---skip-parent-project-build-tp25691730p25691730.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
>>
>>
>
> -
> 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



[ANN] XDoclet Maven Plugin 1.0 Released

2009-10-01 Thread Benjamin Bentmann
The Mojo team is pleased to announce the release of the XDoclet Maven 
Plugin, version 1.0.


This plugin is used to generate sources from XDoclet tags in the project 
source files. See the plugin's site for more details:


   http://mojo.codehaus.org/xdoclet-maven-plugin/

To use the updated plugin in your projects, you need to add the 
following snippet to the plugins or plugin management section of your POM:


   
 org.codehaus.mojo
 xdoclet-maven-plugin
 1.0
 
   ...
 
   

Please note that this plugin uses XDoclet 1.x. Users interested in the 
newer XDoclet 2.x might want to have a look at 
http://xdoclet.codehaus.org/ instead.



Release Notes - Maven 2.x XDoclet Plugin - Version 1.0

** Bug
* [MOJO-223] - xdoclet maven plugin: Ambiguous subtask definition 
exception
* [MOJO-357] - XDoclet plugin always adds 
'generatedSourcesDirectory' to project compile sources even if this dir 
is not created
* [MOJO-797] - maven-xdoclet-plugin creates faulty classpath using 
m2-eclipse/maven-embedder w/latest classworlds

* [MOJO-833] - Missing dependency to Ant

** Improvement
* [MOJO-250] - maven xdoclet documentation contains some errors


Enjoy,

-The Mojo team

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



archetype:create-from-project and excluding files from to-be-created archetype

2009-10-01 Thread Stevo Slavić
Hello maven users,

Is there a way to configure archetype:create-from-project execution to
exclude ((eclipse) IDE specific) files and directories (like .project,
.classpath, .settings, .svn) when creating an archetype? If I understood
well, current options only allow specifying which files get (resource)
filtered via archetypeFilteredExtensions configuration parameter.

Regards,
Stevo.


Re: mvn release plugin with extssh

2009-10-01 Thread Alexander Vaysberg

Hi,

look hier: 
   http://maven.apache.org/scm/cvs.html


I think, it's helpfull for you.

Alexander Vaysberg
fflyw schrieb:

Hi

Do anybody know how toconfiguere  connection for extssh?

I did use   


scm:cvs:extssh:${serv}:/shr/csvroot..

and ran mvn release:prepare

but this do not work, it throws problem - unknown transport extssh

I did try use

scm:cvs:ext:${serv}:/shr/csvroot.. instead, but

but it throws

[INFO] Executing: cvs -z3 -f -d :ext:m...@mylex:/shr/csvroot -n -q update -d
[INFO] Working directory: C:\projekts\lims\workspace\lims
java.lang.IllegalArgumentException: password argument is null
at
ch.ethz.ssh2.Connection.authenticateWithPassword(Connection.java:307)

even i have setted  and  in plugin configuration

if i ran 

mvn release:prepare  -Dmaven.scm.provider.cvs.implementation=cvs_native 
build freezes  on 
[INFO] Executing: cvs -z3 -f -d :ext:m...@mylex:/shr/csvroot -n -q update -d

[INFO] Working directory: C:\projekts\lims\workspace\lims

why?

can somebody help me?

Thanks
  



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



How to add generated resources directory in a plugin

2009-10-01 Thread Lewis, Eric
Hi

I'm writing a plugin which generates resources and also test resources.
How in my plugin can I add these directories to the sources paths and the test 
resources paths?
(Except for using the build-helper plugin)

Best regards,
Eric

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



Re: archetype:create-from-project and excluding files from to-be-created archetype

2009-10-01 Thread Stevo Slavić
Created issue  for this.

Regards,
Stevo.

On Thu, Oct 1, 2009 at 1:29 PM, Stevo Slavić  wrote:

> Hello maven users,
>
> Is there a way to configure archetype:create-from-project execution to
> exclude ((eclipse) IDE specific) files and directories (like .project,
> .classpath, .settings, .svn) when creating an archetype? If I understood
> well, current options only allow specifying which files get (resource)
> filtered via archetypeFilteredExtensions configuration parameter.
>
> Regards,
> Stevo.
>


Re: How to add generated resources directory in a plugin

2009-10-01 Thread Roland Asmann
Assuming you already have the maven-project as a variable in your plugin (if 
not, add it!):

project.addCompileSourceRoot("your output directory here");


And in the case of resources:

Resource resource = new Resource();
resource.setDirectory("your output directory here");
resource.addInclude("**/*");
project.addResource(resource);



On Thursday 01 October 2009 13:59, Lewis, Eric wrote:
> Hi
>
> I'm writing a plugin which generates resources and also test resources.
> How in my plugin can I add these directories to the sources paths and the
> test resources paths? (Except for using the build-helper plugin)
>
> Best regards,
> Eric
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: roland.asm...@cfc.at
Web: www.cfc.at

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



Re: How to add generated resources directory in a plugin

2009-10-01 Thread Werner Guttmann
Hi Roland,

does this pattern/recipe change if both resources and Java classes would
be generated in the same directory. I have tried this a few days ago
(trying to automate a few things for the castor-maven-plugin), and it
seems like this does not really work.

Assume you have a directory where you'll find 

- A.java
- B.java
- .castor.cdr

where the last is a resource file. If I use above code snippets, I can
see in the target folder after a plugin run and subsequent compilation
the compiled Java classes, the resource file and the source files.

How can I avoid the source files to be copy across ?

Regards
Werner

Roland Asmann wrote:
> Assuming you already have the maven-project as a variable in your plugin (if 
> not, add it!):
> 
> project.addCompileSourceRoot("your output directory here");
> 
> 
> And in the case of resources:
> 
> Resource resource = new Resource();
> resource.setDirectory("your output directory here");
> resource.addInclude("**/*");
> project.addResource(resource);
> 
> 
> 
> On Thursday 01 October 2009 13:59, Lewis, Eric wrote:
>> Hi
>>
>> I'm writing a plugin which generates resources and also test resources.
>> How in my plugin can I add these directories to the sources paths and the
>> test resources paths? (Except for using the build-helper plugin)
>>
>> Best regards,
>> Eric
>>
>> -
>> 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: How to add generated resources directory in a plugin

2009-10-01 Thread Roland Asmann
I believe this can work (not 100% sure, I generate into two different 
directories for sources and resources), but you should probably ONLY use the 
addCompileSourceRoot for your directory...

The way I understand it, is that if you put sources & resources there, they 
are compiled to the output dir. Java knows how to handle .java-files --> 
convert them to classes, and how to handle anything else --> just copy.
If you use the resource-dir, maven will handle the copying and will copy 
everything from the source to the target, without compiling.

So, I presume you have used both calls I gave you, although you should only 
use one.

Hope this helps,


On Thursday 01 October 2009 15:15, Werner Guttmann wrote:
> Hi Roland,
>
> does this pattern/recipe change if both resources and Java classes would
> be generated in the same directory. I have tried this a few days ago
> (trying to automate a few things for the castor-maven-plugin), and it
> seems like this does not really work.
>
> Assume you have a directory where you'll find 
>
> - A.java
> - B.java
> - .castor.cdr
>
> where the last is a resource file. If I use above code snippets, I can
> see in the target folder after a plugin run and subsequent compilation
> the compiled Java classes, the resource file and the source files.
>
> How can I avoid the source files to be copy across ?
>
> Regards
> Werner
>
> Roland Asmann wrote:
> > Assuming you already have the maven-project as a variable in your plugin
> > (if not, add it!):
> >
> > project.addCompileSourceRoot("your output directory here");
> >
> >
> > And in the case of resources:
> >
> > Resource resource = new Resource();
> > resource.setDirectory("your output directory here");
> > resource.addInclude("**/*");
> > project.addResource(resource);
> >
> > On Thursday 01 October 2009 13:59, Lewis, Eric wrote:
> >> Hi
> >>
> >> I'm writing a plugin which generates resources and also test resources.
> >> How in my plugin can I add these directories to the sources paths and
> >> the test resources paths? (Except for using the build-helper plugin)
> >>
> >> Best regards,
> >> Eric
> >>
> >> -
> >> 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

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: roland.asm...@cfc.at
Web: www.cfc.at

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



Re: mvn release plugin with extssh

2009-10-01 Thread Alexander Vaysberg

Hi,



we have scm:cvs:ext: using for cvs. For 7 months we change to svn.  But 
with scm:cvs:ext it was working.



Alexander Vaysberg 


Alexander Vaysberg schrieb:


Hi,

look hier:http://maven.apache.org/scm/cvs.html

I think, it's helpfull for you.

Alexander Vaysberg
fflyw schrieb:

Hi

Do anybody know how toconfiguere  connection for extssh?

I did use  
scm:cvs:extssh:${serv}:/shr/csvroot..


and ran mvn release:prepare

but this do not work, it throws problem - unknown transport extssh

I did try use

scm:cvs:ext:${serv}:/shr/csvroot.. instead, but

but it throws

[INFO] Executing: cvs -z3 -f -d :ext:m...@mylex:/shr/csvroot -n -q 
update -d

[INFO] Working directory: C:\projekts\lims\workspace\lims
java.lang.IllegalArgumentException: password argument is null
at
ch.ethz.ssh2.Connection.authenticateWithPassword(Connection.java:307)

even i have setted  and  in plugin configuration

if i ran
mvn release:prepare  
-Dmaven.scm.provider.cvs.implementation=cvs_native build freezes  on 
[INFO] Executing: cvs -z3 -f -d :ext:m...@mylex:/shr/csvroot -n -q 
update -d

[INFO] Working directory: C:\projekts\lims\workspace\lims

why?

can somebody help me?

Thanks
  



-
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



[m2] yet another cyclic dependency issue

2009-10-01 Thread Adrian Herscu

Hi all,


(I already read all post regarding cyclic dependencies)

My project has two modules:
1) generator -- depends on the "samples" for testing
2) sample -- depends on the "generator" for building

I used to unpack the samples artifact into the target directory of the 
generator before running the generator's test.


Any "clean" way out of this cyclic dependency?

TIA,
Adrian.


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



Re: [m2] yet another cyclic dependency issue

2009-10-01 Thread Stephen Connolly
create a generator-test module for testing the generator

2009/10/1 Adrian Herscu 

> Hi all,
>
>
> (I already read all post regarding cyclic dependencies)
>
> My project has two modules:
> 1) generator -- depends on the "samples" for testing
> 2) sample -- depends on the "generator" for building
>
> I used to unpack the samples artifact into the target directory of the
> generator before running the generator's test.
>
> Any "clean" way out of this cyclic dependency?
>
> TIA,
> Adrian.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Overwrite an active by default profile in settings.xml

2009-10-01 Thread Jan Emmel
Hi!

In my local settings.xml i defined some profiles. One profile is set
true. This works fine. But if i
want to activate another profile with the -P CLI option the default
profile is still active and the default properties are used.

Is there any solution?

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



Re: Overwrite an active by default profile in settings.xml

2009-10-01 Thread Nick Stolwijk
You could disable it on the commandline by specifying -Pprofile2,-profile1
where profile1 is your activeByDefault profile.

Hth,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl


On Thu, Oct 1, 2009 at 3:47 PM, Jan Emmel  wrote:

> Hi!
>
> In my local settings.xml i defined some profiles. One profile is set
>true. This works fine. But if i
> want to activate another profile with the -P CLI option the default
> profile is still active and the default properties are used.
>
> Is there any solution?
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


need info. on placing scripts (perl,bat) in custom ant plugin .

2009-10-01 Thread yoyomohan

I've written a custom ant plugin where it tries to execute script files form
the 'ant' tasks . The question is where do I place the custom scripts in the
plugin to ensure these scripts are run when this plugin is executed. 
  I tried to place under 'src/main/resources/XXX.pl ' and this script is
being called from ' src/main/scripts/xxx.build.xml' file using  ant
task. Tried various things but the script file is not being called ..it says
'file /path ' not found for the script. 

Please let me know if I'm missing anything.. 
-- 
View this message in context: 
http://www.nabble.com/need-info.-on-placing-scripts-%28perl%2Cbat%29-in-custom-ant-plugin-.-tp25696908p25696908.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: Buildable standalone source bundles with the assembly plugin

2009-10-01 Thread Mark Hobson
2009/10/1 Brett Porter :
> On 30/09/2009, at 10:48 PM, Mark Hobson wrote:
>> These are released dependencies.  They need to be SCM checkouts and
>> not source artifacts since they need to be buildable, i.e. contain the
>> POM and any other necessary build resources.
>
> You can build and release source bundles with all of that too :)

Interesting idea, have you got an example of this?

>> I'll investigate these points in more depth once I need to do the
>> work.  I was mainly trying to gather whether it was appropriate to add
>> this functionality to the assembly plugin.  How did you see the POM
>> and SCM plugins coming into play here?
>
> They were for doing the checkouts into a space the assembly plugin could
> pick it up and for modifying the  element to include them in a
> build. You could put them in by hand in a profile though that is just
> enabled by your scripts.

I hope to use mvn -r to avoid having to produce an aggregate pom that
contains the necessary  elements.  Not sure how easy it'll be
to coax the SCM plugin into checking out all direct and transitive
dependencies of a project though.

> Though if they are releases, I'd find going with source bundles from the
> repository easier than using the SCM.

I do like this idea, although it'd mean releasing new versions of
pre-existing projects to bring in the new attached artifact.

Cheers,

Mark

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



Re: problem using archetype create-from-project to process files under resources folders.

2009-10-01 Thread Djohannot

Hi all,

I have exactly the same problem. I use the Netbeans platform and the
layer.xml, Bundle.properties, etc are in resources folder, and the
archetype:generate-from-project keep the original folder hierarchy. 

dou you have found a way to tell Maven to modif the resources folders too?

regards,

David J.



Trent Rosenbaum-2 wrote:
> 
> Hi there,
> I am having a problem with the 'main/resources' and the 'test/resources'
> folders when trying to generate an archetype from an example project. 
> Both
> folders are preserving the original folder structures from the project
> used
> to generate the archetype.  The 'main/java' and the 'test/java' are
> modified
> to allow them to be placed into a new package structure when the archetype
> is used for future projects.  Are the folders 'main/resources' and
> 'test/resources' meant to work in this way?
> 
> I would expect the 'resources' folders within the archetype to generate
> the
> new files in the same manner as the java folders.  I have a situation
> where
> junit test classes are locating Spring configuration files in the same
> package.  I have the test class under the 'test/java' folder and the
> configuration files under 'test/resources'.  When I run the
> 'maven-archetype-plugin' over the example project, (a project that builds
> and tests as expected) I get the java classes modified to except new
> project
> values, but the configuration files under resources folders are left under
> the old package/folder structure.  After generation of the new project the
> build fails because the tests cannot locate the appropriate configuration
> files.  Is it expected that I should modify the generated archetype files
> by
> hand to place the configuration files in the correct location?  I have
> been
> using archetypes of a while, but have never noticed this before because I
> always placed my configuration files at the route of 'main/resources' and
> 'test/resources'.
> 
> What are the plans for the archetype plugin going forward?  I get a sense
> that things on the archetype front have gone quiet?
> 
> Are there any other options and what is everyone else doing?  Any feedback
> would be a great help.
> Many thanks
> 
> Trent
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-using-archetype-create-from-project-to-process-files-under--resources-folders.-tp24772317p25696921.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



Ant vs Maven vs Eclipse, IntelliJ, NetBeans – Expl oring Incremental Builds

2009-10-01 Thread David Booth
We’re looking into incremental builds — trying to document the differences
in popularity & productivity between using tools like Ant and Maven versus
IDEs.  We haven’t seen a study like this before, and we’ve already received
responses from over 550 developers.  We’d like this report to be as accurate
as responsible, so if you can take 2 mins to answer the 3 multiple-choice
questions in this Google Form, we’d really appreciate it.



https://spreadsheets.google.com/viewform?formkey=dHlRT1dCb2xnUldpUzRUZ3hNNlBOdkE6MA
..



Thanks,



Dave


Ant to Maven

2009-10-01 Thread chicagopooldude

I have a huge ant build file which we are moving to maven, there are multiple
targets which run axis-wsdl2java tasks to get java code out of wsdl files
which are on the web. After which each of these tasks then compiles the
generated java code and packages them into individual jar files. How can I
achieve this in maven I am new so any ideas or help will be appreciated.
Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Ant-to-Maven-tp25696939p25696939.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: Ant to Maven

2009-10-01 Thread Nick Stolwijk
Each jar file will be a separate module. You can start by using the maven
antrun plugin [1] or start directly with the Maven Axis Tools plugin [2].

[1] http://maven.apache.org/plugins/maven-antrun-plugin/
[2] http://mojo.codehaus.org/axistools-maven-plugin/

Hth,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl


On Thu, Oct 1, 2009 at 5:31 PM, chicagopooldude
wrote:

>
> I have a huge ant build file which we are moving to maven, there are
> multiple
> targets which run axis-wsdl2java tasks to get java code out of wsdl files
> which are on the web. After which each of these tasks then compiles the
> generated java code and packages them into individual jar files. How can I
> achieve this in maven I am new so any ideas or help will be appreciated.
> Thanks in advance.
> --
> View this message in context:
> http://www.nabble.com/Ant-to-Maven-tp25696939p25696939.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: Ant to Maven

2009-10-01 Thread chicagopooldude

Thanks for your reply I have already started to use the antrun plugin. I
wanted to know if you can please share some documentation on using seperate
modules. Should I use parent-child modules ?
-- 
View this message in context: 
http://www.nabble.com/Ant-to-Maven-tp25696939p25703038.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



Maven 1: Deploy in repository http

2009-10-01 Thread Tonella

I need deploy artefacts in repository http.

I use this config in project.properties:

maven.repo.list=unofficial
maven.repo.unofficial=http://test.com/test/repository/unofficial

Error:
[echo] maven.repo.list is set - using artifact deploy mode
Will deploy to 1 repository(ies): unofficial
Deploying to repository: unofficial
Deploying: c:\document\project.xml-->document/poms/test-SNAPSHOT
SHOT.pom
Failed to deploy to: unofficial Reason: Unable to connect to
'http://test.com/test/repository/unofficial'

BUILD FAILED
File.. C:\Documents and
Settings\.maven\cache\maven-artifact-plugin-1.5-snapshot\plugin.jelly
Element... artifact:artifact-deploy
Line.. 99
Column 13
Unable to deploy to any repositories
Total time: 36 seconds

Tks
-- 
View this message in context: 
http://www.nabble.com/Maven-1%3A-Deploy-in-repository-http-tp25703147p25703147.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: Ant to Maven

2009-10-01 Thread Nick Stolwijk
>From each module there will be one main artifact, ie a jar. Sometimes
there can be multiple artifacts, like javadoc or sources. If you say
that your ant script generates multiple jars, you will need to have
multiple modules. That can be child-parent relation, or just a
aggregator pom.

Child parent relation:
Each module has a section  which point to a pom with shared
configuration and/or dependency(management).

Aggregator pom:
You have multiple modules in subdirectories. You create a pom file
with the modules tag to kick of all the builds with one command.

These strategies can be combined. Your parent pom can also be your
aggregator pom.

Hth,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Thu, Oct 1, 2009 at 7:14 PM, chicagopooldude
 wrote:
>
> Thanks for your reply I have already started to use the antrun plugin. I
> wanted to know if you can please share some documentation on using seperate
> modules. Should I use parent-child modules ?
> --
> View this message in context: 
> http://www.nabble.com/Ant-to-Maven-tp25696939p25703038.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
>
>

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



Re: Ant to Maven

2009-10-01 Thread Nick Stolwijk
See also this link:
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Thu, Oct 1, 2009 at 7:28 PM, Nick Stolwijk  wrote:
> From each module there will be one main artifact, ie a jar. Sometimes
> there can be multiple artifacts, like javadoc or sources. If you say
> that your ant script generates multiple jars, you will need to have
> multiple modules. That can be child-parent relation, or just a
> aggregator pom.
>
> Child parent relation:
> Each module has a section  which point to a pom with shared
> configuration and/or dependency(management).
>
> Aggregator pom:
> You have multiple modules in subdirectories. You create a pom file
> with the modules tag to kick of all the builds with one command.
>
> These strategies can be combined. Your parent pom can also be your
> aggregator pom.
>
> Hth,
>
> Nick Stolwijk
> ~Java Developer~
>
> IPROFS BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> http://www.iprofs.nl
>
>
>
> On Thu, Oct 1, 2009 at 7:14 PM, chicagopooldude
>  wrote:
>>
>> Thanks for your reply I have already started to use the antrun plugin. I
>> wanted to know if you can please share some documentation on using seperate
>> modules. Should I use parent-child modules ?
>> --
>> View this message in context: 
>> http://www.nabble.com/Ant-to-Maven-tp25696939p25703038.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
>>
>>
>

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



problem combining goals on the command line

2009-10-01 Thread EJ Ciramella
Hi again list - 

 

I'm having an issue when I combine three goals on the command line
(clean install site).

 

What happens is I get an error about a the common jar (this is a multi
module project with a common jar, ejbs, a war and an ear) not being
available yet.

 

Any suggestions?  We're using mvn 2.0.9.



RE: problem combining goals on the command line

2009-10-01 Thread EJ Ciramella
I think this problem is related to (or IS):

http://jira.codehaus.org/browse/MSITE-302

I set my javadoc version back to 2.4 (we were using 2.5) and the build
gets further, but I think the reactor contents are garbled.

The "common" module (java only) gives the following error now:

[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error assembling JAR

Embedded error: You must set at least one file.

Any other suggestions?

-Original Message-
From: EJ Ciramella [mailto:ecirame...@upromise.com] 
Sent: Thursday, October 01, 2009 1:36 PM
To: users@maven.apache.org
Subject: problem combining goals on the command line

Hi again list - 

 

I'm having an issue when I combine three goals on the command line
(clean install site).

 

What happens is I get an error about a the common jar (this is a multi
module project with a common jar, ejbs, a war and an ear) not being
available yet.

 

Any suggestions?  We're using mvn 2.0.9.


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



Re: [m2] yet another cyclic dependency issue

2009-10-01 Thread Adrian Herscu

Thanks.

Stephen Connolly wrote:

create a generator-test module for testing the generator

2009/10/1 Adrian Herscu 


Hi all,


(I already read all post regarding cyclic dependencies)

My project has two modules:
1) generator -- depends on the "samples" for testing
2) sample -- depends on the "generator" for building

I used to unpack the samples artifact into the target directory of the
generator before running the generator's test.

Any "clean" way out of this cyclic dependency?

TIA,
Adrian.


-
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: problem combining goals on the command line

2009-10-01 Thread EJ Ciramella
Well, I stumbled across my own error.

Apparently, in a multi-module I need to specify which type of javadoc to
run; aggregate or non-aggregate mode javadoc.

Turning on non-aggregate mode solves my problem.

Hope this helps someone else!


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



Re: Reactor - skip parent project build

2009-10-01 Thread droidin.net

Well. 1. I don't want to pollute my command line. 2. I may have variable
number of projects which I much rather handle by adding/removin modules from
list

Bo


Paul Benedict-2 wrote:
> 
> Doesn't the maven-reactor-plugin allow which projects to select?
> 
> On Thu, Oct 1, 2009 at 2:51 AM, Entner Harald 
> wrote:
>> Actually, you can. But it is not that straightforward as you may wish.
>>
>> Fact 1: A profile is inherited only, when it's defined in the child pom.
>>
>> So you could move your plugin definition into a profile.
>> -Give it an (profile) id
>> -Inherit the profile in your child pom (and give it a phase)
>>
>> That way, it should work. I did the same with the glassfish:plugin.
>>
>> You can have a look here for a more detailed explanation:
>>
>> http://mail-archives.apache.org/mod_mbox/maven-users/200812.mbox/%3cb04c95f40812011251o5524add9h9ba3f27308edd...@mail.gmail.com%3e
>>
>> There will be still some duplication, so if there is a better way i would
>> be happy to hear about it, but afaik there is not other way to deal with
>> this problem. (When there is no default phase, you can also leave the
>> phase besides, so the plugin should not execute too, still you will have
>> to define the plugin in the childs, but without configuration)
>>
>> Hope this helps
>>
>> Harald.
>>
>> -Ursprüngliche Nachricht-
>> Von: Brian Fox [mailto:bri...@infinity.nu]
>> Gesendet: Donnerstag, 1. Oktober 2009 07:31
>> An: Maven Users List
>> Betreff: Re: Reactor - skip parent project build
>>
>> You can't. The parent will always run first in a reactor before
>> anything that inherits from it.
>>
>> On Wed, Sep 30, 2009 at 6:03 PM, droidin.net  wrote:
>>>
>>> I have a parent POM which defines 5 modules (5 subprojects). Since each
>>> module is executed in exactly the same way I pull 
>>> section
>>> into the parent POM to get rid of the duplicate code. Now - if I execute
>>> build individually from each module it works, however if I want to build
>>> all
>>> modules at once and move to the parent directory I got error since the
>>> very
>>> first thing Maven tries to execute is the parent project itself:
>>>
mvn package -P release
>>> [INFO] Scanning for projects...
>>> [INFO] Reactor build order:
>>> [INFO]   DWD Parent project
>>> [INFO]   Projects
>>>
>>> After that build fails because exec plugin tries to execute something
>>> that
>>> is not there. Looking at the output it is pretty obvious that reactor
>>> plugin
>>> is driving the build but how can I configure reactor to skip the parent?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Reactor---skip-parent-project-build-tp25691730p25691730.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
>>>
>>>
>>
>> -
>> 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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Reactor---skip-parent-project-build-tp25691730p25706195.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: Useful tutorials about Velocity, Maven and Plexus

2009-10-01 Thread Dennis Lundberg
The Maven Changes Plugin uses a velocity template in the
AnnouncementMojo. Perhaps you can pick a few hints from there.

https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/announcement/AnnouncementMojo.java

Lewis, Eric wrote:
> Hi
> 
> Can someone point me to a tutorial on how to use Velocity in Maven based on 
> Plexus? I have found only snippets, but not a full tutorial.
> Right now, I get the VelocityComponent, but I can't read my template...
> 
> Best regards,
> Eric
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 


-- 
Dennis Lundberg

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



Re: mysql connector updates lagging

2009-10-01 Thread Dennis Lundberg
There's been some kind of problem with the rsync of mysql artifacts.
See http://jira.codehaus.org/browse/MAVENUPLOAD-2598

Lachlan Deck wrote:
> Hi there,
> 
> anyone know who's previously been responsible for pushing
> mysql:mysql-connector-java updates to the central repo?
> 
> The central repo only has 5.1.6 but mysql's connector is up to 5.1.10 now.
> 
> with regards,
> -- 
> 
> Lachlan Deck
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 


-- 
Dennis Lundberg

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



Re: AW: Reactor - skip parent project build

2009-10-01 Thread droidin.net

Thanks Harals, indeed it works. Basically - you only reuse configurations -
executions block still has to be defined per child. And then profile is not
executed in parent simply because parent POM is missing execution block.
You may also want to look at this two threads on stackoverflow.com
(http://is.gd/3R0mR and http://is.gd/3QLtl) - though so far I wasn't been
able to make it work 

Bo


Entner Harald wrote:
> 
> Actually, you can. But it is not that straightforward as you may wish.
> 
> Fact 1: A profile is inherited only, when it's defined in the child pom.
> 
> So you could move your plugin definition into a profile. 
> -Give it an (profile) id
> -Inherit the profile in your child pom (and give it a phase)
> 
> That way, it should work. I did the same with the glassfish:plugin. 
> 
> You can have a look here for a more detailed explanation:
> 
> http://mail-archives.apache.org/mod_mbox/maven-users/200812.mbox/%3cb04c95f40812011251o5524add9h9ba3f27308edd...@mail.gmail.com%3e
> 
> There will be still some duplication, so if there is a better way i would
> be happy to hear about it, but afaik there is not other way to deal with
> this problem. (When there is no default phase, you can also leave the
> phase besides, so the plugin should not execute too, still you will have
> to define the plugin in the childs, but without configuration) 
> 
> Hope this helps
> 
> Harald. 
> 
> -Ursprüngliche Nachricht-
> Von: Brian Fox [mailto:bri...@infinity.nu] 
> Gesendet: Donnerstag, 1. Oktober 2009 07:31
> An: Maven Users List
> Betreff: Re: Reactor - skip parent project build
> 
> You can't. The parent will always run first in a reactor before
> anything that inherits from it.
> 
> On Wed, Sep 30, 2009 at 6:03 PM, droidin.net  wrote:
>>
>> I have a parent POM which defines 5 modules (5 subprojects). Since each
>> module is executed in exactly the same way I pull 
>> section
>> into the parent POM to get rid of the duplicate code. Now - if I execute
>> build individually from each module it works, however if I want to build
>> all
>> modules at once and move to the parent directory I got error since the
>> very
>> first thing Maven tries to execute is the parent project itself:
>>
>>>mvn package -P release
>> [INFO] Scanning for projects...
>> [INFO] Reactor build order:
>> [INFO]   DWD Parent project
>> [INFO]   Projects
>>
>> After that build fails because exec plugin tries to execute something
>> that
>> is not there. Looking at the output it is pretty obvious that reactor
>> plugin
>> is driving the build but how can I configure reactor to skip the parent?
>> --
>> View this message in context:
>> http://www.nabble.com/Reactor---skip-parent-project-build-tp25691730p25691730.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
>>
>>
> 
> -
> 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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Reactor---skip-parent-project-build-tp25691730p25706722.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 Central Repository - Cleanup Efforts

2009-10-01 Thread Albert Kurucz
> Then make your own repository. See how useful that is.

Jason, you are probably right.
http://xircles.codehaus.org/projects/pinin

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



Re: mysql connector updates lagging

2009-10-01 Thread Lachlan Deck

Excellent - thanks Dennis.
Good to see someone's onto it.

On 02/10/2009, at 6:51 AM, Dennis Lundberg wrote:


There's been some kind of problem with the rsync of mysql artifacts.
See http://jira.codehaus.org/browse/MAVENUPLOAD-2598

Lachlan Deck wrote:

Hi there,

anyone know who's previously been responsible for pushing
mysql:mysql-connector-java updates to the central repo?

The central repo only has 5.1.6 but mysql's connector is up to  
5.1.10 now.


with regards,
--

Lachlan Deck




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





--
Dennis Lundberg

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



with regards,
--

Lachlan Deck




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



Transitive Dependencies: Is the parent or child dependency the "nearest dependency"?

2009-10-01 Thread Robert Winch
There is a discrepancy in how m2eclipse (latest stable) resolves a version
of a dependency and Maven 2.2.1 does and I am trying to figure out which is
correct. I understand that the "nearest dependency" is suppose to be the
version that is resolved [1]. I also understand that the first defined
dependency is used if the depth is the same (Maven 2.0.9 or later). However,
I am not sure which is resolved if the depth is the same and one is defined
in a parent and the other in the child. I have copied the simplified example
that reproduces the discrepancy in below [2]. The issue is that
spring-webflow-1.0.6.jar (located in the parent) defines
spring-core-2.0.7.jar as a direct dependency and spring-aop-2.5.6.jar
(located in the child) defines spring-core-2.5.6.jar as a direct dependency.
Which version of spring-core should be resolved? The m2eclipse plugin
resolves spring-core-2.0.7.jar and Maven 2.2.1 resolves
spring-core-2.5.6.jar.

Thanks in advance :)

[1]
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Transitive_Dependencies

[2]

parent

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
4.0.0
parent
parent
pom
1.0-SNAPSHOT


org.springframework
spring-webflow
1.0.6




child

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>

parent
parent
1.0-SNAPSHOT

4.0.0
child
child
war
1.0-SNAPSHOT



org.springframework
spring-aop
2.5.6





Re: Transitive Dependencies: Is the parent or child dependency the "nearest dependency"?

2009-10-01 Thread Brett Porter
If you care, you should add the one that you want to the  
dependencyManagement element of your POM rather than trying to  
workaround this.


As for Maven itself, I would have expected parent to come first - but  
it's not as simple the first level being first, it's rather which is  
encountered first - you'll see this via the trace when running with - 
X. If you think there's an inconsistency between Maven 2.2.1 and  
earlier versions then that might be a bug, but otherwise I would stick  
with the resolution it chooses for now.


- Brett

On 02/10/2009, at 9:10 AM, Robert Winch wrote:

There is a discrepancy in how m2eclipse (latest stable) resolves a  
version
of a dependency and Maven 2.2.1 does and I am trying to figure out  
which is
correct. I understand that the "nearest dependency" is suppose to be  
the

version that is resolved [1]. I also understand that the first defined
dependency is used if the depth is the same (Maven 2.0.9 or later).  
However,
I am not sure which is resolved if the depth is the same and one is  
defined
in a parent and the other in the child. I have copied the simplified  
example

that reproduces the discrepancy in below [2]. The issue is that
spring-webflow-1.0.6.jar (located in the parent) defines
spring-core-2.0.7.jar as a direct dependency and spring-aop-2.5.6.jar
(located in the child) defines spring-core-2.5.6.jar as a direct  
dependency.

Which version of spring-core should be resolved? The m2eclipse plugin
resolves spring-core-2.0.7.jar and Maven 2.2.1 resolves
spring-core-2.5.6.jar.

Thanks in advance :)

[1]
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Transitive_Dependencies

[2]

parent

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
   4.0.0
   parent
   parent
   pom
   1.0-SNAPSHOT
   
   
   org.springframework
   spring-webflow
   1.0.6
   
   


child

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
   
   parent
   parent
   1.0-SNAPSHOT
   
   4.0.0
   child
   child
   war
   1.0-SNAPSHOT

   
   
   org.springframework
   spring-aop
   2.5.6
   
   




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



Re: Maven Central Repository - Cleanup Efforts

2009-10-01 Thread Brian Fox
Please see my response on the maven-dev list for how this problem is
best approached. For everyone's sanity, lets keep the discussion
thread on the dev list.

On Thu, Oct 1, 2009 at 2:41 PM, Albert Kurucz  wrote:
>> Then make your own repository. See how useful that is.
>
> Jason, you are probably right.
> http://xircles.codehaus.org/projects/pinin
>
> -
> 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: Transitive Dependencies: Is the parent or child dependency the "nearest dependency"?

2009-10-01 Thread Brian Fox
Neither. The parent is merged into the child before any of this is
considered. In other words, the effective-pom is produced before
nearest wins is even remotely considered. That said, a given value in
the child overrides one defined in the parentbut this doesn't have
anything directly to do with selecting something based on the depth in
the transitive tree.

On Thu, Oct 1, 2009 at 4:10 PM, Robert Winch  wrote:
> There is a discrepancy in how m2eclipse (latest stable) resolves a version
> of a dependency and Maven 2.2.1 does and I am trying to figure out which is
> correct. I understand that the "nearest dependency" is suppose to be the
> version that is resolved [1]. I also understand that the first defined
> dependency is used if the depth is the same (Maven 2.0.9 or later). However,
> I am not sure which is resolved if the depth is the same and one is defined
> in a parent and the other in the child. I have copied the simplified example
> that reproduces the discrepancy in below [2]. The issue is that
> spring-webflow-1.0.6.jar (located in the parent) defines
> spring-core-2.0.7.jar as a direct dependency and spring-aop-2.5.6.jar
> (located in the child) defines spring-core-2.5.6.jar as a direct dependency.
> Which version of spring-core should be resolved? The m2eclipse plugin
> resolves spring-core-2.0.7.jar and Maven 2.2.1 resolves
> spring-core-2.5.6.jar.
>
> Thanks in advance :)
>
> [1]
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Transitive_Dependencies
>
> [2]
>
> parent
>
> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";
>    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>    4.0.0
>    parent
>    parent
>    pom
>    1.0-SNAPSHOT
>    
>        
>            org.springframework
>            spring-webflow
>            1.0.6
>        
>    
> 
>
> child
>
> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";
>    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>    
>        parent
>        parent
>        1.0-SNAPSHOT
>    
>    4.0.0
>    child
>    child
>    war
>    1.0-SNAPSHOT
>
>    
>        
>            org.springframework
>            spring-aop
>            2.5.6
>        
>    
> 
>

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



Re: Transitive Dependencies: Is the parent or child dependency the "nearest dependency"?

2009-10-01 Thread Robert Winch
Thanks to both of you for your responses. I am aware that it is preferred to
add the dependency as a direct dependency to avoid such conflicts (thank you
for that suggestion).

Sorry to keep this going, but I am still puzzled to what is causing the
discrepancy and would like to get to the bottom of it. I use m2eclipse for
development and maven 2.2.1 for continuous builds. This would work better if
both were consistent. I know that m2eclipse uses Maven 3,  but as I
understand it (I could be wrong) Maven 3 is suppose to be almost, if not
entirely, passive to an end user; I believe only plugin developers using
dependency management APIs are suppose to be impacted. In short, does anyone
know:

Is this expected behavior (I would hope that it should be consistent since
Maven aims at providing consistent builds)?
Is this a bug in Maven 2.2.1?
Is this a bug in m2eclipse (Maven 3)?
Does this question belong on m2eclipse mailing list instead?

Thanks,
Rob


On Thu, Oct 1, 2009 at 7:30 PM, Brian Fox  wrote:

> Neither. The parent is merged into the child before any of this is
> considered. In other words, the effective-pom is produced before
> nearest wins is even remotely considered. That said, a given value in
> the child overrides one defined in the parentbut this doesn't have
> anything directly to do with selecting something based on the depth in
> the transitive tree.
>
> On Thu, Oct 1, 2009 at 4:10 PM, Robert Winch  wrote:
> > There is a discrepancy in how m2eclipse (latest stable) resolves a
> version
> > of a dependency and Maven 2.2.1 does and I am trying to figure out which
> is
> > correct. I understand that the "nearest dependency" is suppose to be the
> > version that is resolved [1]. I also understand that the first defined
> > dependency is used if the depth is the same (Maven 2.0.9 or later).
> However,
> > I am not sure which is resolved if the depth is the same and one is
> defined
> > in a parent and the other in the child. I have copied the simplified
> example
> > that reproduces the discrepancy in below [2]. The issue is that
> > spring-webflow-1.0.6.jar (located in the parent) defines
> > spring-core-2.0.7.jar as a direct dependency and spring-aop-2.5.6.jar
> > (located in the child) defines spring-core-2.5.6.jar as a direct
> dependency.
> > Which version of spring-core should be resolved? The m2eclipse plugin
> > resolves spring-core-2.0.7.jar and Maven 2.2.1 resolves
> > spring-core-2.5.6.jar.
> >
> > Thanks in advance :)
> >
> > [1]
> >
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Transitive_Dependencies
> >
> > [2]
> >
> > parent
> >
> > http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance";
> >xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd";>
> >4.0.0
> >parent
> >parent
> >pom
> >1.0-SNAPSHOT
> >
> >
> >org.springframework
> >spring-webflow
> >1.0.6
> >
> >
> > 
> >
> > child
> >
> > http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance";
> >xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd";>
> >
> >parent
> >parent
> >1.0-SNAPSHOT
> >
> >4.0.0
> >child
> >child
> >war
> >1.0-SNAPSHOT
> >
> >
> >
> >org.springframework
> >spring-aop
> >2.5.6
> >
> >
> > 
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Transitive Dependencies: Is the parent or child dependency the "nearest dependency"?

2009-10-01 Thread Brett Porter


On 02/10/2009, at 1:24 PM, Robert Winch wrote:

Is this expected behavior (I would hope that it should be consistent  
since

Maven aims at providing consistent builds)?
Is this a bug in Maven 2.2.1?
Is this a bug in m2eclipse (Maven 3)?
Does this question belong on m2eclipse mailing list instead?


If you are using m2eclipse's last stable build I *think* it is based  
on a much older snapshot of Maven trunk.


Aside from all this, if you are really keen to help get to the bottom  
of it, I suggest composing an integration test that illustrates the  
behaviour and we can run it against several Maven versions to compare  
results. Let us know if you need any pointers for this. At this point,  
we expect dependency sorting to be consistent from Maven 2.0.9 thru  
Maven 2.2.1 and then Maven 3's trunk. If there's a discrepancy in  
those, then we can tackle the particular issue.


Cheers,
Brett

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