aspectj-maven-plugin - working with weaved jars: need exclusions and where´s the sources.jar?

2009-06-10 Thread torsten . reinhard
Hi, 

I´ve created an aspectJ build module, to weave some monitoring aspects 
into an existing jar:

project... 
...
groupIdorg.agroup/groupId
artifactIdto-weave-enhanced/artifactId
...

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdaspectj-maven-plugin/artifactId

configuration
... 
  weaveDependencies
weaveDependency
groupIdorg.agroup/groupId
artifactIdto-weave/artifactId
/weaveDependency
  /weaveDependencies
... 
/configuration

/plugin

dependencies
...
!-- for AspectJ jar weaving --
dependency
groupIdorg.agroup/groupId
artifactIdto-weave/artifactId
version1.0/version
/dependency
...
/dependencies

This all works fine, but I have 2 issues open:

(1) When using the enhanced jar as a dependency in other projects, I 
need an exclusion of the original jar:

dependency
groupIdorg.agroup/groupId
artifactIdto-weave-enhanced/artifactId
exclusions
exclusion
groupIdorg.agroup/groupId
artifactIdto-weave/artifactId
/exclusion
exclusions
dependency

otherwise I´ll have both jars in my classpath, because of the transitive 
dependencies.
Is there a way to come around this?

(2) When using the enhanced jar as a dependency in other projects, I 
have no more debug information left:
The sources jar of org.agroup.to-weave-enhanced contains no 
sources but the aspects, 
the sources jar of org.agroup.to-weave isn´t used, because it´s 
not in the classpath anymore.

How can I resolve that and enable debugging when working with a 
weaved jar?

thanx for any advice, 

Torsten

Commit failed, file out of date error with maven-ant-plugin

2009-06-10 Thread Nafter

I'm using maven and within maven I use ANT (maven-ant-plugin).
In ANT I have some actions to:

1) entirely delete 3 directories on the server
2) recreate the same 3 directories again, and do a checkout on 3 different
svn urls.
3) now just to be sure I do an svn update on the 3 directories again.
4) now I copy across a new version.txt file which is present in all of the 3
directories.
I just want to overwrite the version.txt with a newer version of that
file.
5) After the copying I want to commit the 3 directories again.

Result ?

1 out of 5 times this is working correctly. But in all the other situations
I receive always the following error:
 [exec] Sending_composer5\pvmeta\pv50\version.txt
 [exec] svn: Commit failed (details follow):
 [exec] svn: File or directory 'version.txt' is out of date; try
updating
 [exec] svn: The version resource does not correspond to the resource
within the transaction.  Either the requested version resource is out of
date (needs to be updated), or the requested version resource is newer than
the transaction root (restart the commit).
 [exec] Result: 1

Can somebody help me with this. Because I really need to commit the new
version of the file version.txt!



Here is a complete stack trace of this error:
[INFO] Executing tasks
[echo] 
[echo] DELETE KERNEL PVMETA DIRECTORIES
[echo]
---
[echo] Delete pv50
[echo] Delete pv50_interface
[echo] Delete pv50_selfservice
[echo] Delete pv50_unittest
[echo] 
[echo] CHECKOUT KERNEL PVMETA DIRECTORIES
[echo]
---
[echo] Checkout pv50
[echo] Checkout pv50_interface
[echo] Checkout pv50_selfservice
[echo] Checkout pv50_unittest
[echo] 
[echo] UPDATE KERNEL PVMETA DIRECTORIES
[echo]
---
[echo] Update pv50
[echo] Update pv50_interface
[echo] Update pv50_selfservice
[echo] Update pv50_unittest
[echo] 
[echo] UPDATE VERSION.TXT FILES WITH CORRECT BUILD ID
[echo]
---
[echo] Copy version.txt template to _work directory...
[copy] Copying 1 file to c:\_composer\_work
[echo] Edit version.txt to reflect current build id...
[echo] Overwrite new version.txt in pvmeta kernel directories...
[copy] Copying 1 file to c:\_composer\_composer5\pvmeta\pv50
[copy] Copying 1 file to c:\_composer\_composer5\pvmeta\pv50_interface
[copy] Copying 1 file to c:\_composer\_composer5\pvmeta\pv50_selfservice
[echo] 
[echo] COMMIT VERSION.TXT FILES IN PVMETA DIRECTORIES
[echo]
---
[exec] Sending_composer5\pvmeta\pv50\version.txt
[exec] svn: Commit failed (details follow):
[exec] svn: File or directory 'version.txt' is out of date; try updating
[exec] svn: The version resource does not correspond to the resource within
the transaction.  Either the requested version resource is out of date
(needs to be updated), or the requested version resource is newer than the
transaction root (restart the commit).
[exec] Result: 1
[exec] Sending_composer5\pvmeta\pv50_interface\version.txt
[exec] svn: Commit failed (details follow):
[exec] svn: File or directory 'version.txt' is out of date; try updating
[exec] svn: The version resource does not correspond to the resource within
the transaction.  Either the requested version resource is out of date
(needs to be updated), or the requested version resource is newer than the
transaction root (restart the commit).
[exec] Result: 1
[exec] Sending_composer5\pvmeta\pv50_selfservice\version.txt
[exec] svn: Commit failed (details follow):
[exec] svn: File or directory 'version.txt' is out of date; try updating
[exec] svn: The version resource does not correspond to the resource within
the transaction.  Either the requested version resource is out of date
(needs to be updated), or the requested version resource is newer than the
transaction root (restart the commit).
[exec] Result: 1


Thanks in advance for your help.

Nafter
-- 
View this message in context: 
http://www.nabble.com/Commit-failed%2C-file-out-of-date-error-with-maven-ant-plugin-tp23956792p23956792.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: Exception during Dependencies report.

2009-06-10 Thread Lukas Theussl


Did you investigate this warning?

[WARNING] Unable to create Maven project from repository.
org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 POM.
for project package at
E:\work\m2Repo\packagename\1.0.0.1\modulename-1.0.0.1.jar

Did you try running with -X to see where it comes from?

HTH,
-Lukas


EJ Ciramella wrote:

Any feedback?

I didn't see any associated jira's...

-Original Message-
From: EJ Ciramella [mailto:ecirame...@upromise.com] 
Sent: Friday, June 05, 2009 1:20 PM

To: Maven Users List
Subject: RE: Exception during Dependencies report.

I tried upgrading to:

groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-project-info-reports-plugin/artifactId
version2.1.1/version

But that's even worse - I can see it just scanning the repositories over
and over and over - endlessly.

Any suggestions?
   


-Original Message-
From: EJ Ciramella [mailto:ecirame...@upromise.com]
Sent: Friday, June 05, 2009 10:36 AM
To: users@maven.apache.org
Subject: Exception during Dependencies report.

I'm really confused as to why maven is all of a sudden looking at a jar
and complaining it's not a pom - any suggestions anyone?
 
[INFO] Generating Source Repository report.

[INFO] Generating Issue Tracking report.
[INFO] Generating Project Summary report.
[INFO] Generating Project Plugins report.
[INFO] Generating Dependencies report.
[ERROR] ProjectBuildingException error :
[WARNING] Unable to create Maven project from repository.
org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 POM.
for project package at
E:\work\m2Repo\packagename\1.0.0.1\modulename-1.0.0.1.jar
at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMav
enProjectBuilder.java:1581)
at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMav
enProjectBuilder.java:1553)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromReposit
ory(DefaultMavenProjectBuilder.java:560)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(
DefaultMavenProjectBuilder.java:249)
at
org.apache.maven.report.projectinfo.dependencies.RepositoryUtils.getMave
nProjectFromRepository(RepositoryUtils.java:316)
at
org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRe
nderer.renderSectionDependencyRepositoryLocations(DependenciesRenderer.j
ava:623)
at
org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRe
nderer.renderBody(DependenciesRenderer.java:274)
at
org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMa
venReportRenderer.java:65)
at
org.apache.maven.report.projectinfo.DependenciesReport.executeReport(Dep
endenciesReport.java:239)
at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenRep
ort.java:90)
at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(Repo
rtDocumentRenderer.java:139)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Def
aultSiteRenderer.java:269)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSi
teRenderer.java:101)
at
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:129)
at
org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:142)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


