Re: SCM 1.5 beta plugin

2005-01-10 Thread Massimo
On Mon, 10 Jan 2005 09:16:55 +1100, Brett Porter [EMAIL PROTECTED] wrote:

 
 If the URL is set to:
 https://myhost.mydomain/repos/mainproject/subproject/trunk
 in project.xml, then the default should work (if not, its a bug).
 

As you said and as expected correcting that URL fix everything. Thanks

-- 
Massimo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



downloading plugins in maven, and managing their versions

2005-01-10 Thread Benedict Heal


1. I want to ensure that all users have the necessary plugins, without their
having to
resort to command-line incantations.

It would seem that I could either have a sub-project - e.g.
installPlugins which
expressed by dependencies of type 'plugin' what was wanted, or I could
write some Jelly.

As this must be a common problem, what do others do, and could they 
point
me to some examples?


2.  Once I have all the necessary plugins, how can I ensure that I have the
latest version of each,
without manually inspecting each site for an explicit version number.

Many thanks,
Benedict
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.9 - Release Date: 06/01/2005


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



downloading plugins in maven, and managing their versions

2005-01-10 Thread Ganesh . K . Rao

Return Receipt
   
Your  downloading plugins in maven, and managing their versions
document   
:  
   
was   Ganesh K Rao/PharmRD/GSK 
received   
by:
   
at:   01/10/2005 09:10:36 AM   
   







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven moving .properties files

2005-01-10 Thread Louis Burroughs
OK, removing them from the resources section did stop my .properties 
from being copied to the root directory.  Now they are not being copied 
over at all.  Is there a way with the current war builder plugin to have 
these files moved with their directory structure intact?


Louis M. Burroughs III, OCTO




Brett Porter [EMAIL PROTECTED]
01/08/2005 05:56 AM
Please respond to Maven Users List




 
To: Maven Users List users@maven.apache.org
cc: 
bcc: 
Subject:Re: Maven moving .properties files


This occurs if they are added to resources section in project.xml.
If you remove them from that, then they should not be copied.

- Brett


On Fri, 7 Jan 2005 18:03:40 -0500, Louis Burroughs
[EMAIL PROTECTED] wrote:
 When I build my war file.  Maven takes my properties files from their
 directory and places them at the root classfile directory
 (../WEB-INF/classes).  Is there any way to stop (modify) this behavior?

 Thanks,
 Louis M. Burroughs III, OCTO


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




eclipse:generate-classpath and multiproject

2005-01-10 Thread Nicolas De Loof
Hi,
I'm trying to use multiproject to build Eclipse .classpath for all my 
subprojects (as some commons dependencies have been updated)

The generated .classpath has an error : output is set to 
D:/workspace/target/classes

When run in the subproject (without multiproject goal) it runs fine - 
output is target/classes

Did I miss something or is it a bug ?
Nico.
This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Conditional dependencies

2005-01-10 Thread Hallingstad Håkon
I have a dependency for an EJB jar that should only be present if
packaging for the WAS userdefined goal. How may I include/exlude
dependencies?

Regards,
Håkon Hallingstad
Software Developer, EDB
+47 2252 8218
[EMAIL PROTECTED]
www.edb.com
IT er ikke alt - men det hjelper

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to get Dashboard to run?!

2005-01-10 Thread Siegfried Goeschl
Hi folks,
I try to get the Dashboard plugin running (1.6 on Maven 1.0.2 on Windows 
XP) on my project.

I started with a single project
+) I added the dashboard-plugin to my Master POM and created the site
+) Looking at the plugin the default configuration should be fine
+) A dashboard report is added but does not contain any data
+) the same for dashboard-data.xml and the stuff in generated-xdocs
Do I miss something here?! For this single project the data for 
checkstyle and clover should be collected?!

Thanks in advance
Siegfried Goeschl

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Stale subproject jar files in repository

2005-01-10 Thread Randy Xu
First of all Dion, kudos to you and your book.  It seems like it'll be 
because of people like you that Maven is really taking off.

