need a dependency with multiple scopes

2011-10-18 Thread mickael leduque
Hello, I need to have the same dependency with two different scopes : test and provided. The scope mustn't be compile, of course. Now, if I try to repeat the dependency declaration twice with different scope, maven says : [WARNING] Some problems were encountered while building the effective

Re: need a dependency with multiple scopes

2011-10-18 Thread Stephen Connolly
On 18 October 2011 11:20, mickael leduque mickael.leduque.se...@gmail.com wrote: Hello, I need to have the same dependency with two different scopes : test and provided. http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope provided This is

Re: How to build of an eclipse infocenter webapp with Maven

2011-10-18 Thread Stephen Connolly
For anyone else who's interested you can follow along at http://tobarsegais.org http://github/tobar-segais/tobar-segais/ Current status is a very minimal functionality with very hackish back-end... but will display a frameset with the tree of all the bundle .jars dropped into

Re: need a dependency with multiple scopes

2011-10-18 Thread Ryan Connolly
Simply use only provided scope as it will be available to your tests as well. On Oct 18, 2011 6:28 AM, mickael leduque mickael.leduque.se...@gmail.com wrote: Hello, I need to have the same dependency with two different scopes : test and provided. The scope mustn't be compile, of course.

writing a parent pom that does not execute its plugins

2011-10-18 Thread Dirk Olmes
Hi, our Maven (2.2.1) build generates install zips with obfuscated sources from the artifacts within the build. Over the last year we created more and more installer packages this way, using the famous copy/paste approach. I'd like to clean things up so I thought I'd create a parent POM with

Re: Programmatically get maven properties

2011-10-18 Thread deusaquilus
Here's what I'm doing: File pom = new File(pom.xml); DefaultProjectBuildingRequest request = new DefaultProjectBuildingRequest(); DefaultProjectBuilder builder = new DefaultProjectBuilder(); String mavenHome = System.getenv(M2_HOME); ArtifactRepository localRepository = new

Re: writing a parent pom that does not execute its plugins

2011-10-18 Thread Anders Hammar
I'm thinking that a custom packing type is what you want to create. Then use that as the packaging in those Maven projects where you create the install zips, and it will bind the appropriate plugins to the lifecycle. Not sure though how this would work with your obfuscated sources jars though as

Re: Programmatically get maven properties

2011-10-18 Thread Barrie Treloar
On Tue, Oct 18, 2011 at 10:02 PM, deusaquilus deusaqui...@gmail.com wrote: Here's what I'm doing: File pom = new File(pom.xml); DefaultProjectBuildingRequest request = new DefaultProjectBuildingRequest(); DefaultProjectBuilder builder = new DefaultProjectBuilder(); String mavenHome =

Re: writing a parent pom that does not execute its plugins

2011-10-18 Thread Tomasz Pik
On Tue, Oct 18, 2011 at 1:28 PM, Dirk Olmes d...@xanthippe.ping.de wrote: Hi, our Maven (2.2.1) build generates install zips with obfuscated sources from the artifacts within the build. Over the last year we created more and more installer packages this way, using the famous copy/paste

Re: Programmatically get maven properties

2011-10-18 Thread Jörg Schaible
deusaquilus wrote: Here's what I'm doing: File pom = new File(pom.xml); DefaultProjectBuildingRequest request = new DefaultProjectBuildingRequest(); DefaultProjectBuilder builder = new DefaultProjectBuilder(); String mavenHome = System.getenv(M2_HOME); ArtifactRepository

Re: writing a parent pom that does not execute its plugins

2011-10-18 Thread Anders Hammar
Today, activating a profile defined in a parent from the child is not possible. /Anders On Tue, Oct 18, 2011 at 14:35, Tomasz Pik tom...@gmail.com wrote: On Tue, Oct 18, 2011 at 1:28 PM, Dirk Olmes d...@xanthippe.ping.de wrote: Hi, our Maven (2.2.1) build generates install zips with

Re: Uncompiled classes resulting in COMPILATION ERROR : cannot find symbol

2011-10-18 Thread Guillaume Polet
Ok more info on this issue which is driving me nuts. I reset everything this week-end and I still get the error: https://test.openflexo.com/jenkins/job/openflexo/8/console Now, weirdest thing is that I have another build which is the nightly build of the same project and the build succeeds:

Re: writing a parent pom that does not execute its plugins

2011-10-18 Thread Jörg Schaible
Hi Anders, Anders Hammar wrote: Today, activating a profile defined in a parent from the child is not possible. this is not entirely true: = % $ find . . ./child1 ./child1/pom.xml ./child2 ./child2/pom.xml ./child2/v.xml ./pom.xml = %

[ANN] Mojo's Cassandra Maven Plugin 1.0.0-1 released

2011-10-18 Thread Stephen Connolly
The Mojo team is pleased to announce the release of Mojo's Cassandra Maven Plugin version 1.0.0-1. Mojo's Cassandra Plugin is used when you want to install and control a test instance of Apache Cassandra from within your Apache Maven build. The Cassandra Plugin has the following goals. *

