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:
plugin
artifactIdmaven-compiler-plugin/artifactId
version2.3.2/version
dependencies
dependency
groupIdorg.codehaus.plexus/groupId
artifactIdplexus-compiler-javac/artifactId
version1.6/version
/dependency
/dependencies
configuration
source1.6/source
target1.6/target
encoding${project.build.sourceEncoding}/encoding
compilerIdjavac/compilerId
verbosetrue/verbose
showWarningstrue/showWarnings
/configuration
...

-- 
Regards,
K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains [LON] or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x)
 Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the email
does not contain a valid code then the email is not received. A valid code
starts with a hyphen and ends with X.
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).


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
gabri...@mysimpatico.comwrote:

 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:
 plugin
 artifactIdmaven-compiler-plugin/artifactId
 version2.3.2/version
 dependencies
 dependency
 groupIdorg.codehaus.plexus/groupId
 artifactIdplexus-compiler-javac/artifactId
 version1.6/version
 /dependency
 /dependencies
 configuration
 source1.6/source
 target1.6/target
 encoding${project.build.sourceEncoding}/encoding
 compilerIdjavac/compilerId
 verbosetrue/verbose
 showWarningstrue/showWarnings
 /configuration
 ...

 --
 Regards,
 K. Gabriele

 --- unchanged since 20/9/10 ---
 P.S. If the subject contains [LON] or the addressee acknowledges the
 receipt within 48 hours then I don't resend the email.
 subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧
 time(x)  Now + 48h) ⇒ ¬resend(I, this).

 If an email is sent by a sender that is not a trusted contact or the email
 does not contain a valid code then the email is not received. A valid code
 starts with a hyphen and ends with X.
 ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
 L(-[a-z]+[0-9]X)).




-- 
Regards,
K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains [LON] or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x)
 Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the email
does not contain a valid code then the email is not received. A valid code
starts with a hyphen and ends with X.
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).


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=1.0

Which all step should i follow. I was referring below link for help.
http://maven.apache.org/archetype/maven-archetype-plugin/examples/create-with-property-file.html

- Pankaj
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Archetype-with-a-property-file-tp3398151p3398151.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 the one I stated in 
the other post), because it's very annoying when Maven attempts to fetch 
dependencies from each and very repository that is defined somewhere - 
sometimes those builds can take really long.
Of course, You're right that You can't differentiate between release and 
snapshot repositories. I didn't take that in account, because I don't 
rely on thirdparty snapshots ...


 Would've been great if Maven had an option to mirror types of
 repositories (release/snapshot) as well as id's.
I think that would be a good idea. Could be worth it filing a feature 
request in the Maven Jira.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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-impl at the same time, 
they have _different_ versions.

myproject-impl depends on myproject-api.

When I try and release myproject, mvn release:prepare -Papache-release 
fails to release myproject-impl because it looks for a released version of
myproject-api (version 1.0.1) - which of course doesn't exist because I 
am trying to release it at the same time.


Is there any way around this?





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 their parent
  parent
groupId../groupId
artifactId../artifactId
version1.0.1-SNAPSHOT
  /parent
  artifactIdmyproject-impl/artifactId

Take a look at this simple example:
https://github.com/khmarbaise/testprojects

Kind regards
Karl Heinz Marbaise


-
Kind regards
Karl Heinz Marbaise

http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Release-plugin-tp3398372p3398388.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 each bundle independently 
(this is what Sling do) - but we have a very large number of bundles and 
they are usefully grouped into modules.


So, I'm looking for some way to override the check that happens in the 
release prepare, or something like that. It's a bit frustrating that the 
-DdryRun all works OK :-/


Zoe



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 their parent
   parent
 groupId../groupId
 artifactId../artifactId
 version1.0.1-SNAPSHOT
   /parent
   artifactIdmyproject-impl/artifactId

Take a look at this simple example:
https://github.com/khmarbaise/testprojects