Now then, to my question.
I have three subprojects:
* app-lib
* app-jms  (depends on lib)
* app-gui  (depends on lib and jms)
Everything in the project versions in lock-step.  The entire project is 
one version - defined in the top-level project.xml.  Currently it is 
2.1-dev (we'll strip the dev for production release).
So in project.xml:
currentVersion2.1-dev/currentVersion

In app-jms, I would define app-lib as a dependency:
   dependency
 groupIdcom.sknt.picasso/groupId
 artifactIdxenon-lib/artifactId
 version${pom.currentVersion}/version
 typejar/type
   /dependency
This would require the jar to be in the local repository, requiring 
running 'install'  The other way of doing it I just tested is to use 
maven.jar.override and define in project.properties:

maven.jar.app-lib= 
${maven.multiproject.basedir}/app-lib/target/app-lib-${pom.currentVersion}.jar

In either case, I believe the behavior is the same.  So we'll be working 
on our current version for several months, so the filenames won't 
change.  It seems that app-jms will not recompile as long as it sees the 
same filename for app-lib present, even if someone has changed some of 
the classes in app-lib.  For example, if someone mistakenly took away a 
method in a class, I want app-jms to output an error.  I'm not sure that 
it does.  What should the correct behavior be?  And if it's not what I 
described, what needs to be done to make it so?

Thanks.
-Randy
Dion Gillard wrote:
If the classes have changed and not the version, then there's a
problem. A version is not supposed to change (unless it's a SNAPSHOT).
Give us a concrete example and we can talk it out,
e.g.
A version=SNAPSHOT - no dependencies
B version=2.5 - depends on A v 1.2
C version=1.0 - depends on B v2.5
if you run multiproject:install on those, B will use the version of A
in the local repository, NOT the version installed (A-SNAPSHOT.jar).

On Sun, 09 Jan 2005 17:33:47 -0500, Randy Xu [EMAIL PROTECTED] wrote:
 

Actually, it seems to me that there is a stale dependency problem even
when you do run multiproject:install.  It seems that Maven only checks
to see that the version tag (and hence filename) is the same.  I don't
see it recompiling subprojects even when I believe that classes within
dependency subprojects have been recompiled.
Any easy solution to this?
-Randy
Dion Gillard wrote:
   

Dependencies always come from the local repository. If you don't put
the updated dependencies there, the dependent projects will use what's
there.
On Sun, 09 Jan 2005 15:25:20 -0500, Randy Xu [EMAIL PROTECTED] wrote:
 

Would not running multiproject:install mean that changes to subprojects
are not propagated to other subprojects?
So:
1) app-gui depends on app-lib
2) I change app-lib
3) I run multiproject:artifact instead of multiproject:install
app-gui will use the stale app-lib.jar in the repository?
-Randy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Stale subproject jar files in repository

2005-01-10 Thread Ryan Sonnek
I would suggest changing the project currentVersion to 2.1-SNAPSHOT, and
your dependency versions to SNAPSHOT.  snapshot dependencies are handles
differently, and always look for a newest version.

-Original Message-
From: Randy Xu [mailto:[EMAIL PROTECTED]
Sent: Monday, January 10, 2005 10:23 AM
To: Maven Users List
Subject: Re: Stale subproject jar files in repository


First of all Dion, kudos to you and your book.  It seems like it'll be 
because of people like you that Maven is really taking off.

Now then, to my question.

I have three subprojects:
* app-lib
* app-jms  (depends on lib)
* app-gui  (depends on lib and jms)

Everything in the project versions in lock-step.  The entire project is 
one version - defined in the top-level project.xml.  Currently it is 
2.1-dev (we'll strip the dev for production release).
So in project.xml:
currentVersion2.1-dev/currentVersion

In app-jms, I would define app-lib as a dependency:

dependency
  groupIdcom.sknt.picasso/groupId
  artifactIdxenon-lib/artifactId
  version${pom.currentVersion}/version
  typejar/type
/dependency

This would require the jar to be in the local repository, requiring 
running 'install'  The other way of doing it I just tested is to use 
maven.jar.override and define in project.properties:

maven.jar.app-lib= 
${maven.multiproject.basedir}/app-lib/target/app-lib-${pom.currentVersio
n}.jar

In either case, I believe the behavior is the same.  So we'll be working

on our current version for several months, so the filenames won't 
change.  It seems that app-jms will not recompile as long as it sees the

same filename for app-lib present, even if someone has changed some of 
the classes in app-lib.  For example, if someone mistakenly took away a 
method in a class, I want app-jms to output an error.  I'm not sure that

it does.  What should the correct behavior be?  And if it's not what I 
described, what needs to be done to make it so?

Thanks.

-Randy


Dion Gillard wrote:

If the classes have changed and not the version, then there's a
problem. A version is not supposed to change (unless it's a SNAPSHOT).

Give us a concrete example and we can talk it out,

e.g.

A version=SNAPSHOT - no dependencies
B version=2.5 - depends on A v 1.2
C version=1.0 - depends on B v2.5

if you run multiproject:install on those, B will use the version of A
in the local repository, NOT the version installed (A-SNAPSHOT.jar).



On Sun, 09 Jan 2005 17:33:47 -0500, Randy Xu [EMAIL PROTECTED]
wrote:
  

Actually, it seems to me that there is a stale dependency problem even
when you do run multiproject:install.  It seems that Maven only checks
to see that the version tag (and hence filename) is the same.  I don't
see it recompiling subprojects even when I believe that classes within
dependency subprojects have been recompiled.

Any easy solution to this?

-Randy

Dion Gillard wrote:



Dependencies always come from the local repository. If you don't put
the updated dependencies there, the dependent projects will use
what's
there.


On Sun, 09 Jan 2005 15:25:20 -0500, Randy Xu [EMAIL PROTECTED]
wrote:


  

Would not running multiproject:install mean that changes to
subprojects
are not propagated to other subprojects?

So:

1) app-gui depends on app-lib
2) I change app-lib
3) I run multiproject:artifact instead of multiproject:install

