Re: [ANN] Apache Maven PMD Plugin 3.1 Released

2014-03-19 Thread Krithika Shanmugam
Dennis Lundberg dennisl at apache.org writes: The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.1 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as

Re: [ANN] Apache Maven PMD Plugin 3.1 Released

2014-03-19 Thread Baptiste Mathus
I think this is related to http://maven.apache.org/plugins/maven-site-plugin/maven-3.html Can you try just moving your pmd configuration inside build tag? Also make sure you update maven-site-plugin version to the latest version. Btw, if you're from maven 2 to maven 3, far better use the latest

Configuring SCM for github

2014-03-19 Thread Eric Kolotyluk
I am having trouble getting mvn release:prepare to work with github scm connectionscm:git:http://github.com/kolotyluk/java-file-utilities/connection urlscm:git:http://github.com/kolotyluk/java-file-utilities/url

Re: Configuring SCM for github

2014-03-19 Thread Russell Gold
HI Eric, I think you are missing the “.git” extensions in your urls. Here’s the ones I use. scm urlhttps://github.com/meterware/simplestub.git/url developerConnectionscm:git:https://github.com/meterware/simplestub.git/developerConnection

excluding classes and including classes in maven

2014-03-19 Thread Zaid Al-Zobaidi
I want some help regarding how to exclude some classes and including other classes in one module. The intuition behind that is we have some mock classes that we want them to replace the original classes when the development profile is active. Cheers

Re: Configuring SCM for github

2014-03-19 Thread Eric Kolotyluk
Now I have scm urlhttps://github.com/kolotyluk/java-file-utilities.git/url connectionscm:git:https://github.com/kolotyluk/java-file-utilities.git/connection developerConnectionscm:git:https://github.com/kolotyluk/java-file-utilities.git/developerConnection /scm But it still hangs...

Re: Configuring SCM for github

2014-03-19 Thread Stephen Connolly
On Wednesday, 19 March 2014, Eric Kolotyluk eric.koloty...@gmail.com wrote: Now I have scm urlhttps://github.com/kolotyluk/java-file-utilities.git/url connectionscm:git:https://github.com/kolotyluk/java-file-utilities.git/ connection

Re: Configuring SCM for github

2014-03-19 Thread Eric Kolotyluk
Ok, adding server idgithub.com/id usernamekolotyluk/username password/secret//password /server to settings.xml did the trick. Many thanks Stephen, and Russell. Russell, this would be a good step to add to Video6_3.mp4 Why is ssh better than https? Cheers, Eric On

Re: excluding classes and including classes in maven

2014-03-19 Thread Wayne Fay
I want some help regarding how to exclude some classes and including other classes in one module. The intuition behind that is we have some mock classes that we want them to replace the original classes when the development profile is active. To me, this seems like something you would

Maven Ant Plugin question

2014-03-19 Thread hwpstorage
Hello, I tried to use maven to genterate build.xml for ant. Use command mvn ant:ant will generate build.xml and maven-build.xml, which can be used by Ant. my problem is everytime runs ant compile it will download everything from every repository. for example, for this jar file

Open Source Best Practices with Maven - distributionManagement

2014-03-19 Thread Eric Kolotyluk
Does anyone know of any good documentation on 'Open Source Best Practices with Maven' For example, in my POM, I want to set up distributionManagement downloadUrlhttp://localhost:8081/nexus/content/groups/public/downloadUrl repository uniqueVersionfalse/uniqueVersion

Maven Ant Plugin question

2014-03-19 Thread hwpstorage
Hello, I tried to use maven to genterate build.xml for ant. Use command mvn ant:ant will generate build.xml and maven-build.xml, which can be used by Ant. my problem is everytime runs ant compile it will download everything from every repository. for example, for this jar file

Re: Open Source Best Practices with Maven - distributionManagement

2014-03-19 Thread Curtis Rueden
Hi Eric, Should I put this in a parent POM Here is how my projects do it: http://search.maven.org/remotecontent?filepath=org/scijava/pom-scijava/1.150/pom-scijava-1.150.pom Note in particular the profiles at the bottom. We use this pom-scijava as parent for all our stuff. To deploy to OSS

Re: Open Source Best Practices with Maven - distributionManagement

2014-03-19 Thread Stevo Slavić
Hello Eric, I'd consider using Sonatype OSS with Sonatype OSS parent pom and everything that goes along (see more details at https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide) For OSS development maybe use private (and not local) Nexus as proxy only, with

Re: Open Source Best Practices with Maven - distributionManagement