Direclty commit in svn without a workingdirectory

2009-06-10 Thread Nafter

Is it possible with maven and ANT to directly commit and overwrite a file in
subversion without a workingdirectory on the disc?

I know which file to overwrite in subversion and I know the exact location
of the file in subversion.
Then when I have a newer version of the file I want to be able to overwrite
the file directly in subversion.

At the moment I do this by first checking out that specific directory on the
disk on the server. Accordingly I copy accross the new file. Then finally I
do a commit on that workingdirectory to get this file into subversion.
This is all done by steps in ANT with the maven-ant-plugin.

Does somebody know the way to do this directly by using the subversion url?

Thanks in advance for your comments on this.

Nafter
-- 
View this message in context: 
http://www.nabble.com/Direclty-commit-in-svn-without-a-workingdirectory-tp23957155p23957155.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: Direclty commit in svn without a workingdirectory

2009-06-10 Thread Trevor Harmon

On Jun 10, 2009, at 3:28 AM, Nafter wrote:

Is it possible with maven and ANT to directly commit and overwrite a  
file in

subversion without a workingdirectory on the disc?


I don't think this is possible in Subversion, so it wouldn't be  
possible in Maven or Ant, either.


Trevor


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



Is there a way to specify a particular SNAPSHOT version?

2009-06-10 Thread U Gopalakrishnan
Hello,

I have a maven project A which is dependent on another maven project B. 
Both project are under active development, so project A is depending on 
the SNAPSHOT version of project B. But I don't really want project A to 
pickup every new snapshot version of B, but pick up a new snapshot version 
only once in every 2 weeks or so. Is there a way in maven to specify a 
particular version (or build) of the snapshot  version of project B to be 
used in project A build? . E.g. We could say use the version built on a 
particular date or some thing like that. 

Thanks
Gopal

Re: Is there a way to specify a particular SNAPSHOT version?

2009-06-10 Thread nicolas de loof
You can use the snapshot timestamp as version, i.e.
version123455645365.1123-4/version

2009/6/10 U Gopalakrishnan ugopa...@in.ibm.com

 Hello,

 I have a maven project A which is dependent on another maven project B.
 Both project are under active development, so project A is depending on
 the SNAPSHOT version of project B. But I don't really want project A to
 pickup every new snapshot version of B, but pick up a new snapshot version
 only once in every 2 weeks or so. Is there a way in maven to specify a
 particular version (or build) of the snapshot  version of project B to be
 used in project A build? . E.g. We could say use the version built on a
 particular date or some thing like that.

 Thanks
 Gopal


mvn test -DproxyHost=... -DproxyPort=...

2009-06-10 Thread Paolo Castagna

Hi,
I need to run a test suite which needs to connect to public web servers and
I am behind a web proxy.

I use:

 mvn test -DproxyHost=... -DproxyPort=...
 mvn test -DproxySet=true -DproxyHost=... -DproxyPort=...

Everything works fine with Maven v2.0.9 but with Maven v2.0.10 or v2.1.0
seems to me that the proxy does not get used.

I am probably missing something obvious...

Any help?

Paolo

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



Re: Is there a way to specify a particular SNAPSHOT version?

2009-06-10 Thread Trevor Harmon

On Jun 10, 2009, at 4:03 AM, U Gopalakrishnan wrote:


pick up a new snapshot version
only once in every 2 weeks or so.


You might be able to do this by setting the snapshots updatePolicy of  
your settings.xml to interval:XXX (XXX in minutes).


Trevor


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



Re: Duplicate class warnings when using shade plugin

2009-06-10 Thread Dominic Mitchell

On 9 Jun 2009, at 22:00, James Adams wrote:
I am building my JAR file using the shade plugin in order to give me  
an
all-in-one JAR artifact which contains all dependency JARs.  When I  
build

using mvn clean install I always get thousands of message like the
following, indicating that there's a duplicate class file in a JAR  
in the
repository, which I assume is coming from the shade plugin when it's  
doing

its thing:

[WARNING] We have a duplicate
net/sf/cglib/util/StringSwitcher$StringSwitcherKey.class in
C:\dev\maven\repository\cglib\cglib-full\2.0.2\cglib-full-2.0.2.jar

Is this something I should worry about or is it just an annoyance to  
live
with for now?  The resulting JAR artifact works well, maybe this is  
nothing
to worry over, but I want to ask here in case there is something I  
can fix
which will make these warning messages go away.  I can't find  
anything about

this using Google, etc.


I ran into this with different variations of commons-logging. There's  
commons-logging (the full jar) and commons-logging-api (JDK14 logging  
only).  But they contain some of the same classes even though they're  
different artifacts.  Different dependencies were pulling in different  
versions of the same class.


In this case, I used a dependencyManagement section to exclude commons- 
logging-api.  But this isn't a general solution.  You might not be  
able to exclude the jar that contains duplicates.


That said, the warnings are ignorable.

-Dom

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



Required goal not found: nbm:directory in org.codehaus.mojo:nbm-maven-plugin:3.0

2009-06-10 Thread Sik, Winston
Hi,
 
Sorry for my previous (incomplete) e-mail. I accidentally hit the send
button. To continue ...
 
 
I'm building NetBeans Platform and Module using Maven. When I ran the
following on the command line: 
mvn nbm:cluster nbm:run-ide
I get the following information:
Since 2.7, the nbm:nbm goal is not part of the lifecycle.
...
Please execute 'mvn install nbm:directory nbm:cluster' to get the same
results as in earlier versions.

I executed the command as mentioned above but I got the following error:
Required goal not found: nbm:directory in
org.codehaus.mojo:nbm-maven-plugin:3.0

I hope someone can assist me.

Thank you.

Regards,

 

  http://www.experian.com/ 

Winston Sik
Senior Java Developer | Experian Decision Analytics | Malaysia
DL: +603 8321 5660 | GL: +603 8321 5600 | Fax: +603 8321 5698 | E-mail:
winston@my.experian.com

 


Required goal not found: nbm:directory in org.codehaus.mojo:nbm-maven-plugin:3.0

2009-06-10 Thread Sik, Winston
Hi,
 
I'm building NetBeans Platform and Module using Maven. When I ran the
following on the command line: 
mvn nbm:cluster nbm:run-ide
I get the following information:
Since 2.7, the nbm:nbm goal is not part of the lifecycle.
...
Please execute 'mvn install nbm:directory nbm:cluster' to get the same
results as in earlier versions.

 

  http://www.experian.com/ 

Winston Sik
Senior Java Developer | Experian Decision Analytics | Malaysia
DL: +603 8321 5660 | GL: +603 8321 5600 | Fax: +603 8321 5698 | E-mail:
winston@my.experian.com

 


Re: Required goal not found: nbm:directory in org.codehaus.mojo:nbm-maven-plugin:3.0

2009-06-10 Thread Milos Kleint
greetings,

the message could be some overlooked residue from the 3.0 rewrite.

for the netbeans platform applications, you should have an assembly project
with nbm-application packaging and should be able to run mvn clean install
nbm:run-platform

nbm:run-ide is a sub-optimal way of running a one more more netbeans module
within the existing IDE/platform installation. The preferred way to use the
nbm-packaging project in conjunction with run:platform which assembles the
complete application from maven repository(ies)

Milos

PS: please file an issue at http://jira.codehaus.org/browse/MNBMODULE, so
that the message you encountered is cleaned up.

