Re: Continuum Uninstall

2006-11-07 Thread jacob thomas

i removed the registry entries and restarted the machine,i am able to
reinstall now and it works fine for me, thanks.
~jacob


Emmanuel Venisse wrote:
 
 You have a quote in your PATH, remove it and all will work fine.
 
 Emmanuel
 
 jacob thomas a écrit :
 Hi, I am facing an issue, I am very new to the Continuum Tool. 
 
 The issues is, I removed continuum from the box, and even clear the
 registry
 also for conitinuum service. I tried to 
 reinstall, unpacked it under the C://... and i ran the command run.bat. 
 JAVA_HOME, M2_HOME is also set in both system  user environment.
 
 Here is the error log I am getting:
 ---
 C:\continuum-1.0.3\bin\win32run.bat
 
 wrapper  | -- Wrapper Started as Console
 wrapper  | Launching a JVM...
 jvm 1  | java.lang.NoClassDefFoundError: Files\Crimson
 jvm 1  | Exception in thread main
 wrapper  | JVM exited while loading the application.
 wrapper  | Launching a JVM...
 jvm 2  | java.lang.NoClassDefFoundError: Files\Crimson
 jvm 2  | Exception in thread main
 wrapper  | JVM exited while loading the application.
 wrapper  | Launching a JVM...
 jvm 3  | java.lang.NoClassDefFoundError: Files\Crimson
 jvm 3  | Exception in thread main
 wrapper  | JVM exited while loading the application.
 wrapper  | Launching a JVM...
 jvm 4  | java.lang.NoClassDefFoundError: Files\Crimson
 jvm 4  | Exception in thread main
 wrapper  | JVM exited while loading the application.
 wrapper  | Launching a JVM...
 jvm 5  | java.lang.NoClassDefFoundError: Files\Crimson
 jvm 5  | Exception in thread main
 wrapper  | JVM exited while loading the application.
 wrapper  | There were 5 failed launches in a row, each lasting less than
 300
 seconds.  Giving up.
 wrapper  |   There may be a configuration problem: please check the logs.
 wrapper  | -- Wrapper Stopped
 Press any key to continue . . .
 --
 
 I got stuck at this point, let me know if anybody knows the solution how
 to
 unInstall  reInstall.
 
 Thanks  Regards
 
 Jacob Thomas
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Continuum-Uninstall-tf2567514.html#a7216893
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: configuring email nofifiers

2006-11-07 Thread Emmanuel Venisse