app-gui will use the stale app-lib.jar in the repository?

-Randy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


smime.p7s
Description: S/MIME cryptographic signature


RE: How to get Dashboard to run?!

2005-01-10 Thread Vincent Massol
Hi Siegfried,

You'll need to verify that the each subproject properly collects the data.
Check if there's a dashboard-single.xml file in them. The content of these
files are then collated at the top level in a dashboard-data.xml file.

If you don't have any of these files, it means that you've not told the
dashboard plugin to execute on the individual projects.

On http://maven.apache.org/reference/plugins/dashboard/, you'll find 3 ways
of using the plugins listed. Which one are you trying to use?

Thanks
-Vincent

 -Original Message-
 From: Siegfried Goeschl [mailto:[EMAIL PROTECTED]
 Sent: lundi 10 janvier 2005 17:19
 To: Maven Users List
 Subject: How to get Dashboard to run?!
 
 Hi folks,
 
 I try to get the Dashboard plugin running (1.6 on Maven 1.0.2 on Windows
 XP) on my project.
 
 I started with a single project
 
 +) I added the dashboard-plugin to my Master POM and created the site
 +) Looking at the plugin the default configuration should be fine
 +) A dashboard report is added but does not contain any data
 +) the same for dashboard-data.xml and the stuff in generated-xdocs
 
 Do I miss something here?! For this single project the data for
 checkstyle and clover should be collected?!
 
 Thanks in advance
 
 Siegfried Goeschl
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Stale subproject jar files in repository

2005-01-10 Thread Randy Xu
Ah, thanks.  So I assume it checks the timestamp of the file, right?
-Randy
Ryan Sonnek wrote:
I would suggest changing the project currentVersion to 2.1-SNAPSHOT, and
your dependency versions to SNAPSHOT.  snapshot dependencies are handles
differently, and always look for a newest version.
-Original Message-
From: Randy Xu [mailto:[EMAIL PROTECTED]
Sent: Monday, January 10, 2005 10:23 AM
To: Maven Users List
Subject: Re: Stale subproject jar files in repository
First of all Dion, kudos to you and your book.  It seems like it'll be 
because of people like you that Maven is really taking off.

Now then, to my question.
I have three subprojects:
* app-lib
* app-jms  (depends on lib)
* app-gui  (depends on lib and jms)
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to get Dashboard to run?!

2005-01-10 Thread Siegfried Goeschl
Hi Vincent,
well, I have multiple subproject using a Master POM but I'm don't use 
Reactor/Multiproject for the complete build due to memory leaks (I think 
they are still there). But I use a reactor to create a master webpage 
with Velocity.

So I assumed the first step is Solution 1 - Registering it as Maven 
Report to create a report for a single project. But the 
dashboard-single.xml is not created using maven site for the 
individual project. When I run maven dashboard:report-single I do get 
the file since the plugins reruns the required plugins (or takes the 
existing stuff when setting maven.dashboard.rungoals = false). Okay 
thats fine - I updated my project and have now a dashboard-single.xml 
fore each subproject.

But how can I create the Dashboard report for my Master project if all 
dashboard-single.xml exists?!

Thanks in advance
Siegfried Goeschl

Vincent Massol wrote:
Hi Siegfried,
You'll need to verify that the each subproject properly collects the data.
Check if there's a dashboard-single.xml file in them. The content of these
files are then collated at the top level in a dashboard-data.xml file.
If you don't have any of these files, it means that you've not told the
dashboard plugin to execute on the individual projects.
On http://maven.apache.org/reference/plugins/dashboard/, you'll find 3 ways
of using the plugins listed. Which one are you trying to use?
Thanks
-Vincent
 

-Original Message-
From: Siegfried Goeschl [mailto:[EMAIL PROTECTED]
Sent: lundi 10 janvier 2005 17:19
To: Maven Users List
Subject: How to get Dashboard to run?!
Hi folks,
I try to get the Dashboard plugin running (1.6 on Maven 1.0.2 on Windows
XP) on my project.
I started with a single project
+) I added the dashboard-plugin to my Master POM and created the site
+) Looking at the plugin the default configuration should be fine
+) A dashboard report is added but does not contain any data
+) the same for dashboard-data.xml and the stuff in generated-xdocs
Do I miss something here?! For this single project the data for
checkstyle and clover should be collected?!
Thanks in advance
Siegfried Goeschl

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: How to get Dashboard to run?!

