Re: Possible bug in Subversion SCM or release plugin

2010-10-20 Thread Stephen Connolly
On 19 October 2010 23:43, Phillip Hellewell ssh...@gmail.com wrote: Thanks Stephen.  See comments below... On Tue, Oct 19, 2010 at 4:16 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: I suspect that this is because you are not using remoteTagging=true for your release, so it is

Re: scm connection in parent pom

2010-10-20 Thread Jörg Schaible
Hi Phillip, Phillip Hellewell wrote: On Tue, Oct 19, 2010 at 11:47 AM, Phillip Hellewell ssh...@gmail.com wrote: Also, is there a common way to let each developer decide which protocol they want to use, e.g., svn+ssh:// instead of http://. Of course, the big problem with svn+ssh:// is

Re: scm connection in parent pom

2010-10-20 Thread Andreas Sewe
Hi Phillip, Does it make sense and will it work to define the scm connection in a parent pom if all my projects follow the same layout in SVN? i.e., connectionscm:svn:http://mysvnrep.com/svn/projects/${artifactId}/trunk/connection in theory, the above makes sense, but in practice you will

Re: scm connection in parent pom

2010-10-20 Thread Stephen Connolly
On 20 October 2010 08:38, Andreas Sewe s...@st.informatik.tu-darmstadt.de wrote: Hi Phillip, Does it make sense and will it work to define the scm connection in a parent pom if all my projects follow the same layout in SVN? i.e.,

Re: scm connection in parent pom

2010-10-20 Thread Stephen Connolly
On 20 October 2010 08:51, Stephen Connolly stephen.alan.conno...@gmail.com wrote: On 20 October 2010 08:38, Andreas Sewe s...@st.informatik.tu-darmstadt.de wrote: Hi Phillip, Does it make sense and will it work to define the scm connection in a parent pom if all my projects follow the same

Re: Strange behaviour on resource plugin

2010-10-20 Thread Søren Krum
Hi! fond it by myself: The -X helps a lot in between. The properties were specified in a profile which was not active when running from the command line. Sorry for bothering you! On 10/19/2010 04:09 PM, Søren Krum wrote: Hi! I have detected a strange bahaviour of the maven resource plugin,

Surefire-Report and Cobertura

2010-10-20 Thread -Kidow-
Hello, I've got a question concerning the surefire-report-plugin and the cobertura-plugin. Is it possible to find out which classes have been covered by which testclasses? From the surefire-report-plugin I get the information about which testclass throws a failure and from the

maven3 profile activation by absense of property

2010-10-20 Thread Joachim Van der Auwera
I am using the following profile profiles profile iddocumentation/id activation property name!skipDocs/name /property /activation modules moduledocumentation/module /modules /profile /profiles However, since the switch to maven3 this does not worka anymore and mvn -DskipDocs install will still

Re: maven3 profile activation by absense of property

2010-10-20 Thread Anders Hammar
Could be a regression then. Create a test project and file a ticket. /Anders On Wed, Oct 20, 2010 at 11:32, Joachim Van der Auwera joac...@triathlon98.com wrote: I am using the following profile profiles profile iddocumentation/id activation property name!skipDocs/name /property

Re: maven3 profile activation by absense of property

2010-10-20 Thread Wendy Smoak
On Wed, Oct 20, 2010 at 5:32 AM, Joachim Van der Auwera joac...@triathlon98.com wrote: However, since the switch to maven3 this does not worka anymore and mvn -DskipDocs install will still include the documentation module. Do I have to do something different to make this work in maven3? What

RE: maven is a swamp

2010-10-20 Thread Martin Gainty
IDEs from my experience are tools to create (workspace) environments and to create xml scripts ant/maven to compile, package and deploy wars and ears the useful life of an IDE passes when the webapp is promoted to production and the op implements the goals in the pom.xml to deploy to appserver

Additional dependencies in assembly

2010-10-20 Thread Stevo Slavić
Hello Apache Maven users, It seems it's not possible to introduce additional dependencies through assembly descriptor, one can only filter (include/exclude) dependencies defined in module pom. Can someone please verify this? Btw, current assembly plugin site documents that assembly descriptor

Re: Additional dependencies in assembly

2010-10-20 Thread Antonio Petrelli
2010/10/20 Stevo Slavić ssla...@gmail.com: It seems it's not possible to introduce additional dependencies through assembly descriptor, one can only filter (include/exclude) dependencies defined in module pom. Can someone please verify this? Yes it's true. This is one of the reasons because so