You can checkout Maven-SCM (http://svn.apache.org/repos/asf/maven/scm/trunk/)
build it, you probably need to skip all tests because it require some tools 
installed.
Then, you'll replace all maven-scm-* in your continuum by new ones.

If you don't want to build it, you can download artifacts from the snapshot repo 
(http://people.apache.org/maven-snapshot-repository/org/apache/maven/scm/)


Emmanuel

Morgovsky, Alexander (US - Glen Mills) a écrit :

Thanks, how should I verify that this is fixed, in that, from where should I 
try to check out, build, and deploy to?  Thanks.

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 4:12 AM

To: continuum-users@maven.apache.org
Subject: Re: configuring email nofifiers

I think this bug is fixed in maven-scm trunk but not sure. File an issue about it 
(http://jira.codehaus.org/browse/SCM) and I'll look at it later.


Emmanuel

Morgovsky, Alexander (US - Glen Mills) a écrit :

It looks like the checkout is jumbling my svn username/password:

svn --username user:passw --non-interactive checkout instead of
svn --username user --password passw ...

Is this a known bug?

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 06, 2006 4:08 PM

To: continuum-users@maven.apache.org
Subject: Re: configuring email nofifiers

You can configure it in apps/continuum/conf/application.xml 
(MailContinuumNotifer component)

Emmanuel

[EMAIL PROTECTED] a écrit :

Hi,

Is there a way in which the email notification verbosity can be turned 
down ? For example can the email just contain the  project name, the build 
result and a url to the build results page which would have the build 
output in full detail ?


With thanks,

Ashley


-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase  Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.



This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message. 



Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]












Re: Performance collapse when logged as admin

2006-11-07 Thread Jesse McConnell

hm, that sounds to me like it would be an issue with the speed of
authz activities on those pages, they had been really slow until I put
in abit of per page caching in the session to speed it up...and it was
a lot faster from then on...but this could be something related to
that.

what database are you guys using for this?  the derby one with the release?

jesse

On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:

Yes, I had the same and also I see th bug which not allowing me to start
every created goal for project. I also decided to return to 1.0.1.

Best regards,
 Juri.

-Original Message-
From: Samuel Langlois [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 12:28 PM
To: continuum-users@maven.apache.org
Subject: Performance collapse when logged as admin


Hello,

I find Continuum web console very slow, especially when logged as admin,
and I think there is something wrong.

For instance, to display the summary page of a project group containing
3 projects, it takes a few seconds when not logged in, and 20s when
logged as admin. For a project group containing 58 projects, it goes
from 15s (which is already quite long...) to an amazing 130s when logged
as admin.

I use Continuum 1.0.3-maestro-1.1 with all default settings.
I have the feeling (but cannot confirm) that the version shipped with
Maestro 1.0.1 did not show this problem. My server is a Pentium4, 1.5GHz
under Fedora Core 5. Not really a speed king, but still... I recently
upgraded it to 1Go RAM without much effect.

Am I the only one in this situation?
How can I help diagnose the problem further?

Thanks for your help

Samuel






--
jesse mcconnell
[EMAIL PROTECTED]


Re: Performance collapse when logged as admin

2006-11-07 Thread Jesse McConnell

k, then my bet is its something up with that authz behavior there.

do you have any custom roles?

what is the name of the project in question?  (ie, The Doxia Project)
you can make something up that follows the same naming structure

thanks, and I'll try and nail this down in continuum
jesse

On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:

I believe the same that goes with Continuum, yea I suppose this is
derby.

-Original Message-
From: Jesse McConnell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 3:48 PM
To: continuum-users@maven.apache.org
Subject: Re: Performance collapse when logged as admin


hm, that sounds to me like it would be an issue with the speed of authz
activities on those pages, they had been really slow until I put in abit
of per page caching in the session to speed it up...and it was a lot
faster from then on...but this could be something related to that.

what database are you guys using for this?  the derby one with the
release?

jesse

On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
 Yes, I had the same and also I see th bug which not allowing me to
 start every created goal for project. I also decided to return to
 1.0.1.

 Best regards,
  Juri.

 -Original Message-
 From: Samuel Langlois [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 07, 2006 12:28 PM
 To: continuum-users@maven.apache.org
 Subject: Performance collapse when logged as admin


 Hello,

 I find Continuum web console very slow, especially when logged as
 admin, and I think there is something wrong.

 For instance, to display the summary page of a project group
 containing 3 projects, it takes a few seconds when not logged in, and
 20s when logged as admin. For a project group containing 58 projects,
 it goes from 15s (which is already quite long...) to an amazing 130s
 when logged as admin.

 I use Continuum 1.0.3-maestro-1.1 with all default settings. I have
 the feeling (but cannot confirm) that the version shipped with Maestro

 1.0.1 did not show this problem. My server is a Pentium4, 1.5GHz under

 Fedora Core 5. Not really a speed king, but still... I recently
 upgraded it to 1Go RAM without much effect.

 Am I the only one in this situation?
 How can I help diagnose the problem further?

 Thanks for your help

 Samuel





--
jesse mcconnell
[EMAIL PROTECTED]




--
jesse mcconnell
[EMAIL PROTECTED]


RE: Performance collapse when logged as admin

2006-11-07 Thread Artamonov, Juri
What I did is just installed Maestro 1.1 and created admin user. Then I
just added simple single module project and defined several goals for
it. That's all. After I saw that it's slow comparing with Maestro 1.0.1
and I couldn't start any goal I created except default goal I decided to
move back to Maestro 1.0.1.

Please let me know if you have more questions.

Best regards,
 Juri.

-Original Message-
From: Jesse McConnell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 3:55 PM
To: continuum-users@maven.apache.org
Subject: Re: Performance collapse when logged as admin


k, then my bet is its something up with that authz behavior there.

do you have any custom roles?

what is the name of the project in question?  (ie, The Doxia Project)
you can make something up that follows the same naming structure

thanks, and I'll try and nail this down in continuum
jesse

On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
 I believe the same that goes with Continuum, yea I suppose this is 
 derby.

 -Original Message-
 From: Jesse McConnell [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 07, 2006 3:48 PM
 To: continuum-users@maven.apache.org
 Subject: Re: Performance collapse when logged as admin


 hm, that sounds to me like it would be an issue with the speed of 
 authz activities on those pages, they had been really slow until I put

 in abit of per page caching in the session to speed it up...and it was

 a lot faster from then on...but this could be something related to 
 that.

 what database are you guys using for this?  the derby one with the 
 release?

 jesse

 On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
  Yes, I had the same and also I see th bug which not allowing me to 
  start every created goal for project. I also decided to return to 
  1.0.1.
 
  Best regards,
   Juri.
 
  -Original Message-
  From: Samuel Langlois [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 07, 2006 12:28 PM
  To: continuum-users@maven.apache.org
  Subject: Performance collapse when logged as admin
 
 
  Hello,
 
  I find Continuum web console very slow, especially when logged as 
  admin, and I think there is something wrong.
 
  For instance, to display the summary page of a project group 
  containing 3 projects, it takes a few seconds when not logged in, 
  and 20s when logged as admin. For a project group containing 58 
  projects, it goes from 15s (which is already quite long...) to an 
  amazing 130s when logged as admin.
 
  I use Continuum 1.0.3-maestro-1.1 with all default settings. I have 
  the feeling (but cannot confirm) that the version shipped with 
  Maestro

  1.0.1 did not show this problem. My server is a Pentium4, 1.5GHz 
  under

  Fedora Core 5. Not really a speed king, but still... I recently 
  upgraded it to 1Go RAM without much effect.
 
  Am I the only one in this situation?
  How can I help diagnose the problem further?
 
  Thanks for your help
 
  Samuel
 
 
 


 --
 jesse mcconnell
 [EMAIL PROTECTED]



-- 
jesse mcconnell
[EMAIL PROTECTED]


Re: Performance collapse when logged as admin

2006-11-07 Thread Christian Edward Gruber
Hmm.  It would probably be wise to fetch the logo upon configuration
change, and drop it in the local database, then serve it from the db
(cached in memory after first load, of course).  It's only one image,
and I think having it locally available might be useful.

regards,
Christian.

P.S.  There might be licensing/copyright issues, but that's really the
problem of the administrator.  I suppose a check-box to say cache logo
locally would be a  good way to keep maximal choice. -cg

Carlos Sanchez wrote:
 I saw that problem when the logo is not available and times out, the
 page looks slow.

 On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
 What I did is just installed Maestro 1.1 and created admin user. Then I
 just added simple single module project and defined several goals for
 it. That's all. After I saw that it's slow comparing with Maestro 1.0.1
 and I couldn't start any goal I created except default goal I decided to
 move back to Maestro 1.0.1.

 Please let me know if you have more questions.

 Best regards,
  Juri.

 -Original Message-
 From: Jesse McConnell [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 07, 2006 3:55 PM
 To: continuum-users@maven.apache.org
 Subject: Re: Performance collapse when logged as admin


 k, then my bet is its something up with that authz behavior there.

 do you have any custom roles?

 what is the name of the project in question?  (ie, The Doxia Project)
 you can make something up that follows the same naming structure

 thanks, and I'll try and nail this down in continuum
 jesse

 On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
  I believe the same that goes with Continuum, yea I suppose this is
  derby.
 
  -Original Message-
  From: Jesse McConnell [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 07, 2006 3:48 PM
  To: continuum-users@maven.apache.org
  Subject: Re: Performance collapse when logged as admin
 
 
  hm, that sounds to me like it would be an issue with the speed of
  authz activities on those pages, they had been really slow until I put

  in abit of per page caching in the session to speed it up...and it was

  a lot faster from then on...but this could be something related to
  that.
 
  what database are you guys using for this?  the derby one with the
  release?
 
  jesse
 
  On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
   Yes, I had the same and also I see th bug which not allowing me to
   start every created goal for project. I also decided to return to
   1.0.1.
  
   Best regards,
Juri.
  
   -Original Message-
   From: Samuel Langlois [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, November 07, 2006 12:28 PM
   To: continuum-users@maven.apache.org
   Subject: Performance collapse when logged as admin
  
  
   Hello,
  
   I find Continuum web console very slow, especially when logged as
   admin, and I think there is something wrong.
  
   For instance, to display the summary page of a project group
   containing 3 projects, it takes a few seconds when not logged in,
   and 20s when logged as admin. For a project group containing 58
   projects, it goes from 15s (which is already quite long...) to an
   amazing 130s when logged as admin.
  
   I use Continuum 1.0.3-maestro-1.1 with all default settings. I have
   the feeling (but cannot confirm) that the version shipped with
   Maestro
 
   1.0.1 did not show this problem. My server is a Pentium4, 1.5GHz
   under
 
   Fedora Core 5. Not really a speed king, but still... I recently
   upgraded it to 1Go RAM without much effect.
  
   Am I the only one in this situation?
   How can I help diagnose the problem further?
  
   Thanks for your help
  
   Samuel
  
  
  
 
 
  --
  jesse mcconnell
  [EMAIL PROTECTED]
 


 -- 
 jesse mcconnell
 [EMAIL PROTECTED]





-- 

*christian** gruber + process coach and architect*

*Israfil Consulting Services Corporation*

*email** [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023*



Re: Performance collapse when logged as admin

2006-11-07 Thread Carlos Sanchez

if your logo is not available it's your configuration problem. I don't
see it as a big problem.

On 11/7/06, Christian Edward Gruber [EMAIL PROTECTED] wrote:

Hmm.  It would probably be wise to fetch the logo upon configuration
change, and drop it in the local database, then serve it from the db
(cached in memory after first load, of course).  It's only one image,
and I think having it locally available might be useful.

regards,
Christian.

P.S.  There might be licensing/copyright issues, but that's really the
problem of the administrator.  I suppose a check-box to say cache logo
locally would be a  good way to keep maximal choice. -cg

Carlos Sanchez wrote:
 I saw that problem when the logo is not available and times out, the
 page looks slow.

 On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
 What I did is just installed Maestro 1.1 and created admin user. Then I
 just added simple single module project and defined several goals for
 it. That's all. After I saw that it's slow comparing with Maestro 1.0.1
 and I couldn't start any goal I created except default goal I decided to
 move back to Maestro 1.0.1.

 Please let me know if you have more questions.

 Best regards,
  Juri.

 -Original Message-
 From: Jesse McConnell [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 07, 2006 3:55 PM
 To: continuum-users@maven.apache.org
 Subject: Re: Performance collapse when logged as admin


 k, then my bet is its something up with that authz behavior there.

 do you have any custom roles?

 what is the name of the project in question?  (ie, The Doxia Project)
 you can make something up that follows the same naming structure

 thanks, and I'll try and nail this down in continuum
 jesse

 On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
  I believe the same that goes with Continuum, yea I suppose this is
  derby.
 
  -Original Message-
  From: Jesse McConnell [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 07, 2006 3:48 PM
  To: continuum-users@maven.apache.org
  Subject: Re: Performance collapse when logged as admin
 
 
  hm, that sounds to me like it would be an issue with the speed of
  authz activities on those pages, they had been really slow until I put

  in abit of per page caching in the session to speed it up...and it was

  a lot faster from then on...but this could be something related to
  that.
 
  what database are you guys using for this?  the derby one with the
  release?
 
  jesse
 
  On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
   Yes, I had the same and also I see th bug which not allowing me to
   start every created goal for project. I also decided to return to
   1.0.1.
  
   Best regards,
Juri.
  
   -Original Message-
   From: Samuel Langlois [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, November 07, 2006 12:28 PM
   To: continuum-users@maven.apache.org
   Subject: Performance collapse when logged as admin
  
  
   Hello,
  
   I find Continuum web console very slow, especially when logged as
   admin, and I think there is something wrong.
  
   For instance, to display the summary page of a project group
   containing 3 projects, it takes a few seconds when not logged in,
   and 20s when logged as admin. For a project group containing 58
   projects, it goes from 15s (which is already quite long...) to an
   amazing 130s when logged as admin.
  
   I use Continuum 1.0.3-maestro-1.1 with all default settings. I have
   the feeling (but cannot confirm) that the version shipped with
   Maestro
 
   1.0.1 did not show this problem. My server is a Pentium4, 1.5GHz
   under
 
   Fedora Core 5. Not really a speed king, but still... I recently
   upgraded it to 1Go RAM without much effect.
  
   Am I the only one in this situation?
   How can I help diagnose the problem further?
  
   Thanks for your help
  
   Samuel
  
  
  
 
 
  --
  jesse mcconnell
  [EMAIL PROTECTED]
 


 --
 jesse mcconnell
 [EMAIL PROTECTED]





--

*christian** gruber + process coach and architect*

*Israfil Consulting Services Corporation*

*email** [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023*






--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride


Re: PROPFIND + authorization failed

2006-11-07 Thread Barrie Treloar

http://freshmeat.net/projects/ntlmaps/

Run this proxy and tell your Subversion client, or Maven, to use the APS
proxy.


This will work for http but won't for https. ntlmaps has problems with
chunked encodings.

From the original problem email the scm url looks like it is http, so

you should be ok.


RE: Project build order

2006-11-07 Thread Petter Måhlén
I haven't done it like that for two reasons:
- the common.jar file shouldn't be distributed, it's only used at build time
to generate code, which in turn should be distributed, and,
- more importantly, the plugin that does code generation has to have the
common.jar file in its classpath, meaning that it needs to be configured as
a plugin dependency. Which it is, but that doesn't seem to affect the build
order. Configuring it as a dependency in two places in the pom doesn't seem
right.

I was looking at the source code for Continuum as well, but I haven't been
able to figure out quite how the ProjectDependencies list of a Project (in
org.apache.maven.continuum.model) gets populated - none of those classes
seems to be included in the Continuum source code, and I haven't yet found
out where they are.

/ Petter

 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 06, 2006 6:41 PM
 To: continuum-users@maven.apache.org
 Subject: Re: Project build order
 
 Sounds to me like Client depends on Server depends on Common.
 
 Thus:
 common/pom.xml
 dependencies...none.../dependencies
 
 server/pom.xml
 dependencies...common.../dependencies
 
 client/pom.xml
 dependencies...server, common.../dependencies or
 dependencies...server.../dependencies and common will be pulled in
 via transitive dependencies
 
 Is there a reason you can't set things up like this, or why this won't
 work for you?
 
 Wayne
 
 On 11/6/06, Petter Måhlén [EMAIL PROTECTED] wrote:
  Hi,
 
  I have a question concerning what I can do to force 
 projects to be built in
  a specific order. There have been some previous similar 
 queries, but they
  don't quite seem to apply to our situation. What we want is this:
 
  1. 'mvn clean install' for project 'common': this leads to 
 a jar file with
  common message definitions for node-node communication 
 being updated.
  2. 'mvn clean install' for project 'server': we have 
 written a simple Maven
  plugin that reads the message definitions, and generates 
 source code that
  parses/packages the messages.
  3. 'ant clean test' for project 'client': this again 
 generates source code
  for parsing/packaging messages, but this time for the client.
 
  Is it possible for us to specify this order somehow? As it 
 is, the builds
  will more or less randomly fail depending on which order 
 they are executed
  in. It may be relevant that the 'server-common' dependency 
 is configured
  like so:
 
  project
  ...
   build
   plugins
 plugin
   groupIdse.jadestone.whine/groupId
   artifactIdmaven-whine-generator/artifactId
   version3.0/version
  ...
   dependencies
 dependency
 
 groupIdse.jadestone.esports/groupId
 artifactIdhc-common/artifactId
 version0.0.1/version
 /dependency
 /dependencies
 /plugin
  ...
 
  The 'common' jar must be available on the classpath of the 
 plugin that
  generates source code, and like this, it is only available 
 at that point,
  which is great since we don't want to include it in the 
 shipped product.
 
  Thanks for any help,
 
  Petter
 
  Cell: +46 704 40 30 25
  Direct: +46 8 442 75 95
  Fax: +46 8 24 05 08
  www.jadestone.se
  Björns Trädgårdsgränd 1, 116 21 Stockholm, Sweden
 
 
 
 



Re: We need some explanation ...

2006-11-07 Thread Arnaud Bailly
Hi Vincent,
The architecture is quite clear now, but there remains some questions:
 - I understand that when calling clover:instrument in any phase, this
 triggers a custom lifecycle (clover LC) that runs instrumentInternal
 and then runs the tests so that clover DB gets populated. This
 lifecycle is forked so that original sources are prevented from
 ending up in artifact. 
 - the original question was about the use of process-sources: It
 seemed to me that coverage intsrumentation should be done after all
 sources are generated. Why is this not the case for clover ?

Thx
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



How to customize pre-archive directory?

2006-11-07 Thread jiangshachina

Hello, 
I'm using customized project directory structure.
To standard Maven Web application project, when run mvn package,
a folder generated at directory target, the folder includes all of
files/dirs would be archived to war file.
I call the folder pre-archived directory :D
I customized three parameters in maven-war-plugin,
configuration
webappDirectorysrc/webapp/webappDirectory
warSourceDirectorysrc/webapp/warSourceDirectory
outputDirectorytarget/outputDirectory
/configuration
and then Maven regards src/webapp as pre-archived directory, that's not my
want.
But I don't find which parameter is used for setting pre-archived directory
:(

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/How-to-customize-%22pre-archive%22-directory--tf2587306s177.html#a7214175
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: maven2+subclipse+svn+m2eclipse plugin

2006-11-07 Thread Tomasz Pik

On 11/6/06, szefo [EMAIL PROTECTED] wrote:


Hi,
Can someone give me any clues how to integrate
maven2+subclipse+svn+m2eclipse plugin ?
I have a multi-module project, stored in one repository.
The problem is that when I checkout this project from repo using subclipse
it is seen by eclipse as single project...
I can go to the folder of the project and run mvn eclipse:eclipse but it
doesn't help...


and then go to 'File' menu and 'Import' as 'Existing project into workspace'
subdirectories.

Regards,
Tomek


Thanks in advance...
Tom


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



Re: Project build order

2006-11-07 Thread Emmanuel Venisse
The build order is defined by 
http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/utils/ProjectSorter.java

We don't look for the moment at plugins dependencies.

Emmanuel

Petter Måhlén a écrit :

I haven't done it like that for two reasons:
- the common.jar file shouldn't be distributed, it's only used at build time
to generate code, which in turn should be distributed, and,
- more importantly, the plugin that does code generation has to have the
common.jar file in its classpath, meaning that it needs to be configured as
a plugin dependency. Which it is, but that doesn't seem to affect the build
order. Configuring it as a dependency in two places in the pom doesn't seem
right.

I was looking at the source code for Continuum as well, but I haven't been
able to figure out quite how the ProjectDependencies list of a Project (in
org.apache.maven.continuum.model) gets populated - none of those classes
seems to be included in the Continuum source code, and I haven't yet found
out where they are.

/ Petter


-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 06, 2006 6:41 PM

To: continuum-users@maven.apache.org
Subject: Re: Project build order

Sounds to me like Client depends on Server depends on Common.

Thus:
common/pom.xml
dependencies...none.../dependencies

server/pom.xml
dependencies...common.../dependencies

client/pom.xml
dependencies...server, common.../dependencies or
dependencies...server.../dependencies and common will be pulled in
via transitive dependencies

Is there a reason you can't set things up like this, or why this won't
work for you?

Wayne

On 11/6/06, Petter Måhlén [EMAIL PROTECTED] wrote:

Hi,

I have a question concerning what I can do to force 

projects to be built in
a specific order. There have been some previous similar 

queries, but they

don't quite seem to apply to our situation. What we want is this:

1. 'mvn clean install' for project 'common': this leads to 

a jar file with
common message definitions for node-node communication 

being updated.
2. 'mvn clean install' for project 'server': we have 

written a simple Maven
plugin that reads the message definitions, and generates 

source code that

parses/packages the messages.
3. 'ant clean test' for project 'client': this again 

generates source code

for parsing/packaging messages, but this time for the client.

Is it possible for us to specify this order somehow? As it 

is, the builds
will more or less randomly fail depending on which order 

they are executed
in. It may be relevant that the 'server-common' dependency 

is configured

like so:

project
...
 build
 plugins
   plugin
 groupIdse.jadestone.whine/groupId
 artifactIdmaven-whine-generator/artifactId
 version3.0/version
...
 dependencies
   dependency
   

groupIdse.jadestone.esports/groupId

   artifactIdhc-common/artifactId
   version0.0.1/version
   /dependency
   /dependencies
   /plugin
...

The 'common' jar must be available on the classpath of the 

plugin that
generates source code, and like this, it is only available 

at that point,
which is great since we don't want to include it in the 

shipped product.

Thanks for any help,

Petter

Cell: +46 704 40 30 25
Direct: +46 8 442 75 95
Fax: +46 8 24 05 08
www.jadestone.se
Björns Trädgårdsgränd 1, 116 21 Stockholm, Sweden













Re: configuring email nofifiers

2006-11-07 Thread Emmanuel Venisse
I think this bug is fixed in maven-scm trunk but not sure. File an issue about it 
(http://jira.codehaus.org/browse/SCM) and I'll look at it later.


Emmanuel

Morgovsky, Alexander (US - Glen Mills) a écrit :

It looks like the checkout is jumbling my svn username/password:

svn --username user:passw --non-interactive checkout instead of
svn --username user --password passw ...

Is this a known bug?

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 06, 2006 4:08 PM

To: continuum-users@maven.apache.org
Subject: Re: configuring email nofifiers

You can configure it in apps/continuum/conf/application.xml 
(MailContinuumNotifer component)

Emmanuel

[EMAIL PROTECTED] a écrit :

Hi,

Is there a way in which the email notification verbosity can be turned 
down ? For example can the email just contain the  project name, the build 
result and a url to the build results page which would have the build 
output in full detail ?


With thanks,

Ashley


-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase  Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.




This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message. 



Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]







unable to find resource 'VM_global_library.vm'

2006-11-07 Thread Deluigi Marcus
Hi 

I am new to Maven and I am following the 'getting started' guide
step-by-step.
When I try to create the site documentation and execute:

8
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app \
  -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-site
8

I get the appended error message.

Is my system corrupt or is it a maven (or plugin) bug?
Everything else works fine.

I have Maven v2.0.4, and Java 1.5.0_09

8
$ mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
-DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId
=maven-archetype-site
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]


[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]


[INFO] Setting property: classpath.resource.loader.class =
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any resource loader.
[INFO] Velocimacro : error using  VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
be  global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.mycompany.app
[INFO]


[INFO] Using following parameters for creating Archetype:
maven-archetype-site:RELEASE
[INFO]


[INFO] Parameter: groupId, Value: com.mycompany.app
[INFO] Parameter: packageName, Value: com.mycompany.app
[INFO] Parameter: basedir, Value: d:\Workspace\Maven-Test\my-app
[INFO] Parameter: package, Value: com.mycompany.app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: my-app
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error creating from archetype

Embedded error: Unable to add module to the current project as it is not
of packaging type 'pom'
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Nov 07 10:19:18 CET 2006
[INFO] Final Memory: 4M/8M
[INFO]


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



Re: Maven 2, Eclipse WTP

2006-11-07 Thread Alexandre Touret

Hello,
I have already tried this.

Regards,
Alexandre
[EMAIL PROTECTED] wrote:

Hi

Try: mvn -DwtpVersion=1.0 eclipse:eclipse

Hermod

  



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



RE: We need some explanation ...

2006-11-07 Thread Vincent Massol


 -Original Message-
 From: Arnaud Bailly [mailto:[EMAIL PROTECTED]
 Sent: mardi 7 novembre 2006 09:04
 To: Maven Users List
 Subject: Re: We need some explanation ...
 
 Hi Vincent,
 The architecture is quite clear now, but there remains some questions:
  - I understand that when calling clover:instrument in any phase, this
  triggers a custom lifecycle (clover LC) that runs instrumentInternal
  and then runs the tests so that clover DB gets populated. This
  lifecycle is forked so that original sources are prevented from
  ending up in artifact.

Yes, exactly.

  - the original question was about the use of process-sources: It
  seemed to me that coverage intsrumentation should be done after all
  sources are generated. Why is this not the case for clover ?

The clover:instrumentInternal goal is bound to the generate-sources phase
(the first phase for sources). The main reason is that any source generated
is usually already tested (the generators are usually tested) and there's
usually no need to write tests for it. Instrumenting the generated sources
would skew the coverage result. Now I agree that it's possible that there
are cases where you'd want the instrumentation to include generated sources.
This is not supported as of now. Actually nobody has asked for this use case
yet...

Thanks
-Vincent








___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

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



Re: How to customize pre-archive directory?

2006-11-07 Thread jiangshachina

Oh, I may find the problem.
I shall use following scripts,
configuration
warSourceDirectorysrc/webapp/warSourceDirectory
outputDirectorytarget/outputDirectory
/configuration
The warSourceDirectory is my pre-archived directory ^_^
In fact, I didn't understand the doc correctly.
Really, I don't understand webappDirectory well, too.
How to explain the parameter?

a cup of Java, cheers!
Sha Jiang


jiangshachina wrote:
 
 Hello, 
 I'm using customized project directory structure.
 To standard Maven Web application project, when run mvn package,
 a folder generated at directory target, the folder includes all of
 files/dirs would be archived to war file.
 I call the folder pre-archived directory :D
 I customized three parameters in maven-war-plugin,
 configuration
   webappDirectorysrc/webapp/webappDirectory
   warSourceDirectorysrc/webapp/warSourceDirectory
   outputDirectorytarget/outputDirectory
 /configuration
 and then Maven regards src/webapp as pre-archived directory, that's not my
 want.
 But I don't find which parameter is used for setting pre-archived
 directory :(
 
 a cup of Java, cheers!
 Sha Jiang
 

-- 
View this message in context: 
http://www.nabble.com/How-to-customize-%22pre-archive%22-directory--tf2587306s177.html#a7215186
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Project build order

2006-11-07 Thread Petter Måhlén
That's as far as I got, and I got lost at what 'project.getDependencies()'
means. If that doesn't include plugin dependencies, should that be
considered a bug? As far as I can understand, the ProjectSorter will order
projects first in order of dependencies, and then in alphabetical order. So
we're trying to work around this by giving our projects names 'in the build
order' (1-common, 2-server or something along those lines). That doesn't
seem like a very stable solution, so we'd be very grateful for any
suggestions for how to do it otherwise. :)

/ Petter
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 07, 2006 10:07 AM
 To: continuum-users@maven.apache.org
 Subject: Re: Project build order
 
 The build order is defined by 
 http://svn.apache.org/repos/asf/maven/continuum/trunk/continuu
 m-core/src/main/java/org/apache/maven/continuum/utils/ProjectS
 orter.java
 We don't look for the moment at plugins dependencies.
 
 Emmanuel
 
 Petter Måhlén a écrit :
  I haven't done it like that for two reasons:
  - the common.jar file shouldn't be distributed, it's only 
 used at build time
  to generate code, which in turn should be distributed, and,
  - more importantly, the plugin that does code generation 
 has to have the
  common.jar file in its classpath, meaning that it needs to 
 be configured as
  a plugin dependency. Which it is, but that doesn't seem to 
 affect the build
  order. Configuring it as a dependency in two places in the 
 pom doesn't seem
  right.
  
  I was looking at the source code for Continuum as well, but 
 I haven't been
  able to figure out quite how the ProjectDependencies list 
 of a Project (in
  org.apache.maven.continuum.model) gets populated - none of 
 those classes
  seems to be included in the Continuum source code, and I 
 haven't yet found
  out where they are.
  
  / Petter
  
  -Original Message-
  From: Wayne Fay [mailto:[EMAIL PROTECTED] 
  Sent: Monday, November 06, 2006 6:41 PM
  To: continuum-users@maven.apache.org
  Subject: Re: Project build order
 
  Sounds to me like Client depends on Server depends on Common.
 
  Thus:
  common/pom.xml
  dependencies...none.../dependencies
 
  server/pom.xml
  dependencies...common.../dependencies
 
  client/pom.xml
  dependencies...server, common.../dependencies or
  dependencies...server.../dependencies and common will 
 be pulled in
  via transitive dependencies
 
  Is there a reason you can't set things up like this, or 
 why this won't
  work for you?
 
  Wayne
 
  On 11/6/06, Petter Måhlén [EMAIL PROTECTED] wrote:
  Hi,
 
  I have a question concerning what I can do to force 
  projects to be built in
  a specific order. There have been some previous similar 
  queries, but they
  don't quite seem to apply to our situation. What we want is this:
 
  1. 'mvn clean install' for project 'common': this leads to 
  a jar file with
  common message definitions for node-node communication 
  being updated.
  2. 'mvn clean install' for project 'server': we have 
  written a simple Maven
  plugin that reads the message definitions, and generates 
  source code that
  parses/packages the messages.
  3. 'ant clean test' for project 'client': this again 
  generates source code
  for parsing/packaging messages, but this time for the client.
 
  Is it possible for us to specify this order somehow? As it 
  is, the builds
  will more or less randomly fail depending on which order 
  they are executed
  in. It may be relevant that the 'server-common' dependency 
  is configured
  like so:
 
  project
  ...
   build
   plugins
 plugin
   groupIdse.jadestone.whine/groupId
   artifactIdmaven-whine-generator/artifactId
   version3.0/version
  ...
   dependencies
 dependency
 
  groupIdse.jadestone.esports/groupId
 artifactIdhc-common/artifactId
 version0.0.1/version
 /dependency
 /dependencies
 /plugin
  ...
 
  The 'common' jar must be available on the classpath of the 
  plugin that
  generates source code, and like this, it is only available 
  at that point,
  which is great since we don't want to include it in the 
  shipped product.
  Thanks for any help,
 
  Petter
 
  Cell: +46 704 40 30 25
  Direct: +46 8 442 75 95
  Fax: +46 8 24 05 08
  www.jadestone.se
  Björns Trädgårdsgränd 1, 116 21 Stockholm, Sweden
 
 
 
  
  
  
  
 
 
 



Re: Maven 2, Eclipse WTP

2006-11-07 Thread Alexandre Touret

Alexandre Touret wrote:


2 / The configuration of project facets
how may configure the eclipse plugin in order to specify the versions 
of projects facets of WTP (Servlet API version number, JAVA version 
,...) ?


I finally solved this problem. I add the following configuration to the 
maven-compiler-plugin


   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
   source1.5/source
   target1.5/target
   /configuration
   /plugin

Regards,
Alexandre

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



Re: unable to find resource 'VM_global_library.vm'

2006-11-07 Thread Franz Fehringer




As i stumbled over this some time ago i was told on this list, that

  this is only a warning and not a real problem
  if i am still annoyed i should post not to the Maven but to the
Velocity list

Regards

Franz


Deluigi Marcus schrieb:

  Hi 

I am new to Maven and I am following the 'getting started' guide
step-by-step.
When I try to create the site documentation and execute:

8
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app \
  -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-site
8

I get the appended error message.

Is my system corrupt or is it a maven (or plugin) bug?
Everything else works fine.

I have Maven v2.0.4, and Java 1.5.0_09

8
$ mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
-DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId
=maven-archetype-site
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]


[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]


[INFO] Setting property: classpath.resource.loader.class =
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any resource loader.
[INFO] Velocimacro : error using  VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
be  global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.mycompany.app
[INFO]


[INFO] Using following parameters for creating Archetype:
maven-archetype-site:RELEASE
[INFO]


[INFO] Parameter: groupId, Value: com.mycompany.app
[INFO] Parameter: packageName, Value: com.mycompany.app
[INFO] Parameter: basedir, Value: d:\Workspace\Maven-Test\my-app
[INFO] Parameter: package, Value: com.mycompany.app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: my-app
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error creating from archetype

Embedded error: Unable to add module to the current project as it is not
of packaging type 'pom'
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Nov 07 10:19:18 CET 2006
[INFO] Final Memory: 4M/8M
[INFO]



test resources: empty directories are ignored

2006-11-07 Thread Martin Vysny
Hi,
  I have several directories located in the src/test/resources and I
need them to be copied to target/test-classes. This is of course handled
by maven-resources-plugin, however it does not copy empty directories. I
know it sounds insane to access empty dirs using classloader but I have
my reasons ;)

Thanks in advance,
Martin Vysny


signature.asc
Description: This is a digitally signed message part


Project Notifier removed when editing build definitions

2006-11-07 Thread Emmanuel Hugonnet

Hi,
I have edited my build definition since I have to pass some parameters 
via -D. After that my notifier which was imported from my POM was 
removed :(. It looks like updating the project configuration updates 
everything based on submit and not on previous configuration + changes.

In the database all is removed :(


Re: We need some explanation ...

2006-11-07 Thread Arnaud Bailly
Thanks for the (quick :-)) answer. 

I agree that generated sources are usually
tested and do not need specific tests, so instrumenting them may not
be very useful as far as branch/line coverage is concerned. I can
think however of a use case where you would need coverage of generated
code.

Imagine that your generator provides glue code between
components/classes folloving some pattern of communication and that
you want to cover with your tests the interaction between two
classes. You would need instrumentation information for generated
sources to link standard java method invocation in your classes with
something in your glue code. 

This all depends on what you are trying to cover with your
tests. All tools I am aware of gives you so-called branch or line
coverage, but there exists different coverage information that would
be often more useful to have. 

Best regards,
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: Poor man's web.xml merging

2006-11-07 Thread Arnaud Bailly
Ouuup !

[INFO] [cargo:uberwar]
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Exception merging web.xml

[INFO] 
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Exception merging 
web.xml
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Exception merging 
web.xml
at 
org.codehaus.cargo.maven2.UberWarMojo.doWebXmlMerge(UberWarMojo.java:214)
at org.codehaus.cargo.maven2.UberWarMojo.execute(UberWarMojo.java:169)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 16 more
Caused by: java.lang.NullPointerException
at 
org.codehaus.cargo.maven2.UberWarMojo.doWebXmlMerge(UberWarMojo.java:208)
... 19 more
[INFO] 
[INFO] Total time: 7 seconds
[INFO] Finished at: Tue Nov 07 10:55:44 CET 2006
[INFO] Final Memory: 5M/11M
[INFO] 

Here is my merge.xml:

uberwar

  wars
wartoto:tutu-web/war
wartoto:tutu-testui/war
  /wars

/uberwar


-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



RE: Maven 2, Eclipse WTP

2006-11-07 Thread hermod.opstvedt
Hi

There is a typo here: the exact syntax is: mvn -Dwtpversion=1.0 eclipse:eclipse 
(You can also specify 1.5 and 0.7 for wtpversion)

Hermod

-Original Message-
From: Alexandre Touret [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 10:30 AM
To: Maven Users List
Subject: Re: Maven 2, Eclipse  WTP


Hello,
I have already tried this.

Regards,
Alexandre
[EMAIL PROTECTED] wrote:
 Hi

 Try: mvn -DwtpVersion=1.0 eclipse:eclipse

 Hermod

   


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



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



Re: profile activation based on environment variables

2006-11-07 Thread Arnaud Bailly
Haroon Rafique [EMAIL PROTECTED] writes:

 Hi,

 I'm using maven 2.0.4 on a Gentoo Linux machine. Does anyone have
 experience in activating profiles based on environment variables? I
 figure using the env prefix would do the trick. So, far I have tried:

 profile
 idharoon-workstation/id
 activation
 property
 nameenv.BLAH/name
 valueblah/value
 /property
 /activation
 properties
 user.install.root/www/tomcat/user.install.root
 /properties
 /profile

 After setting:
   export BLAH=blah
 and execuging:
   mvn help:active-profile
 I still get:

Not sure but I think that what you call environment variables are
actually system properties set on maven's cli: Try

activation
property
nameBLAH/name
valueblah/value
/property
/activation

mvn -DBLAH=blah help:active-profile


HTH


-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



[M2] additive module dependencies

2006-11-07 Thread Nathan Coast

Hi,

I'm fairly new to maven 2 and am having some trouble with module 
dependencies.


I have a war project that builds fine when I build it in isolation. 
However, when it is built from the parent project (via the modules 
mechanism) all of the dependencies from all of the modules end up in the 
  WEB-INF/lib directory.  This includes plugin dependencies which are 
only needed at build-time.


Fairly obviously I have done something wrong, I just can't see what. 
Feel free to rtfm me if I've missed the relevant docs :)


cheers
Nathan


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



How to add a new component in Plexus Repository

2006-11-07 Thread jc7442

I try to implement a dashboard (like the one in maven1) plugin. This plugin
is in charge to create a report that summarize results of others reports
(such as surefire, pmd, cpd, ...). I'd like to be able to discover the impl
compliant with my dashboard. So that list will be extendable.

Plexus looks to be a solution to implement that feature.

I implement a DashboardableManager (like the ScmManager in scm plugin) with
its components.xml file. My problem is that my manager is not discovered and
added in plexus-repository.

I suppose that the PlexusContainer is initialized before my plugin is added
in the classpath. What should I do to add a component in Plexus repository ?

In attachment the plugin.  http://www.nabble.com/file/4008/dashboard.zip
dashboard.zip 
-- 
View this message in context: 
http://www.nabble.com/How-to-add-a-new-component-in-Plexus-Repository-tf2587866s177.html#a7215890
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Performance collapse when logged as admin

2006-11-07 Thread Samuel Langlois
Hello,

I find Continuum web console very slow, especially when logged as admin,
and I think there is something wrong.

For instance, to display the summary page of a project group containing 3 
projects,
it takes a few seconds when not logged in, and 20s when logged as admin.
For a project group containing 58 projects, it goes from 15s (which is already 
quite long...)
to an amazing 130s when logged as admin.

I use Continuum 1.0.3-maestro-1.1 with all default settings.
I have the feeling (but cannot confirm) that the version shipped with Maestro 
1.0.1
did not show this problem.
My server is a Pentium4, 1.5GHz under Fedora Core 5. Not really a speed king, 
but still...
I recently upgraded it to 1Go RAM without much effect.

Am I the only one in this situation?
How can I help diagnose the problem further?

Thanks for your help

Samuel




RE: We need some explanation ...

2006-11-07 Thread Vincent Massol


 -Original Message-
 From: Arnaud Bailly [mailto:[EMAIL PROTECTED]
 Sent: mardi 7 novembre 2006 11:03
 To: Maven Users List
 Subject: Re: We need some explanation ...
 
 Thanks for the (quick :-)) answer.
 
 I agree that generated sources are usually
 tested and do not need specific tests, so instrumenting them may not
 be very useful as far as branch/line coverage is concerned. I can
 think however of a use case where you would need coverage of generated
 code.
 
 Imagine that your generator provides glue code between
 components/classes folloving some pattern of communication and that
 you want to cover with your tests the interaction between two
 classes. You would need instrumentation information for generated
 sources to link standard java method invocation in your classes with
 something in your glue code.
 
 This all depends on what you are trying to cover with your
 tests. All tools I am aware of gives you so-called branch or line
 coverage, but there exists different coverage information that would
 be often more useful to have.

As I said I agree that there are valid use cases. Do you need this feature
for your build? If so, please create a jira issue on the Clover plugin. You
could also provide a patch if you need it. It should be quite easy I think:
we'll need to create 2 new goals: One new
clover:instrumentWithGeneratedSources and one
clover:instrumentInternalWithGeneratesSources. It's kind of ugly but I don't
currently see any other way. 

Thanks
-Vincent








___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

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



RE: Poor man's web.xml merging

2006-11-07 Thread Vincent Massol
Hi Arnaud,

I haven't worked on that code so I don't know what's wrong. I do know that
people are able to use it though so it's possible you could get it to work
and the error may be a configuration error.

I think the best would be for you to post anything related to Cargo on the
Cargo user list as the author of this code is reading the emails there. He
may not see it here though.

Thanks
-Vincent

 -Original Message-
 From: Arnaud Bailly [mailto:[EMAIL PROTECTED]
 Sent: mardi 7 novembre 2006 11:05
 To: Maven Users List
 Subject: Re: Poor man's web.xml merging
 
 Ouuup !
 
 [INFO] [cargo:uberwar]
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Exception merging web.xml
 
 [INFO] 
 
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Exception
 merging web.xml
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
 tLifecycleExecutor.java:559)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLife
 cycle(DefaultLifecycleExecutor.java:475)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Default
 LifecycleExecutor.java:454)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandl
 eFailures(DefaultLifecycleExecutor.java:306)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
 (DefaultLifecycleExecutor.java:273)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
 cycleExecutor.java:140)
 at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
 va:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
 rImpl.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)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Exception
 merging web.xml
 at
 org.codehaus.cargo.maven2.UberWarMojo.doWebXmlMerge(UberWarMojo.java:21
 4)
 at
 org.codehaus.cargo.maven2.UberWarMojo.execute(UberWarMojo.java:169)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginM
 anager.java:412)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
 tLifecycleExecutor.java:534)
 ... 16 more
 Caused by: java.lang.NullPointerException
 at
 org.codehaus.cargo.maven2.UberWarMojo.doWebXmlMerge(UberWarMojo.java:20
 8)
 ... 19 more
 [INFO] 
 
 [INFO] Total time: 7 seconds
 [INFO] Finished at: Tue Nov 07 10:55:44 CET 2006
 [INFO] Final Memory: 5M/11M
 [INFO] 
 
 
 Here is my merge.xml:
 
 uberwar
 
   wars
 wartoto:tutu-web/war
 wartoto:tutu-testui/war
   /wars
 
 /uberwar
 
 
 --
 OQube  software engineering \ génie logiciel 
 Arnaud Bailly, Dr.
 \web http://www.oqube.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






___
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses
http://fr.answers.yahoo.com

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



Re: Poor man's web.xml merging

2006-11-07 Thread Nigel Magnay

I think your merge.xml is required to have a context params section

e.g :

webXml
   contextParams
 strategy name=ChooseByName
   default
 strategy name=Preserve/
   /default
   choice name=contextConfigLocation
 strategy name=NodeMerge
   context-param
 param-name$left:param-name/param-name
 param-value$left:param-value $right:param-value/param-value
   /context-param
 /strategy
   /choice
 /strategy
   /contextParams

 /webXml


On 07/11/06, Arnaud Bailly [EMAIL PROTECTED] wrote:


Ouuup !

[INFO] [cargo:uberwar]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Exception merging web.xml

[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Exception merging
web.xml
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Exception
merging web.xml
at org.codehaus.cargo.maven2.UberWarMojo.doWebXmlMerge(
UberWarMojo.java:214)
at org.codehaus.cargo.maven2.UberWarMojo.execute(UberWarMojo.java
:169)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
... 16 more
Caused by: java.lang.NullPointerException
at org.codehaus.cargo.maven2.UberWarMojo.doWebXmlMerge(
UberWarMojo.java:208)
... 19 more
[INFO]

[INFO] Total time: 7 seconds
[INFO] Finished at: Tue Nov 07 10:55:44 CET 2006
[INFO] Final Memory: 5M/11M
[INFO]


Here is my merge.xml:

uberwar

  wars
wartoto:tutu-web/war
wartoto:tutu-testui/war
  /wars

/uberwar


--
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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




Re: How to add a new component in Plexus Repository

2006-11-07 Thread jc7442

I find the bug, Manager has to be retireved

/**
 * @parameter
expression=${component.com.dashboard.DashboardableManager}
 * @required
 * @readonly
 */
private DashboardableManager manager;





jc7442 wrote:
 
 I try to implement a dashboard (like the one in maven1) plugin. This
 plugin is in charge to create a report that summarize results of others
 reports (such as surefire, pmd, cpd, ...). I'd like to be able to discover
 the impl compliant with my dashboard. So that list will be extendable.
 
 Plexus looks to be a solution to implement that feature.
 
 I implement a DashboardableManager (like the ScmManager in scm plugin)
 with its components.xml file. My problem is that my manager is not
 discovered and added in plexus-repository.
 
 I suppose that the PlexusContainer is initialized before my plugin is
 added in the classpath. What should I do to add a component in Plexus
 repository ?
 
 In attachment the plugin.  http://www.nabble.com/file/4008/dashboard.zip
 dashboard.zip 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-add-a-new-component-in-Plexus-Repository-tf2587866s177.html#a7216417
Sent from the Maven - Users mailing list archive at Nabble.com.


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



PROPFIND + authorization failed

2006-11-07 Thread jacob thomas

Hi group,
I  am also facing same kind of an issue
when i try to use the http://.. protocol url, I am getting an error saying 
---
Provider message: The svn command failed.
Command output: 
---
svn: PROPFIND request failed on '/xxx/yyy/zzz'
svn: PROPFIND of '/xxx/yyy/zzz': authorization failed
(http://ipaddress:port)
---
please let me know how to get out of from.
regards
~jacob

-- 
View this message in context: 
http://www.nabble.com/PROPFIND-%2B-authorization-failed-tf2588075.html#a7216485
Sent from the Continuum - Users mailing list archive at Nabble.com.



Debugging Maven

2006-11-07 Thread Deluigi Marcus
Hi

I am quite new to Maven and I need to understand a quite large project
which also happened to have a broken maven build cycle.

Is there any way to:
* list all user-defined goals for each phase
* list all used plugins
* determine which of their goals are used for which phase
* skip a phase / goal

There are 112 poms and the effective pom has 113177 lines, so I prefer
to first retrieve a high-level abstraction.

It seems as if the pre-integration-test phase is broken, so skipping a
phase would be quite useful to get a basis work and then proceed to less
serious problems.

Greetings
Marcus

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



M2 + jetty-plugin + sitemesh

2006-11-07 Thread noon

Hi, 

Has anybody successfully used the M2 jetty6-plugin with projects that uses
e.g. sitemesh filters?

The error message is:
Embedded error: class com.opensymphony.module.sitemesh.filter.PageFilter is
not a javax.servlet.Filter

And here's an excerpt from my web.xml where I define the sitemesh filter:

filter
   filter-namesitemesh/filter-name

filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class
/filter


-- 
View this message in context: 
http://www.nabble.com/M2-%2B-jetty-plugin-%2B-sitemesh-tf2588353s177.html#a7217312
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: M2 + jetty-plugin + sitemesh

2006-11-07 Thread Brett Porter

yes - see Maven Archiva or Continuum.

The problem is likely that you have too many servlet APIs defined. Try
setting the scope on any of your own to 'provided'.

- Brett

On 07/11/06, noon [EMAIL PROTECTED] wrote:


Hi,

Has anybody successfully used the M2 jetty6-plugin with projects that uses
e.g. sitemesh filters?

The error message is:
Embedded error: class com.opensymphony.module.sitemesh.filter.PageFilter is
not a javax.servlet.Filter

And here's an excerpt from my web.xml where I define the sitemesh filter:

filter
   filter-namesitemesh/filter-name

filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class
/filter


--
View this message in context: 
http://www.nabble.com/M2-%2B-jetty-plugin-%2B-sitemesh-tf2588353s177.html#a7217312
Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
Apache Maven - http://maven.apache.org
Better Builds with Maven book - http://library.mergere.com/

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



Re: SV: Eclipse knows resources dir?

2006-11-07 Thread Daniel Serodio
Hermod Opstvedt wrote:
 Hi

 No problem, you need to go into settings/build/Sourcepath path and then add
 src/main/resources as a new source folder. Remember to set target as the
 default output folder
   
Actually, the default output folder should be target/classes/

HTH,
Daniel Serodio

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



Re: M2 + jetty-plugin + sitemesh

2006-11-07 Thread noon

Hi Brett, 

This is how I set the servlet-dependency in pom.xml-file:

dependency
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
version2.3/version
scopeprovided/scope
/dependency

Did you mean this or something else? Otherwise my pom.xml dependecies
constist of (scope)
- spring-2.0 (compile)
- hibernate-3.1.2 (compile)
- log4j-1.2.8 (compile)
- javax.servlet-jstl-1.0.6 (runtime)for JSTL tag lib
- sitemesh-2.2.1 (runtime)
- junit-3.8 (test)
- servlet-api-3.2 (provided)
- commons-dbcp-1.2.1 (compile)

It's a really simple CRUD-type of web application. Just wanted to test it
with the Jetty servlet container. I'm first timer with the Jetty, so I might
miss somethiing in my project.

Brett Porter wrote:
 
 yes - see Maven Archiva or Continuum.
 
 The problem is likely that you have too many servlet APIs defined. Try
 setting the scope on any of your own to 'provided'.
 
 - Brett
 
 On 07/11/06, noon [EMAIL PROTECTED] wrote:

 Hi,

 Has anybody successfully used the M2 jetty6-plugin with projects that
 uses
 e.g. sitemesh filters?

 The error message is:
 Embedded error: class com.opensymphony.module.sitemesh.filter.PageFilter
 is
 not a javax.servlet.Filter

 And here's an excerpt from my web.xml where I define the sitemesh filter:

 filter
filter-namesitemesh/filter-name

 filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class
 /filter


 --
 View this message in context:
 http://www.nabble.com/M2-%2B-jetty-plugin-%2B-sitemesh-tf2588353s177.html#a7217312
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 -- 
 Apache Maven - http://maven.apache.org
 Better Builds with Maven book - http://library.mergere.com/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/M2-%2B-jetty-plugin-%2B-sitemesh-tf2588353s177.html#a7218020
Sent from the Maven - Users mailing list archive at Nabble.com.


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



webstart-plugin: dependencies

2006-11-07 Thread Valerio Schiavoni

hello everyone,
one of the configuration parameters of the webstart plugin looks like the
following:

!-- transitive dependencies filter --
  dependencies
!-- Note that only groupId and artifactId must be specified
here. because of a limitation of the Include/ExcludesArtifactFilter --
includes
   includecommons-logging:commons-logging/include
   includecommons-cli:commons-cli/include
includes
!-- excludes
   exclude/exclude
excludes--
  /dependencies

what is the main intent of the includes or excludes ?
At first, i added my application (the one that has to be distributed via
webstart) as a dependency: then, it seems like I have to add in the includes
block all its dependencies..but then what happen with transitive
dependencies ?...

any one can clarify this ?

thanks,
valerio

--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni


RE: SV: Eclipse knows resources dir?

2006-11-07 Thread hermod.opstvedt
Yepp

-Original Message-
From: Daniel Serodio [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 2:02 PM
To: Maven Users List
Subject: Re: SV: Eclipse knows resources dir?


Hermod Opstvedt wrote:
 Hi

 No problem, you need to go into settings/build/Sourcepath path and then add
 src/main/resources as a new source folder. Remember to set target as the
 default output folder
   
Actually, the default output folder should be target/classes/

HTH,
Daniel Serodio

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



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



Re: Maven 2, Eclipse WTP

2006-11-07 Thread Daniel Serodio
[EMAIL PROTECTED] wrote:
 Hi

 There is a typo here: the exact syntax is: mvn -Dwtpversion=1.0 
 eclipse:eclipse (You can also specify 1.5 and 0.7 for wtpversion)
   
I tried using 1.5 but it gave me an error Unsupported WTP version: 1.5.
This plugin currently supports only the following versions: 1.0 R7 none.

Daniel Serodio
 -Original Message-
 From: Alexandre Touret [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 07, 2006 10:30 AM
 To: Maven Users List
 Subject: Re: Maven 2, Eclipse  WTP


 Hello,
 I have already tried this.

 Regards,
 Alexandre
 [EMAIL PROTECTED] wrote:
   
 Hi

 Try: mvn -DwtpVersion=1.0 eclipse:eclipse

 Hermod
 


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



Maven2, CruiseControl and Surfire

2006-11-07 Thread Alexander Schwartz

Hi,

I am running a maven2 build with CruiseControl 
(http://cruisecontrol.sourceforge.net/).
Now I would like to configure maven2 such that the surefire XML test 
reports are collected
for CruiseControl and displayed on the corresponding Build Results page 
of CruiseControl.


I assume I'm not the first one using this combination
So, has someone a working configuration?
Or any hints, even about failing approaches?

Thanks in advance,

Alex






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



debuging maestro over linux

2006-11-07 Thread Urbieta Matias

Hi, i have had problems with the order of dependencies deploy, so y
wants to debug maestro over linux , but looking the startup script i
have found a wrapper binary. So how may  i debug?
Thanks

--
Lic Matias Urbieta


[maven2] CruiseControl surfire reports

2006-11-07 Thread Alex Schwartz

Hi,

I am running a maven2 build with CruiseControl 
(http://cruisecontrol.sourceforge.net/).
Now I would like to configure maven2 such that the surefire XML test 
reports are collected
for CruiseControl and displayed on the corresponding Build Results page 
of CruiseControl.


I assume I'm not the first one using this combination
So, has someone a working configuration?
Or any hints, even about failing approaches?

Thanks in advance,

Alex

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



Re: webstart-plugin: signing takes soo long..

2006-11-07 Thread Valerio Schiavoni

On 11/6/06, Valerio Schiavoni [EMAIL PROTECTED] wrote:



dnameCn/dnameCn
dnameOu/dnameOu
dnameO/dnameO
dnameL/dnameL
dnameSt/dnameSt
dnameC/dnameC



i found out that specifiying appropriate values for the above elements, the
signing process goes on just fine...is this intended ?


--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni


Re: test-jar - unknown artefact type

2006-11-07 Thread Antonio Parolini

I got the same probleme!

Is the test-jar type actually supported ?

-tony



Ken Helmes wrote:
 
 Hello,
 
  
 
 Has anyone run into this error when trying to use the test-jar type:
 
  
 
 Embedded error: Unknown artefact type[test-jar]
 
  
 
 -  Maven 2.0.4
 
 -  The actual test-jar is created correctly and can be found from
 the repository.  It is when being used that the error comes:
 
 dependency
 
   groupIdconfig/groupId
 
   artifactIdconfig_logic/artifactId
 
   version1.28-SNAPSHOT/version
 
   typetest-jar/type
 
 /dependency
 
  
 
 Ken Helmes
 
 
 
  
 
 
 

-- 
View this message in context: 
http://www.nabble.com/test-jar---unknown-artefact-type-tf2355431s177.html#a7219483
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: VS: Re: test-jar - unknown artefact type

2006-11-07 Thread Antonio Parolini

I agree. We also need this. Does the Maven people plan to include this
feature sometimes ?

-tony


Ken Helmes wrote:
 
 Thanks.  I can't see any good reason for this though.  It seems that this
 would be a pretty common use case - including test jars inside an ear.
 
 Ken 
 
 -Alkuperäinen viesti-
 Lähettäjä: Tom Huybrechts [mailto:[EMAIL PROTECTED] 
 Lähetetty: 29. syyskuuta 2006 16:16
 Vastaanottaja: Maven Users List
 Aihe: Re: Re: test-jar - unknown artefact type
 
 The maven-ear-plugin only handles a limited number of artifact types, and
 test-jar is not one of them.
 See
 https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ear-plugin/src/ma
 in/java/org/apache/maven/plugin/ear/EarModuleFactory.java
 
 Tom
 
 On 9/29/06, Ken Helmes [EMAIL PROTECTED] wrote:

 Tom,

 (This comes as a new post since I was unsubscribed.  I am subscribed
 again.)

 I am working almost exactly from the directions given here:

 http://maven.apache.org/guides/mini/guide-attached-tests.html

 module1 - t2_config (ear level) - multilevel build creates a
 t2_config_logic-1.28-SNAPSHOT-tests.jar including its unit tests.
 The jar level pom includes this and works.

 artifactIdmaven-jar-plugin/artifactId

executions

  execution

goals

  goaltest-jar/goal

/goals

  /execution

/executions

 module2 - t2_test (ear level) - multilevel build wants to include
 t2_config
 test-jar in its ear.
 The ear packaging pom tries to include this:

 dependency

   groupIdt2.1_0_0.t2_config/groupId

   artifactIdt2_config_logic/artifactId

   version1.28-SNAPSHOT/version

   typetest-jar/type

 /dependency

 Putting scopetest/test results in a successful ear build, but the
 t2_config-logic.-tests.jar is not included in the module2 ear.

 Regards,
 Ken


 Can you give us some more context for the error ?
 Try giving your test-jar dependency a scopetest/scope

 Tom

 On 9/29/06, Ken Helmes [EMAIL PROTECTED] wrote:
 
  Hello,
 
 
 
  Has anyone run into this error when trying to use the test-jar type:
 
 
 
  Embedded error: Unknown artefact type[test-jar]
 
 
 
  -  Maven 2.0.4
 
  -  The actual test-jar is created correctly and can be found
 from
  the repository.  It is when being used that the error comes:
 
  dependency
 
groupIdconfig/groupId
 
artifactIdconfig_logic/artifactId
 
version1.28-SNAPSHOT/version
 
typetest-jar/type
 
  /dependency
 
 
 
  Ken Helmes
 
 






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

-- 
View this message in context: 
http://www.nabble.com/Re%3ARe%3A-test-jar---unknown-artefact-type-tf2356074s177.html#a7219560
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Unable to execute javadoc command error

2006-11-07 Thread dohadwala_moiz
Hello,
 
I am getting Unable to execute javadoc command errors while running
mvn site on my project. I have maven 2.0.4 and javadoc plugin 2.1.
 
The error happens in one of the modules only. The projects parent pom
includes cobertura, surefire, and javadoc reporting. When I run maven
with -Dmaven.test.skip=true mvn site runs fine without any javadoc
error. I have run maven with -X and -e options to determine the cause of
the exception. However, the stack trace isn't helpful. 
 
The root cause is an InterruptedException on the process input stream in
plexus's command line util package. The svn source does not match the
stacktrace line numbers anymore. I have manually run the javadoc tool on
the module's source and it ran without errors, there were some warnings
message. However, I don't believe they would cause the plugin error.
 
How do I  turn off the javadoc  plugin for that module only, and still
invoke it in the other modules. The project's parent pom is shared by
other projects and I don't wish to disable javadoc for any other
project.
 
Thanks,
 
-Moiz


Configuring war plugin for using a jar instead of WEB-INF/classes

2006-11-07 Thread Sebastien Brunot
Hi all,
 
i've got a war project which pom build section contains the following
statements:
 
   !-- Package webapp classes into a jar instead of under
WEB-INF/classes -- 
   plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
executions
 execution
  goals
   goalwar/goal
  /goals
  configuration
   archiveClassestrue/archiveClasses
  /configuration
 /execution
/executions
   /plugin

As a result, all the classes and resources from my war project are
packaged in a jar that is copied in the WEB-INF/lib directory of the war
artifact.
 
But i don't understand why the war artifact still contains copy of the
classes and resources under WEB-INF/classes... Does anybody think that
i've misconfigured the war plugin ?
 
Thanks for your help,
 
Sebastien


Réf. : Re: webstart-plugin: signing takes soo long..

2006-11-07 Thread vincent . juge
Unfortunately not...these values were already set.
thanks you anyway.

I've found a workaround : I launch a CruiseControl instance on the same 
station, and the fact to have maven running speeds up the 
signing..weird.

regards.



Extranet
[EMAIL PROTECTED] 


07/11/2006 15:17
Veuillez répondre à
users@maven.apache.org


Pour
users
cc

Objet
Re: webstart-plugin: signing takes soo long..







On 11/6/06, Valerio Schiavoni [EMAIL PROTECTED] wrote:


 dnameCn/dnameCn
 dnameOu/dnameOu
 dnameO/dnameO
 dnameL/dnameL
 dnameSt/dnameSt
 dnameC/dnameC


i found out that specifiying appropriate values for the above elements, 
the
signing process goes on just fine...is this intended ?


-- 
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni



This message and any attachments (the message) is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
message) sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.



Re: Configuring war plugin for using a jar instead of WEB-INF/classes

2006-11-07 Thread Arnaud HERITIER

Hi Sebastien
  It seems to be a bug.
  In the code [1] we have :
if ( archiveClasses )
{
createJarArchive( libDirectory );
}
else
{
copyDirectoryStructureIfModified( classesDirectory,
webappClassesDirectory );
}
  The content of the classes directory is never removed (neither in
createJarArchive nor somewhere else).

  Can you create an issue please ?

Thx

Arnaud

[1]
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java?revision=471624



Sebastien Brunot wrote:
 
 Hi all,
  
 i've got a war project which pom build section contains the following
 statements:
  
!-- Package webapp classes into a jar instead of under
 WEB-INF/classes -- 
plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 executions
  execution
   goals
goalwar/goal
   /goals
   configuration
archiveClassestrue/archiveClasses
   /configuration
  /execution
 /executions
/plugin
 
 As a result, all the classes and resources from my war project are
 packaged in a jar that is copied in the WEB-INF/lib directory of the war
 artifact.
  
 But i don't understand why the war artifact still contains copy of the
 classes and resources under WEB-INF/classes... Does anybody think that
 i've misconfigured the war plugin ?
  
 Thanks for your help,
  
 Sebastien
 
 

-- 
View this message in context: 
http://www.nabble.com/Configuring-war-plugin-for-using-a-jar-instead-of-WEB-INF-classes-tf2589199s177.html#a7219855
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: profile activation based on environment variables

2006-11-07 Thread Haroon Rafique
On Today at 11:07am, AB=Arnaud Bailly [EMAIL PROTECTED] wrote:

AB [..snip..]
AB 
AB Not sure but I think that what you call environment variables are
AB actually system properties set on maven's cli: Try
AB 
AB activation
AB property
AB nameBLAH/name
AB valueblah/value
AB /property
AB /activation
AB 
AB mvn -DBLAH=blah help:active-profile
AB 
AB 
AB HTH

Hi Arnaud,

Thanks for the reply, but I'm positive I want environment variables and 
not system properties. From http://maven.apache.org/settings.html

env.X: Prefixing a variable with env. will return the shell's
environment variable. For example, ${env.PATH} contains the $path
environment variable (%PATH% in Windows).

I believe this has been in maven since 2.0.1+ (was implemented via MNG-1525).
http://jira.codehaus.org/browse/MNG-1525

Any more insight would be helpful.

Regards,
--
Haroon Rafique
[EMAIL PROTECTED]


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



Re: [maven2] CruiseControl surfire reports

2006-11-07 Thread Prasad Kashyap

Hi Alex,

AFAIK, there isn't any such thing right now to help us in this regard.
I am looking for something like that too.

The plugin at http://qalab.sourceforge.net doesn't track stats for
surefire reports.

The plugin at http://xradar.sourceforge.net isn't available for m2 yet.

For what it's worth, here are some discussions that have been going on
on the lists regarding this -
http://docs.codehaus.org/display/MAVEN/Maven+Dashboard
http://www.mail-archive.com/dev@maven.apache.org/msg60205.html
http://www.mail-archive.com/dev@maven.apache.org/msg60537.html
http://www.mail-archive.com/users@maven.apache.org/msg52186.html

Cheers
Prasad

On 11/7/06, Alex Schwartz [EMAIL PROTECTED] wrote:

Hi,

I am running a maven2 build with CruiseControl
(http://cruisecontrol.sourceforge.net/).
Now I would like to configure maven2 such that the surefire XML test
reports are collected
for CruiseControl and displayed on the corresponding Build Results page
of CruiseControl.

I assume I'm not the first one using this combination
So, has someone a working configuration?
Or any hints, even about failing approaches?

Thanks in advance,

Alex

-
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: debuging maestro over linux

2006-11-07 Thread Urbieta Matias

i want to debug the code, no logs file, with eclipse.

On 11/7/06, Raphaël Piéroni [EMAIL PROTECTED] wrote:

maestro or continuum ?

Check for a wrapper.log file which contains a lot of logs.

Raphaël

2006/11/7, Urbieta Matias [EMAIL PROTECTED]:

 Hi, i have had problems with the order of dependencies deploy, so y
 wants to debug maestro over linux , but looking the startup script i
 have found a wrapper binary. So how may  i debug?
 Thanks

 --
 Lic Matias Urbieta





--
Lic Matias Urbieta


Re: debuging maestro over linux

2006-11-07 Thread Emmanuel Venisse

You need to add debugger options to the command line in wrapper.conf, and 
restart the server.

Emmanuel

Urbieta Matias a écrit :

i want to debug the code, no logs file, with eclipse.

On 11/7/06, Raphaël Piéroni [EMAIL PROTECTED] wrote:

maestro or continuum ?

Check for a wrapper.log file which contains a lot of logs.

Raphaël

2006/11/7, Urbieta Matias [EMAIL PROTECTED]:

 Hi, i have had problems with the order of dependencies deploy, so y
 wants to debug maestro over linux , but looking the startup script i
 have found a wrapper binary. So how may  i debug?
 Thanks

 --
 Lic Matias Urbieta









Re: debuging maestro over linux

2006-11-07 Thread Urbieta Matias

thanks

On 11/7/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:

You need to add debugger options to the command line in wrapper.conf, and 
restart the server.

Emmanuel

Urbieta Matias a écrit :
 i want to debug the code, no logs file, with eclipse.

 On 11/7/06, Raphaël Piéroni [EMAIL PROTECTED] wrote:
 maestro or continuum ?

 Check for a wrapper.log file which contains a lot of logs.

 Raphaël

 2006/11/7, Urbieta Matias [EMAIL PROTECTED]:
 
  Hi, i have had problems with the order of dependencies deploy, so y
  wants to debug maestro over linux , but looking the startup script i
  have found a wrapper binary. So how may  i debug?
  Thanks
 
  --
  Lic Matias Urbieta
 








--
Lic Matias Urbieta


Re: [m2] How to ensure order of reports?

2006-11-07 Thread Benoitx

It is a known issue: http://jira.codehaus.org/browse/MSITE-188
Vote for it  :-)

Has anyone developed a patch?


Benoitx wrote:
 
 Hi
 
 The report re-ordering seems to happen when a root POM with packagingpom
 is defined..
 (thanks to Shelby for spotting this)
 
 Is there any reason why it should happen?
 Is there a way around this?
 
 Many thanks
 
 Benoit
 
 
 Benoitx wrote:
 
 Hi *,
 
 Under m2.0.4, how do you ensure the order of reports?
 Assuming that they all have the same @phase, are they run in the order of
 declaration in reportingplugins...
 
 I seem to have the case where I would like qalab (a proto) to run AFTER
 checkstyle/pmd etc but it seems to run before...
 
 Is there a better way, or any way to ensure run order?
 
 Many thanks
 
 reporting
 plugins
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-javadoc-plugin/artifactId
 /plugin
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-report-plugin/artifactId
 /plugin
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdtaglist-maven-plugin/artifactId
 /plugin
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-pmd-plugin/artifactId
 configuration
 targetJdk1.5/targetJdk
 /configuration
 /plugin
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-checkstyle-plugin/artifactId
 configuration
 configLocation
   config/objectlab_checks.xml
 /configLocation
 /configuration
 /plugin
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdfindbugs-maven-plugin/artifactId
 version1.0-beta-1/version
 /plugin
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-jxr-plugin/artifactId
 /plugin
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdcobertura-maven-plugin/artifactId
  configuration
  formatxml/format
  /configuration
 /plugin
 plugin
 groupIdnet.objectlab/groupId
  artifactIdmvn-qalab-plugin/artifactId
  !--version2.2/version--
  reportSets
  reportSet
  reports
  reportreport-merge-chart/report
  reportreport-movers-all/report
  /reports
  /reportSet
  /reportSets
 /plugin
 /plugins
 /reporting
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-m2--How-to-ensure-order-of-reports--tf2582000s177.html#a7220256
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: PROPFIND + authorization failed

2006-11-07 Thread Emmanuel Venisse

You can define user/password to use in Project Edit screen

Emmanuel

jacob thomas a écrit :

Hi group,
I  am also facing same kind of an issue
when i try to use the http://.. protocol url, I am getting an error saying 
---

Provider message: The svn command failed.
Command output: 
---

svn: PROPFIND request failed on '/xxx/yyy/zzz'
svn: PROPFIND of '/xxx/yyy/zzz': authorization failed
(http://ipaddress:port)
---
please let me know how to get out of from.
regards
~jacob





Re: PROPFIND + authorization failed

2006-11-07 Thread jacob thomas

I tried this option also by giving the username and password directly to the
project Edit screen.
result remain the same.
~jacob


Emmanuel Venisse wrote:
 
 You can define user/password to use in Project Edit screen
 
 Emmanuel
 
 jacob thomas a écrit :
 Hi group,
 I  am also facing same kind of an issue
 when i try to use the http://.. protocol url, I am getting an error
 saying 
 ---
 Provider message: The svn command failed.
 Command output: 
 ---
 svn: PROPFIND request failed on '/xxx/yyy/zzz'
 svn: PROPFIND of '/xxx/yyy/zzz': authorization failed
 (http://ipaddress:port)
 ---
 please let me know how to get out of from.
 regards
 ~jacob
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/PROPFIND-%2B-authorization-failed-tf2588075.html#a7220684
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: PROPFIND + authorization failed

2006-11-07 Thread Emmanuel Venisse

Hmm.

If you run 'svn co http://...' on continuum machine with the user that run continuum, do you have 
the same result?


you can try with an URL like this: http://username:[EMAIL 
PROTECTED]:port/path_ti_your_repo

Emmanuel

jacob thomas a écrit :

I tried this option also by giving the username and password directly to the
project Edit screen.
result remain the same.
~jacob


Emmanuel Venisse wrote:

You can define user/password to use in Project Edit screen

Emmanuel

jacob thomas a écrit :

Hi group,
I  am also facing same kind of an issue
when i try to use the http://.. protocol url, I am getting an error
saying 
---

Provider message: The svn command failed.
Command output: 
---

svn: PROPFIND request failed on '/xxx/yyy/zzz'
svn: PROPFIND of '/xxx/yyy/zzz': authorization failed
(http://ipaddress:port)
---
please let me know how to get out of from.
regards
~jacob










How Do I Deploys The Sources To The Repository

2006-11-07 Thread Yves Van Steen
Hey,

 

I can generate a jar containing the source files of a project.  But how do I
configure it to deploy the source jar to the repo?

I need this because I would like to use the download sources setting of the
eclipse plugin for my own projects.

So far I have found nothing that would accomplish this task.

 

Thanks for any assistance.

Yves


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.30/521 - Release Date: 7/11/2006
 


RE: Configuring war plugin for using a jar instead of WEB-INF/classes

2006-11-07 Thread Sebastien Brunot

Issue has been created as MWAR-82
(http://jira.codehaus.org/browse/MWAR-82).

Sebastien 

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 3:59 PM
To: users@maven.apache.org
Subject: Re: Configuring war plugin for using a jar instead of
WEB-INF/classes


Hi Sebastien
  It seems to be a bug.
  In the code [1] we have :
if ( archiveClasses )
{
createJarArchive( libDirectory );
}
else
{
copyDirectoryStructureIfModified( classesDirectory,
webappClassesDirectory );
}
  The content of the classes directory is never removed (neither in
createJarArchive nor somewhere else).

  Can you create an issue please ?

Thx

Arnaud

[1]
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-war-plugin/src/ma
in/java/org/apache/maven/plugin/war/AbstractWarMojo.java?revision=471624



Sebastien Brunot wrote:
 
 Hi all,
  
 i've got a war project which pom build section contains the following
 statements:
  
!-- Package webapp classes into a jar instead of under 
 WEB-INF/classes --
plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 executions
  execution
   goals
goalwar/goal
   /goals
   configuration
archiveClassestrue/archiveClasses
   /configuration
  /execution
 /executions
/plugin
 
 As a result, all the classes and resources from my war project are 
 packaged in a jar that is copied in the WEB-INF/lib directory of the 
 war artifact.
  
 But i don't understand why the war artifact still contains copy of the

 classes and resources under WEB-INF/classes... Does anybody think that

 i've misconfigured the war plugin ?
  
 Thanks for your help,
  
 Sebastien
 
 

--
View this message in context:
http://www.nabble.com/Configuring-war-plugin-for-using-a-jar-instead-of-
WEB-INF-classes-tf2589199s177.html#a7219855
Sent from the Maven - Users mailing list archive at Nabble.com.


-
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 Do I Deploys The Sources To The Repository

2006-11-07 Thread Bram de Kruijff
Hi Yves,

try this : 

mvn clean source:jar install 

regards,
Bram


 -Original Message-
 From: Yves Van Steen [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 07, 2006 4:59 PM
 To: 'Maven Users List'
 Subject: How Do I Deploys The Sources To The Repository
 
 Hey,
 
  
 
 I can generate a jar containing the source files of a 
 project.  But how do I configure it to deploy the source jar 
 to the repo?
 
 I need this because I would like to use the download sources 
 setting of the eclipse plugin for my own projects.
 
 So far I have found nothing that would accomplish this task.
 
  
 
 Thanks for any assistance.
 
 Yves
 
 
 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.409 / Virus Database: 268.13.30/521 - Release 
 Date: 7/11/2006
  
 


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



Transitive dependecies

2006-11-07 Thread Sebastien Brunot
Hi all,
 
transitive dependencies can be a real pain when you have a lot of
external dependencies in your project. Using exclusions tags is a
tedious operation in this case, so I was wondering if a quicker way
exists... 
 
How can one create a pom module that contains a list of dependencies
(let's name it lib pom), so that when the lib pom is added as a
dependecy in let's say a war project, the exact list of dependencies
from lib pom (no more, no less = no transitivity) are added to the war
WEB-INF/lib ?
 
Thanks for your help,
 
Sebastien


Re: Transitive dependecies

2006-11-07 Thread Wendy Smoak

On 11/7/06, Sebastien Brunot [EMAIL PROTECTED] wrote:


transitive dependencies can be a real pain when you have a lot of
external dependencies in your project. Using exclusions tags is a
tedious operation in this case, so I was wondering if a quicker way
exists...


Having to use a lot of exclusions generally means that the poms are
broken.  (For example, things that should be marked optional, aren't.)

What dependencies are causing problems?

--
Wendy

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



Re: How Do I Deploys The Sources To The Repository

2006-11-07 Thread Greg_Vaughn
Yves Van Steen [EMAIL PROTECTED] wrote on 11/07/2006 09:58:46 AM:

 I can generate a jar containing the source files of a project.  But how 
do I
 configure it to deploy the source jar to the repo?
 
 I need this because I would like to use the download sources setting of 
the
 eclipse plugin for my own projects.
 
 So far I have found nothing that would accomplish this task.

Somewhere deep in the plugins of maven adding a system property of 
performRelease=true causes both source and javadoc jars to be generated 
and deployed. It's not well documented. So you can do

mvn -DperformRelease=true deploy

and you get both source and javadoc jars in the repository along with the 
main artifact. It also works with the install target.

-Greg Vaughn
[EMAIL PROTECTED]

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


RE: Transitive dependecies

2006-11-07 Thread Sebastien Brunot
Hi Wendy,

Are you trying to tell me that the feature I'm asking about does not
exists in maven 2 (inheriting dependencies from a pom without
transitivity, but with a scope that makes them copied in WEB-INF/lib
when I'm working on a war project) ?

Sebastien

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 5:18 PM
To: Maven Users List
Subject: Re: Transitive dependecies

On 11/7/06, Sebastien Brunot [EMAIL PROTECTED] wrote:

 transitive dependencies can be a real pain when you have a lot of 
 external dependencies in your project. Using exclusions tags is a 
 tedious operation in this case, so I was wondering if a quicker way 
 exists...

Having to use a lot of exclusions generally means that the poms are
broken.  (For example, things that should be marked optional, aren't.)

What dependencies are causing problems?

--
Wendy

-
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: Transitive dependecies

2006-11-07 Thread Barrett Nuzum
Sebastien:
 
On my current assignment, we solved this by having one POM for the main 
dependencies of all projects, and a child POM called WebDependencies.
 
All child projects of type WAR specify WebDependencies as a direct dependency.
 
This *does* include transitive dependencies -- but you should be able to trim 
down the list of total dependencies included by a significant amount. (The ones 
you probably actually need.) 
 
If you bundle your WAR in an EAR, you can use this Dependencies POM in both the 
EAR and WAR projects and suppress everything in the WAR's WEB-INF/lib to 
eliminate duplication further.
 
Hope that helps.
 
Barrett
 
Barrett Nuzum
Consultant, Skill Development
[EMAIL PROTECTED]
T:  +1 (918) 640 4414
F:  +1 (972) 789 1340


Valtech
5080 Spectrum Drive Suite 700 West 
Addison, Texas 75001
USA
T: +1 (972) 789 1200



From: Sebastien Brunot [mailto:[EMAIL PROTECTED]
Sent: Tue 11/7/2006 10:13 AM
To: Maven Users List
Subject: Transitive dependecies



Hi all,

transitive dependencies can be a real pain when you have a lot of
external dependencies in your project. Using exclusions tags is a
tedious operation in this case, so I was wondering if a quicker way
exists...

How can one create a pom module that contains a list of dependencies
(let's name it lib pom), so that when the lib pom is added as a
dependecy in let's say a war project, the exact list of dependencies
from lib pom (no more, no less = no transitivity) are added to the war
WEB-INF/lib ?

Thanks for your help,

Sebastien



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

Re: Performance collapse when logged as admin

2006-11-07 Thread Carlos Sanchez

I saw that problem when the logo is not available and times out, the
page looks slow.

On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:

What I did is just installed Maestro 1.1 and created admin user. Then I
just added simple single module project and defined several goals for
it. That's all. After I saw that it's slow comparing with Maestro 1.0.1
and I couldn't start any goal I created except default goal I decided to
move back to Maestro 1.0.1.

Please let me know if you have more questions.

Best regards,
 Juri.

-Original Message-
From: Jesse McConnell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 3:55 PM
To: continuum-users@maven.apache.org
Subject: Re: Performance collapse when logged as admin


k, then my bet is its something up with that authz behavior there.

do you have any custom roles?

what is the name of the project in question?  (ie, The Doxia Project)
you can make something up that follows the same naming structure

thanks, and I'll try and nail this down in continuum
jesse

On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
 I believe the same that goes with Continuum, yea I suppose this is
 derby.

 -Original Message-
 From: Jesse McConnell [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 07, 2006 3:48 PM
 To: continuum-users@maven.apache.org
 Subject: Re: Performance collapse when logged as admin


 hm, that sounds to me like it would be an issue with the speed of
 authz activities on those pages, they had been really slow until I put

 in abit of per page caching in the session to speed it up...and it was

 a lot faster from then on...but this could be something related to
 that.

 what database are you guys using for this?  the derby one with the
 release?

 jesse

 On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
  Yes, I had the same and also I see th bug which not allowing me to
  start every created goal for project. I also decided to return to
  1.0.1.
 
  Best regards,
   Juri.
 
  -Original Message-
  From: Samuel Langlois [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 07, 2006 12:28 PM
  To: continuum-users@maven.apache.org
  Subject: Performance collapse when logged as admin
 
 
  Hello,
 
  I find Continuum web console very slow, especially when logged as
  admin, and I think there is something wrong.
 
  For instance, to display the summary page of a project group
  containing 3 projects, it takes a few seconds when not logged in,
  and 20s when logged as admin. For a project group containing 58
  projects, it goes from 15s (which is already quite long...) to an
  amazing 130s when logged as admin.
 
  I use Continuum 1.0.3-maestro-1.1 with all default settings. I have
  the feeling (but cannot confirm) that the version shipped with
  Maestro

  1.0.1 did not show this problem. My server is a Pentium4, 1.5GHz
  under

  Fedora Core 5. Not really a speed king, but still... I recently
  upgraded it to 1Go RAM without much effect.
 
  Am I the only one in this situation?
  How can I help diagnose the problem further?
 
  Thanks for your help
 
  Samuel
 
 
 


 --
 jesse mcconnell
 [EMAIL PROTECTED]



--
jesse mcconnell
[EMAIL PROTECTED]




--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride


RE: Transitive dependecies

2006-11-07 Thread Sebastien Brunot
Hi barrett,

I think I'm actually proceeding quite the same (the lib pom I was
talking about). I really want to know if I can move a step further and
make the dependencies not transitive while included in the WAR (actually
an EAR in my case ;-). If the feature does not exists yet in maven
(using scope settings or something else), I might ask for it: this is
why I want to know if it is already possible or not.

Sebastien

-Original Message-
From: Barrett Nuzum [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 5:28 PM
To: Maven Users List
Subject: RE: Transitive dependecies

Sebastien:
 
On my current assignment, we solved this by having one POM for the main
dependencies of all projects, and a child POM called WebDependencies.
 
All child projects of type WAR specify WebDependencies as a direct
dependency.
 
This *does* include transitive dependencies -- but you should be able to
trim down the list of total dependencies included by a significant
amount. (The ones you probably actually need.) 
 
If you bundle your WAR in an EAR, you can use this Dependencies POM in
both the EAR and WAR projects and suppress everything in the WAR's
WEB-INF/lib to eliminate duplication further.
 
Hope that helps.
 
Barrett
 
Barrett Nuzum
Consultant, Skill Development
[EMAIL PROTECTED]
T:  +1 (918) 640 4414
F:  +1 (972) 789 1340


Valtech
5080 Spectrum Drive Suite 700 West
Addison, Texas 75001
USA
T: +1 (972) 789 1200



From: Sebastien Brunot [mailto:[EMAIL PROTECTED]
Sent: Tue 11/7/2006 10:13 AM
To: Maven Users List
Subject: Transitive dependecies



Hi all,

transitive dependencies can be a real pain when you have a lot of
external dependencies in your project. Using exclusions tags is a
tedious operation in this case, so I was wondering if a quicker way
exists...

How can one create a pom module that contains a list of dependencies
(let's name it lib pom), so that when the lib pom is added as a
dependecy in let's say a war project, the exact list of dependencies
from lib pom (no more, no less = no transitivity) are added to the war
WEB-INF/lib ?

Thanks for your help,

Sebastien




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



RE: Transitive dependecies

2006-11-07 Thread Martin Vysny
On Tue, 2006-11-07 at 17:27 +0100, Sebastien Brunot wrote:
 Hi Wendy,
 
 Are you trying to tell me that the feature I'm asking about does not
 exists in maven 2 (inheriting dependencies from a pom without
 transitivity, but with a scope that makes them copied in WEB-INF/lib
 when I'm working on a war project) ?
 

Try to define those dependencies you *don't* want to appear in the lib
directory with scope 'provided'. Dependency with 'provided' scope is
defined as being provided by the environment (for example by the JEE
server).

 Sebastien
 
 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 07, 2006 5:18 PM
 To: Maven Users List
 Subject: Re: Transitive dependecies
 
 On 11/7/06, Sebastien Brunot [EMAIL PROTECTED] wrote:
 
  transitive dependencies can be a real pain when you have a lot of 
  external dependencies in your project. Using exclusions tags is a 
  tedious operation in this case, so I was wondering if a quicker way 
  exists...
 
 Having to use a lot of exclusions generally means that the poms are
 broken.  (For example, things that should be marked optional, aren't.)
 
 What dependencies are causing problems?
 
 --
 Wendy
 
 -
 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]
 
 


signature.asc
Description: This is a digitally signed message part


RE: Transitive dependecies

2006-11-07 Thread Sebastien Brunot
In fact, the dependencies I don't want in the lib directory are the one
obtained because of the transitivity mechanism. So I want all
dependencies included, but not the one they might have themselves (and I
may not have access to the POM of those dependencies to set their scope
to provided).

Sebastien

-Original Message-
From: Martin Vysny [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 5:44 PM
To: Maven Users List
Subject: RE: Transitive dependecies

On Tue, 2006-11-07 at 17:27 +0100, Sebastien Brunot wrote:
 Hi Wendy,
 
 Are you trying to tell me that the feature I'm asking about does not 
 exists in maven 2 (inheriting dependencies from a pom without 
 transitivity, but with a scope that makes them copied in WEB-INF/lib 
 when I'm working on a war project) ?
 

Try to define those dependencies you *don't* want to appear in the lib
directory with scope 'provided'. Dependency with 'provided' scope is
defined as being provided by the environment (for example by the JEE
server).

 Sebastien
 
 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 07, 2006 5:18 PM
 To: Maven Users List
 Subject: Re: Transitive dependecies
 
 On 11/7/06, Sebastien Brunot [EMAIL PROTECTED] wrote:
 
  transitive dependencies can be a real pain when you have a lot of 
  external dependencies in your project. Using exclusions tags is a 
  tedious operation in this case, so I was wondering if a quicker way 
  exists...
 
 Having to use a lot of exclusions generally means that the poms are 
 broken.  (For example, things that should be marked optional, aren't.)
 
 What dependencies are causing problems?
 
 --
 Wendy
 
 -
 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: Transitive dependecies

2006-11-07 Thread Edwin Punzalan


Dependencies should be marked as optional if it is not required.

There's nothing bad with transitivity if the poms are correct... it 
actually makes dependency management easier.


Broken poms make transitivity look bad.


Wendy Smoak wrote:

On 11/7/06, Sebastien Brunot [EMAIL PROTECTED] wrote:


transitive dependencies can be a real pain when you have a lot of
external dependencies in your project. Using exclusions tags is a
tedious operation in this case, so I was wondering if a quicker way
exists...


Having to use a lot of exclusions generally means that the poms are
broken.  (For example, things that should be marked optional, aren't.)

What dependencies are causing problems?



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



RE: Transitive dependecies

2006-11-07 Thread Barrett Nuzum
Sebastien:
 
I think most people instead suppress all dependencies from war bundling and 
then use the maven-dependency-plugin to copy specific artifacts. (It provides 
more fine grained control at the expense of some extensibility.)
 
It's not a core maven feature, though, as far as I know.
 
Barrett
 
Barrett Nuzum
Consultant, Skill Development
[EMAIL PROTECTED]
T:  +1 (918) 640 4414
F:  +1 (972) 789 1340


Valtech
5080 Spectrum Drive Suite 700 West 
Addison, Texas 75001
USA
T: +1 (972) 789 1200



From: Sebastien Brunot [mailto:[EMAIL PROTECTED]
Sent: Tue 11/7/2006 10:41 AM
To: Maven Users List
Subject: RE: Transitive dependecies



Hi barrett,

I think I'm actually proceeding quite the same (the lib pom I was
talking about). I really want to know if I can move a step further and
make the dependencies not transitive while included in the WAR (actually
an EAR in my case ;-). If the feature does not exists yet in maven
(using scope settings or something else), I might ask for it: this is
why I want to know if it is already possible or not.

Sebastien

-Original Message-
From: Barrett Nuzum [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 5:28 PM
To: Maven Users List
Subject: RE: Transitive dependecies

Sebastien:

On my current assignment, we solved this by having one POM for the main
dependencies of all projects, and a child POM called WebDependencies.

All child projects of type WAR specify WebDependencies as a direct
dependency.

This *does* include transitive dependencies -- but you should be able to
trim down the list of total dependencies included by a significant
amount. (The ones you probably actually need.)

If you bundle your WAR in an EAR, you can use this Dependencies POM in
both the EAR and WAR projects and suppress everything in the WAR's
WEB-INF/lib to eliminate duplication further.

Hope that helps.

Barrett

Barrett Nuzum
Consultant, Skill Development
[EMAIL PROTECTED]
T:  +1 (918) 640 4414
F:  +1 (972) 789 1340


Valtech
5080 Spectrum Drive Suite 700 West
Addison, Texas 75001
USA
T: +1 (972) 789 1200



From: Sebastien Brunot [mailto:[EMAIL PROTECTED]
Sent: Tue 11/7/2006 10:13 AM
To: Maven Users List
Subject: Transitive dependecies



Hi all,

transitive dependencies can be a real pain when you have a lot of
external dependencies in your project. Using exclusions tags is a
tedious operation in this case, so I was wondering if a quicker way
exists...

How can one create a pom module that contains a list of dependencies
(let's name it lib pom), so that when the lib pom is added as a
dependecy in let's say a war project, the exact list of dependencies
from lib pom (no more, no less = no transitivity) are added to the war
WEB-INF/lib ?

Thanks for your help,

Sebastien




-
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]

Release doesn't pass args

2006-11-07 Thread Emmanuel Hugonnet

Hi,
How do you pass an argument to your maven build when releasing ?
I have a project with 5 modules and I try to release it. My project 
needs an argument that I pass using -Denv=dev.
It seems that when I use the release:prepare -Denv=dev my argument is 
not passed to the maven build process since I have:


   Embedded error: You must set the env variable. For instance, mvn 
-Denv=dev|prod ... displayed :(

and the release stops with error code 1 with the following exception :

org.apache.maven.lifecycle.LifecycleExecutionException: Maven execution 
failed, exit code: '1'
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)

   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Maven 
execution failed, exit code: '1'
   at 
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:110)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)

   ... 16 more
Caused by: org.apache.maven.plugins.release.ReleaseExecutionException: 
Maven execution failed, exit code: '1'
   at 
org.apache.maven.plugins.release.phase.RunGoalsPhase.execute(RunGoalsPhase.java:55)
   at 
org.apache.maven.plugins.release.phase.RunGoalsPhase.simulate(RunGoalsPhase.java:65)
   at 
org.apache.maven.plugins.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:135)
   at 
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:106)

   ... 18 more
Caused by: org.apache.maven.plugins.release.exec.MavenExecutorException: 
Maven execution failed, exit code: '1'
   at 
org.apache.maven.plugins.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:95)
   at 
org.apache.maven.plugins.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:108)
   at 
org.apache.maven.plugins.release.phase.RunGoalsPhase.execute(RunGoalsPhase.java:48)

   ... 21 more

What am I missing ?
Thanks
Emmanuel

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



FW: Surefire plugin - Tests running twice

2006-11-07 Thread Raja Arokia
Hi,

 

I have an application where surefire-plugin is configured in the parent
pom and child pom, I am giving the code sample below, This results in
tests running twice, if I comment the surefire plugin in the parent pom,
the tests run only once.

 

But I don't want to comment surefire plugin in the parent pom  since
there are various other child modules dependent on that and those tests
will not run, an alternative approach would be that we can write the
surefire plugin in each of the child modules but we want to avoid the
code duplication.

 

Can any one check the sample and tell me if any change can be done to
the configuration to avoid this.

 

Configuration in Parent pom.xml

 

plugin

artifactIdmaven-surefire-plugin/artifactId

configuration

 
reportsDirectory../reportsdirectory/reportsDirectory

  excludes

exclude

 
**/JTAManagedTransactionContextTest.java

/exclude

  /excludes

  systemProperties

...

  /systemProperties

/configuration

  /plugin

 

Configuration in Child pom.xml

 

plugin

artifactIdmaven-surefire-plugin/artifactId

configuration

skiptrue/skip

testFailureIgnoretrue/testFailureIgnore


systemProperties

...   

  /systemProperties

/configuration

executions

  execution

  idunit-test/id

phasetest/phase

goals

  goaltest/goal

/goals

configuration

   skipfalse/skip 

  includes

   include

  **/*UTest.java

   /include

  /includes


/configuration

  /execution

  execution

  idintegration-test/id

phaseintegration-test/phase

goals

  goaltest/goal

/goals

configuration

   skipfalse/skip 

  includes

   include

  **/*ITest.java

   /include

  /includes


/configuration

  /execution

/executions

  /plugin  

 

Thanks,

 

Raja

 



RE: Transitive dependecies

2006-11-07 Thread Sebastien Brunot

Even if the POM are correct, transitivity can copy much more classes
than really needed : you're using library A, which a subset of class
uses library B. If you don't use this particular subset of classes in
library A, you don't need the dependency on library B (I hope it's
clear). 

Sebastien 

-Original Message-
From: Edwin Punzalan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 5:53 PM
To: Maven Users List
Subject: Re: Transitive dependecies


Dependencies should be marked as optional if it is not required.

There's nothing bad with transitivity if the poms are correct... it
actually makes dependency management easier.

Broken poms make transitivity look bad.


Wendy Smoak wrote:
 On 11/7/06, Sebastien Brunot [EMAIL PROTECTED] wrote:

 transitive dependencies can be a real pain when you have a lot of 
 external dependencies in your project. Using exclusions tags is a 
 tedious operation in this case, so I was wondering if a quicker way 
 exists...

 Having to use a lot of exclusions generally means that the poms are 
 broken.  (For example, things that should be marked optional, aren't.)

 What dependencies are causing problems?


-
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: Transitive dependecies

2006-11-07 Thread Sebastien Brunot
Thanks for the hint barrett, it is valuable to me (using dependency
plugin to copy jars in WEB-INF/lib instead of declaring dependencies).

Sebastien 

-Original Message-
From: Barrett Nuzum [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 5:54 PM
To: Maven Users List
Subject: RE: Transitive dependecies

Sebastien:
 
I think most people instead suppress all dependencies from war bundling
and then use the maven-dependency-plugin to copy specific artifacts. (It
provides more fine grained control at the expense of some
extensibility.)
 
It's not a core maven feature, though, as far as I know.
 
Barrett
 
Barrett Nuzum
Consultant, Skill Development
[EMAIL PROTECTED]
T:  +1 (918) 640 4414
F:  +1 (972) 789 1340


Valtech
5080 Spectrum Drive Suite 700 West
Addison, Texas 75001
USA
T: +1 (972) 789 1200



From: Sebastien Brunot [mailto:[EMAIL PROTECTED]
Sent: Tue 11/7/2006 10:41 AM
To: Maven Users List
Subject: RE: Transitive dependecies



Hi barrett,

I think I'm actually proceeding quite the same (the lib pom I was
talking about). I really want to know if I can move a step further and
make the dependencies not transitive while included in the WAR (actually
an EAR in my case ;-). If the feature does not exists yet in maven
(using scope settings or something else), I might ask for it: this is
why I want to know if it is already possible or not.

Sebastien

-Original Message-
From: Barrett Nuzum [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 5:28 PM
To: Maven Users List
Subject: RE: Transitive dependecies

Sebastien:

On my current assignment, we solved this by having one POM for the main
dependencies of all projects, and a child POM called WebDependencies.

All child projects of type WAR specify WebDependencies as a direct
dependency.

This *does* include transitive dependencies -- but you should be able to
trim down the list of total dependencies included by a significant
amount. (The ones you probably actually need.)

If you bundle your WAR in an EAR, you can use this Dependencies POM in
both the EAR and WAR projects and suppress everything in the WAR's
WEB-INF/lib to eliminate duplication further.

Hope that helps.

Barrett

Barrett Nuzum
Consultant, Skill Development
[EMAIL PROTECTED]
T:  +1 (918) 640 4414
F:  +1 (972) 789 1340


Valtech
5080 Spectrum Drive Suite 700 West
Addison, Texas 75001
USA
T: +1 (972) 789 1200



From: Sebastien Brunot [mailto:[EMAIL PROTECTED]
Sent: Tue 11/7/2006 10:13 AM
To: Maven Users List
Subject: Transitive dependecies



Hi all,

transitive dependencies can be a real pain when you have a lot of
external dependencies in your project. Using exclusions tags is a
tedious operation in this case, so I was wondering if a quicker way
exists...

How can one create a pom module that contains a list of dependencies
(let's name it lib pom), so that when the lib pom is added as a
dependecy in let's say a war project, the exact list of dependencies
from lib pom (no more, no less = no transitivity) are added to the war
WEB-INF/lib ?

Thanks for your help,

Sebastien




-
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: Release doesn't pass args

2006-11-07 Thread Edwin Punzalan


Have you tried passing through the preparationGoals parameter ? Its 
default is clean integration-test... maybe you can instead have clean 
integration-test -Denv=dev ?



Emmanuel Hugonnet wrote:

Hi,
How do you pass an argument to your maven build when releasing ?
I have a project with 5 modules and I try to release it. My project 
needs an argument that I pass using -Denv=dev.
It seems that when I use the release:prepare -Denv=dev my argument is 
not passed to the maven build process since I have:


   Embedded error: You must set the env variable. For instance, mvn 
-Denv=dev|prod ... displayed :(

and the release stops with error code 1 with the following exception :

org.apache.maven.lifecycle.LifecycleExecutionException: Maven 
execution failed, exit code: '1'
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) 


   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Maven 
execution failed, exit code: '1'
   at 
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:110) 

   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) 


   ... 16 more
Caused by: org.apache.maven.plugins.release.ReleaseExecutionException: 
Maven execution failed, exit code: '1'
   at 
org.apache.maven.plugins.release.phase.RunGoalsPhase.execute(RunGoalsPhase.java:55) 

   at 
org.apache.maven.plugins.release.phase.RunGoalsPhase.simulate(RunGoalsPhase.java:65) 

   at 
org.apache.maven.plugins.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:135) 

   at 
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:106) 


   ... 18 more
Caused by: 
org.apache.maven.plugins.release.exec.MavenExecutorException: Maven 
execution failed, exit code: '1'
   at 
org.apache.maven.plugins.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:95) 

   at 
org.apache.maven.plugins.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:108) 

   at 
org.apache.maven.plugins.release.phase.RunGoalsPhase.execute(RunGoalsPhase.java:48) 


   ... 21 more

What am I missing ?
Thanks
Emmanuel

-
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: Transitive dependecies

2006-11-07 Thread Wendy Smoak

On 11/7/06, Sebastien Brunot [EMAIL PROTECTED] wrote:


Even if the POM are correct, transitivity can copy much more classes
than really needed : you're using library A, which a subset of class
uses library B. If you don't use this particular subset of classes in
library A, you don't need the dependency on library B (I hope it's
clear).


In this case, A should probably mark its dependencies on B as
'optional' to avoid the exact situation you find yourself in.  If
you're having this problem, chances are that other people are, too.
If you let us know what dependency is causing it, we can take a look
and try to get it fixed.

Sometimes the project in question is not using Maven itself, so the
developers don't realize what happens when they leave all of their
dependencies in the default (compile) scope.

--
Wendy

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



Re: Transitive dependecies

2006-11-07 Thread Edwin Punzalan


Yes, I agree with that... and that's a good reason for using 
excludes.  But you don't really disable transitivity completely with 
it.  You just select from the list of dependencies to not use, in your 
example, library B.



Sebastien Brunot wrote:

Even if the POM are correct, transitivity can copy much more classes
than really needed : you're using library A, which a subset of class
uses library B. If you don't use this particular subset of classes in
library A, you don't need the dependency on library B (I hope it's
clear). 

Sebastien 


-Original Message-
From: Edwin Punzalan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 5:53 PM

To: Maven Users List
Subject: Re: Transitive dependecies


Dependencies should be marked as optional if it is not required.

There's nothing bad with transitivity if the poms are correct... it
actually makes dependency management easier.

Broken poms make transitivity look bad.


Wendy Smoak wrote:
  

On 11/7/06, Sebastien Brunot [EMAIL PROTECTED] wrote:


transitive dependencies can be a real pain when you have a lot of 
external dependencies in your project. Using exclusions tags is a 
tedious operation in this case, so I was wondering if a quicker way 
exists...
  
Having to use a lot of exclusions generally means that the poms are 
broken.  (For example, things that should be marked optional, aren't.)


What dependencies are causing problems?




-
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]



MOJO Paramater Question

2006-11-07 Thread Adam Lewis

My understanding of mojo parameters is that when declaring paramters
for a mojo, the
@parameter expression=${...} syntax allows access to various
properties that already exist in the environment.  Is there a unfied
list of what can be put there floating around out there?  Is there a
good way of finding out what objects have been put into the
environment at any given point?  I'm sorry if this is a question with
an obvious answer, but I can't figure out what it is maven puts there
from the pom, etc..


Thanks,
Adam

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



Re: Release doesn't pass args

2006-11-07 Thread Emmanuel Hugonnet

Edwin Punzalan a écrit :


Have you tried passing through the preparationGoals parameter ? Its 
default is clean integration-test... maybe you can instead have 
clean integration-test -Denv=dev ?



Emmanuel Hugonnet wrote:

Hi,
How do you pass an argument to your maven build when releasing ?
I have a project with 5 modules and I try to release it. My project 
needs an argument that I pass using -Denv=dev.
It seems that when I use the release:prepare -Denv=dev my argument is 
not passed to the maven build process since I have:


   Embedded error: You must set the env variable. For instance, mvn 
-Denv=dev|prod ... displayed :(

and the release stops with error code 1 with the following exception :

org.apache.maven.lifecycle.LifecycleExecutionException: Maven 
execution failed, exit code: '1'
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) 


   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Maven 
execution failed, exit code: '1'
   at 
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:110) 

   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) 


   ... 16 more
Caused by: 
org.apache.maven.plugins.release.ReleaseExecutionException: Maven 
execution failed, exit code: '1'
   at 
org.apache.maven.plugins.release.phase.RunGoalsPhase.execute(RunGoalsPhase.java:55) 

   at 
org.apache.maven.plugins.release.phase.RunGoalsPhase.simulate(RunGoalsPhase.java:65) 

   at 
org.apache.maven.plugins.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:135) 

   at 
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:106) 


   ... 18 more
Caused by: 
org.apache.maven.plugins.release.exec.MavenExecutorException: Maven 
execution failed, exit code: '1'
   at 
org.apache.maven.plugins.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:95) 

   at 
org.apache.maven.plugins.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:108) 

   at 
org.apache.maven.plugins.release.phase.RunGoalsPhase.execute(RunGoalsPhase.java:48) 


   ... 21 more

What am I missing ?
Thanks
Emmanuel

-
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]



This is working :-)
Thank you

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



Re: Maven 2, Eclipse WTP

2006-11-07 Thread Srepfler Srgjan

Daniel Serodio wrote:

[EMAIL PROTECTED] wrote:
  

Hi

There is a typo here: the exact syntax is: mvn -Dwtpversion=1.0 eclipse:eclipse 
(You can also specify 1.5 and 0.7 for wtpversion)
  


I tried using 1.5 but it gave me an error Unsupported WTP version: 1.5.
This plugin currently supports only the following versions: 1.0 R7 none.
  

If you add the snapshots repository you could use 1.5 as well.
Srgjan

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



Re: MOJO Paramater Question

2006-11-07 Thread Matt Campbell

The @parameter  refers to the pom configuration or system properties

so if you had @parameter expression=${project.build.resources}  the could
either mean your looking for a system property named 
project.build.resources  or your looking for the resources listed in the
pom, which would be defined like this:

project
   build
   resources
   resourcesrc/main/resources/resource
   /resources
   /build
/project

A good reference for the pom structure is
http://www.javaworld.com/javaworld/jw-05-2006/jw-0529-maven.html?page=1

Hope that helps.

On 11/7/06, Adam Lewis [EMAIL PROTECTED] wrote:


My understanding of mojo parameters is that when declaring paramters
for a mojo, the
@parameter expression=${...} syntax allows access to various
properties that already exist in the environment.  Is there a unfied
list of what can be put there floating around out there?  Is there a
good way of finding out what objects have been put into the
environment at any given point?  I'm sorry if this is a question with
an obvious answer, but I can't figure out what it is maven puts there
from the pom, etc..


Thanks,
Adam

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




Re: mvn site running test cases twice

2006-11-07 Thread jp4

I removed the coberatura plugin and unit test cases run only once...  Here is
what I have in my pom

build section

  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
executions
  execution
goals
  goalclean/goal
/goals
  /execution
/executions
  /plugin

reporting section

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

Any ideas?  Looks like the test cases get run during instrumentation?

Thanks,
jp4

Wendy Smoak-3 wrote:
 
 On 11/3/06, jp4 [EMAIL PROTECTED] wrote:
 
 I am using the surefire report plugin as well as coberatura, javadoc and
 checkstyle..  When I do a mvn site it runs my test cases twice.
 
 Does it happen if you remove the Cobertura plugin?  We use surefire,
 javadoc and checkstyle in the Struts build, and the tests don't run
 twice.
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/mvn-site-running-test-cases-twice-tf2571386s177.html#a7225137
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Add pom tags into Eclipse?

2006-11-07 Thread Srepfler Srgjan

jiangshachina wrote:

About Maven docs, the mail list has discussed.
It's said that some plugin docs are being improved, but not hosted by main
site currently.
Now, I think the biggest problem is that docs don't show all parameters or
elements on POM model or plugin configurations.
For example, parameter warSourceExcludes exist in maven-war-plugin
configuration really, but I don't find it at the plugin's site
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html.

a cup of Java, cheers!
Sha Jiang
The way I look at it, the pom has a schema file and if the editor is 
good should know how to pick it up, my objection is that it objectively 
cannot know all the parameters of external plugins so the schema is 
useless. If maven takes the spring 2.0 approach in using namespaces it 
could allow tag validation (and thus code completion) for plugins as well.

Srgjan

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



Re: mvn site running test cases twice

2006-11-07 Thread Wendy Smoak

On 11/7/06, jp4 [EMAIL PROTECTED] wrote:


I removed the coberatura plugin and unit test cases run only once...  Here is
what I have in my pom

...

Any ideas?  Looks like the test cases get run during instrumentation?


I think it's normal based on Maven's current design.  The tests are
run once during the 'test' phase, then in order to produce the
coverage report, the tests have to be re-run on the instrumented code.

Take a look at this post from Vincent which talks about a similar
issue with the Clover plugin:
http://www.nabble.com/-M2--My-tests-are-launched-3-times-%21-t2190279s177.html#a6075779

--
Wendy

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



Looking for a simple maven assembly example

2006-11-07 Thread Christian Goetze
I've read the better builds with maven book, I've looked at 
http://maven.apache.org/plugins/maven-assembly-plugin, but I'm still not 
sure I understand how this is supposed to work.


I just want end up with a zip file containing all of the jars needed to 
run the particular project I'm building.


Alternatively, I'd already be happy with a way to just get the 
transitive runtime dependency list out of the build.


Any help would be appreciated, thanks in advance.
--
cg

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



How do people include version info into the build?

2006-11-07 Thread Christian Goetze
With this, I mean how do people ensure that the version number used in 
the build is available at runtime? Do people generate a property file 
with the version number and include it in the jar? Anyone have a nice 
little example for this?


Thanks in advance...
--
cg - an obvious maven2 newbie...

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



Re: PROPFIND + authorization failed

2006-11-07 Thread Barrie Treloar

On 11/7/06, jacob thomas [EMAIL PROTECTED] wrote:


Hi group,
I  am also facing same kind of an issue
when i try to use the http://.. protocol url, I am getting an error saying
---
Provider message: The svn command failed.
Command output:
---
svn: PROPFIND request failed on '/xxx/yyy/zzz'
svn: PROPFIND of '/xxx/yyy/zzz': authorization failed
(http://ipaddress:port)
---
please let me know how to get out of from.
regards
~jacob


Are you behind a firewall?
Do you know what type of firewall?
I suspect it is a Microsoft ISA firewall which requires NTLM authentication.
If so then none of the maven product line support NTLM yet.


Re: PROPFIND + authorization failed

2006-11-07 Thread Jeremy Whitlock

In the event you are behind an MS ISA Proxy, use the following proxy to help
you get through:

http://freshmeat.net/projects/ntlmaps/

Run this proxy and tell your Subversion client, or Maven, to use the APS
proxy.

Take care,

Jeremy

On 11/7/06, Barrie Treloar [EMAIL PROTECTED] wrote:


On 11/7/06, jacob thomas [EMAIL PROTECTED] wrote:

 Hi group,
 I  am also facing same kind of an issue
 when i try to use the http://.. protocol url, I am getting an error
saying

---
 Provider message: The svn command failed.
 Command output:

---
 svn: PROPFIND request failed on '/xxx/yyy/zzz'
 svn: PROPFIND of '/xxx/yyy/zzz': authorization failed
 (http://ipaddress:port)

---
 please let me know how to get out of from.
 regards
 ~jacob

Are you behind a firewall?
Do you know what type of firewall?
I suspect it is a Microsoft ISA firewall which requires NTLM
authentication.
If so then none of the maven product line support NTLM yet.



Re: [M2] additive module dependencies

2006-11-07 Thread Arnaud Bailly
Nathan Coast [EMAIL PROTECTED] writes:

 Hi,

 I'm fairly new to maven 2 and am having some trouble with module
 dependencies.

 I have a war project that builds fine when I build it in
 isolation. However, when it is built from the parent project (via the
 modules mechanism) all of the dependencies from all of the modules end
 up in the WEB-INF/lib directory.  This includes plugin dependencies
 which are only needed at build-time.


Hello,
I am deducing (maybe wrongly) from your post that your module do not
use parent pom which defines dependencies that are then included in
the war file. 

There is a notion of scope for dependencies that handles just this
problem.

 Fairly obviously I have done something wrong, I just can't see
 what. Feel free to rtfm me if I've missed the relevant docs :)


Maybe readin Better Build With Maven would help :-) Look at
maven.apache.org/guides for more info.

regards
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: Looking for a simple maven assembly example

2006-11-07 Thread Craig McClanahan

On 11/7/06, Christian Goetze [EMAIL PROTECTED] wrote:


I've read the better builds with maven book, I've looked at
http://maven.apache.org/plugins/maven-assembly-plugin, but I'm still not
sure I understand how this is supposed to work.

I just want end up with a zip file containing all of the jars needed to
run the particular project I'm building.

Alternatively, I'd already be happy with a way to just get the
transitive runtime dependency list out of the build.

Any help would be appreciated, thanks in advance.
--
cg



It doesn't reallly qualify as simple, but here[1] is the assembly
configuration we use for Shale to build release artifacts.  It includes the
created libraries, all the dependent libraries, javadocs, and source code
for a bunch of different submodules (this descriptor is from a shale-dist
module that is one level below the top level project directory, hence all of
the .. relative paths.

The part that picks up all of the dependent libraries (i.e. those with scope
runtime), and puts them in the lib directory of the output:

   dependencySets
   dependencySet
   outputDirectorylib/outputDirectory
   scoperuntime/scope
   /dependencySet
   /dependencySets


Craig

[1]
http://svn.apache.org/repos/asf/shale/framework/trunk/shale-dist/src/assemble/dist.xml


Re: We need some explanation ...

2006-11-07 Thread Arnaud Bailly
Vincent Massol [EMAIL PROTECTED] writes:


 As I said I agree that there are valid use cases. Do you need this feature
 for your build? If so, please create a jira issue on the Clover plugin. You
 could also provide a patch if you need it. It should be quite easy I think:
 we'll need to create 2 new goals: One new
 clover:instrumentWithGeneratedSources and one
 clover:instrumentInternalWithGeneratesSources. It's kind of ugly but I don't
 currently see any other way. 


Not really needed right now, and don't have much time for implementing
it anyway, but I keep the idea around.


best regards,
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: mvn site running test cases twice

2006-11-07 Thread jp4

This seems like a big issue since our nightly builds usually run all of our
unit and container test cases.  If we have to run the tests twice, it will
almost double the build time which is already several hours.

Is there any way to instrument without invoking the test cases?  It seems
like you would want to clean, compile, instrument, test, install create site
docs.  Has anyone found a workaround?

Thanks,

jp4



Wendy Smoak-3 wrote:
 
 On 11/7/06, jp4 [EMAIL PROTECTED] wrote:
 
 I removed the coberatura plugin and unit test cases run only once... 
 Here is
 what I have in my pom
 ...
 Any ideas?  Looks like the test cases get run during instrumentation?
 
 I think it's normal based on Maven's current design.  The tests are
 run once during the 'test' phase, then in order to produce the
 coverage report, the tests have to be re-run on the instrumented code.
 
 Take a look at this post from Vincent which talks about a similar
 issue with the Clover plugin:
 http://www.nabble.com/-M2--My-tests-are-launched-3-times-%21-t2190279s177.html#a6075779
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/mvn-site-running-test-cases-twice-tf2571386s177.html#a7226443
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Looking for a simple maven assembly example

2006-11-07 Thread Dirk Starke
Hello Christian,

I am just starting to use Maven 2, also had some problems to figure this
out, and perhaps I can help you. In my little project I created two
files in the src/main/assembly directory of my project.

The bin.xml looks like:

?xml version=1.0 encoding=UTF-8?
assembly
  idbin/id
  formats
formattar.gz/format
formatzip/format
  /formats
  fileSets
fileSet
  includes
includeLICENSE*/include
  /includes
/fileSet
fileSet
  directorytarget/directory
  outputDirectory/outputDirectory
  includes
include*.jar/include
  /includes
/fileSet
  /fileSets
/assembly



The src.xml looks like:

?xml version=1.0 encoding=UTF-8?
assembly
  idsrc/id
  formats
formattar.gz/format
formatzip/format
  /formats
  fileSets
fileSet
  includes
includeLICENSE*/include
includepom.xml/include
  /includes
/fileSet
fileSet
  directorysrc/directory
/fileSet
  /fileSets
/assembly

I am not sure whether it works as intended, but you get the point, I think.

I configured the assembly plugin as follows:

  plugin
artifactIdmaven-assembly-plugin/artifactId
executions
  execution
idassembly/id
phasepackage/phase
goals
  goalassembly/goal
/goals
configuration
  descriptors
descriptor
  src/main/assembly/bin.xml
/descriptor
descriptor
  src/main/assembly/src.xml
/descriptor
  /descriptors
/configuration
  /execution
/executions
  /plugin

That at least creates some files...

Regards,
Dirk


Christian Goetze wrote:
 I've read the better builds with maven book, I've looked at
 http://maven.apache.org/plugins/maven-assembly-plugin, but I'm still
 not sure I understand how this is supposed to work.

 I just want end up with a zip file containing all of the jars needed
 to run the particular project I'm building.

 Alternatively, I'd already be happy with a way to just get the
 transitive runtime dependency list out of the build.

 Any help would be appreciated, thanks in advance.
 -- 
 cg

 -
 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: profile activation based on environment variables

2006-11-07 Thread Arnaud Bailly
Haroon Rafique [EMAIL PROTECTED] writes:


 Hi Arnaud,

 Thanks for the reply, but I'm positive I want environment variables and 
 not system properties. From http://maven.apache.org/settings.html

 env.X: Prefixing a variable with env. will return the shell's
 environment variable. For example, ${env.PATH} contains the $path
 environment variable (%PATH% in Windows).

 I believe this has been in maven since 2.0.1+ (was implemented via MNG-1525).
 http://jira.codehaus.org/browse/MNG-1525

 Any more insight would be helpful.

Sorry for the noise :-(

-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



  1   2   >