2005-01-10 Thread Vincent Massol


 -Original Message-
 From: Siegfried Goeschl [mailto:[EMAIL PROTECTED]
 Sent: lundi 10 janvier 2005 18:26
 To: Maven Users List
 Subject: Re: How to get Dashboard to run?!
 
 Hi Vincent,
 
 well, I have multiple subproject using a Master POM but I'm don't use
 Reactor/Multiproject for the complete build due to memory leaks (I think
 they are still there). But I use a reactor to create a master webpage
 with Velocity.
 
 So I assumed the first step is Solution 1 - Registering it as Maven
 Report to create a report for a single project. But the
 dashboard-single.xml is not created using maven site for the
 individual project. When I run maven dashboard:report-single I do get
 the file since the plugins reruns the required plugins (or takes the
 existing stuff when setting maven.dashboard.rungoals = false). Okay
 thats fine - I updated my project and have now a dashboard-single.xml
 fore each subproject.
 
 But how can I create the Dashboard report for my Master project if all
 dashboard-single.xml exists?!

The only reason I can think of is that you project directory structure does
not match the dashboard plugin defaults. By default it assumes the following
structure:

maven.dashboard.basedir=${basedir}
maven.dashboard.includes=*/project.xml
maven.dashboard.excludes=**/target/**/project.xml

(This is from where you start the master project, i.e. where you type 'maven
site').

By default, if you haven't modified the default dashboard properties, the
dashboard project will execute the reactor an automatically run the
dashboard:report-single goals on your subprojects. You don't need to run it
yourself.

Thanks
-Vincent

 
 Thanks in advance
 
 Siegfried Goeschl
 
 
 
 Vincent Massol wrote:
 
 Hi Siegfried,
 
 You'll need to verify that the each subproject properly collects the
 data.
 Check if there's a dashboard-single.xml file in them. The content of
 these
 files are then collated at the top level in a dashboard-data.xml file.
 
 If you don't have any of these files, it means that you've not told the
 dashboard plugin to execute on the individual projects.
 
 On http://maven.apache.org/reference/plugins/dashboard/, you'll find 3
 ways
 of using the plugins listed. Which one are you trying to use?
 
 Thanks
 -Vincent
 
 
 
 -Original Message-
 From: Siegfried Goeschl [mailto:[EMAIL PROTECTED]
 Sent: lundi 10 janvier 2005 17:19
 To: Maven Users List
 Subject: How to get Dashboard to run?!
 
 Hi folks,
 
 I try to get the Dashboard plugin running (1.6 on Maven 1.0.2 on Windows
 XP) on my project.
 
 I started with a single project
 
 +) I added the dashboard-plugin to my Master POM and created the site
 +) Looking at the plugin the default configuration should be fine
 +) A dashboard report is added but does not contain any data
 +) the same for dashboard-data.xml and the stuff in generated-xdocs
 
 Do I miss something here?! For this single project the data for
 checkstyle and clover should be collected?!
 
 Thanks in advance
 
 Siegfried Goeschl
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to get Dashboard to run?!

2005-01-10 Thread Siegfried Goeschl
Arghhh, you got me - the master project is at the same level as the 
subproject - now it works ... :-)

