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

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

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 wi

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

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 f

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 depe

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 bee

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: user

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:

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 o

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 > > C

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

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! --

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 "ge

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 w

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 usi

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 artifa

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 paren

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 Deployi

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

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~ I

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

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 accur

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

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 so

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 b

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

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? ---

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 >

[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

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 D

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 di

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 yo

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("**

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 (l

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 --

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,

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 (res

[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 plugi

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 pl

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

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