Re: scm connection in parent pom

2010-10-20 Thread lukewpatterson
Andreas Sewe wrote: But if there are any good workarounds other than copy-and-pasting scm/connection in all the child POMs I would love to hear about them. A lot of people (30 at last count, including myself) would be interested to see a solution for this. Many related bugs funnel to

Re: scm connection in parent pom

2010-10-20 Thread Andreas Sewe
Hi Stephen, IIRC the appending is controlled by the presence of a / at the end of the URI if the URI ends with a slash then it will not append the module name in children if the URI does not end with a slash then it will append the module name in children of course I could be mistaken and

Re: scm connection in parent pom

2010-10-20 Thread Stephen Connolly
On 20 October 2010 14:29, Andreas Sewe s...@st.informatik.tu-darmstadt.de wrote: Hi Stephen, IIRC the appending is controlled by the presence of a / at the end of the URI if the URI ends with a slash then it will not append the module name in children if the URI does not end with a slash

Re: maven is a swamp

2010-10-20 Thread Ron Wheeler
On 20/10/2010 7:17 AM, Martin Gainty wrote: IDEs from my experience are tools to create (workspace) environments and to create xml scriptsant/maven to compile, package and deploy wars and ears the useful life of an IDE passes when the webapp is promoted to production and the op implements

Re: maven is a swamp

2010-10-20 Thread Graham Leggett
On 20 Oct 2010, at 1:17 PM, Martin Gainty wrote: IDEs from my experience are tools to create (workspace) environments and to create xml scripts ant/maven to compile, package and deploy wars and ears the useful life of an IDE passes when the webapp is promoted to production and the op

Re: Now seriously: how can I manage dependencies of own projects with maven

2010-10-20 Thread Benson Margulies
On Wed, Oct 20, 2010 at 8:12 AM, Michael McCallum mich...@redengine.co.nz wrote: You could try something like... mvn -s special-settings-file.xml verify install haha. Hudson has a horrible bug involving -s that the maintainers keep claiming to fix and failing to fix. Perhaps some day. set

Re: maven3 profile activation by absense of property

2010-10-20 Thread Joachim Van der Auwera
On 10/20/2010 12:35 PM, Wendy Smoak wrote: On Wed, Oct 20, 2010 at 5:32 AM, Joachim Van der Auwera joac...@triathlon98.com wrote: However, since the switch to maven3 this does not worka anymore and mvn -DskipDocs install will still include the documentation module. Do I have to do

Re: scm connection in parent pom