The only thing which does not work is capturing the CLOVER results. I 
have CLOVER reports but the dashboard-single.xml shows

?xml version=1.0 encoding=UTF-8?
dashboard-single
 aggregator name=cserrors7/aggregator
 aggregator name=cswarnings0/aggregator
 aggregator name=clovertpc-/aggregator
 aggregator name=cloverloc-/aggregator
 aggregator name=cloverncloc-/aggregator
/dashboard-single
Looking at the plugin it looks for a clover.xml and the default of the 
CLOVER plugin is NOT to generate a clover.xml -

maven.clover.report.xml=true
fixes that and now it works like a charm ...
A very happy
Siegfried Goeschl
Vincent Massol wrote:
 

-Original Message-
From: Siegfried Goeschl [mailto:[EMAIL PROTECTED]
Sent: lundi 10 janvier 2005 18:26
To: Maven Users List
Subject: Re: How to get Dashboard to run?!
Hi Vincent,
well, I have multiple subproject using a Master POM but I'm don't use
Reactor/Multiproject for the complete build due to memory leaks (I think
they are still there). But I use a reactor to create a master webpage
with Velocity.
So I assumed the first step is Solution 1 - Registering it as Maven
Report to create a report for a single project. But the
dashboard-single.xml is not created using maven site for the
individual project. When I run maven dashboard:report-single I do get
the file since the plugins reruns the required plugins (or takes the
existing stuff when setting maven.dashboard.rungoals = false). Okay
thats fine - I updated my project and have now a dashboard-single.xml
fore each subproject.
But how can I create the Dashboard report for my Master project if all
dashboard-single.xml exists?!
   

The only reason I can think of is that you project directory structure does
not match the dashboard plugin defaults. By default it assumes the following
structure:
maven.dashboard.basedir=${basedir}
maven.dashboard.includes=*/project.xml
maven.dashboard.excludes=**/target/**/project.xml
(This is from where you start the master project, i.e. where you type 'maven
site').
By default, if you haven't modified the default dashboard properties, the
dashboard project will execute the reactor an automatically run the
dashboard:report-single goals on your subprojects. You don't need to run it
yourself.
Thanks
-Vincent
 

Thanks in advance
Siegfried Goeschl

Vincent Massol wrote:
   

Hi Siegfried,
You'll need to verify that the each subproject properly collects the
 

data.
   

Check if there's a dashboard-single.xml file in them. The content of
 

these
   

files are then collated at the top level in a dashboard-data.xml file.
If you don't have any of these files, it means that you've not told the
dashboard plugin to execute on the individual projects.
On http://maven.apache.org/reference/plugins/dashboard/, you'll find 3
 

ways
   

of using the plugins listed. Which one are you trying to use?
Thanks
-Vincent

 

-Original Message-
From: Siegfried Goeschl [mailto:[EMAIL PROTECTED]
Sent: lundi 10 janvier 2005 17:19
To: Maven Users List
Subject: How to get Dashboard to run?!
Hi folks,
I try to get the Dashboard plugin running (1.6 on Maven 1.0.2 on Windows
XP) on my project.
I started with a single project
+) I added the dashboard-plugin to my Master POM and created the site
+) Looking at the plugin the default configuration should be fine
+) A dashboard report is added but does not contain any data
+) the same for dashboard-data.xml and the stuff in generated-xdocs
Do I miss something here?! For this single project the data for
checkstyle and clover should be collected?!
Thanks in advance
Siegfried Goeschl

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: calling multiproject:goal launches default goal instead

2005-01-10 Thread Eric Giguere
Hi Randy
Yes, got an idea. I have personnaly been playing with the multiproject 
plugin and got tired of trying to control it from a maven script.

If you want to do that kind of processing, you better call the reactor 
yourself instead of going through the multiproject. From what I 
understand of this plugin, its just a facade in front of the reactor. It 
offers a couple of predefined goal to launch plus the capability of 
specifying one on the command line. But, as far as I know, we cannot 
pass parameters to a goal we call. So, the be sure to have to right goal 
called, in your maven xml, insert a reactor tag and from there call the 
goal you want.

Building the project list is very easy with the reactor tag, you have 
the includes and excludes property that allows full control on 
sub-projects filtering.

Take a look there : 
http://maven.apache.org/reference/maven-jelly-tags/tags.html#maven:reactor

Hope it helps
Eric.
Randy Xu wrote:
Hi,
   I've been getting this a lot on my multiproject.  From my 