On Wed, Jun 10, 2009 at 11:08 AM, Sik, Winston
winston@my.experian.comwrote:

  Hi,

 I'm building NetBeans Platform and Module using Maven. When I ran the
 following on the command line:
 *mvn nbm:cluster nbm:run-ide*

 I get the following information:
 *Since 2.7, the nbm:nbm goal is not part of the lifecycle.
 **...
 Please execute 'mvn install nbm:directory nbm:cluster' to get the same
 results as in earlier versions.*


 **

 http://www.experian.com/

 *Winston Sik
 *
 Senior Java Developer | Experian Decision Analytics | Malaysia
 DL: +603 8321 5660 | GL: +603 8321 5600 | Fax: +603 8321 5698 | E-mail:
 winston@my.experian.com




RE: Exception during Dependencies report.

2009-06-10 Thread EJ Ciramella

Yes - I reran with -X and looked at the exact pom and there doesn't seem to be 
an issue.

I'm pretty sure it's maven flaking out - look at what happened when I tried a 
newer version of maven!

-Original Message-
From: Lukas Theussl [mailto:ltheu...@apache.org]
Sent: Wed 6/10/2009 3:02 AM
To: Maven Users List
Subject: Re: Exception during Dependencies report.
 

Did you investigate this warning?

[WARNING] Unable to create Maven project from repository.
org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 POM.
for project package at
E:\work\m2Repo\packagename\1.0.0.1\modulename-1.0.0.1.jar

Did you try running with -X to see where it comes from?

HTH,
-Lukas


EJ Ciramella wrote:
 Any feedback?
 
 I didn't see any associated jira's...
 
 -Original Message-
 From: EJ Ciramella [mailto:ecirame...@upromise.com] 
 Sent: Friday, June 05, 2009 1:20 PM
 To: Maven Users List
 Subject: RE: Exception during Dependencies report.
 
 I tried upgrading to:
 
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-project-info-reports-plugin/artifactId
 version2.1.1/version
 
 But that's even worse - I can see it just scanning the repositories over
 and over and over - endlessly.
 
 Any suggestions?

 
 -Original Message-
 From: EJ Ciramella [mailto:ecirame...@upromise.com]
 Sent: Friday, June 05, 2009 10:36 AM
 To: users@maven.apache.org
 Subject: Exception during Dependencies report.
 
 I'm really confused as to why maven is all of a sudden looking at a jar
 and complaining it's not a pom - any suggestions anyone?
  
 [INFO] Generating Source Repository report.
 [INFO] Generating Issue Tracking report.
 [INFO] Generating Project Summary report.
 [INFO] Generating Project Plugins report.
 [INFO] Generating Dependencies report.
 [ERROR] ProjectBuildingException error :
 [WARNING] Unable to create Maven project from repository.
 org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 POM.
 for project package at
 E:\work\m2Repo\packagename\1.0.0.1\modulename-1.0.0.1.jar
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMav
 enProjectBuilder.java:1581)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMav
 enProjectBuilder.java:1553)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromReposit
 ory(DefaultMavenProjectBuilder.java:560)
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(
 DefaultMavenProjectBuilder.java:249)
 at
 org.apache.maven.report.projectinfo.dependencies.RepositoryUtils.getMave
 nProjectFromRepository(RepositoryUtils.java:316)
 at
 org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRe
 nderer.renderSectionDependencyRepositoryLocations(DependenciesRenderer.j
 ava:623)
 at
 org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRe
 nderer.renderBody(DependenciesRenderer.java:274)
 at
 org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMa
 venReportRenderer.java:65)
 at
 org.apache.maven.report.projectinfo.DependenciesReport.executeReport(Dep
 endenciesReport.java:239)
 at
 org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenRep
 ort.java:90)
 at
 org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(Repo
 rtDocumentRenderer.java:139)
 at
 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Def
 aultSiteRenderer.java:269)
 at
 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSi
 teRenderer.java:101)
 at
 org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:129)
 at
 org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
 nager.java:451)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
 LifecycleExecutor.java:558)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
 ycle(DefaultLifecycleExecutor.java:499)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
 ifecycleExecutor.java:478)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
 Failures(DefaultLifecycleExecutor.java:330)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
 DefaultLifecycleExecutor.java:291)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
 ycleExecutor.java:142)
 at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 

maven-dependency-plugin doesn't find all dependencies in several repositories

2009-06-10 Thread gorgophol

Hi, 
I have got the following situation in my company: 

There are three repositories (in this case), where artifacts are installed. 
Repos 1, Repos 2, Repos Ext (for external jars)

Artifacts A, B and C are in Repos 1. 
Artifact Z is in Repos 2. 
All external Artifacts (lets call them EX1 - Ex3) are in Repos Ext. 

A has dependencies on B and Z. 
B has dependencies on C. 
C has dependencies on Ex1 and Ex2. 
Z has depencencies on Ex3. 

Specifying the dependecy-plugin in A I'd like to copy all dependent
artifacts to a specified path. (/usr/local/maven/A)

After the build the output-folder contains B, Z, C, Ex1 and Ex2. 
But there seems to be no way to get also Ex3 into that folder, because the
dependency:tree-output doesn't even list Ex3. 

Does anybody know why and how I get also Ext3 into the output-folder? 
(No I can't install any of that artifacts to another repository. It's this
constellation I have to use!)

Thanks a lot. 

-Gorgophol-

-- 
View this message in context: 
http://www.nabble.com/maven-dependency-plugin-doesn%27t-find-all-dependencies-in-several-repositories-tp23961970p23961970.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: maven-dependency-plugin doesn't find all dependencies in several repositories

2009-06-10 Thread Nick Stolwijk
If you use dependency:tree-output on project Z what is the scope of
the dependency? Then look at [1] to see the transitive scope of that
dependency. Probably the dependency is in the wrong scope.

[1] 
http://www.sonatype.com/books/maven-book/reference/pom-relationships-sect-transitive.html

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Wed, Jun 10, 2009 at 3:08 PM, gorgopholbenjamin.h...@inter.de wrote:
 dependency:tree-output

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



Re: mvn test -DproxyHost=... -DproxyPort=...

2009-06-10 Thread Robert Glover

I'm having the same problem.  Below I paste the error message I get. (I posted 
this a few days earlier as well).  Is this similar to the error you receive? 
(Note you need to use the -X option on the mvn command you are using to make 
the expanded console output appear so that you can see if you too get this 
error message).

...snip...
[DEBUG] Connecting to repository: 'central' with url: 
'http://repo1.maven.org/maven2'.
[DEBUG] Using Proxy: b1web1.obfuscated.org
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
[DEBUG] Access denied to: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:119)
at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at 
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:491)
at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:372)
  ...snip...




- Original Message 
From: Paolo Castagna paolo.casta...@hplb.hpl.hp.com
To: users@maven.apache.org users@maven.apache.org
Sent: Wednesday, June 10, 2009 4:33:20 AM
Subject: mvn test -DproxyHost=... -DproxyPort=...

Hi,
I need to run a test suite which needs to connect to public web servers and
I am behind a web proxy.

I use:

mvn test -DproxyHost=... -DproxyPort=...
mvn test -DproxySet=true -DproxyHost=... -DproxyPort=...

Everything works fine with Maven v2.0.9 but with Maven v2.0.10 or v2.1.0
seems to me that the proxy does not get used.

I am probably missing something obvious...

Any help?

Paolo

-
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



Re: maven-dependency-plugin doesn't find all dependencies in several repositories

2009-06-10 Thread gorgophol

Thanks for your fast reply. 

Scope for all dependencies is compile.
In none of those POMs any scope-tag is used. It's all maven-standard
(compile). 

If any scope was provided or so, I would understand that it isn't copied. 
But all other dependencies are copied. 

So I thought it might be because Z is in Repos2. 
But that should be no problem in my opinion. 
-- 
View this message in context: 
http://www.nabble.com/maven-dependency-plugin-doesn%27t-find-all-dependencies-in-several-repositories-tp23961970p23962522.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: mvn test -DproxyHost=... -DproxyPort=...