Kind regards
Karl Heinz Marbaise


-
Kind regards
Karl Heinz Marbaise

http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 Marbaise

-
Kind regards
Karl Heinz Marbaise

http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Integrate-Maven-Plugin-Code-Mojo-s-into-Application-tp3397120p3398419.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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:

  plugin
artifactIdmaven-antrun-plugin/artifactId
executions
  phaseWHAT DO I PUT HERE?!/phase
  execution
goals
  goalrun/goal
/goals
configuration
  tasks
echo message=${version}.${buildNumber} file=build
append=false/
  /tasks
/configuration
  /execution
/executions
  /plugin

So I don't want to run this in a common life cycle. Install doesn't work for
me and the immediately after that one is deploy, that doesn't work either.

Any thoughts?

Thanks in advance,

Rui


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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

On 2/23/11 10:19 AM, Jesse Farinacci wrote:

Greetings,

On Wed, Feb 23, 2011 at 1:08 PM, Markstatic.void@gmail.com  wrote:

Can someone please point me in the direction on how to create a respository
that will be located behind our firewall and accessible to our engineers.

Try installing a MRM like http://nexus.sonatype.org/ or
http://archiva.apache.org/ and then follow
http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-group.html

-Jesse



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Creating a repository

2011-02-24 Thread Wendy Smoak
On Thu, Feb 24, 2011 at 11:09 AM, Mark static.void@gmail.com 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 Maven level?

Archiva has its own mailing lists, you can find info here:
http://archiva.apache.org/mail-lists.html

Downloading and publishing are two separate questions though.  If you
want to use scp for publishing, then you'd configure that in Maven
settings.xml and Archiva wouldn't be involved with access control, it
would just discover the artifacts the next time it scans.

Not familiar with using scp for retrieving artifacts, that's always
http/https afaik.

-- 
Wendy

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 24 févr. 2011 16:23, Rui Vilão rpvi...@gmail.com a écrit :
 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:

 plugin
 artifactIdmaven-antrun-plugin/artifactId
 executions
 phaseWHAT DO I PUT HERE?!/phase
 execution
 goals
 goalrun/goal
 /goals
 configuration
 tasks
 echo message=${version}.${buildNumber} file=build
 append=false/
 /tasks
 /configuration
 /execution
 /executions
 /plugin

 So I don't want to run this in a common life cycle. Install doesn't work
for
 me and the immediately after that one is deploy, that doesn't work either.

 Any thoughts?

 Thanks in advance,

 Rui


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 ssh...@gmail.com a écrit :
 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-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



Re: Release plugin

2011-02-24 Thread Hilco Wijbenga
On 24 February 2011 10:51, zoe slattery zoe.slatt...@gmail.com 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 'myproject'.

 I'm developing both myproject-api and myproject-impl at the same time, they
 have _different_ versions.
 myproject-impl depends on myproject-api.

 When I try and release myproject, mvn release:prepare -Papache-release
 fails to release myproject-impl because it looks for a released version of
 myproject-api (version 1.0.1) - which of course doesn't exist because I am
 trying to release it at the same time.

 Is there any way around this?

I just tried it with a pet project (my-project/pom.xml,
my-project/thing-api/..., and my-project/thing-impl/...). Everything
has a snapshot version and thing-impl depends on thing-api.

From my-project/ I ran both mvn clean deploy (to a local file://
Maven repo) and mvn clean release:clean release:prepare
release:perform (using Git also on the local file system) and it all
runs perfectly. All snapshots are handled without problems and the
release works as expected.

Do all of your projects have the same parent POM?

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 least in another goal rather than
install... the site goal doesn't fit too.

Any ideas?

--
Rui