multiproject root - I set a goal and run multiproject:goal like so:
 j:set var=goal value=move-ejb-descriptors scope=parent /
 attainGoal name=multiproject:goal /

   Then I define the goal name, also in my multiproject root (should 
be inherited):
 goal name=move-ejb-descriptors
 blah
/goal

  Instead of running move-ejb-descriptors, it runs the default goal of 
multiproject:install.  I stopped setting a default goal and it runs 
multiproject:artifact (which I assume is the default default goal).  
Any ideas here?

-Randy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Change a property in a property file

2005-01-10 Thread Randy Xu
In the ANT days, we used to have build tags that would identify a 
particular jar files.  So a version 2.0 of a project might have several 
builds: 2.0.1, 2.0.2, etc... We kept the last build tag in a properties 
file in CVS and updated it with every successful build.

In Jelly, you can load property files with util:properties, but is 
there a way to update a property?
Other than reading in the file, doing a search and replace and then 
outputting it as the same file?

OR - better yet - is there a Maven recommended way of maintaining a 
latest build tag in project.xml?  For example, can I keep it as a 
property?  If so, how can someone update it with each build and check it 
into CVS/SVN?

-Randy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Maven project for a running environment?

2005-01-10 Thread Tom Bostelmann
Is anyone using Maven to create a running environment like, for
instance, CATALINA_BASE?

 

I was wondering if it's possible to have a project that creates a Tomcat
running environment that might look like:

 

conf/

logs/

shared/lib/

temp/

webapps/

 

Then, I'd like to have dependencies for that project be other 'war'-type
projects.  I would create a maven goal that would iterate through the
dependencies and put the artifacts in their respective places.

 

Is it possible?  Is it a bad idea?



Re: Change a property in a property file

2005-01-10 Thread Eric Black
Hi,

I was looking for similar methods but wasn't able to find any way to do
what you (and I) are looking for. I've been creating a plugin to handle
it, but it is kindof specific for my company's needs. Basically, it
does(or will do) the following:

1. uses cvs to get the status(version) of all local files
2. creates a versioned file catalog
3. checks the file catalog into cvs and changes the project version
according to the new version of the file catalog
4. updates a dependency catalog that lists the version as the newest for
all dependent builds

I haven't finished it yet, but it's coming along. Let me know if you find
another way of doing it, need the code, or can think of a more straight
forward process?

Eric 



RE: How to get Dashboard to run?!

2005-01-10 Thread Vincent Massol


 -Original Message-
 From: Siegfried Goeschl [mailto:[EMAIL PROTECTED]
 Sent: lundi 10 janvier 2005 19:34
 To: Maven Users List
 Subject: Re: How to get Dashboard to run?!
 
 Arghhh, you got me - the master project is at the same level as the
 subproject - now it works ... :-)

cool

 
 The only thing which does not work is capturing the CLOVER results. I
 have CLOVER reports but the dashboard-single.xml shows
 
 ?xml version=1.0 encoding=UTF-8?
 
 dashboard-single
   aggregator name=cserrors7/aggregator
   aggregator name=cswarnings0/aggregator
   aggregator name=clovertpc-/aggregator
   aggregator name=cloverloc-/aggregator
   aggregator name=cloverncloc-/aggregator
 /dashboard-single
 
 Looking at the plugin it looks for a clover.xml and the default of the
 CLOVER plugin is NOT to generate a clover.xml -
 
 maven.clover.report.xml=true

This is strange. It is not supposed to be required. I have this jelly code
in the plugin:

  !-- Make sure that the Clover plugin generates only the XML report
(as 
   this is report used by the Clover aggregators to extract
information 
   from). The reason we disable the other reports is to win some
response
   time. --
  j:set var=cloverReportXml
  value=${pom.getVariable('maven.clover.report.xml')}/
  j:set var=maven.clover.report.xml value=true scope=parent/
  j:set var=cloverReportHtml
  value=${pom.getVariable('maven.clover.report.html')}/
  j:set var=maven.clover.report.html value=false scope=parent/
  j:set var=cloverReportSwing
  value=${pom.getVariable('maven.clover.report.swing')}/
  j:set var=maven.clover.report.swing value=false scope=parent/


Hmmm so it means this is not working anymore for some reason... strange
it works it the plugin's tests though...

 
 fixes that and now it works like a charm ...
 
 A very happy
 
 Siegfried Goeschl