2014-03-19 Thread Mirko Friedenhagen
Hello Eric, as outlined in https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html in your settings.xml you might define properties altReleaseDeploymentRepository and altSnapshotDeploymentRepository in a profile internal-repository which is activated by default while you do not

Re: Open Source Best Practices with Maven - distributionManagement

2014-03-19 Thread Eric Kolotyluk
OK, this was great advice. :-) This works nicely because I do not have to have separate profiles in my pom.xml for my local Nexus or Sonatype's remote one. This keeps the pom.xml smaller. This would be a nice narrative to add to

Re: Open Source Best Practices with Maven - distributionManagement

2014-03-19 Thread Mark Struberg
You could also add those properties into a profile in your settings.xml. That way you don't even have the url in the projects pom anymore. Downside: this needs to be set up on each of your colleagues computers. LieGrue, strub On Wednesday, 19 March 2014, 23:16, Eric Kolotyluk

Problems with com.github.github:site-maven-plugin:0.9:site

2014-03-19 Thread Eric Kolotyluk
I configured things according to https://github.com/github/maven-plugins But when I try to run 'mvn site' I get the following errors. Does the gh-pages branch need to be created manually first, or should the plug-in do that automatically? Or am I chasing some other type of error. Cheers,

Re: Open Source Best Practices with Maven - distributionManagement

2014-03-19 Thread Eric Kolotyluk
Actually, I did set these properties up in my settings.xml file :-) Great minds think alike ;-) Cheers, Eric On 3/19/2014 3:53 PM, Mark Struberg wrote: You could also add those properties into a profile in your settings.xml. That way you don't even have the url in the projects pom anymore.

Re: Configuring SCM for github

2014-03-19 Thread Stephen Connolly
I favour using my ssh key to deploy and keeping my password out of a file. With my password I can de-authorise any ssh key... So if the machine I am releasing from becomes compromised I can retain control of my GitHub account You may view otherwise if you choose On Wednesday, 19 March 2014, Eric

Re: Configuring SCM for github

2014-03-19 Thread Eric Kolotyluk
Cool. Thanks for the advice. Makes sense. Cheers, Eric On 3/19/2014 4:39 PM, Stephen Connolly wrote: I favour using my ssh key to deploy and keeping my password out of a file. With my password I can de-authorise any ssh key... So if the machine I am releasing from becomes compromised I can

maven-dependency-tree reactor resolution

2014-03-19 Thread William Ferguson
Hi, I have a plugin that uses the maven-dependency-tree component to resolve project dependencies in a LifeCycleParticipant. (We need early access to deps because we need to modify the compile classpath). But I'm finding that with a clean repository, in a multi-module project with modules X and

RE: maven-dependency-tree reactor resolution

2014-03-19 Thread Martin Gainty
William- Can you show us the pom for both: Parent (X?) Dependency (Y?) Date: Thu, 20 Mar 2014 09:55:31 +1000 Subject: maven-dependency-tree reactor resolution From: william.fergu...@xandar.com.au To: users@maven.apache.org CC: mosa...@gmail.com Hi, I have a plugin that uses the

Re: [Failsafe] How to properly conduct integration tests on executable jar files

2014-03-19 Thread Alex Karasulu
On Thu, Mar 13, 2014 at 4:54 AM, Alex Karasulu akaras...@apache.org wrote: Hello, I've got a module that builds an executable jar file using the Maven Assembly Plugin. I'm trying to setup an integration test (in the same module) that runs this executable jar file as a separate process and

Re: Problems with com.github.github:site-maven-plugin:0.9:site

2014-03-19 Thread Benson Margulies
Best ask them. This is a product of github, not the Apache Maven Project. On Wed, Mar 19, 2014 at 7:32 PM, Eric Kolotyluk eric.koloty...@gmail.com wrote: I configured things according to https://github.com/github/maven-plugins But when I try to run 'mvn site' I get the following errors. Does

Re: maven-dependency-tree reactor resolution

2014-03-19 Thread William Ferguson
Martin, https://github.com/jayway/maven-android-plugin-samples In particular the morseflash module which has: - morse-flash-lib - morse-flash-app (which is dependent on morse-flash-lib) William On Thu, Mar 20, 2014 at 10:28 AM, Martin Gainty mgai...@hotmail.com wrote: William-

Re: maven-dependency-tree reactor resolution

2014-03-19 Thread William Ferguson
Here's the direct links for both POMs morseflash-lib/pom.xmlhttps://github.com/jayway/maven-android-plugin-samples/blob/master/morseflash/morseflash-lib/pom.xml morseflash-app/pom.xmlhttps://github.com/jayway/maven-android-plugin-samples/blob/master/morseflash/morseflash-app/pom.xml On