On Thu, Feb 24, 2011 at 6:21 PM, Baptiste MATHUS m...@batmat.net wrote:

 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 24 févr. 2011 16:23, Rui Vilão rpvi...@gmail.com a écrit :
  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:
 
  plugin
  artifactIdmaven-antrun-plugin/artifactId
  executions
  phaseWHAT DO I PUT HERE?!/phase
  execution
  goals
  goalrun/goal
  /goals
  configuration
  tasks
  echo message=${version}.${buildNumber} file=build
  append=false/
  /tasks
  /configuration
  /execution
  /executions
  /plugin
 
  So I don't want to run this in a common life cycle. Install doesn't work
 for
  me and the immediately after that one is deploy, that doesn't work
 either.
 
  Any thoughts?
 
  Thanks in advance,
 
  Rui



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 myproject-api and myproject-impl in the independent
way. myproject-api and myproject-impl modules don't inherit from
aggregate (rather from corporate pom).


Marcin
m4enterprise.googlecode.com

On 24 February 2011 12:37, zoe slattery zoe.slatt...@gmail.com wrote:
 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 each bundle independently
 (this is what Sling do) - but we have a very large number of bundles and
 they are usefully grouped into modules.

 So, I'm looking for some way to override the check that happens in the
 release prepare, or something like that. It's a bit frustrating that the
 -DdryRun all works OK :-/

 Zoe


 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 their parent
   parent
     groupId../groupId
     artifactId../artifactId
     version1.0.1-SNAPSHOT
   /parent
   artifactIdmyproject-impl/artifactId

 Take a look at this simple example:
 https://github.com/khmarbaise/testprojects

 Kind regards
 Karl Heinz Marbaise


 -
 Kind regards
 Karl Heinz Marbaise
 
 http://www.soebes.de
 http://www.skmwiki.de
 http://supose.org/wiki/supose


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[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.org/shared/maven-filtering/

You should specify the version in your project's configuration:

plugin
  groupIdorg.apache.maven.shared/groupId
  artifactIdmaven-filtering/artifactId
  version1.0/version
/plugin


Release Notes - Maven Shared Components - Version maven-filtering-1.0

** Bug
* [MSHARED-176] - Add support of stopping at the end of line to
prevent issue with endToken not found
* [MSHARED-177] - Filter files are not filtered with already known
filter values
* [MSHARED-179] - FilteringUtils.escapeWindowsPath only works if the
Windows path is at the beginning of a property
* [MSHARED-181] - escapeString non follow by startToken remove character
* [MSHARED-188] - DefaultMavenFileFilter modifies the MavenProject
that comes in through a parameter

Enjoy,

-The Maven team


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 settings.xml under each developer's 
home/.m2/ folder.  The settings.xml is very simple, it has archiva url and 
developer's credential only.

What we like to have is a pop up window takes the url and the credential to 
create the connection instead of reading from settings.xml. Does this function 
already been implemented? If yes, could it be shared? If not, can somebody 
point me a start point?

Regards,

Yi

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste MATHUS
Sent: Thursday, February 24, 2011 1:04 AM
To: Maven Users List
Subject: Re: PMD'S or findbug's report

Hi,
Most likely, you might not be using the same version of pmd/findbugs.
As long as you take care to define the same rule you'll have the same
results (at least I can say that for pmd as we're using it almost every
day).

Cheers
Le 24 févr. 2011 01:59, jy hu huj...@gmail.com a écrit :
 Hi Everyone,

 I am wondering why there is a maked difference in the checking result
 (Pmd,or Findbugs) between mvn site and plug-in in Eclipse .


 Here are two checks for the same maven project as bellow ,
 1, I installed the Pmd and Findbugs's plug-in in Eclipse. then to check
the
 project by using PMD or Findbugs.I found many codes were marked in java
 files.

 2, I typed mvn site via Cmd or run MVN in Eclipse after I configed Pmd and
 FindBugs's report in POM.xml. then I open the index.html in site folder,
but
 only several errors were marked in the Pmd or FindBug's report.
 particularly, PMD's report included an info in a java file.

 I don't why, Does anyone tell me what I am missing in MVN? why are they
 difference? Many thanks!

 --
 **
 *Warm wishes,*
 *Jaina(hu jun ying)*

***
This message may contain confidential or proprietary information intended only
for the use of the addressee(s) named above or may contain information that is
legally privileged. If you are not the intended addressee, or the person
responsible for delivering it to the intended addressee, you are hereby
notified that reading, disseminating, distributing or copying this message is
strictly prohibited. If you have received this message by mistake, please
immediately notify us by replying to the message and delete the original
message and any copies immediately thereafter.

Thank you.



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 rpvi...@gmail.com

 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 least in another goal rather
 than install... the site goal doesn't fit too.

 Any ideas?

 --
 Rui


 On Thu, Feb 24, 2011 at 6:21 PM, Baptiste MATHUS m...@batmat.net wrote:

 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 24 févr. 2011 16:23, Rui Vilão rpvi...@gmail.com a écrit :
  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:
 
  plugin
  artifactIdmaven-antrun-plugin/artifactId
  executions
  phaseWHAT DO I PUT HERE?!/phase
  execution
  goals
  goalrun/goal
  /goals
  configuration
  tasks
  echo message=${version}.${buildNumber} file=build
  append=false/
  /tasks
  /configuration
  /execution
  /executions
  /plugin
 
  So I don't want to run this in a common life cycle. Install doesn't work
 for
  me and the immediately after that one is deploy, that doesn't work
 either.
 
  Any thoughts?
 
  Thanks in advance,
 
  Rui





-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


[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, sources and binaries are staged at:
https://repository.apache.org/content/repositories/maven-049/org/apache/maven/apache-maven/3.0.3-RC1/

As usual, the changes since the previous release are listed in JIRA:
http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10500version=17061

Thanks,


-The Maven Team

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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?


Re: PMD'S or findbug's report

2011-02-24 Thread jy hu
Hi,

Let me add the configuration of Pmd/Findbugs in maven:
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-pmd-plugin/artifactId
version2.5/version
__
groupIdorg.codehaus.mojo/groupId
artifactIdfindbugs-maven-plugin/artifactId
version2.3.1/version


Also I install the pmd/findbugs pulg-in via the Help Install new software
in Eclipse.

PMD: http://pmd.sf.net/eclipse, select PMD for Eclipse3, version
3.2.6V200903300643
FindBugs: http://findbugs.cs.umd.edu/eclipse, select Findbus version
1.3.9.20090821
Am I correct based on the above version No. which look like different? if
not, could you pls tell me how to rectify? thanks!

Best regards,
Jaina

On Fri, Feb 25, 2011 at 5:14 AM, Collins, Russell rcoll...@corelogic.comwrote:

 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...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste
 MATHUS
 Sent: Thursday, February 24, 2011 1:04 AM
 To: Maven Users List
 Subject: Re: PMD'S or findbug's report

  Hi,
 Most likely, you might not be using the same version of pmd/findbugs.
 As long as you take care to define the same rule you'll have the same
 results (at least I can say that for pmd as we're using it almost every
 day).

 Cheers
 Le 24 févr. 2011 01:59, jy hu huj...@gmail.com a écrit :
  Hi Everyone,
 
  I am wondering why there is a maked difference in the checking result
  (Pmd,or Findbugs) between mvn site and plug-in in Eclipse .
 
 
  Here are two checks for the same maven project as bellow ,
  1, I installed the Pmd and Findbugs's plug-in in Eclipse. then to check
 the
  project by using PMD or Findbugs.I found many codes were marked in java
  files.
 
  2, I typed mvn site via Cmd or run MVN in Eclipse after I configed Pmd
 and
  FindBugs's report in POM.xml. then I open the index.html in site folder,
 but
  only several errors were marked in the Pmd or FindBug's report.
  particularly, PMD's report included an info in a java file.
 
  I don't why, Does anyone tell me what I am missing in MVN? why are they
  difference? Many thanks!
 
  --
  **
  *Warm wishes,*
  *Jaina(hu jun ying)*

 ***
 This message may contain confidential or proprietary information intended
 only
 for the use of the addressee(s) named above or may contain information that
 is
 legally privileged. If you are not the intended addressee, or the person
 responsible for delivering it to the intended addressee, you are hereby
 notified that reading, disseminating, distributing or copying this message
 is
 strictly prohibited. If you have received this message by mistake, please
 immediately notify us by replying to the message and delete the original
 message and any copies immediately thereafter.

 Thank you.
 




-- 
**
*Warm wishes,*
*Jaina(hu jun ying)*


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
dependency
  groupIdpmd/groupId
  artifactIdpmd-jdk14/artifactId
  version4.2.5/version
/dependency

and
http://repo1.maven.org/maven2/org/codehaus/mojo/findbugs-maven-plugin/2.3.1/findbugs-maven-plugin-2.3.1.pom
tells us that findbugs-m-p version 2.3.1 uses
dependency
  groupIdcom.google.code.findbugs/groupId
  artifactIdfindbugs-ant/artifactId
  version1.3.9/version
/dependency

As for how to guarantee you are running the same rulesets and versions
etc, I have absolutely no idea. Perhaps the findbugs and pmd user
lists would be more useful for such a specific line of questioning...

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 feature won't be added to deprecated create but to 
generate goal.

Regards,

Hervé

Le jeudi 24 février 2011, Pankaj a écrit :
 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=1.0
 
 Which all step should i follow. I was referring below link for help.
 http://maven.apache.org/archetype/maven-archetype-plugin/examples/create-wi
 th-property-file.html
 
 - Pankaj


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 yq...@ku.edu 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 order to let
 maven to use archiva, we have to include settings.xml under each developer's
 home/.m2/ folder.  The settings.xml is very simple, it has archiva url and
 developer's credential only.

 What we like to have is a pop up window takes the url and the credential to
 create the connection instead of reading from settings.xml. Does this
 function already been implemented? If yes, could it be shared? If not, can
 somebody point me a start point?

 Regards,

 Yi


Try the IAM mailing list?


Re: PMD'S or findbug's report

2011-02-24 Thread jy hu
Hi
Can I think that  artifactIdpmd-jdk14/artifactId 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 .

...
configuration
 targetJdk${compileSource}/targetJdk
configuration
...
 
...
  compileSource1.6/compileSource
...

I had got error info with it in PMD report (mvn site), but only three. I had
got a lot via plugin in Eclipse. that's why I inqured the difference.

I scrutinized the *Using Rule Sets.* and learned that PMD plugin uses three
default rule sets in Maven. wanna use other rule sets to configure it in the
plugin as shown
...

rulesetd:\your folder\design.xml/ruleset
...

As for it, I am not sure if i am right. Anyway, More info I gained in PMD
report, More ruleset I added in POM.xml.
Maybe someone can make a detailed descripation of it. thanks

Cheer
Jaina,



On Fri, Feb 25, 2011 at 10:19 AM, Wayne Fay wayne...@gmail.com wrote:

  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
 dependency
  groupIdpmd/groupId
  artifactIdpmd-jdk14/artifactId
  version4.2.5/version
 /dependency

 and

 http://repo1.maven.org/maven2/org/codehaus/mojo/findbugs-maven-plugin/2.3.1/findbugs-maven-plugin-2.3.1.pom
 tells us that findbugs-m-p version 2.3.1 uses
 dependency
  groupIdcom.google.code.findbugs/groupId
  artifactIdfindbugs-ant/artifactId
  version1.3.9/version
 /dependency

 As for how to guarantee you are running the same rulesets and versions
 etc, I have absolutely no idea. Perhaps the findbugs and pmd user
 lists would be more useful for such a specific line of questioning...

 Wayne

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 
**
*Warm wishes,*
*Jaina(hu jun ying)*