Re: maven 3 inheritance

2009-12-09 Thread Stephen Connolly
AFAIK using ${project.versopm} is not the preferred way. The release plugin will update all those versions for you so that you don't have to use ${project.version}. If you use ${project.version} then releases will be slower AFAIK due to some strange resolving issue! The use of properties for

Re: Maven Plugin to detect duplicate class files in a e.g. WAR

2009-12-09 Thread Jörg Schaible
Hi Brian, Brian Fox wrote at Mittwoch, 9. Dezember 2009 04:44: No but when projects move group or artifactIds, they are supposed to create a pom with relocation info in it, then Maven is able to mediate the conflicts. Apart from relocation, Mirko's idea is quite interesting in case some

Re: Modifying classpath

2009-12-09 Thread Stephen Connolly
http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/ 2009/12/9 Jochen Mader pflanzenmoer...@gmail.com I am working on a little prove of concept for an OSGi build. (I know all the other plugins, Tycho is Maven 3 and therefore not usable in our environment and we want to avoid the meta

Re: disable strict host checking with ssh wagon

2009-12-09 Thread Brett Porter
Yep, similar to how it is done for HTTP: http://brettporter.wordpress.com/2009/06/16/configuring-maven-http-connections/ I'm not sure how well such a configuration option will survive into M3, etc., though - it's relying on the way Plexus is injecting the Wagon. - Brett On 09/12/2009, at

Re: Modifying classpath

2009-12-09 Thread Stephen Connolly
Not that I have used it... just skimmed a book on OSGi and it was using this plugin to do all the OSGi heavy lifting... skimming their website, they may not be doing everything the True Maven Way... but they are probably not a million miles off -Stephen 2009/12/9 Stephen Connolly

Re: maven 3 inheritance

2009-12-09 Thread Erlend Hamnaberg
I know it works for maven 2, however it seems broken for maven 3. I am going to test this a bit more, and report back. This might be a symptom of something else. I have also made expressions work for parent versions using a modified install deploy plugin. I was hoping this would not be necessary

Re: Maven Plugin to detect duplicate class files in a e.g. WAR

2009-12-09 Thread Stephen Connolly
Should be possible to add a mojo to the maven-dependency-plugin to scan for duplicate classes in scope XYZ... that would be the major indicator. Of course you'd need include/excludes... and ignores... and failure mode control probably want a report as well... can you file a JIRA for it... if

Re: maven 3 inheritance

2009-12-09 Thread Frederic Camblor
+1 with Stephen We faced the problem with release plugin and, since then, are hard coding version in the artefacts. Frederic On Wed, Dec 9, 2009 at 9:03 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: AFAIK using ${project.versopm} is not the preferred way. The release plugin

Re: maven 3 inheritance

2009-12-09 Thread Stephen Connolly
Using properties to specify dependency versions (for dependencies external to the reactor) works fine with maven 3.0-alpha-5. I cannot comment on using ${project.version} as it's bad practice (AFAIK, although the release plugin has some code to make it work, IIRC the code takes longer to run a

Re: Modifying classpath

2009-12-09 Thread Jochen Mader
Thanks for the answer Stephen but that's exactly the answer I wanted to avoid. I already tried pax construct and it's a good tool. As I stated in my email we want to do a proof of concept. The concept is supposed to be to get all dependencies from an OBR and to ensure that only OSGi versions of

Mixing Scala and Java in the same project

2009-12-09 Thread Pilgrim, Peter
Hi Has anyone got any guidelines for mixing Scala and Java in the same project? Thanks very much in advance -- Peter Pilgrim | E-Channel Services, Technical Lead, eBusiness Lloyds Banking Group | Wholesale Markets Treasury IT 33 Old Broad Street, London, EC2N 1HZ, UK ' +44

[Maven 2, SCM 1.2] SCM CM/Synergy Provider

2009-12-09 Thread subir.sasikumar
Not sure if this was already posted. I am not recieving any response nor this email. Hi, Incase i want to customise CM/Synergy provider plugin used with Maven SCM plugin, what are the minimum steps i should do? Can any of the developers/users tell me some useful steps OR links/urls to proceed

Re: Mixing Scala and Java in the same project

2009-12-09 Thread Milos Kleint
http://kenai.com/projects/nb-maven-generators/ uses both scala and java code in the same project. It's a netbeans module that can add the scala configuration to your existing projects. Milos On Wed, Dec 9, 2009 at 10:23 AM, Pilgrim, Peter peter.pilg...@lloydsbanking.com wrote: Hi Has

Re: Dashboard plugin

2009-12-09 Thread canerK
Thanks for the info.It is also written in plugin's site but i was still hoping for a one pass solution. dvicente wrote: It's not possible to generate dashboard report in one pass. The problem is that you must generate all others reports to aggregate them. so you must do it in 2

settings.xml and properties

2009-12-09 Thread Erlend Hamnaberg
Is settings.xml read before the POMS? So if I for instance define a property in the POM and i want to trigger a profile in the settings.xml. Can I do that from the POM? Say for instance i have this: pom.snippet properties branchtrunk/branch /properties then I have the settings.xml snippet.

Re: settings.xml and properties

2009-12-09 Thread Erlend Hamnaberg
Never mind. this works. On Wed, Dec 9, 2009 at 12:59 PM, Erlend Hamnaberg ngar...@gmail.com wrote: Is settings.xml read before the POMS? So if I for instance define a property in the POM and i want to trigger a profile in the settings.xml. Can I do that from the POM? Say for instance i

Re: Mixing Scala and Java in the same project

2009-12-09 Thread Lachlan Deck
On 09/12/2009, at 8:23 PM, Pilgrim, Peter wrote: Hi Has anyone got any guidelines for mixing Scala and Java in the same project? This is what I found when looking at the same thing: http://www.scala-tools.org/mvnsites/maven-scala-plugin/usage_java.html Thanks very much in advance with

Creating a jar with manifest only using maven-bundle-plugin

2009-12-09 Thread Lahiru Gunathilake
Hi all, I wanted to create bundle(OSGi jar file) which just have a manifest file only, so when I try to do that I'm getting the following error. [WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0 : Classpath is empty. Private-Package and Export-Package can only expand

RE: Mixing Scala and Java in the same project

2009-12-09 Thread Jeff Jensen
The Sonatype Maven Handbook has a couple of pages on Scala inline POM and running an external script as part of build. It may help start: http://www.sonatype.com/documentation/books#mhandbook -Original Message- From: Pilgrim, Peter [mailto:peter.pilg...@lloydsbanking.com] Sent:

Re: assembly is deprecated. What to use?

2009-12-09 Thread Mark H. Wood
On Wed, Dec 09, 2009 at 07:45:52AM +1100, Brett Randall wrote: Yes, this one: http://jira.codehaus.org/browse/MPH-59 Describe goal says everything is deprecated. Says fixed in 2.1.1. Seems to be broken differently in 2.2: mw...@mhw ~ $ mvn help:describe -Ddetail=true -Dplugin=assembly

RE: Mixing Scala and Java in the same project

2009-12-09 Thread Pilgrim, Peter
Hi Lachlan Thanks very much for this link on the official Scala site. -- Peter Pilgrim | E-Channel Services, Technical Lead, eBusiness Lloyds Banking Group | Wholesale Markets Treasury IT 33 Old Broad Street, London, EC2N 1HZ, UK ' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901 +

Re: assembly is deprecated. What to use?

2009-12-09 Thread Jörg Schaible
Hi Mark, Mark H. Wood wrote at Mittwoch, 9. Dezember 2009 15:09: On Wed, Dec 09, 2009 at 07:45:52AM +1100, Brett Randall wrote: Yes, this one: http://jira.codehaus.org/browse/MPH-59 Describe goal says everything is deprecated. Says fixed in 2.1.1. Seems to be broken differently in 2.2:

how to easily release a version and change to new version?

2009-12-09 Thread NGUYEN Cong Kinh
Hello everybody, I have a problem with automatically deploying modules in Maven. I suppose that I have a Maven's hierachy as the following: - trunk + pom.xml +-- A + pom.xml +-- A1 + pom.xml +-- A11 ... +-- A12 ... +-- A2 +-- A3 +--

Re: how to easily release a version and change to new version?

2009-12-09 Thread Laird Nelson
On Wed, Dec 9, 2009 at 11:31 AM, NGUYEN Cong Kinh cong_kinh.ngu...@it-sudparis.eu wrote: Now, the versions of the modules is 0.1.8-SNAPSHOT. I want to release 0.1.8 and start the 0.1.9-SNAPSHOT version. Is there any way to only do something in the trunk/pom.xml, I can then easily release

Re: how to easily release a version and change to new version?

2009-12-09 Thread Dan Tran
this will get you started mvn -B release:prepare release:perform after that tailor it to your desired -Dan On Wed, Dec 9, 2009 at 8:48 AM, Laird Nelson ljnel...@gmail.com wrote: On Wed, Dec 9, 2009 at 11:31 AM, NGUYEN Cong Kinh cong_kinh.ngu...@it-sudparis.eu wrote: Now, the versions of

Re: Why isn't Surefire more easier and more sensible to use?

2009-12-09 Thread Evgeny Goldin
I'm also looking for a way to get a surefire summary (like http://old.nabble.com/file/p26713465/1.txt this one ) to be created in a file, rather than in console only. I see it's not available today, am I right ? - -- Best regards, Evgeny http://evgeny-goldin.com/ -- View this

Re: Creating a jar with manifest only using maven-bundle-plugin

2009-12-09 Thread Wayne Fay
               groupIdorg.apache.felix/groupId                artifactIdmaven-bundle-plugin/artifactId You should probably should talk to the Felix folks who created this plugin. Wayne - To unsubscribe, e-mail:

If there any way to execute plugin conditionally?

2009-12-09 Thread Dmitry Skavish
Hi, I need to run dependency-copy plugin only when some environment variable set. Is it possible? I could not find anything even remotely related to that. Thanks! -- Dmitry Skavish

Re: If there any way to execute plugin conditionally?

2009-12-09 Thread Adam Leggett (UPCO)
Did you look at profiles for this - http://maven.apache.org/guides/introduction/introduction-to-profiles.html ? They can be activated with an env var. Thanks Adam On Wed, 2009-12-09 at 12:24 -0500, Dmitry Skavish wrote: Hi, I need to run dependency-copy plugin only when some environment

Configuring the Site Descriptor

2009-12-09 Thread strapa72
Hi all I have changed the site descriptor of a project to generate the english version of the site as well. In the POM.xml I include the en locale as follow: localespt_BR,en/locales Then I created the site_en.xml file setting the publishdate variable as follow: publishDate position=left

Re: If there any way to execute plugin conditionally?

2009-12-09 Thread Dmitry Skavish
Thanks a lot! Works perfectly! That's exactly what I was looking for. On Wed, Dec 9, 2009 at 12:28 PM, Adam Leggett (UPCO) adam.legg...@upco.co.uk wrote: Did you look at profiles for this - http://maven.apache.org/guides/introduction/introduction-to-profiles.html? They can be activated with

Super pom / enforcer issues?

2009-12-09 Thread Nord, James
Hi all, I'm having a really strange error in Maven 2.2.1 and the enforcer plugin. Basically it appears as though the super pom is missing version definitions for the following even though they should be present according to the web documentation (and performing a help:effective-pom shows them

Can't change packageName

2009-12-09 Thread nklein
I'm reading the Maven: Definitive Guide book to set up a project. In this example from the book, I would like to change the packageName setting to XXX as seen below: mvn archetype:generate \ -DgroupId=org.sonatype.mavenbook \ -DartifactId=quickstart \ -Dversion=1.0-SNAPSHOT \

Re: Super pom / enforcer issues?

2009-12-09 Thread Hilco Wijbenga
2009/12/9 Nord, James jn...@nds.com: I'm having a really strange error in Maven 2.2.1 and the enforcer plugin. Basically it appears as though the super pom is missing version definitions for the following even though they should be present according to the web documentation (and performing

resin plugin: Required goal not found: resin:upload-war

2009-12-09 Thread laredotornado
Hi, I'm using Maven 2.2 with Resin 3.0.19. I'm trying to use the resin plugin to deploy my app, using the instructions here -- http://wiki.caucho.com/Maven2. However, I repeatedly get this error ... [INFO] Required goal not found: resin:upload-war in com.caucho:resin-maven-plugin:4.0-SNAPSHOT

Re: Configuring the Site Descriptor

2009-12-09 Thread Dennis Lundberg
It's difficult to answer this without a sample project. Open an issue in JIRA and attach a sample project that we can test. strapa72 wrote: Hi all I have changed the site descriptor of a project to generate the english version of the site as well. In the POM.xml I include the en locale as

Re: resin plugin: Required goal not found: resin:upload-war

2009-12-09 Thread Wayne Fay
I'm using Maven 2.2 with Resin 3.0.19.  I'm trying to use the resin plugin to deploy my app, using the instructions here -- http://wiki.caucho.com/Maven2.  However, I repeatedly get this error ... [INFO] Required goal not found: resin:upload-war in com.caucho:resin-maven-plugin:4.0-SNAPSHOT

Generate + include list of resources included in jar

2009-12-09 Thread cemerick
I have a project that has a number of resources under src/main/resources. The associated codebase needs to know what resources are available in order to load them at runtime (new resources are added all the time, so the list cannot be static). I've got an ant target (from an older project) that

Pattern to setup common organization specific data in single pom?

2009-12-09 Thread Oskar Carlstedt
Hello? I wonder if there is any pattern in Maven defining how to setup common organization specific data. What I mean is that I only want to define my distribution management in one place, I only want to setup specific deploy paths in one place etc., etc. One way is to define a lot of