2010-10-20 Thread lukewpatterson
Andreas Sewe wrote: ... Would be interesting to know why you are so against using properties in /project/scm/*. Based on what I've experienced, described earlier by Jörg - Jörg Schaible wrote: ... the release plugin will rewrite the SCM URLs during release and reolve all

Re: scm connection in parent pom

2010-10-20 Thread Phillip Hellewell
On Wed, Oct 20, 2010 at 1:38 AM, Andreas Sewe s...@st.informatik.tu-darmstadt.de wrote: Hi Phillip, Does it make sense and will it work to define the scm connection in a parent pom if all my projects follow the same layout in SVN? i.e.,

Re: scm connection in parent pom

2010-10-20 Thread Phillip Hellewell
On Wed, Oct 20, 2010 at 1:51 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: IIRC the appending is controlled by the presence of a / at the end of the URI if the URI ends with a slash then it will not append the module name in children if the URI does not end with a slash then

Mirror of Central in France

2010-10-20 Thread Samuel Langlois
Hello, At Antelink, we love Maven, and we thank the Maven people every day for maintaining the Central repository! So we thought we could give back a little to the community. We just set up a mirror of the Central, based in France, so that European Maven users enjoy a better bandwidth. We

Re: scm connection in parent pom

2010-10-20 Thread Phillip Hellewell
On Wed, Oct 20, 2010 at 1:58 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: (snip) I have a bash script to update the details on a branch, etc... I am looking into the possibility of adding this into the maven-scm-plugin, e.g. mvn scm:infer -Dprovider=svn of course given that this

Maven-site-plugin 3: how to properly add to inherited reportPlugins?

2010-10-20 Thread Andreas Sewe
Hi all, I am currently having trouble configuring the maven-site-plugin 3.0-beta-2. The setting is slightly more complex than the one described in the wiki https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html: A parent POM configures a some reportPlugins and a child POM wants to add

Re: Maven-site-plugin 3: how to properly add to inherited reportPlugins?

2010-10-20 Thread Olivier Lamy
Hi, There is an issue regarding this which is recorded here http://jira.codehaus.org/browse/MSITE-484. Btw properly handling this inheritance case will probably need some hack in maven core. 2010/10/20 Andreas Sewe s...@st.informatik.tu-darmstadt.de: Hi all, I am currently having trouble

Re: Possible bug in Subversion SCM or release plugin

2010-10-20 Thread Phillip Hellewell
On Wed, Oct 20, 2010 at 12:29 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: On 19 October 2010 23:43, Phillip Hellewell ssh...@gmail.com wrote: Also, what about my idea that the release plugin ought to just use the working copy URL when an scm connection is not defined?  Seems

Re: Possible bug in Subversion SCM or release plugin

2010-10-20 Thread Phillip Hellewell
On Tue, Oct 19, 2010 at 4:43 PM, Phillip Hellewell ssh...@gmail.com wrote: But anyway, should I still submit a bug?  I don't know if it is the release plugin or SCM plugin at fault though... FYI, I created this bug: http://jira.codehaus.org/browse/MRELEASE-609 Phillip

Re: Possible bug in Subversion SCM or release plugin

2010-10-20 Thread Justin Edelson
On Oct 20, 2010, at 12:57 PM, Phillip Hellewell ssh...@gmail.com wrote: On Wed, Oct 20, 2010 at 12:29 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: On 19 October 2010 23:43, Phillip Hellewell ssh...@gmail.com wrote: Also, what about my idea that the release plugin ought to

Re: Possible bug in Subversion SCM or release plugin

2010-10-20 Thread Phillip Hellewell
On Wed, Oct 20, 2010 at 11:16 AM, Justin Edelson justinedel...@gmail.com wrote: On Oct 20, 2010, at 12:57 PM, Phillip Hellewell ssh...@gmail.com wrote: So how about a solution where you still have to tell it the SCM just not the URL, e.g., if the connection could be set to like scm:svn:infer.

My first plugin to build dependencies from source

2010-10-20 Thread Phillip Hellewell
Hi all, Before I go down the road of writing my own plugin, can anyone tell me if there already exists a plugin that provides this functionality? 1. Resolve all dependencies using functionality similar to dependency:tree. - (only fetch poms to local repo, not the jar/zip/etc package) 2.

Re: Property for the location of the local repository

2010-10-20 Thread Hilco Wijbenga
On 11 October 2010 21:48, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: I could have sworn I've used ${localRepository} before but it doesn't seem to work. I've also tried ${settings.localRepository} and ${maven.repo.local}. How do I refer to the location of the local repository in a portable

Maven SCM plugin and CCRC

2010-10-20 Thread Lucas, Jeffrey A.
I'm having an issue getting the Maven SCM Plugin configured to use CCRC (ClearCase Remote Client v7.1.1). 1. What should the clearcase-settings.xml for Clear Case and location 2. What are the SCM setting SCM settings /SCM 3. Is there anything in the POM that is needed for

Re: Maven SCM plugin and CCRC

2010-10-20 Thread Meeusen, Christopher W.
I tried to get this to work but have up after getting no where for a few days. Chris On Oct 20, 2010, at 12:59, Lucas, Jeffrey A. jeffrey.lu...@anthem.com wrote: I'm having an issue getting the Maven SCM Plugin configured to use CCRC (ClearCase Remote Client v7.1.1). 1. What

Re: Maven SCM plugin and CCRC

2010-10-20 Thread Vincent Latombe
Hello, as far as I know, there is no scm implementation of CCRC for Maven. Clearcase Base/UCM are partially supported, it is far from perfect to be able to do the checkout/release roundtrip. I am guessing you read the documentation for the Clearcase (heavy client) implementation Cheers, Vincent

Re: maven3 profile activation by absense of property

2010-10-20 Thread Kees van Dieren
Joachim, Profiles can be activated by a property not having a certain value. This includes the absence of a property. For you the profile would become: profiles profile iddocumentation/id activation property nameskipDocs/name

Re: Invoking a plugin programmatically using maven 3 and scala

2010-10-20 Thread Andreas Gies
Hello, I am still banging my head on this problem, though I got a bit farther. I found a link via Google pointing to the maven site plugin and there to the DefaultMavenReportExecutor. I have tried to mimick the behavior in my special case and for testing I want to invoke the maven dependency

Re: Invoking a plugin programmatically using maven 3 and scala

2010-10-20 Thread Andreas Gies
Hello, I forgot to mention that the output from the scala plugin is embedded in the build.log produced by the mavan invoker plugin. Best regards Andreas Am 10/20/10 8:22 PM, schrieb Andreas Gies: Hello, I am still banging my head on this problem, though I got a bit farther. I found a

Maven 3.0 and m-war-p 2.1: Duplicate entries in generated WAR?

2010-10-20 Thread Thorsten Heit
Hi, I have a multi-module project structure that basically produces an EAR and some other artifacts: root +- pom.xml | +- module-common | + pom.xml | \ ... | +- module-war | + pom.xml | \ ... | +- module-ear | + pom.xml | \ ... | ... The project fully uses standard Maven directory

Re: My first plugin to build dependencies from source

2010-10-20 Thread Anders Hammar
2. Avoid downloading binary packages (for remote employees it may be faster to build the code than to download binaries). I very much doubt that! Performing a build will take time to compile and test (don't forget the unit tests) as well as downloading test dependencies, which aren't

Re: Maven SCM plugin and CCRC

2010-10-20 Thread Anders Hammar
Some time ago I investigated this and found some mail from an IBM guy looking into this. Apparently they had some support customer asking. However, not too surprisingly he didn't report back... /Anders On Wed, Oct 20, 2010 at 20:04, Vincent Latombe vincent.lato...@gmail.comwrote: Hello, as

Re: Maven 3.0 and m-war-p 2.1: Duplicate entries in generated WAR?

2010-10-20 Thread Stephane Nicoll
You probably got affected by http://jira.codehaus.org/browse/MWAR-235 S. On Wed, Oct 20, 2010 at 8:45 PM, Thorsten Heit th...@gmx.de wrote: Hi, I have a multi-module project structure that basically produces an EAR and some other artifacts: root +- pom.xml | +- module-common | +

Re: [ANN] Maven Release Plugin 2.1 Released

2010-10-20 Thread Lars Fischer
[MRELEASE-128] - SCM properties being replaced during release:perform This is still not working for me: http://jira.codehaus.org/browse/MRELEASE-128 Regards, Lars

RE: Maven-site-plugin 3: how to properly add to inherited reportPlugins?

2010-10-20 Thread Martin Gainty
Andreas- can you provide the site.xml your plugin is using and a rough layout of the report you desire also could you explain which report-plugins you will be implementing ? Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist

Re: maven rpm plugin

2010-10-20 Thread Wayne Fay
Does maven RPM plugin support configuration via existing spec file? What kind of configuration do you want to extract and use in your existing spec file? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For

Maven wants to get plugin versions that don't exist

2010-10-20 Thread Phillip Hellewell
I'm not sure what I did to screw things up, but lately it is failing to download plugins because it is trying to use a version that doesn't exist. I'm using Nexus as a mirror of everything. E.g., I just tried to do a mvn archetype:create to create a new plugin and it gave an error because it's

Re: My first plugin to build dependencies from source

2010-10-20 Thread Phillip Hellewell
On Wed, Oct 20, 2010 at 12:46 PM, Anders Hammar and...@hammar.net wrote: 2. Avoid downloading binary packages (for remote employees it may be faster to build the code than to download binaries). I very much doubt that! Performing a build will take time to compile and test (don't forget the

Re: maven rpm plugin

2010-10-20 Thread CassUser CassUser
Hi Wayne, It could be anything standard in the spec file (%build, %install etc.). The problem is a third party is providing the spec file for our use. Instead of having to reverse engineer it, we would like to simply point the plugin to it's location and build the RPM based on those parameters.

Plugin versions

2010-10-20 Thread Phillip Hellewell
Hi all, I'm going to add a pluginManagement section to my parent pom, but I want to understand these things so I can do it right. 1. How does maven decide what version to get if it's not defined in the super pom? 2. How do I find out what version of all the plugins my pom is using

RE: Plugin versions

2010-10-20 Thread Yanko, Curtis
Try the dependency plugin dependency:resolve-plugins http://maven.apache.org/plugins/maven-dependency-plugin/resolve-plugins- mojo.html Curt Yanko | Continuous Integration Services | UnitedHealth Group IT Making IT Happen, one build at a time -Original

Re: maven rpm plugin

2010-10-20 Thread Wayne Fay
It could be anything standard in the spec file (%build, %install etc.).  The problem is a third party is providing the spec file for our use.  Instead of having to reverse engineer it, we would like to simply point the plugin to it's location and build the RPM based on those parameters.  Is

Re: Plugin versions

2010-10-20 Thread Phillip Hellewell
On Wed, Oct 20, 2010 at 4:11 PM, Yanko, Curtis curt_ya...@uhc.com wrote: Try the dependency plugin dependency:resolve-plugins Thanks. I also found versions:display-plugin-updates, which was the main one I was trying to remember. I should specify versions for all plugins I'm using in my

Re: Maven wants to get plugin versions that don't exist

2010-10-20 Thread Phillip Hellewell
On Wed, Oct 20, 2010 at 3:22 PM, Phillip Hellewell ssh...@gmail.com wrote: I'm not sure what I did to screw things up, but lately it is failing to download plugins because it is trying to use a version that doesn't exist.  I'm using Nexus as a mirror of everything. E.g., I just tried to do a

A plugin that doesn't require a pom.xml

2010-10-20 Thread Phillip Hellewell
How do I create a plugin that doesn't require a pom.xml? Even the hello world described on this page requires it: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html You get this error if you try to run it where no pom.xml is present. [INFO] Cannot execute mojo: sayhi. It

Re: A plugin that doesn't require a pom.xml

2010-10-20 Thread Nick Stolwijk
I've taken a look at the source of the help:describe goal and it seems you need RequireProject. http://svn.apache.org/viewvc/maven/plugins/tags/maven-help-plugin-2.1.1/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java?view=markup With regards, Nick Stolwijk ~Java Developer~ IPROFS

Shared Assembly With Additional Files

2010-10-20 Thread Mike Lenner
I'd like my shared assembly to be used to import additional files I'd like to include in my final assembly. Something like: shared-assembly/pom.xml shared-assembly/src/main/resources/assemblies/my-assembly.xml shared-assembly/src/main/resources/common/README my-assembly.xml: ... fileSet

Re: Invoking a plugin programmatically using maven 3 and scala

2010-10-20 Thread Andreas Gies
Hello, another update on this. From studying the source code I was under the impression that mojoDescriptor.getConfiguration would give me the default configuration, but it is mojoDescriptor.getMojoConfiguration. A debug session has shown, that the dependency plugin actually executes, but

Re: Maven wants to get plugin versions that don't exist

2010-10-20 Thread Wayne Fay
having problems :( How did a version 2.0-alpha-6-SNAPSHOT for the maven-archetype-plugin get into Nexus and how do I get rid of it? Another one is the maven-help-plugin; it wants to use version 2.2-SNAPSHOT which isn't available. There's a Nexus Users list that would be more appropriate for

Re: Maven wants to get plugin versions that don't exist

2010-10-20 Thread Wendy Smoak
On Wed, Oct 20, 2010 at 5:22 PM, Phillip Hellewell ssh...@gmail.com wrote: What did I do that screwed things up?  Is something wrong with Nexus? Do I need to do a sync or something? Usually when Maven is trying to update plugin snapshots, it's because one has gotten into your local repository.

Re: Invoking a plugin programmatically using maven 3 and scala

2010-10-20 Thread Andreas Gies
Hello, a last update for today. I have compared a debug session of mvn dependency:resolve with what happens in my code. It seems, that when calling the plugin from the command line, at the end of the day a class named org.apache.maven.lifecycle.internal.MojoExecutor kind of controlls he

RE: Plugin versions

2010-10-20 Thread Yanko, Curtis
Yeah, a *company* pom even that all Parent POMs load as a parent. I like to nail down everything, to me, it's a build specification and I want it all defined and (self) documented. Curt Yanko | Continuous Integration Services | UnitedHealth Group IT Making IT

Re: Property for the location of the local repository

2010-10-20 Thread Martin Höller
Hi! On Wednesday 20 October 2010 Hilco Wijbenga wrote: On 11 October 2010 21:48, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: I could have sworn I've used ${localRepository} before but it doesn't seem to work. I've also tried ${settings.localRepository} and ${maven.repo.local}. How do I