2009-06-10 Thread Paolo Castagna

Hi Robert,
thank you for your reply.

But, no... I do not see any access denied problem when I run Maven in debug 
mode.
It definitely downloaded the surefire plugin v2.4.3 and the plugin is used to 
run the
tests. However, it seems to me that the plugin is ignoring the -DproxyHost=... 
and
-DproxyPort=... options.

Are you sure you have properly configured your web proxy in 
$MAVEN_HOME/conf/settings.xml ?

Your problem is different: Maven is not able to download the surefire plugin 
using
your web proxy.

Paolo

Robert Glover wrote:

I'm having the same problem.  Below I paste the error message I get. (I posted 
this a few days earlier as well).  Is this similar to the error you receive? 
(Note you need to use the -X option on the mvn command you are using to make 
the expanded console output appear so that you can see if you too get this 
error message).

...snip...
[DEBUG] Connecting to repository: 'central' with url: 
'http://repo1.maven.org/maven2'.
[DEBUG] Using Proxy: b1web1.obfuscated.org
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
[DEBUG] Access denied to: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:119)
at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at 
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:491)
at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:372)
  ...snip...




- Original Message 
From: Paolo Castagna paolo.casta...@hplb.hpl.hp.com
To: users@maven.apache.org users@maven.apache.org
Sent: Wednesday, June 10, 2009 4:33:20 AM
Subject: mvn test -DproxyHost=... -DproxyPort=...

Hi,
I need to run a test suite which needs to connect to public web servers and
I am behind a web proxy.

I use:

mvn test -DproxyHost=... -DproxyPort=...
mvn test -DproxySet=true -DproxyHost=... -DproxyPort=...

Everything works fine with Maven v2.0.9 but with Maven v2.0.10 or v2.1.0
seems to me that the proxy does not get used.

I am probably missing something obvious...

Any help?

Paolo

-
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





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



Re: mvn test -DproxyHost=... -DproxyPort=...

2009-06-10 Thread Paolo Castagna

Paolo Castagna wrote:

Hi,
I need to run a test suite which needs to connect to public web servers and
I am behind a web proxy.

I use:

  mvn test -DproxyHost=... -DproxyPort=...
  mvn test -DproxySet=true -DproxyHost=... -DproxyPort=...

Everything works fine with Maven v2.0.9 but with Maven v2.0.10 or v2.1.0
seems to me that the proxy does not get used.

I am probably missing something obvious...


I think the problem comes from the surefire plugin v2.4.3 used by Maven v2.0.10.

If I use the surefire plugin v2.4.2 I can see a lot of messages for system
properties, including:

  [DEBUG] Setting system property [proxyHost]=[...]
  [DEBUG] Setting system property [proxyPort]=[...]

This does not happen using the surefire plugin v2.4.3.

So, now, I forced v2.4.2 in my pom.xml:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.4.2/version
[...]
  /plugin

Is this a known problem?

Paolo


Any help?

Paolo



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



Re: mvn test -DproxyHost=... -DproxyPort=...

2009-06-10 Thread Robert Glover

Hi Paolo,
 Thanks for the reply back.  Actually, the group had told me earlier that 
unless a number of people experienced the same problem I was having, it is 
unrealistic to expect a resolution because proxy issues are so difficult to 
figure out. But to answer your question, I use the same proxy config within 
settings.xml.  When I use maven 2.0.9 the proxy works fine. However when I 
change to maven 2.1.0  (or also, I think but it's been a while so I'm not 100% 
sure, also with 2.0.10) the proxy fails.  The only solution for me is to stick 
with maven 2.0.9.  When each new version of maven comes out (I think maven 3 
may be the next one to come out?), I'll give it a try.  When a future version 
works for me,  I'll upgrade then.
   My guess is that m2eclipse (the maven eclipse plugin) uses an embedded 
version of maven and so maybe is not affected by what version of maven I use.  
that is just a guess. m2eclipse continues to work fine even when I upgrade to 
maven 2.1.0. I wonder if that is significant or not?
Robert



- Original Message 
From: Paolo Castagna paolo.casta...@hplb.hpl.hp.com
To: Maven Users List users@maven.apache.org
Sent: Wednesday, June 10, 2009 9:52:52 AM
Subject: Re: mvn test -DproxyHost=... -DproxyPort=...

Hi Robert,
thank you for your reply.

But, no... I do not see any access denied problem when I run Maven in debug 
mode.
It definitely downloaded the surefire plugin v2.4.3 and the plugin is used to 
run the
tests. However, it seems to me that the plugin is ignoring the -DproxyHost=... 
and
-DproxyPort=... options.

Are you sure you have properly configured your web proxy in 
$MAVEN_HOME/conf/settings.xml ?

Your problem is different: Maven is not able to download the surefire plugin 
using
your web proxy.

Paolo

Robert Glover wrote:
 I'm having the same problem.  Below I paste the error message I get. (I 
 posted this a few days earlier as well).  Is this similar to the error you 
 receive? (Note you need to use the -X option on the mvn command you are using 
 to make the expanded console output appear so that you can see if you too get 
 this error message).
 
 ...snip...
 [DEBUG] Connecting to repository: 'central' with url: 
 'http://repo1.maven.org/maven2'.
 [DEBUG] Using Proxy: b1web1.obfuscated.org
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
 [DEBUG] Access denied to: 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
 org.apache.maven.wagon.authorization.AuthorizationException: Access denied 
 to: 
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
 at 
 org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:119)
 at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
 at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
 at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
 at 
 org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:491)
 at 
 org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:372)
   ...snip...
 
 
 
 
 - Original Message 
 From: Paolo Castagna paolo.casta...@hplb.hpl.hp.com
 To: users@maven.apache.org users@maven.apache.org
 Sent: Wednesday, June 10, 2009 4:33:20 AM
 Subject: mvn test -DproxyHost=... -DproxyPort=...
 
 Hi,
 I need to run a test suite which needs to connect to public web servers and
 I am behind a web proxy.
 
 I use:
 
 mvn test -DproxyHost=... -DproxyPort=...
 mvn test -DproxySet=true -DproxyHost=... -DproxyPort=...
 
 Everything works fine with Maven v2.0.9 but with Maven v2.0.10 or v2.1.0
 seems to me that the proxy does not get used.
 
 I am probably missing something obvious...
 
 Any help?
 
 Paolo
 
 -
 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
 
 


-
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



Re: maven-dependency-plugin doesn't find all dependencies in several repositories

2009-06-10 Thread Nick Stolwijk
[quote]
But there seems to be no way to get also Ex3 into that folder, because the
dependency:tree-output doesn't even list Ex3.
[/quote]

Because of this piece I think there is something wrong with the pom
file of your Z artifact. Can you take a look in your local repository
in the pom file of Z to see if the dependency is really compile? It
shouldn't matter in which repo an artifact lives.

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Wed, Jun 10, 2009 at 3:36 PM, gorgopholbenjamin.h...@inter.de wrote:

 Thanks for your fast reply.

 Scope for all dependencies is compile.
 In none of those POMs any scope-tag is used. It's all maven-standard
 (compile).

 If any scope was provided or so, I would understand that it isn't copied.
 But all other dependencies are copied.

 So I thought it might be because Z is in Repos2.
 But that should be no problem in my opinion.
 --
 View this message in context: 
 http://www.nabble.com/maven-dependency-plugin-doesn%27t-find-all-dependencies-in-several-repositories-tp23961970p23962522.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



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



Re: mvn test -DproxyHost=... -DproxyPort=...

2009-06-10 Thread Paolo Castagna

Paolo Castagna wrote:

Paolo Castagna wrote:

Hi,
I need to run a test suite which needs to connect to public web servers and
I am behind a web proxy.

