Re: PMD'S or findbug's report

2011-02-24 Thread jy hu
Hi Can I think that "pmd-jdk14" is to config the JDK's version? if yes, Unfortunately, there is no any info in the pmd report with JDK1.4. It doesn't work cos Jdk1.6 is useful to run my project, so I defined the JDK as shown . ... ${compileSource} ... ...

Re: reading maven user settings xml in eclipse

2011-02-24 Thread Barrie Treloar
On Fri, Feb 25, 2011 at 6:56 AM, Qian, Yi wrote: > Hello, list > > We are using archiva as our local maven repository and by following the > instructions on archiva web site, I set up archiva authentication against > our LDAP server. > > We installed IAM plugin to enable maven in eclipse. But, in

Re: Comparing dependency trees

2011-02-24 Thread Wayne Fay
> Is there a way of comparing the dependency tree of 2 version of the same POM > and printing out the differences? Other than something like this (below), I don't know of any way to do this. mvn dependency:tree > 1.txt mvn dependency:tree -f pom-old.xml > 2.txt diff 1.txt 2.txt Wayne --

Re: Archetype with a property file

2011-02-24 Thread Hervé BOUTEMY
IIUC, you want to use an external file instead of command-line java properties when creating a project from an archetype, the same way it is done for creating an archetype from a project Sorry, this feature is not here yet, but could be added: please create a Jira issue. Note that this new fea

Re: PMD'S or findbug's report

2011-02-24 Thread Wayne Fay
> Am I correct based on the above version No. which look like different? if > not, could you pls tell me how to rectify? thanks! http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-pmd-plugin/2.5/maven-pmd-plugin-2.5.pom tells us that m-pmd-p version 2.5 uses pmd pmd-jdk14 4.2.5

Re: PMD'S or findbug's report

2011-02-24 Thread jy hu
Hi, Let me add the configuration of Pmd/Findbugs in maven: org.apache.maven.plugins maven-pmd-plugin 2.5 __ org.codehaus.mojo findbugs-maven-plugin 2.3.1 Also I install the pmd/findbugs pulg-in via the Help> Install new software in Eclipse. PMD: http://pmd.sf.net/ecl

Comparing dependency trees

2011-02-24 Thread Paul Grove
Is there a way of comparing the dependency tree of 2 version of the same POM and printing out the differences?

[PLEASE TEST] Apache Maven 3.0.3-RC1

2011-02-24 Thread Benjamin Bentmann
Hi, we're aiming at a bugfix release of Maven 3 in the next week and following tradition we invite interested users in taking the RC for a test drive in order to detect and fix potential regressions since version 3.0.2 before the actual release of 3.0.3. For the duration of the RC testing, sourc

Re: Executing ant run after a plugin

2011-02-24 Thread Baptiste MATHUS
Yup, had the same problem using git-svn. It's already fixed: http://jira.codehaus.org/browse/MOJO-1539 I released an internal version while waiting for the official release. Cheers Baptiste 2011/2/24 Rui Vilão > Hi, > > Thanks for the reply. > > The whole team is not using SVN to version the co

RE: PMD'S or findbug's report

2011-02-24 Thread Collins, Russell
As far as Findbugs goes, also make sure you are using the same thresholds (analysis effort) and the same bugs are included/excluded in both places. Russell Collins Sr. Software Engineer CoreLogic Spatial Solutions "Do or do not, there is no try." - Yoda -Original Message- From: bmat...

reading maven user settings xml in eclipse

2011-02-24 Thread Qian, Yi
Hello, list We are using archiva as our local maven repository and by following the instructions on archiva web site, I set up archiva authentication against our LDAP server. We installed IAM plugin to enable maven in eclipse. But, in order to let maven to use archiva, we have to include setti

[ANN] Maven Filtering 1.0 Released

2011-02-24 Thread Dennis Lundberg
The Maven team is pleased to announce the release of the Maven Filtering, version 1.0 These Plexus components have been built from the filtering process/code in Maven Resources Plugin. The goal is to provide a shared component for all plugins that needs to filter resources. http://maven.apache.or

Re: Release plugin

2011-02-24 Thread Marcin Kuthan
Hi If you need different version for API part it should be set up as separate project. In the API module you probably don't need inherit from myproject-parent. aggregate \_myproject-api \_myproject-impl \_myproject-subsystem1 \_myproject-subsystem2 \_myproject-parent You can release

Re: Executing ant run after a plugin

2011-02-24 Thread Rui Vilão
Hi, Thanks for the reply. The whole team is not using SVN to version the code. My case, I'm using git. So every time I run the install goal that builds the whole project, it fails since I have an SVN repository in the SCM tag. So, what I want is to run the build number process manually or at leas

Re: Release plugin