Cool :-)

[snip]

-Vincent

___

Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !

Yahoo! Mail : http://fr.mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Maven project for a running environment?

2005-01-10 Thread Ryan, Scott
You might want to check out the project cargo and see if there are some
ideas there.

Scott Damon Ryan
Developer
(720) 514-5389
[EMAIL PROTECTED]

-Original Message-
From: Tom Bostelmann [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 10, 2005 2:10 PM
To: Maven Users List
Subject: Maven project for a running environment?

Is anyone using Maven to create a running environment like, for
instance, CATALINA_BASE?

 

I was wondering if it's possible to have a project that creates a Tomcat
running environment that might look like:

 

conf/

logs/

shared/lib/

temp/

webapps/

 

Then, I'd like to have dependencies for that project be other 'war'-type
projects.  I would create a maven goal that would iterate through the
dependencies and put the artifacts in their respective places.

 

Is it possible?  Is it a bad idea?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Maven project for a running environment?

2005-01-10 Thread Vincent Massol
Yep, it's doing exactly this :-)

-Vincent

 -Original Message-
 From: Ryan, Scott [mailto:[EMAIL PROTECTED]
 Sent: lundi 10 janvier 2005 22:32
 To: 'Maven Users List'
 Subject: RE: Maven project for a running environment?
 
 You might want to check out the project cargo and see if there are some
 ideas there.
 
 Scott Damon Ryan
 Developer
 (720) 514-5389
 [EMAIL PROTECTED]
 
 -Original Message-
 From: Tom Bostelmann [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 10, 2005 2:10 PM
 To: Maven Users List
 Subject: Maven project for a running environment?
 
 Is anyone using Maven to create a running environment like, for
 instance, CATALINA_BASE?
 
 
 
 I was wondering if it's possible to have a project that creates a Tomcat
 running environment that might look like:
 
 
 
 conf/
 
 logs/
 
 shared/lib/
 
 temp/
 
 webapps/
 
 
 
 Then, I'd like to have dependencies for that project be other 'war'-type
 projects.  I would create a maven goal that would iterate through the
 dependencies and put the artifacts in their respective places.
 
 
 
 Is it possible?  Is it a bad idea?
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Maven project for a running environment?

2005-01-10 Thread Tom Bostelmann
Any idea when the Maven plug-in will be released?

-Original Message-
From: Vincent Massol [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 10, 2005 1:39 PM
To: 'Maven Users List'
Subject: RE: Maven project for a running environment?

Yep, it's doing exactly this :-)

-Vincent

 -Original Message-
 From: Ryan, Scott [mailto:[EMAIL PROTECTED]
 Sent: lundi 10 janvier 2005 22:32
 To: 'Maven Users List'
 Subject: RE: Maven project for a running environment?
 
 You might want to check out the project cargo and see if there are
some
 ideas there.
 
 Scott Damon Ryan
 Developer
 (720) 514-5389
 [EMAIL PROTECTED]
 
 -Original Message-
 From: Tom Bostelmann [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 10, 2005 2:10 PM
 To: Maven Users List
 Subject: Maven project for a running environment?
 
 Is anyone using Maven to create a running environment like, for
 instance, CATALINA_BASE?
 
 
 
 I was wondering if it's possible to have a project that creates a
Tomcat
 running environment that might look like:
 
 
 
 conf/
 
 logs/
 
 shared/lib/
 
 temp/
 
 webapps/
 
 
 
 Then, I'd like to have dependencies for that project be other
'war'-type
 projects.  I would create a maven goal that would iterate through the
 dependencies and put the artifacts in their respective places.
 
 
 
 Is it possible?  Is it a bad idea?
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven project for a running environment?

2005-01-10 Thread Brett Porter
there is also the appserver plugin. I'm more than happy for cargo to
replace this when it has maven support though.


On Mon, 10 Jan 2005 14:08:41 -0800, Tom Bostelmann [EMAIL PROTECTED] wrote:
 Any idea when the Maven plug-in will be released?
 
 -Original Message-
 From: Vincent Massol [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 10, 2005 1:39 PM
 To: 'Maven Users List'
 Subject: RE: Maven project for a running environment?
 
 Yep, it's doing exactly this :-)
 
 -Vincent
 
  -Original Message-
  From: Ryan, Scott [mailto:[EMAIL PROTECTED]
  Sent: lundi 10 janvier 2005 22:32
  To: 'Maven Users List'
  Subject: RE: Maven project for a running environment?
 
  You might want to check out the project cargo and see if there are
 some
  ideas there.
 
  Scott Damon Ryan
  Developer
  (720) 514-5389
  [EMAIL PROTECTED]
 
  -Original Message-
  From: Tom Bostelmann [mailto:[EMAIL PROTECTED]
  Sent: Monday, January 10, 2005 2:10 PM
  To: Maven Users List
  Subject: Maven project for a running environment?
 
  Is anyone using Maven to create a running environment like, for
  instance, CATALINA_BASE?
 
 
 
  I was wondering if it's possible to have a project that creates a
 Tomcat
  running environment that might look like:
 
 
 
  conf/
 
  logs/
 
  shared/lib/
 
  temp/
 
  webapps/
 
 
 
  Then, I'd like to have dependencies for that project be other
 'war'-type
  projects.  I would create a maven goal that would iterate through the
  dependencies and put the artifacts in their respective places.
 
 
 
  Is it possible?  Is it a bad idea?
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Handling conflicting JAR version requirements

2005-01-10 Thread Rick Mann
Hi. I'm fairly new to Maven, but over the weekend I got it to build my 
torque/struts-based webapp, and I'm hooked. Now I'm trying to sell the 
concept at work, and I've come up with a situation that I'm not sure 
how to handle.

Let's say I'm writing a struts webapp, and that both struts and my app 
depend on foo.jar. For the sake of argument, let's also say I'm 
building struts from source as well. Now say that my struts work and my 
webapp work depend on having different versions of the same foo.jar.

I know how maven handles this in a build situation, and it seems to 
work great.

aside
Hmm. I realize that what I'm about to ask strays off-topic, as it is 
not specific to maven but a much more general Java situation. Forgive 
me for asking anyway. Is there a concise, authoritative reference that 
explains this? (Also, feel free to tell me to shut up).
/aside

Now I want to deploy my webapp with my struts build, and maven can do 
that, too. But what happens when it tries to put the two versions of 
foo.jar in the WEB-INF/lib directory? When the container loads my 
application, its classloader is going to load both JARs. What happens? 
Last one loaded wins? First? Unpredictable?

I really appreciate any light you can shed. Thank you.

--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Maven project for a running environment?

2005-01-10 Thread Vincent Massol
Hi Tom,

 -Original Message-
 From: Tom Bostelmann [mailto:[EMAIL PROTECTED]
 Sent: lundi 10 janvier 2005 23:09
 To: Maven Users List
 Subject: RE: Maven project for a running environment?
 
 Any idea when the Maven plug-in will be released?

I know that Arnaud Heritier is working on it but we have no idea yet when
it'll be released. Now that said, Cargo is meant to be embedded (it's a pure
java API) and already provides an Ant task. So you can use it extremely
easily in your maven.xml for example. 

See http://cargo.codehaus.org/Ant+support for example.

Thanks
-Vincent

 
 -Original Message-
 From: Vincent Massol [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 10, 2005 1:39 PM
 To: 'Maven Users List'
 Subject: RE: Maven project for a running environment?
 
 Yep, it's doing exactly this :-)
 
 -Vincent
 
  -Original Message-
  From: Ryan, Scott [mailto:[EMAIL PROTECTED]
  Sent: lundi 10 janvier 2005 22:32
  To: 'Maven Users List'
  Subject: RE: Maven project for a running environment?
 
  You might want to check out the project cargo and see if there are
 some
  ideas there.
 
  Scott Damon Ryan
  Developer
  (720) 514-5389
  [EMAIL PROTECTED]
 
  -Original Message-
  From: Tom Bostelmann [mailto:[EMAIL PROTECTED]
  Sent: Monday, January 10, 2005 2:10 PM
  To: Maven Users List
  Subject: Maven project for a running environment?
 
  Is anyone using Maven to create a running environment like, for
  instance, CATALINA_BASE?
 
 
 
  I was wondering if it's possible to have a project that creates a
 Tomcat
  running environment that might look like:
 
 
 
  conf/
 
  logs/
 
  shared/lib/
 
  temp/
 
  webapps/
 
 
 
  Then, I'd like to have dependencies for that project be other
 'war'-type
  projects.  I would create a maven goal that would iterate through the
  dependencies and put the artifacts in their respective places.
 
 
 
  Is it possible?  Is it a bad idea?
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


___

Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !

Yahoo! Mail : http://fr.mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]