Re: Findbugs with external configuration

2011-10-18 Thread Fabricio Lemos
Was my question confusing or isn´t anyone using findbugs with maven-site 3 and external file configuration? On 13/10/2011 16:25, Fabricio Lemos wrote: Can anyone help me configure findbugs in the site reporting? I use an external file to exclude some checks, so I used this configuration:

Java version compatibility for maven-dependency-plugin2.3

2011-10-18 Thread Nazia Ghawte
Hi, Could anyone please tell me the if the maven-dependency-plugin(version 2.3) is incompatible with Java1.4? whenever i build my project with Java1.4 it fails,where as when built with 1.6 it doesnt. Thanks -- View this message in context:

Maven property expression for comma-separate list of currently active profiles?

2011-10-18 Thread Matthew Adams
Hi all, What Maven property expression will return me a comma-separated list of the currently active profiles? I've tried variations on ${project.build.profiles.active}, but I keep getting null. Here's how I'm trying to use it with Spring 3.1.0.RC1 bean profiles: ... plugin

Re: Java version compatibility for maven-dependency-plugin2.3

2011-10-18 Thread Stephen Connolly
m-d-p 2.2 2.3 Requires JRE 1.5 m-d-p 2.1 is the last version to work with 1.4 On 18 October 2011 15:17, Nazia Ghawte ngha...@premierfarnell.com wrote: Hi, Could anyone please tell me the if the maven-dependency-plugin(version 2.3) is incompatible with Java1.4? whenever i build my project

Re: Java version compatibility for maven-dependency-plugin2.3

2011-10-18 Thread Nazia Ghawte
Thanks Stephen..that was helpful. -- View this message in context: http://maven-users.828.n2.nabble.com/Java-version-compatibility-for-maven-dependency-plugin2-3-tp6904764p6905001.html Sent from the maven users mailing list archive at Nabble.com.

EAR as WAR dependency?

2011-10-18 Thread Manos Batsis
Hello, I've got an EAR application for which I'm building a specific extension as an additional WAR. My question is, what is the best way to do this without the original EAR's POM knowing anything about the extra WAR? Any examples would be appreciated. Many thanks, Manos

Re: EAR as WAR dependency?

2011-10-18 Thread Brian Topping
How would you solve this problem without Maven? What kind of EAR could load a WAR it doesn't know about? I don't doubt that this is possible with some magic, but that magic is separate from Maven. Once you have the magic well-defined, Maven can help you build it and package it. Brian

Re: EAR as WAR dependency?

2011-10-18 Thread Stephen Connolly
Sounds like you want to unpack the EAR, add the WAR and repack it again... that would be a 2nd EAR module that depends on the first EAR and the WAR... might need some massaging, or perhaps a m-d-p:unpack-dependencies On 18 October 2011 16:59, Brian Topping topp...@codehaus.org wrote: How would

Re: EAR as WAR dependency?

2011-10-18 Thread Manos Batsis
Hello Brian, Thanks for the reply. I was thinking about using the unpack goal of maven-dependency-plugin, then change the target dir for the WAR to place it in there along with some enhanced EAR descriptors. Just looking for better ideas and/or examples to save time. Manos On 10/18/2011

RE: Findbugs with external configuration

2011-10-18 Thread Robert Scholte
The findbugs-maven-plugin is part of Codehaus Mojo[1] Try their mailing list[2] -Robert [1] http://mojo.codehaus.org/ [2] http://mojo.codehaus.org/mail-lists.html Date: Tue, 18 Oct 2011 10:52:56 -0300 From: fabricio.le...@sefaz.ce.gov.br To: users@maven.apache.org Subject: Re:

Re: mvn install:help and mvn help:describe for install plugin are at odds ...

2011-10-18 Thread hendrul
Repository metadata says the lastest version is 2.3.1, why maven resolves this plugin prefix (install) version to 2.2. I dont want to use the plugin registry mecanism, I want to know why maven is behaving like this??? -- View this message in context:

Cannot get project dependencies when MavenProjectBuilder is used

2011-10-18 Thread cowwoc
Hi, I'm attempting to implement http://jira.codehaus.org/browse/MDEP-322 under Maven 2.x (I believe the plugin requires Maven 2.x compatibility, correct me if I'm wrong). I've successfully looked up the current project's transitive dependencies using

how to pack biz class into war ?

2011-10-18 Thread 吴桐
Hi all, I have a question about using maven-war-plugin.I have a web project which can be packed as a war file with all biz class in artifactId/WEB-INF/classes/. Question is, is it possible to pack all biz classes into one or many jar files ( like companyBla-moduleA.jar,

Re: how to pack biz class into war ?

2011-10-18 Thread Barrie Treloar
2011/10/19 吴桐 ab006343wut...@ab-insurance.com: Hi all, I have a question about using maven-war-plugin.I have a web project which can be packed as a war file with all biz class in artifactId/WEB-INF/classes/. Question is, is it possible to pack all biz classes into one or many jar