2011-02-24 Thread Hilco Wijbenga
On 24 February 2011 10:51, zoe slattery wrote: > I need a bit of advice with the maven release plugin. I have a multi-module > project, like this: > > myproject > \_myproject-parent > \_myproject-api (version 1.0.1-SNAPSHOT) > \_myproject-impl (version 0.5-SNAPSHOT) > > The reactor pom is in 'mypr

Re: recursive release

2011-02-24 Thread Baptiste MATHUS
No. But as long as you know the versions to use, this is something that would easily achieved using a dedicated jenkins job. This job would simply execute releases in the needed order. Cheers Le 24 févr. 2011 16:34, "Phillip Hellewell" a écrit : > Apologies if this has been asked before, but is

Re: Executing ant run after a plugin

2011-02-24 Thread Baptiste MATHUS
Hi, Imo, running this goal from the command line is nonsense. This will create a property that's designed to be typically used inside other parts of the pom. What are you trying to do? BTW, if you run this goal from CLI, why don't you just add the next goal to be run on the same command line? Le 2

Re: Creating a repository

2011-02-24 Thread Wendy Smoak
On Thu, Feb 24, 2011 at 11:09 AM, Mark wrote: > I'm looking at Archiva and I was wondering where do I configure access to > download/publish maven artifacts. I would prefer the user of SSH keys over > username/passwords. Would this configuration be at the Archiva level, or > would it be at the Mav

Re: Creating a repository

2011-02-24 Thread Mark
Thanks for the replies. I'm looking at Archiva and I was wondering where do I configure access to download/publish maven artifacts. I would prefer the user of SSH keys over username/passwords. Would this configuration be at the Archiva level, or would it be at the Maven level? Thanks again

recursive release

2011-02-24 Thread Phillip Hellewell
Apologies if this has been asked before, but is there a plugin that builds upon the release plugin, but that will recursively checkout and release all the snapshot dependencies? Thanks, Phillip - To unsubscribe, e-mail: users-uns

Executing ant run after a plugin

2011-02-24 Thread Rui Vilão
Hi, I'm using the buildnumber plugin and I want to execute a given antrun goal ONLY when I explicitly call that plugin from the console. So, imagine that I execute mvn buildnumber:create and in the pom I do something like: maven-antrun-plugin WHAT DO I PUT HERE

Re: Integrate Maven Plugin Code (Mojo's) into Application

2011-02-24 Thread Karl Heinz Marbaise
Hi, now i have found a small code snippet which references the Maven Embedder but i don't want to execute the goals of a Maven Plugin http://codehaus.org/~jvanzyl/maven2/guides/mini/guide-embedding-m2.html Are there any other resources about the Maven Embedder ? Kind regards Karl Heinz Marbai

Re: Release plugin

2011-02-24 Thread zoe slattery
Hi Karl - thanks for this, but I really _want_ different versions of the bundles, that's the problem. I'd like to be able to follow OSGi semantic versioning for bundles, that means that the versions will necessarily be different for sub-modules. I understand that the alternative is to release

Re: Release plugin

2011-02-24 Thread Karl Heinz Marbaise
Hi, the problem i oberserve is that you have different versions in your components. A usual multimodule build contains only a single version number at root. myproject \_myproject-parent (version 1.0.1-SNAPSHOT) \_myproject-api \_myproject-impl All other modules have only a reference to thei

Release plugin

2011-02-24 Thread zoe slattery
Hi I need a bit of advice with the maven release plugin. I have a multi-module project, like this: myproject \_myproject-parent \_myproject-api (version 1.0.1-SNAPSHOT) \_myproject-impl (version 0.5-SNAPSHOT) The reactor pom is in 'myproject'. I'm developing both myproject-api and myproject-

Re: Mirrors

2011-02-24 Thread Marc Rohlfs
> Partially true. For my own repositories, this will work. However, > Maven also checks the repositories defined in all dependencies and > those I have no influence over. I normally define a mirror that also covers those repositories (using a wild card and/or a thirdparty mirror definition like t

Archetype with a property file

2011-02-24 Thread Pankaj
Hi, Can we use archetype:create with a property file rather than using archetype:create-from-project. My archetype.properties file will have below entry - DgroupId=com.sample DartifactId=sampleproject DarchetypeGroupId=com.sample.archetype DarchetypeArtifactId=samplearchtype DarchetypeVersion=

Re: How to print all java compiler output as it happens?

2011-02-24 Thread Gabriele Kahlout
Posted here too: http://stackoverflow.com/questions/5102176/how-to-print-all-java-compiler-output-as-it-happens On Thu, Feb 24, 2011 at 9:28 AM, Gabriele Kahlout wrote: > If I build the project with maven it'll fail but with fewer prints than if > I compiled with javac directly. Debugging with Ne

How to print all java compiler output as it happens?

2011-02-24 Thread Gabriele Kahlout
If I build the project with maven it'll fail but with fewer prints than if I compiled with javac directly. Debugging with NetBeans it would help if I could see the print outs as they happen, rather than going by commenting. This is my config: maven-compiler-plugin