I use:

  mvn test -DproxyHost=... -DproxyPort=...
  mvn test -DproxySet=true -DproxyHost=... -DproxyPort=...

Everything works fine with Maven v2.0.9 but with Maven v2.0.10 or v2.1.0
seems to me that the proxy does not get used.

I am probably missing something obvious...


I think the problem comes from the surefire plugin v2.4.3 used by Maven v2.0.10.

If I use the surefire plugin v2.4.2 I can see a lot of messages for system
properties, including:

   [DEBUG] Setting system property [proxyHost]=[...]
   [DEBUG] Setting system property [proxyPort]=[...]

This does not happen using the surefire plugin v2.4.3.

So, now, I forced v2.4.2 in my pom.xml:

   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
 version2.4.2/version
 [...]
   /plugin

Is this a known problem?


Yes, apparently this is a known BUG and it is not limited to proxyHost or 
proxyPort
system properties... but, of course, is very bad for people who need to run test
suites behind a web proxy:

 This bug is preventing us from using 2.4.3, as we're running our tests behind
  a proxy, i.e. ('mvn test -Dhttp.proxyHost=proxyHost
  -Dhttp.proxyPort=proxyPort), and the system properties http.proxyHost and
  http.proxyPort are being passed in as null. With 2.4.2, it works fine.
  -- http://jira.codehaus.org/browse/SUREFIRE-121

Paolo



Paolo


Any help?

Paolo



-
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



accessing properties current node

2009-06-10 Thread kermitisgreen

hello,
is there a way to access properties of the current node? situation: i am
currently using maven-dependency-plugin:copy to copy various maven artifacts
to a special folder in my webapp and i want the final name of the current
artifactItem to consist of groupId+.+artifactId+_+version. of
course when using the properties like below i only get the coordinates of
the project itself. the original file name in nexus is
svg_1.1.0-v200806040011.jar. Any ideas? Thanks.

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
execution
idcopy/id
phasepackage/phase
goals
goalcopy/goal
/goals
configuration

outputAbsoluteArtifactFilenametrue/outputAbsoluteArtifactFilename

outputDirectory${project.build.directory}/${project.build.finalName}/WEB-INF/platform/plugins/outputDirectory

overWriteReleasesfalse/overWriteReleases

overWriteSnapshotstrue/overWriteSnapshots
artifactItems
artifactItem

groupIdorg.w3c.dom/groupId

artifactIdsvg/artifactId

version1.1.0-v200806040011/version

destFileName${groupId}.${artifactId}_${version}/destFileName!-- WANT IT
TO RESOLVE TO org.w3c.dom.svg_1.1.0-v200806040011.jar --
/artifactItem
/artifactItems
/configuration
/execution
/executions
/plugin
-- 
View this message in context: 
http://www.nabble.com/accessing-properties-%22current%22-node-tp23964005p23964005.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



Help writing plugin

2009-06-10 Thread solo1970

Hello All,

I have 2 questions:

1. Where can I find the most help for writting a Maven plugin (examples,
useful tools,...) besides the regular websites
(www.sonatype.com/books/maven-book/reference/writing-plugins.html,
http://maven.apache.org/plugin-developers/index.html)

2. In my plugin, I have a file and need to know to which artifact this file
belongs to.  Any easy to do this besides traversing the whole directory
tree???

Thanks

Sonia
-- 
View this message in context: 
http://www.nabble.com/Help-writing-plugin-tp23964154p23964154.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



Property interpolation in war plugin

2009-06-10 Thread wkbutler

Hello - 
I believe this should be an easy thing but somehow is not working, using
Maven 2.1.0.

This is one of our resource files -- 
src/main/resources/applicationContext-resource.xml:

bean id=e3DataSource class=org.apache.commons.dbcp.BasicDataSource
destroy-method=close
property name=driverClassName
value=${e3.jdbc.driverClassName}/
property name=url value=${e3.jdbc.url}/
property name=username value=${e3.jdbc.username}/
property name=password value=${e3.jdbc.password}/
property name=maxActive value=100/
property name=maxWait value=1000/
property name=poolPreparedStatements value=true/
property name=defaultAutoCommit value=true/
/bean


When I execute
mvn clean compile war:exploded

I am expecting the ${property.values} to be interpolated with properties
defined in the pom.xml.

I think that the only thing required to make this work is to include this
section in my POM:

  build
resources
  resource
directorysrc/main/resources/directory
filteringtrue/filtering
  /resource
/resources
  /build

as per this documentation  
  
http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files
.

This is not working, however. The generated WAR still contains
un-interpolated values like ${e3.jdbc.url} in that file listed above, and
the rest of our src/main/resources files.

What is confusing to me is that 
#1  - the maven-jetty-plugin manages to do this without any special
configuration - jetty runs fine

#2 - the Maven Getting Started Guide referenced above suggests prefixing
property names with pom, such as ${pom.e3.jdbc.url} - so I tried that of
course, with no luck.

Am I missing something? Should this be working as-is?

This is our maven-war-plugin configuration FWIW:

plugin
artifactIdmaven-war-plugin/artifactId
version2.0.2/version
configuration

filteringDeploymentDescriptorstrue/filteringDeploymentDescriptors
/configuration
/plugin

and I did try the filters section, but that seems to be for using
external/supplemental configuration files.  I did not try using pom.xml as a
filter, but that seems redundant.

Help!  Thanks - 
Kent




-- 
View this message in context: 
http://www.nabble.com/Property-interpolation-in-war-plugin-tp23965676p23965676.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



[ANN] Maven2 javancss plugin 2.0

2009-06-10 Thread Jean-Laurent de Morlhon
The Mojo team is pleased to announce the javancss-maven-plugin 2.0 release !

http://mojo.codehaus.org/javancss-maven-plugin/

This plugin allows user to:

- Compute complexity (CCN) and quantity (NCSS) metrics on your code
- Create a report displaying those number.

Here's the release note :

Release Notes - Maven 2.x JavaNCSS Plugin - Version 2.0

** Bug
* [MJNCSS-11] - JavaNCSS report crashes if code contains some variable
called enum
* [MJNCSS-15] - UTF-8 Support
* [MJNCSS-16] - java annotations (within a method) cannot be parsed
correctly
* [MJNCSS-33] - Error parsing generics
* [MJNCSS-34] - NCSS crashes for class field declarations starting with
@Annotation

** Improvement
* [MJNCSS-13] - Typo in javancss:report parameters documentation
(includes)
* [MJNCSS-14] - Typo in includes/excludes example page
* [MJNCSS-27] - Do not let the check goal fail the build for projects
with no source
* [MJNCSS-28] - Integrate JavaNCSS Version 29.50
* [MJNCSS-36] - add an IT to automatically check if plugin is working
properly in a full site generation
* [MJNCSS-38] - Integrate JavaNCSS version 32.53

** New Feature
* [MJNCSS-31] - add an encoding parameter for source files and use
${project.build.sourceEncoding} as default value

** Wish
* [MJNCSS-32] - show the default javancss version used by the plugin in
its documentation introduction
* [MJNCSS-37] - add JavaNCSS version used in plugin's reports


Enjoy!

-The Mojo team


Re: maven-ejb-plugin was6-maven-plugin generated jar files

2009-06-10 Thread Yoda Koda II

Hi Ken,
I came across this error, I got around it by downloading the plugin sources
and changing the EjbDeployMojo.java to log warnings instead of throwing an
exception.
Like you say the deployed jar has the generated code in anyway so I am
unsure of the need to copy the sources, and why a failure to do so should be
terminal. Maybe a plugin developer could shed some light on this?






Pacileo, Ken wrote:
 
 Hi,
  
 I'm using Maven 2.0.10  RAD6 base_v6 JDK and trying to build a WAS 6.0
 EJB.
  
 So far the maven-ejb-plugin generates the EJB jar file in the
 project/target directory. When the was6 plugin executes, the wsejbdeploy
 task compiles the bindings and creates the WAS EJB in the
 project/target/was6-maven-plugin directory. The wsejbdeploy task
 completes but then there is an error copying generated sources:
 [INFO] [wsejbdeploy]
 
 [INFO] [wsejbdeploy] EJBDeploy complete.
 [INFO] [wsejbdeploy] 0 Errors, 12 Warnings, 0 Informational Messages
 [INFO] 
 [INFO] BUILD SUCCESSFUL
 [INFO] Total time: 1 minute 27 seconds
 [INFO] Return code: 0
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error copying generated sources
  
 Embedded error: Source
 'c:\Work\TestEJB\target\was6-maven-plugin\d7ccc835\TestEJB-0.1-SNAPSHOT\
 ejbModule' does not exist
 
 The location of the generated sources is actually in:
 C:\Work\TestEJB\target\was6-maven-plugin\d7ccc835\c2a6fbcd\ejbModule
  
 The final EJB jar file (./target/was6-maven-plugin/TestEJB-deployed.jar)
 has all the generated class files and descriptor files so I'm unsure why
 the copy step is even needed.
  
 Does anyone know how to fix the copy generated sources error?
  
 There is also an issue with the location of the jar file generated by
 the was6 plugin. The ejb is placed in the wrong directory if I were to
 run the install goal which I can't yet because the build fails from the
 error above.
  
 I tried setting the inputJar and outputJar parameter's in the
 configuration for the was6-maven-plugin but they did nothing. After
 checking the source, I found that those paramters are not defined in the
 mojo at this time. 
  
 I realize this plugin was designed for RAD7 but it appears to be mostly
 working for RAD6 if I can get past these couple issues. Is there a
 workaround to get the plugin to put the final EJB jar file in the target
 directory under the artifactId-version.jar name?
  
 Thanks in advance for any help,
 Regards,
 Ken
  
 
 This e-mail, including attachments, may include confidential and/or
 proprietary information, and may be used only by the person or entity
 to which it is addressed. If the reader of this e-mail is not the intended
 recipient or his or her authorized agent, the reader is hereby notified
 that any dissemination, distribution or copying of this e-mail is
 prohibited. If you have received this e-mail in error, please notify the
 sender by replying to this message and delete this e-mail immediately.
 
 

-- 
View this message in context: 
http://www.nabble.com/maven-ejb-plugin---was6-maven-plugin-generated-jar-files-tp23061582p23966080.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: Help writing plugin

2009-06-10 Thread Wayne Fay
 1. Where can I find the most help for writting a Maven plugin (examples,
 useful tools,...) besides the regular websites
 (www.sonatype.com/books/maven-book/reference/writing-plugins.html,
 http://maven.apache.org/plugin-developers/index.html)

Every single plugin the Maven team has written plus all the ones
hosted at Codehaus have their source code freely available. Find one
that does something similar to what you need, grab the source, and use
that as the base for your plugin.

 2. In my plugin, I have a file and need to know to which artifact this file
 belongs to.  Any easy to do this besides traversing the whole directory
 tree???

It might be more helpful if you describe what exactly you're trying to
do overall in the plugin, rather than describing one little piece of
functionality and trying to figure it out. Traversing directory trees
is not that terribly difficult, either.

Wayne

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



always compile option for maven-compiler-plugin?

2009-06-10 Thread Martin Gainty

Hi Folks

currently using the maven-compiler-plugin d/l from
http://maven.apache.org/plugins/maven-compiler-plugin

anyway to request maven-compiler-plugin always compile 
(instead of check source newer than class)
?
thanks!
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



_
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

Re: Help writing plugin

2009-06-10 Thread solo1970



Because we are using Clearcase, I need a plugin that would take the output
of a diffbl between two baselines (this will give a list of files modified
from one baseline to the other) and figure out to which artifact those files
belong to and list the artifacts and their version.

Sonia





Wayne Fay wrote:
 
 1. Where can I find the most help for writting a Maven plugin (examples,
 useful tools,...) besides the regular websites
 (www.sonatype.com/books/maven-book/reference/writing-plugins.html,
 http://maven.apache.org/plugin-developers/index.html)
 
 Every single plugin the Maven team has written plus all the ones
 hosted at Codehaus have their source code freely available. Find one
 that does something similar to what you need, grab the source, and use
 that as the base for your plugin.
 
 2. In my plugin, I have a file and need to know to which artifact this
 file
 belongs to.  Any easy to do this besides traversing the whole directory
 tree???
 
 It might be more helpful if you describe what exactly you're trying to
 do overall in the plugin, rather than describing one little piece of
 functionality and trying to figure it out. Traversing directory trees
 is not that terribly difficult, either.
 
 Wayne
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Help-writing-plugin-tp23964154p23966707.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: always compile option for maven-compiler-plugin?

2009-06-10 Thread Wayne Fay
 anyway to request maven-compiler-plugin always compile
 (instead of check source newer than class)

If not, it would be pretty simple to add.

Having said that, the recommended approach would be to always use mvn
clean ... which will delete the files in /target, thus guaranteeing
the always compile function you require.

Wayne

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



Re: maven-dependency-plugin doesn't find all dependencies in several repositories

2009-06-10 Thread Stephen Connolly
2009/6/10 Nick Stolwijk nick.stolw...@gmail.com

 [quote]
 But there seems to be no way to get also Ex3 into that folder, because the
 dependency:tree-output doesn't even list Ex3.
 [/quote]

 Because of this piece I think there is something wrong with the pom
 file of your Z artifact. Can you take a look in your local repository
 in the pom file of Z to see if the dependency is really compile? It
 shouldn't matter in which repo an artifact lives.


Unless the artifact is a -SNAPSHOT artifact and you are pulling from a
repository with releases set to false...

I'll dig up the code... somebody helpfully found this strange bug in Maven's
core (found by the versions-maven-plugin)

http://jira.codehaus.org/browse/MVERSIONS-19

essentially, if you have

repository
idmy-snapshot-repository/id
nameMy Snapshot Repository/name
urlhttp://my.repo/snapshot/url
releases
enabledfalse/enabled
/releases
/repository

Then this method:

http://maven.apache.org/ref/current/xref/org/apache/maven/project/artifact/MavenMetadataSource.html#495

This method creates a RepositoryMetadata object of type:

http://maven.apache.org/ref/current/xref/org/apache/maven/artifact/repository/metadata/ArtifactRepositoryMetadata.html#31

This metadata object is passed to the RepositoryMetadataManager:

http://maven.apache.org/ref/current/xref/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.html#58

Which asks the RepositoryMetadata object if it is a snapshot...

http://maven.apache.org/ref/current/xref/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.html#69

but our metadata object can never be a snapshot:

http://maven.apache.org/ref/current/xref/org/apache/maven/artifact/repository/metadata/ArtifactRepositoryMetadata.html#81

So the end result is that we never look in non-release repositories... not
sure if this is a Maven bug or if we should be using a different method.


I tried getting one of the Maven developers to look into it, but had no
luck...


I am also not sure of the implications of changing the existing behaviour
w.r.t. updating the metadata that these functions seem to imply will get
updated.


 Hth,

 Nick Stolwijk
 ~Java Developer~

 Iprofs BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 www.iprofs.nl



 On Wed, Jun 10, 2009 at 3:36 PM, gorgopholbenjamin.h...@inter.de wrote:
 
  Thanks for your fast reply.
 
  Scope for all dependencies is compile.
  In none of those POMs any scope-tag is used. It's all maven-standard
  (compile).
 
  If any scope was provided or so, I would understand that it isn't
 copied.
  But all other dependencies are copied.
 
  So I thought it might be because Z is in Repos2.
  But that should be no problem in my opinion.
  --
  View this message in context:
 http://www.nabble.com/maven-dependency-plugin-doesn%27t-find-all-dependencies-in-several-repositories-tp23961970p23962522.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
 
 

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




Resolve transitively dependencies in a Maven plugin

2009-06-10 Thread Switche
Hello,
Actually, I developp a Maven plugin.
I need to resolve transitively dependencies which are not specified in the
POM of the plugin project.
So, I have written a function which look like to this :


 public SetArtifact resolveTransitively(final String groupId, final String
artifactId,
 final String version, final String
type,
 final ListArtifactRepository
repositories)
 throws Exception {

VersionRange vr = VersionRange.createFromVersionSpec(version);
Artifact artifact =
this.artifactFactory.createDependencyArtifact(groupId, artifactId, vr, type,
null, null);

ResolutionGroup resolutionGroup = metadataSource.retrieve(artifact,
this.localRepository, repositories);
repositories.addAll(resolutionGroup.getResolutionRepositories());

MavenProject prj = this.projectBuilder.buildFromRepository(artifact,
repositories, this.localRepository);

SetArtifact dependencies = resolutionGroup.getArtifacts();
dependencies.add(artifact);
ArtifactResolutionResult resolution =
this.artifactResolver.resolveTransitively(
dependencies,
prj.getArtifact(), Collections.EMPTY_MAP,
this.localRepository,
repositories,
this.metadataSource, null,
Collections.EMPTY_LIST);

SetArtifact result = resolution.getArtifacts();
if (result == null || result.isEmpty()) {
throw new ArtifactNotFoundException(Artifact not found.,
artifact);
}
return result;
}


It seems to the function works with artifacts of type: POM. For instance:

resolveTransitively(org.ow2.easybeans,
easybeans-jpa-eclipselink-dependency, 1.1.0-RC2_JONAS, pom,
project.getRemoteArtifactRepositories());

will produce the output:

Downloading:
http://repo1.maven.org/maven2/org/eclipse/persistence/eclipselink/1.0.1/eclipselink-1.0.1.pom
[INFO] Unable to find resource
'org.eclipse.persistence:eclipselink:pom:1.0.1' in repository central (
http://repo1.maven.org/maven2)
Downloading:
http://www.eclipse.org/downloads/download.php?r=1nf=1file=/rt/eclipselink/maven.repo/org/eclipse/persistence/eclipselink/1.0.1/eclipselink-1.0.1.pom
1K downloaded  (eclipselink-1.0.1.pom)
Downloading:
http://repo1.maven.org/maven2/org/eclipse/persistence/eclipselink/1.0.1/eclipselink-1.0.1.jar
[INFO] Unable to find resource
'org.eclipse.persistence:eclipselink:jar:1.0.1' in repository central (
http://repo1.maven.org/maven2)
Downloading:
http://www.eclipse.org/downloads/download.php?r=1nf=1file=/rt/eclipselink/maven.repo/org/eclipse/persistence/eclipselink/1.0.1/eclipselink-1.0.1.jar
4395K downloaded  (eclipselink-1.0.1.jar)

But, if I use the function on a JAR dependency:

 resolveTransitivelyFiles(org.ow2.easybeans,
easybeans-jpa-default-hibernate, 1.1.0-RC2_JONAS,
jar, project.getRemoteArtifactRepositories());

The resulting set of artifacts is empty. So, the ArtifactNotFoundException
is thrown.
I have used the Maven API 2.1.0.

I have probably missed something, but I don't know why.
Thanks in advance for your help


unreachable maven-xdoc-plugin sites ..

2009-06-10 Thread Martin Gainty

assuming the xdoc-plugin is where its supposed to be
 
http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-xd=
oc-plugin-1.9.2.jar
 
none of the maven-xdoc-plugin-1.9.2.jar sites are reachable
 
what happened?
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



_
Insert movie times and more without leaving Hotmail®. 
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009

Re: unreachable maven-xdoc-plugin sites ..

2009-06-10 Thread Wendy Smoak
2009/6/10 Martin Gainty mgai...@hotmail.com:

 assuming the xdoc-plugin is where its supposed to be
 http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-xd=
 oc-plugin-1.9.2.jar
 none of the maven-xdoc-plugin-1.9.2.jar sites are reachable
 what happened?

The ASF Maven repo ('java-repository') hasn't been on the mirrors for
a long time.

I assume you're following the link from the old Maven 1 plugin website?

I asked Google and turned up a copy on Ibiblio:
http://mirrors.ibiblio.org/pub/mirrors/maven2/maven/maven-xdoc-plugin/1.9.2/

-- 
Wendy

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



RE: unreachable maven-xdoc-plugin sites ..

2009-06-10 Thread Martin Gainty

for some reason the usual repositories dont have xdoc plugin???
for maven 2
http://repo1.maven.org/maven2/org/apache/maven/plugins
for maven 1
http://maven.apache.org/maven-1.x/plugins/xdoc/scm-usage.html
?

Thanks!
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 From: wsm...@gmail.com
 Date: Wed, 10 Jun 2009 13:27:09 -0700
 Subject: Re: unreachable maven-xdoc-plugin sites ..
 To: users@maven.apache.org
 
 2009/6/10 Martin Gainty mgai...@hotmail.com:
 
  assuming the xdoc-plugin is where its supposed to be
  http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-xd=
  oc-plugin-1.9.2.jar
  none of the maven-xdoc-plugin-1.9.2.jar sites are reachable
  what happened?
 
 The ASF Maven repo ('java-repository') hasn't been on the mirrors for
 a long time.
 
 I assume you're following the link from the old Maven 1 plugin website?
 
 I asked Google and turned up a copy on Ibiblio:
 http://mirrors.ibiblio.org/pub/mirrors/maven2/maven/maven-xdoc-plugin/1.9.2/
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 

_
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

Re: unreachable maven-xdoc-plugin sites ..

2009-06-10 Thread Wendy Smoak
On Wed, Jun 10, 2009 at 1:48 PM, Martin Gaintymgai...@hotmail.com wrote:

 for some reason the usual repositories dont have xdoc plugin???
 for maven 2
 http://repo1.maven.org/maven2/org/apache/maven/plugins

What are you trying to accomplish?  There is no xdoc plugin for Maven
2.  Use the site plugin.

 for maven 1
 http://maven.apache.org/maven-1.x/plugins/xdoc/scm-usage.html
 ?

The source code for the old Maven 1 plugin is still there, if for some
reason you need it...

-- 
Wendy

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



'mvn deploy' doesn't create metadata in maven 2.1.0?

2009-06-10 Thread Vonnahme, Paul
I'm new to maven and was trying out repository managers today.  However, the 
'mvn deploy' command was giving me the same error each time I would try to 
deploy.  The 'maven-metadata.xml' file didn't exist (since this was the first 
time it was deployed), and rather than create it maven would throw an error.  
This happened first with nexus and then with artifactory, so I decided to try a 
different version of maven.  Version 2.0.1 works for me, while 2.1.0 doesn't.

Is this a known issue?  Since I'm new to maven I want to make sure this is a 
bug and I'm not just doing something wrong :)

Thanks,
Paul


Running 'mvn deploy' using 2.1.0:
...
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from artifactory.snapshot
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error retrieving previous build number for artifact 'com.principal.ris.SH
RCP.local:RIS_Utility:jar': repository metadata for: 'snapshot com.principal.ris
.SHRCP.local:RIS_Utility:1.0-SNAPSHOT' could not be retrieved from repository: a
rtifactory.snapshot due to an error: Error transferring file: null

http://localhost:8081/artifactory/libs-snapshots-local/com/principal/ris/SHRCP/l
ocal/RIS_Utility/1.0-SNAPSHOT/maven-metadata.xml
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
...


Running 'mvn deploy' using 2.0.1:
...
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from artifactory.snapshot
[INFO] repository metadata for: 'snapshot com.principal.ris.SHRCP.local:RIS_Util
ity:1.0-SNAPSHOT' could not be found on repository: artifactory.snapshot, so wil
l be created
Uploading: http://localhost:8081/artifactory/libs-snapshots-local/com/principal/
ris/SHRCP/local/RIS_Utility/1.0-SNAPSHOT/RIS_Utility-1.0-20090610.204808-1.jar
43K uploaded
[INFO] Retrieving previous metadata from artifactory.snapshot
[INFO] repository metadata for: 'snapshot com.principal.ris.SHRCP.local:RIS_Util
ity:1.0-SNAPSHOT' could not be found on repository: artifactory.snapshot, so wil
l be created
[INFO] Uploading repository metadata for: 'snapshot com.principal.ris.SHRCP.loca
l:RIS_Utility:1.0-SNAPSHOT'
[INFO] Uploading project information for RIS_Utility 1.0-20090610.204808-1
[INFO] Retrieving previous metadata from artifactory.snapshot
[INFO] repository metadata for: 'artifact com.principal.ris.SHRCP.local:RIS_Util
ity' could not be found on repository: artifactory.snapshot, so will be created
[INFO] Uploading repository metadata for: 'artifact com.principal.ris.SHRCP.loca
l:RIS_Utility'
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
...


-Message Disclaimer-

This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to conn...@principal.com and delete or destroy all copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.

Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act (E-Sign)
unless a specific statement to the contrary is included in this message.

While this communication may be used to promote or market a transaction
or an idea that is discussed in the publication, it is intended to provide
general information about the subject matter covered and is provided with
the understanding that The Principal is not rendering legal, accounting,
or tax advice. It is not a marketed opinion and may not be used to avoid
penalties under the Internal Revenue Code. You should consult with
appropriate counsel or other advisors on all matters pertaining to legal,
tax, or accounting obligations and requirements.


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



How to skip install of war in multi-module project?

2009-06-10 Thread Jesfre

Hi everybody...
I have a multi-module project wich contains modules wich generates jar files
and war files, but when I run mvn install on the parent pom.xml, this
installs the war files in the local repository. So, how can I skip the
installation of the war files in the parent pom.xml?

Thanks in advance...
-- 
View this message in context: 
http://www.nabble.com/How-to-skip-install-of-war-in-multi-module-project--tp23972182p23972182.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: How to skip install of war in multi-module project?

2009-06-10 Thread Robert Glover
I'm a new to maven which may be why I think I know the answer. For a while in 
the beginning of my maven usage in the same situation as yours I was doing mvn 
install like you are.  Then I discovered that mvn package  was sufficient 
since all I wanted was for the war file to be in the target directory, not 
copied to the local repository.



From: Jesfre jesfre...@gmail.com
To: users@maven.apache.org
Sent: Wednesday, June 10, 2009 6:17:42 PM
Subject: How to skip install of war in multi-module project?


Hi everybody...
I have a multi-module project wich contains modules wich generates jar files
and war files, but when I run mvn install on the parent pom.xml, this
installs the war files in the local repository. So, how can I skip the
installation of the war files in the parent pom.xml?

Thanks in advance...
-- 
View this message in context: 
http://www.nabble.com/How-to-skip-install-of-war-in-multi-module-project--tp23972182p23972182.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: How to skip install of war in multi-module project?

2009-06-10 Thread Jesfre

Yes, you are right, but I need to install several jars form other modules to
the local repository, skipping the installation of the war modules.



RobertGloverJr wrote:
 
 I'm a new to maven which may be why I think I know the answer. For a while
 in the beginning of my maven usage in the same situation as yours I was
 doing mvn install like you are.  Then I discovered that mvn package 
 was sufficient since all I wanted was for the war file to be in the target
 directory, not copied to the local repository.
 
 
 
 From: Jesfre jesfre...@gmail.com
 To: users@maven.apache.org
 Sent: Wednesday, June 10, 2009 6:17:42 PM
 Subject: How to skip install of war in multi-module project?
 
 
 Hi everybody...
 I have a multi-module project wich contains modules wich generates jar
 files
 and war files, but when I run mvn install on the parent pom.xml, this
 installs the war files in the local repository. So, how can I skip the
 installation of the war files in the parent pom.xml?
 
 Thanks in advance...
 -- 
 View this message in context:
 http://www.nabble.com/How-to-skip-install-of-war-in-multi-module-project--tp23972182p23972182.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
 

-- 
View this message in context: 
http://www.nabble.com/How-to-skip-install-of-war-in-multi-module-project--tp23972182p23972386.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: How to skip install of war in multi-module project?

2009-06-10 Thread Mick Knutson
I just run *mvn clean verify -e*

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring  Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Wed, Jun 10, 2009 at 3:32 PM, Jesfre jesfre...@gmail.com wrote:


 Yes, you are right, but I need to install several jars form other modules
 to
 the local repository, skipping the installation of the war modules.



 RobertGloverJr wrote:
 
  I'm a new to maven which may be why I think I know the answer. For a
 while
  in the beginning of my maven usage in the same situation as yours I was
  doing mvn install like you are.  Then I discovered that mvn package
  was sufficient since all I wanted was for the war file to be in the
 target
  directory, not copied to the local repository.
 
 
  
  From: Jesfre jesfre...@gmail.com
  To: users@maven.apache.org
  Sent: Wednesday, June 10, 2009 6:17:42 PM
  Subject: How to skip install of war in multi-module project?
 
 
  Hi everybody...
  I have a multi-module project wich contains modules wich generates jar
  files
  and war files, but when I run mvn install on the parent pom.xml, this
  installs the war files in the local repository. So, how can I skip the
  installation of the war files in the parent pom.xml?
 
  Thanks in advance...
  --
  View this message in context:
 
 http://www.nabble.com/How-to-skip-install-of-war-in-multi-module-project--tp23972182p23972182.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
 

 --
 View this message in context:
 http://www.nabble.com/How-to-skip-install-of-war-in-multi-module-project--tp23972182p23972386.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




How to use profiles to specify server info?

2009-06-10 Thread David Hoffer
I want to use profiles to control what server username/password is used for
distributionManagement but the profiles section in settings.xml doesn't seem
to allow a servers section.  How can I specify different a different servers
section for a different profile?

It seems the profile section should support more than just repositories
sections, but how?

-dave


Re: How to skip install of war in multi-module project?

2009-06-10 Thread Wayne Fay
 Yes, you are right, but I need to install several jars form other modules to
 the local repository, skipping the installation of the war modules. All this
 form the parent pom.xml.

Others have asked this question, and when pressed on the matter, they
realized that they simply did not WANT the Wars installed to the local
repo cache, and did not truly have an absolute business requirement
that they not be installed. As a result, no one has bothered to change
the functionality to enable this.

If you truly want this to happen, you will probably have to hack the
source code or something. You might be able to set skiptrue in the
m-install-p for the War modules but I'm not sure if that would work,
and even if it did, there may be other things that simply don't work
right because Maven expects that all modules are always available in
the repo cache. So you might fix this but then inadvertantly break
something else down the road because your Wars are not available as
Maven expects.

For me at least, there's really no good reason for NOT installing Wars.

Wayne

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



Archivers could be storing effective-pom.xml in META-INF

2009-06-10 Thread Olivier Dehon
Hi,

I keep mumbling at how tools that interact with Maven-built artifacts
(like repository managers or indexing tools) are unable to present
accurate/complete information about those artifacts, because they lack a
crucial piece of the puzzle, and that is the effective pom that was in
effect during the build of that artifact.

Maven archivers already store the pom.xml in META-INF, but this is not
enough, as a lot of the info could actually be stored somewhere else (in
parent poms, for instance) or be variable (was a certain profile
activated or not during the build, what were the values of the ${...}
placeholders).

I believe it might make sense to get the archivers to store a bit more
information about the build in META-INF, maybe something that resembles
the output of the help:effective-pom mojo, for the purpose of having a
standard place to look for all build-related information in a more
complete and accurate fashion.

WDYT? Is that idea worth creating a JIRA for?

-Olivier


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