Re: Cannot add Perforce project to Continuum 1.0.2

2005-12-13 Thread Emmanuel Venisse

I'm not familiar with Perforce, so i forwarded your mail to perforce provider 
developer (maven-scm).

What is P4USER and P4CLIENT?

I suppose P4USER is the username used to connect to perforce server. I look in the perforce docs and 
it seems that -u parameter override P4USER. We use this parameter, and username is taken from scm url


Emmanuel

Neil Padgen a écrit :
 




-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: 12 December 2005 17:57

To: continuum-users@maven.apache.org
Subject: Re: Cannot add Perforce project to Continuum 1.0.2

In add pages, you must use http, https or ftp (and file if 
it's configured in application.xml) protocols. scm urls 
aren't valid urls.



Thanks Emmanuel.  However, I now seem to be getting the same error as
Robert - Provider message: Unable to sync.

Seems from the logs that it's forcing a Perforce client of
nrp-pc-nrp-maven (pc-nrp is my hostname).  I need to be able to
specify a p4 username and p4 client for Continuum to use.

Usually specifying P4USER and P4CLIENT in the environment is enough.
Can this be done with Continuum?

-- Neil

http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system. 
Do not use, copy or disclose the information in any way nor act in

reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received. 
Further communication will signify your consent to this.








RE: Cannot add Perforce project to Continuum 1.0.2

2005-12-13 Thread Mike Perham
Continuum has nothing to do with all this.  It's all the SCM plugin.
I'll need to add support for a clientspec name override.  

We have a similar 'builder' p4user with anthill.  We 'p4 login' that
p4user for our 'anthill' unix user and have him set up so that his login
never expires.  All anthill p4 operations will default to this p4user.
You might consider doing the same.  The only other way to specify the
user is to use the SCM URL which is not a good idea in a multi-developer
environment.

-Original Message-
From: Neil Padgen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 10:16 AM
To: continuum-users@maven.apache.org
Subject: RE: Cannot add Perforce project to Continuum 1.0.2

 
Yep, got all that.  However, we have a naming policy for our Perforce
clientspecs here (project-branch-machine), so I'm trying to persuade
Continuum to use that.

I'm not sure how to persuade Continuum to use a specified username for
Perforce though.  Our Perforce license grants us one automated
(non-human) user, who is called background, so all automated processes
which use Perforce need to use that Perforce user.  It's unlikely that
Continuum will run as a user background, so this will need to be
specified.



RE: Exception running continuum on solaris

2005-12-13 Thread Mordo, Aviran (EXP N-NANNATEK)
Ok, it is working now. The workaround - I had to remove both the carriage 
return from one of the environment entries AND remove the . From the path.

Thanks for the help.

Aviran

-Original Message-
From: Mordo, Aviran (EXP N-NANNATEK) 
Sent: Tuesday, December 13, 2005 4:14 PM
To: continuum-users@maven.apache.org
Subject: RE: Exception running continuum on solaris

 

I got the same exception. I also tried to remove the . From the path and it 
still does not work

-Original Message-
From: Mayorgaadame, Alex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 3:13 PM
To: Maven Users List
Cc: continuum-users@maven.apache.org
Subject: RE: Exception running continuum on solaris

Can you try:

PATH=$PATH:/usr/sbin:/usr/builduser/maven-2.0/bin:/usr/bin

Instead of:

PATH=.:/usr/sbin:/usr/builduser/maven-2.0/bin:/usr/bin

And see if it does any good. I'm moving the discussion over to the Continuum 
List.

Regards,
Alex
-Original Message-
From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 1:21 PM
To: Maven Users List
Subject: RE: Exception running continuum on solaris


Sorry in I wasn't clear, the space in the path was under Windows where it 
failed to start.

I attached the env file

Aviran

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 12:24 PM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

Can you put your env result in a file and attach it to the issue?

You have a space in a folder name under solaris!!! I thought it was only under 
windows.
So, you need to remove line wrapper.java.additional.5.stripquotes=TRUE in 
bin/solaris/wrapper.conf (if you use the wrapper)

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :
 Correct.
 
 Anyway I changed this entry not to have a carriage return and I'm still 
 getting the exception.
 
 I don't know if this is related but I found that if I have an entry in the 
 system's path with a folder name containing a space, continuum will fail to 
 start. 
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 13, 2005 12:08 PM
 To: Maven Users List
 Subject: Re: Exception running continuum on solaris
 
 so -- is part of previous line with a return carriage?
 
 Mordo, Aviran (EXP N-NANNATEK) a écrit :
 
It is part of the SP1 env variable. If I echo SP1 I get 
[EMAIL PROTECTED]:$PWD --  but if I type env I get the -- in a separate 
line

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:55 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

hmm, strange line.
Do you know what is it? It isn't an environment variable

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :


Yes I do, I have the following line: -- (without the quotes)

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:42 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 
2.0.1) Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :



I'm trying to build a project using continuum on Solaris and I'm 
getting the following exception:

org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeSh
e
l
lC
ommand(AbstractBuildExecutor.java:199)
 at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.
b
u
il
d(MavenTwoBuildExecutor.java:86)
at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.
e
xe
cute(ExecuteBuilderContinuumAction.java:127)
 at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.bu
i
l
d(
DefaultBuildController.java:171)
 at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.
e
x
ec
uteTask(BuildProjectTaskExecutor.java:53)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Ex
e
c
ut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index 
out of range: -1
 at java.lang.String.substring(String.java:1768)
 at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(Comma
n
d
Li
neUtils.java:188)
 at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Comman
d
l
in
e.java:355)
 at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exe
c
u
te
ShellCommand(DefaultShellCommandHelper.java:71)
 at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exe
c
u

RE: Exception running continuum on solaris

2005-12-13 Thread Mayorgaadame, Alex
Aviran,

Just for the record. Can you post your fixed env? I also use Solaris so it may 
be useful as a reference.

Thanks and regards,
Alex

-Original Message-
From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 4:52 PM
To: continuum-users@maven.apache.org
Subject: RE: Exception running continuum on solaris


Ok, it is working now. The workaround - I had to remove both the carriage 
return from one of the environment entries AND remove the . From the path.

Thanks for the help.

Aviran

-Original Message-
From: Mordo, Aviran (EXP N-NANNATEK) 
Sent: Tuesday, December 13, 2005 4:14 PM
To: continuum-users@maven.apache.org
Subject: RE: Exception running continuum on solaris

 

I got the same exception. I also tried to remove the . From the path and it 
still does not work

-Original Message-
From: Mayorgaadame, Alex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 3:13 PM
To: Maven Users List
Cc: continuum-users@maven.apache.org
Subject: RE: Exception running continuum on solaris

Can you try:

PATH=$PATH:/usr/sbin:/usr/builduser/maven-2.0/bin:/usr/bin

Instead of:

PATH=.:/usr/sbin:/usr/builduser/maven-2.0/bin:/usr/bin

And see if it does any good. I'm moving the discussion over to the Continuum 
List.

Regards,
Alex
-Original Message-
From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 1:21 PM
To: Maven Users List
Subject: RE: Exception running continuum on solaris


Sorry in I wasn't clear, the space in the path was under Windows where it 
failed to start.

I attached the env file

Aviran

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 12:24 PM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

Can you put your env result in a file and attach it to the issue?

You have a space in a folder name under solaris!!! I thought it was only under 
windows.
So, you need to remove line wrapper.java.additional.5.stripquotes=TRUE in 
bin/solaris/wrapper.conf (if you use the wrapper)

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :
 Correct.
 
 Anyway I changed this entry not to have a carriage return and I'm still 
 getting the exception.
 
 I don't know if this is related but I found that if I have an entry in the 
 system's path with a folder name containing a space, continuum will fail to 
 start. 
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 13, 2005 12:08 PM
 To: Maven Users List
 Subject: Re: Exception running continuum on solaris
 
 so -- is part of previous line with a return carriage?
 
 Mordo, Aviran (EXP N-NANNATEK) a écrit :
 
It is part of the SP1 env variable. If I echo SP1 I get 
[EMAIL PROTECTED]:$PWD --  but if I type env I get the -- in a separate 
line

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:55 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

hmm, strange line.
Do you know what is it? It isn't an environment variable

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :


Yes I do, I have the following line: -- (without the quotes)

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:42 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 
2.0.1) Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :



I'm trying to build a project using continuum on Solaris and I'm 
getting the following exception:

org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeSh
e
l
lC
ommand(AbstractBuildExecutor.java:199)
 at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.
b
u
il
d(MavenTwoBuildExecutor.java:86)
at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.
e
xe
cute(ExecuteBuilderContinuumAction.java:127)
 at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.bu
i
l
d(
DefaultBuildController.java:171)
 at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.
e
x
ec
uteTask(BuildProjectTaskExecutor.java:53)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Ex
e
c
ut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index 
out of range: -1
 at java.lang.String.substring(String.java:1768)
 at

Example of a plugin with integration tests

2005-12-13 Thread Jochen Wiedmann


Hi,

can anyone point me to a plugin with included integration tests, that I 
may use as an example? Preferrably, a source generating plugin?


All plugins that I know so far, have either a simple test directory, 
or no tests at all.



Regards,

Jochen


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



[m2] site and site:deploy running tests twice.

2005-12-13 Thread Ben Gidley
I am trying to set up site/site deploy so that they automatically run during
the deploy phase. However when I do this and have the surefire reports
plugin it runs the tests twice - is there a way to stop it running the tests
twice?

I have got in plugins

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-site-plugin/artifactId
executions
execution
iddeploy/id
phasedeploy/phase
goals
goalsite/goal
goaldeploy/goal
/goals
/execution
/executions
/plugin


Thanks

Ben


Re: [m2] war plugin and resources filtering

2005-12-13 Thread Allan Ramirez


I think this is related to http://jira.codehaus.org/browse/MNG-791

-allan

Piotr Bzdyl wrote:


Hello,

How can I turn on resources filtering for files in the 
src/main/webapps directory? I need to filter web.xml and other xml 
descriptors.


Best regards,
Piotrek

-
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: [ANN] Maven 2.0.1 Released

2005-12-13 Thread Pete
1) Where are the release notes, just wanted to read the improvements ?

2) Also the download link above seems to take me to a page with just the 2.0
 downloads 19/10/2005




On 13/12/05, Michael McCrann [EMAIL PROTECTED] wrote:

 Many thanks I have got it now.

 Michael

 -Original Message-
 From: Brian E. Fox [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 13 December 2005 12:57 PM
 To: Maven Users List
 Subject: RE: [ANN] Maven 2.0.1 Released

 http://maven.apache.org/download.html

 -Original Message-
 From: Michael McCrann [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 12, 2005 4:47 PM
 To: Maven Users List
 Subject: RE: [ANN] Maven 2.0.1 Released

 John,

 Where can I download 2.0.1 from?

 The Maven web site only has the 2.0 downloads.

 Michael

 -Original Message-
 From: John Casey [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 13 December 2005 10:27 AM
 To: Maven Users List; announce@apache.org
 Subject: [ANN] Maven 2.0.1 Released

 The Apache Maven team is proud to announce the release of Maven 2.0.1.

 Maven is a build system that provides software project management and
 dependency comprehension. Based on the concept of a project object model
 (POM), Maven manages a project's build, reporting and documentation from
 a central place.

 This is primarily a maintenance release, incorporating improvements to:

 * Artifact and Transitive Dependency handling

 * POM inheritance and interpolation

 * Multimodule Builds

 * Plugin support

 * and much more...


 Also, some highlights associated with this release are:

 * Site documentation improvements

 * Support for mojos written in Ant


 The Maven team would like to express thanks to the user and developer
 community for their testing, feedback and contributions that have made
 Maven 2 even more stable!

 New users can get started with Maven now using the getting started
 guide: http://maven.apache.org/maven2/guides/getting-started/index.html

 Enjoy!

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



 NOTICE
 This e-mail and any attachments are confidential and may contain
 copyright material of Macquarie Bank or third parties. If you are not
 the intended recipient of this email you should not read, print,
 re-transmit, store or act in reliance on this e-mail or any attachments,
 and should destroy all copies of them. Macquarie Bank does not guarantee
 the integrity of any emails or any attached files. The views or opinions
 expressed are the author's own and may not reflect the views or opinions
 of Macquarie Bank.


 -
 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 : [ANN] Maven 2.0.1 Released

2005-12-13 Thread Olivier Lamy
http://jira.codehaus.org/secure/ReleaseNote.jspa?version=12000styleName
=HtmlprojectId=10500Create=Create

-Message d'origine-
De : Pete [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 13 décembre 2005 09:54
À : Maven Users List
Objet : Re: [ANN] Maven 2.0.1 Released


1) Where are the release notes, just wanted to read the improvements ?

2) Also the download link above seems to take me to a page with just the
2.0  downloads 19/10/2005




On 13/12/05, Michael McCrann [EMAIL PROTECTED] wrote:

 Many thanks I have got it now.

 Michael

 -Original Message-
 From: Brian E. Fox [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 13 December 2005 12:57 PM
 To: Maven Users List
 Subject: RE: [ANN] Maven 2.0.1 Released

 http://maven.apache.org/download.html

 -Original Message-
 From: Michael McCrann [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 12, 2005 4:47 PM
 To: Maven Users List
 Subject: RE: [ANN] Maven 2.0.1 Released

 John,

 Where can I download 2.0.1 from?

 The Maven web site only has the 2.0 downloads.

 Michael

 -Original Message-
 From: John Casey [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 13 December 2005 10:27 AM
 To: Maven Users List; announce@apache.org
 Subject: [ANN] Maven 2.0.1 Released

 The Apache Maven team is proud to announce the release of Maven 2.0.1.

 Maven is a build system that provides software project management and 
 dependency comprehension. Based on the concept of a project object 
 model (POM), Maven manages a project's build, reporting and 
 documentation from a central place.

 This is primarily a maintenance release, incorporating improvements 
 to:

 * Artifact and Transitive Dependency handling

 * POM inheritance and interpolation

 * Multimodule Builds

 * Plugin support

 * and much more...


 Also, some highlights associated with this release are:

 * Site documentation improvements

 * Support for mojos written in Ant


 The Maven team would like to express thanks to the user and developer 
 community for their testing, feedback and contributions that have made

 Maven 2 even more stable!

 New users can get started with Maven now using the getting started
 guide: 
 http://maven.apache.org/maven2/guides/getting-started/index.html

 Enjoy!

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



 NOTICE
 This e-mail and any attachments are confidential and may contain 
 copyright material of Macquarie Bank or third parties. If you are not 
 the intended recipient of this email you should not read, print, 
 re-transmit, store or act in reliance on this e-mail or any 
 attachments, and should destroy all copies of them. Macquarie Bank 
 does not guarantee the integrity of any emails or any attached files. 
 The views or opinions expressed are the author's own and may not 
 reflect the views or opinions of Macquarie Bank.


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





This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après le message ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
-


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



Re: m2: Lifecycle phase binding (integration-test)

2005-12-13 Thread Pete
Hi Piotr,

I have acheived this in M2 using a very simple lightweight POM for each
discrete task/execution in the integration phase e.g.

+ runtests-integration
 pom.xml   (parent pom, invoking child modules in the order below)
+ rebuild-database
   pom.xml  (antrun)
+ start-container
   pom.xml  (antrun or cargo)
+ runtests-serverside  (junits needing server started as they invoke
remote interfaces)
   pom.xml (surefire:test)
+ runtests-incontainer-tests
   pom.xml (antrun for JUnitEE or Cactus incontainer tests)
+ stop-container
   pom.xml (antrun or cargo)

All plugins above bound to the integration-test phase

I found this approach also necessary, because you can only have one instance
of the antRun plugin for the integration-test phase, therefore you can't use
antrun, then surefire, then antrun again  as the last antrun overrides the
first if they are bound to the same phase.

Pete

On 12/12/05, Vincent Massol [EMAIL PROTECTED] wrote:

 Hi Piotr,

 I don't think this is currently possible with Maven 2.0. You could do it
 by
 binding cargo:start and cargo:stop to other phases but that won't be nice
 and clean.

 One solution you can use today is simply to put the cargo code in your
 setUp()/tearDown() methods (or in a suite's TestSetup if you want to run
 that code once only).

 The principle is described here (but it's using an oldish version of
 cargo):
 http://tinyurl.com/92fh5

 Another solution would be for the cargo plugin to add support for this use
 case. So far we've not done it because we think it can be better achieved
 by
 using the Cargo API in your unit test code. WDYT?

 Hope it helps,
 -Vincent

  -Original Message-
  From: Piotr Smoliński [mailto:[EMAIL PROTECTED]
  Sent: dimanche 11 décembre 2005 23:02
  To: users@maven.apache.org
  Subject: m2: Lifecycle phase binding (integration-test)
 
  Hi everybody,
 
  Are there any possibilities to provide ordering for executions bound to
  specified phase?
  I would like not to do custom packaging, but use existing one. For
  example I'd like to
  implement integration-test phase for war (or ear) packaging using goals:
  * cargo:start
  * surefire:test
  * cargo stop
 
  TIA
  Piotr Smolinski


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




Re: Maven 2.0 Example with coding

2005-12-13 Thread Allan Ramirez

Hi there,

Please refer to this page http://docs.codehaus.org/display/MAVENUSER/FAQs
and look for the question I have my reports in maven 1. How am I 
going to convert that to Maven 2?


Most of your report plugins are hosted in mojo codehaus
From the FAQ page, look for the question Where is the _ plugin?


regards,
-allan

Deepika.M wrote:


Hi all,
   Thanks dan for pervious reply..

   I want an example project which generates reports of  following type
along with code.
  reportmaven-jdepend-plugin/report
   reportmaven-checkstyle-plugin/report
   reportmaven-pmd-plugin/report
   reportmaven-linkcheck-plugin/report
   reportmaven-tasklist-plugin/report
   reportmaven-javadoc-plugin/report
   reportmaven-jxr-plugin/report ...
  What about reports Tag in M2 ?

-

Deepika.S

 




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/198 - Release Date: 12/12/2005

 



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

spring-mock Spring framework 1.2.5

2005-12-13 Thread cameron clarke
don't shoot I'm new to Maven ;-)

spring-mock is specified in spring-parent-1.2.5.pom but spring-mock.jar does
not get pulled down from http://repo1.maven.org/maven2  Is there a reason
why this jar/pom is missing?  I have written some tests that utilise
org.springframework.test.AbstractTransactionalDataSourceSpringContextTestsbut
are failing in the M2 world as NoClassDef can be found.

I installed it local via :
mvn install:install-file
-DgroupId=org.springframework-DartifactId=spring-mock -Dversion=
1.2.5 -Dfile=C:/spring-mock.jar -Dpackaging=jar -DgeneratePom=true

I checked the repository file system to see that it now exists but the test
still fails with the same error.  I noticed the pom file was not created
though ! instead a maven-metadata-local.xml was created.   So I manually
created spring-mock-1.2.5.pom as follows:

project
  parent
artifactIdspring-parent/artifactId
groupIdorg.springframework/groupId
version1.2.5/version
  /parent
  modelVersion4.0.0/modelVersion
  artifactIdspring-mock/artifactId
  nameSpring Mock/name
  version1.2.5/version
  distributionManagement
statusdeployed/status
  /distributionManagement
/project

(I didn't worked out the dependencies ..yet)

but still my tests fail . :-(  ANY HELP GREATLY APPRECIATED

java.lang.NoClassDefFoundError:
org/springframework/test/AbstractTransactionalDa
taSourceSpringContextTests


RE: Cannot add Perforce project to Continuum 1.0.2

2005-12-13 Thread Neil Padgen
 

 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
 Sent: 12 December 2005 17:57
 To: continuum-users@maven.apache.org
 Subject: Re: Cannot add Perforce project to Continuum 1.0.2
 
 In add pages, you must use http, https or ftp (and file if 
 it's configured in application.xml) protocols. scm urls 
 aren't valid urls.

Thanks Emmanuel.  However, I now seem to be getting the same error as
Robert - Provider message: Unable to sync.

Seems from the logs that it's forcing a Perforce client of
nrp-pc-nrp-maven (pc-nrp is my hostname).  I need to be able to
specify a p4 username and p4 client for Continuum to use.

Usually specifying P4USER and P4CLIENT in the environment is enough.
Can this be done with Continuum?

-- Neil

http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system. 
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received. 
Further communication will signify your consent to this.


Re: spring-mock Spring framework 1.2.5

2005-12-13 Thread charles Anto
Any idea, how to create database in postgresql using maven or ant scripts.
I've tried DBUNIT. But not able to reach the goal. Because i don't know how
to configure JDBC driver and DBunit driver with maven scripts.


Thanks,
Charles


Re: spring-mock Spring framework 1.2.5

2005-12-13 Thread cameron101
please use appropriate subject text, rather than simply replying to another
post, it causing conversations to become disjointed !

On 13/12/05, charles Anto [EMAIL PROTECTED] wrote:

 Any idea, how to create database in postgresql using maven or ant scripts.
 I've tried DBUNIT. But not able to reach the goal. Because i don't know
 how
 to configure JDBC driver and DBunit driver with maven scripts.


 Thanks,
 Charles




How to create database in postgresql using maven or ant scripts???

2005-12-13 Thread charles Anto

 Any idea, how to create database in postgresql using maven or ant scripts.
 I've tried DBUNIT. But not able to reach the goal. Because i don't know
 how to configure JDBC driver and DBunit driver with maven scripts.


 Thanks,
 Charles



Re: How to create database in postgresql using maven or ant scripts???

2005-12-13 Thread Kenney Westerhof
On Tue, 13 Dec 2005, charles Anto wrote:

I recall someone working on an sql plugin, but in the mean time
you could try using the sql ant task and the antrun plugin.
Make sure you add a dependency on postgresql in the plugin tag for
the antrun plugin, and you should be set.

-- Kenney

 
  Any idea, how to create database in postgresql using maven or ant scripts.
  I've tried DBUNIT. But not able to reach the goal. Because i don't know
  how to configure JDBC driver and DBunit driver with maven scripts.
 
 
  Thanks,
  Charles
 


--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



Re: How to create database in postgresql using maven or ant scripts???

2005-12-13 Thread Dion Gillard
Are you using the dbunit plugin for maven?

http://maven-plugins.sourceforge.net/maven-dbunit-plugin/

On 12/14/05, charles Anto [EMAIL PROTECTED] wrote:
 
  Any idea, how to create database in postgresql using maven or ant scripts.
  I've tried DBUNIT. But not able to reach the goal. Because i don't know
  how to configure JDBC driver and DBunit driver with maven scripts.
 
 
  Thanks,
  Charles
 




--
http://www.multitask.com.au/people/dion/
You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live. - George
Bernard Shaw

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



Re: How to create database in postgresql using maven or ant scripts???

2005-12-13 Thread Kenney Westerhof
On Tue, 13 Dec 2005, Kenney Westerhof wrote:

Oh, I forgot to ask wheter you're using maven 1 or 2 - the text below is
for maven 2 :)

-- Kenney

 On Tue, 13 Dec 2005, charles Anto wrote:

 I recall someone working on an sql plugin, but in the mean time
 you could try using the sql ant task and the antrun plugin.
 Make sure you add a dependency on postgresql in the plugin tag for
 the antrun plugin, and you should be set.

 -- Kenney

  
   Any idea, how to create database in postgresql using maven or ant scripts.
   I've tried DBUNIT. But not able to reach the goal. Because i don't know
   how to configure JDBC driver and DBunit driver with maven scripts.
  
  
   Thanks,
   Charles
  
 

 --
 Kenney Westerhof
 http://www.neonics.com
 GPG public key: http://www.gods.nl/~forge/kenneyw.key

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


--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



Re: How to create database in postgresql using maven or ant scripts???

2005-12-13 Thread charles Anto
Hi dion,

  I've downloaded dbunit jar files and no idea where to put that jar file
and how to establish connection with maven script and postgresql.
Ken: I'm using maven1.0.2


On 12/13/05, Kenney Westerhof [EMAIL PROTECTED] wrote:

 On Tue, 13 Dec 2005, Kenney Westerhof wrote:

 Oh, I forgot to ask wheter you're using maven 1 or 2 - the text below is
 for maven 2 :)

 -- Kenney

  On Tue, 13 Dec 2005, charles Anto wrote:
 
  I recall someone working on an sql plugin, but in the mean time
  you could try using the sql ant task and the antrun plugin.
  Make sure you add a dependency on postgresql in the plugin tag for
  the antrun plugin, and you should be set.
 
  -- Kenney
 
   
Any idea, how to create database in postgresql using maven or ant
 scripts.
I've tried DBUNIT. But not able to reach the goal. Because i don't
 know
how to configure JDBC driver and DBunit driver with maven scripts.
   
   
Thanks,
Charles
   
  
 
  --
  Kenney Westerhof
  http://www.neonics.com
  GPG public key: http://www.gods.nl/~forge/kenneyw.key
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 --
 Kenney Westerhof
 http://www.neonics.com
 GPG public key: http://www.gods.nl/~forge/kenneyw.key

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




Re: How to create database in postgresql using maven or ant scripts???

2005-12-13 Thread Dion Gillard
Are you trying to populate the database with some test data, or are
you trying to create tables, views etc?

On 12/14/05, charles Anto [EMAIL PROTECTED] wrote:
 Hi dion,

   I've downloaded dbunit jar files and no idea where to put that jar file
 and how to establish connection with maven script and postgresql.
 Ken: I'm using maven1.0.2


 On 12/13/05, Kenney Westerhof [EMAIL PROTECTED] wrote:
 
  On Tue, 13 Dec 2005, Kenney Westerhof wrote:
 
  Oh, I forgot to ask wheter you're using maven 1 or 2 - the text below is
  for maven 2 :)
 
  -- Kenney
 
   On Tue, 13 Dec 2005, charles Anto wrote:
  
   I recall someone working on an sql plugin, but in the mean time
   you could try using the sql ant task and the antrun plugin.
   Make sure you add a dependency on postgresql in the plugin tag for
   the antrun plugin, and you should be set.
  
   -- Kenney
  

 Any idea, how to create database in postgresql using maven or ant
  scripts.
 I've tried DBUNIT. But not able to reach the goal. Because i don't
  know
 how to configure JDBC driver and DBunit driver with maven scripts.


 Thanks,
 Charles

   
  
   --
   Kenney Westerhof
   http://www.neonics.com
   GPG public key: http://www.gods.nl/~forge/kenneyw.key
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  --
  Kenney Westerhof
  http://www.neonics.com
  GPG public key: http://www.gods.nl/~forge/kenneyw.key
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




--
http://www.multitask.com.au/people/dion/
You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live. - George
Bernard Shaw

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



Re: How to create database in postgresql using maven or ant scripts???

2005-12-13 Thread charles Anto
Basically i want to refresh the database for that first i've to delete the
existing database and run create.sql to create new database and restore the
database for test data.



On 12/13/05, Dion Gillard [EMAIL PROTECTED] wrote:

 Are you trying to populate the database with some test data, or are
 you trying to create tables, views etc?

 On 12/14/05, charles Anto [EMAIL PROTECTED] wrote:
  Hi dion,
 
I've downloaded dbunit jar files and no idea where to put that jar
 file
  and how to establish connection with maven script and postgresql.
  Ken: I'm using maven1.0.2
 
 
  On 12/13/05, Kenney Westerhof [EMAIL PROTECTED] wrote:
  
   On Tue, 13 Dec 2005, Kenney Westerhof wrote:
  
   Oh, I forgot to ask wheter you're using maven 1 or 2 - the text below
 is
   for maven 2 :)
  
   -- Kenney
  
On Tue, 13 Dec 2005, charles Anto wrote:
   
I recall someone working on an sql plugin, but in the mean time
you could try using the sql ant task and the antrun plugin.
Make sure you add a dependency on postgresql in the plugin tag for
the antrun plugin, and you should be set.
   
-- Kenney
   
 
  Any idea, how to create database in postgresql using maven or
 ant
   scripts.
  I've tried DBUNIT. But not able to reach the goal. Because i
 don't
   know
  how to configure JDBC driver and DBunit driver with maven
 scripts.
 
 
  Thanks,
  Charles
 

   
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
  
   --
   Kenney Westerhof
   http://www.neonics.com
   GPG public key: http://www.gods.nl/~forge/kenneyw.key
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 


 --
 http://www.multitask.com.au/people/dion/
 You are going to let the fear of poverty govern your life and your
 reward will be that you will eat, but you will not live. - George
 Bernard Shaw

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




[m2.0.1] trouble with mojo report with maven-reporting-impl with version 2.0.1

2005-12-13 Thread Olivier Lamy
Hi,
A reporting mojo worked with 2.0 now failed with 2.0.1 (by updating
maven-reporting-impl with version 2.0.1).
The following stack trace (not full)  :
ause the requirement
ComponentRequirement{role='org.codehaus.doxia.site.renderer.SiteRend
rer', roleHint='null', fieldName='siteRenderer'} was missing
 
Mojo field :

/**
 * @component
 * @required
 * @readonly
 */
 
I have updated my pom to use maven-reporting-api and
maven-reporting-impl with version 2.0.1.
The second update generate the trouble. I need to revert it to 2.0.
Do I miss something ?
 
- Olivier
 


This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message electronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci apres le message ), sont confidentiels et 
destines exclusivement a l'usage de la  personne a laquelle ils sont adresses. 
Si vous avez recu ce message par erreur, merci  de le renvoyer a son emetteur 
et de le detruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressement autorisees de ce 
message, sont interdites.
** 



ODP: Re: m2: Lifecycle phase binding (integration-test)

2005-12-13 Thread Piotr Smolinski
Thanks, it is a very smart workaround. First
I considered extending phase model and use
additional phases such as integration-test-prepare
and integration-test-dispose.






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



Re: [m2.0.1] trouble with mojo report with maven-reporting-impl with version 2.0.1

2005-12-13 Thread Emmanuel Venisse

doxia is now in org.apache.maven.doxia

Olivier Lamy a écrit :

Hi,
A reporting mojo worked with 2.0 now failed with 2.0.1 (by updating
maven-reporting-impl with version 2.0.1).
The following stack trace (not full)  :
ause the requirement
ComponentRequirement{role='org.codehaus.doxia.site.renderer.SiteRend
rer', roleHint='null', fieldName='siteRenderer'} was missing
 
Mojo field :


/**
 * @component
 * @required
 * @readonly
 */
 
I have updated my pom to use maven-reporting-api and

maven-reporting-impl with version 2.0.1.
The second update generate the trouble. I need to revert it to 2.0.
Do I miss something ?
 
- Olivier
 



This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). If 
you have received this message in error please send it back to the sender and delete it. 
Unauthorized publication, use, dissemination or disclosure of this message, either in 
whole or in part is strictly prohibited.
** 
Ce message electronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci apres le message ), sont confidentiels et destines exclusivement a l'usage de la  personne a laquelle ils sont adresses. Si vous avez recu ce message par erreur, merci  de le renvoyer a son emetteur et de le detruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressement autorisees de ce message, sont interdites.
** 






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



ODP: Re: m2: Lifecycle phase binding (integration-test)

2005-12-13 Thread Piotr Smolinski
According to Vincent's solution. (Sorry, I haven't
subscribed list before, so I couldn't reply)

I don't think if using setUp()/tearDown() for container control
is good, because:
1) container state is external to application (and test)
2) we lose benefits of using declarative cargo setup 
in POM 
3) we have to do additional structure (test case) for 
container controling for the whole test-suite

BTW
Is it possible to invoke m2 goal from inside the mojo?
I.e. write mojo that performs cargo:start, some tests,
cargo:stop and bind it to integration-test phase.

Piotr Smolinski

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



Surefires test order

2005-12-13 Thread Jochen Wiedmann
Hi,

I have a test suite that depends on a certain order of tests. More
precisely, a unit test, which looks like

public class MyTest extends TestCase {
public void testFoo(){ ... }
public void testBar(){ ... }
}

assumes, that testFoo() is invoked before testBar(). This works fine,
when running the tests from within Ant, or Eclipse.

My impression is, that Surefire doesn't keep this order. Can anyone
confirm this? I assume, that reordering the methods is intentional?
However, if so, two questions arise to me:

- A reordering occurs, both for test classes (which are typically executed in
  alphabetical orders by other frameworks), and methods. However, the reorder
  doesn't look choosen randomly: It is reproducable.

  But if the desired effect is to stop the user from assuming a
certain order, why
  isn't it random?

- Would it be possibly to accept a patch, which restores the typical
order on the users
  behalf (for example, by setting a property canonicalOrder)? The
test suite isn't
  written by me, and I am almost unable to change it.


Thanks,

Jochen


--
Often it does seem a pity that Noah and his party did not miss the
boat. (Mark Twain)

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



RE : [m2.0.1] trouble with mojo report with maven-reporting-impl with version 2.0.1

2005-12-13 Thread Olivier Lamy
Can you explain more ?
Because my mojo report needs to extends
org.apache.maven.reporting.AbstractMavenReport
This contains the abstract method :
org.codehaus.doxia.site.renderer.SiteRenderer getSiteRenderer()

That's why my mojo field is :
/**
 * @component
 * @required
 * @readonly
 */
private SiteRenderer siteRenderer;

I implements the simple method :

/** 
 * @see
org.apache.maven.reporting.AbstractMavenReport#getSiteRenderer()
 */
protected SiteRenderer getSiteRenderer()
{
return siteRenderer;
}

I have certainly miss something in the mojo's field configuration or in
the getSiteRenderer implementation ??

Thanks,
- Olivier

-Message d'origine-
De : Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 13 décembre 2005 16:17
À : Maven Users List
Objet : Re: [m2.0.1] trouble with mojo report with maven-reporting-impl
with version 2.0.1


doxia is now in org.apache.maven.doxia

Olivier Lamy a écrit :
 Hi,
 A reporting mojo worked with 2.0 now failed with 2.0.1 (by updating 
 maven-reporting-impl with version 2.0.1). The following stack trace 
 (not full)  : ause the requirement
 ComponentRequirement{role='org.codehaus.doxia.site.renderer.SiteRend
 rer', roleHint='null', fieldName='siteRenderer'} was missing
  
 Mojo field :
 
 /**
  * @component
  * @required
  * @readonly
  */
  
 I have updated my pom to use maven-reporting-api and 
 maven-reporting-impl with version 2.0.1. The second update generate 
 the trouble. I need to revert it to 2.0. Do I miss something ?
  
 - Olivier
  
 
 
 This e-mail, any attachments and the information contained therein 
 (this message) are confidential and intended solely for the use of
the addressee(s). If you have received this message in error please send
it back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.
 **

 Ce message electronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci apres le message ), sont
confidentiels et destines exclusivement a l'usage de la  personne a
laquelle ils sont adresses. Si vous avez recu ce message par erreur,
merci  de le renvoyer a son emetteur et de le detruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressement autorisees de ce message, sont
interdites.
 **

 
 


-
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: RE : [m2.0.1] trouble with mojo report with maven-reporting-impl with version 2.0.1

2005-12-13 Thread Emmanuel Venisse

Can you try to remove your getSiteRenderer method and change package of 
SiteRenderer in your import?

Emmanuel

Olivier Lamy a écrit :

Can you explain more ?
Because my mojo report needs to extends
org.apache.maven.reporting.AbstractMavenReport
This contains the abstract method :
org.codehaus.doxia.site.renderer.SiteRenderer getSiteRenderer()

That's why my mojo field is :
/**
 * @component
 * @required
 * @readonly
 */
private SiteRenderer siteRenderer;

I implements the simple method :

/** 
 * @see

org.apache.maven.reporting.AbstractMavenReport#getSiteRenderer()
 */
protected SiteRenderer getSiteRenderer()
{
return siteRenderer;
}

I have certainly miss something in the mojo's field configuration or in
the getSiteRenderer implementation ??

Thanks,
- Olivier

-Message d'origine-
De : Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 13 décembre 2005 16:17

À : Maven Users List
Objet : Re: [m2.0.1] trouble with mojo report with maven-reporting-impl
with version 2.0.1


doxia is now in org.apache.maven.doxia

Olivier Lamy a écrit :


Hi,
A reporting mojo worked with 2.0 now failed with 2.0.1 (by updating 
maven-reporting-impl with version 2.0.1). The following stack trace 
(not full)  : ause the requirement

ComponentRequirement{role='org.codehaus.doxia.site.renderer.SiteRend
rer', roleHint='null', fieldName='siteRenderer'} was missing

Mojo field :

   /**
* @component
* @required
* @readonly
*/

I have updated my pom to use maven-reporting-api and 
maven-reporting-impl with version 2.0.1. The second update generate 
the trouble. I need to revert it to 2.0. Do I miss something ?


- Olivier



This e-mail, any attachments and the information contained therein 
(this message) are confidential and intended solely for the use of


the addressee(s). If you have received this message in error please send
it back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.


**




Ce message electronique et tous les fichiers joints ainsi que  les


informations contenues dans ce message ( ci apres le message ), sont
confidentiels et destines exclusivement a l'usage de la  personne a
laquelle ils sont adresses. Si vous avez recu ce message par erreur,
merci  de le renvoyer a son emetteur et de le detruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressement autorisees de ce message, sont
interdites.


**








-
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: Cannot add Perforce project to Continuum 1.0.2

2005-12-13 Thread Mike Perham
Neil, I'm the Perforce SCM plugin author.  Perhaps I need to explain why
the Perforce SCM plugin is doing what it is doing.

Continuum needs to check out a project's source into a particular
working directory.  Perforce does not have any notion of checkout to a
random directory - you need to use a clientspec to map a depot location
onto a local filesystem location and then sync that clientspec in order
to checkout.  So when Continuum asks the plugin to checkout //depot/foo
to /tmp/working/bar, the plugin creates or updates a clientspec named
${user}-${host}-maven to have a Root of /tmp/working/bar with a View
mapping of //depot/foo/... to //${user}-${host}-maven/... and syncs
that.

The idea is that the user should not have to create any special build
clientspec - the plugin will handle all of that internally.

Obviously there is a bit of gum in the works.  I'm planning on
installing Continuum today and trying out a build of my own to see if I
have any better luck.  I'll let you know how I fare.

mike

-Original Message-
From: Neil Padgen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 4:52 AM
To: continuum-users@maven.apache.org
Subject: RE: Cannot add Perforce project to Continuum 1.0.2

 

 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sent: 12 December 2005 17:57
 To: continuum-users@maven.apache.org
 Subject: Re: Cannot add Perforce project to Continuum 1.0.2
 
 In add pages, you must use http, https or ftp (and file if it's 
 configured in application.xml) protocols. scm urls aren't valid urls.

Thanks Emmanuel.  However, I now seem to be getting the same error as
Robert - Provider message: Unable to sync.

Seems from the logs that it's forcing a Perforce client of
nrp-pc-nrp-maven (pc-nrp is my hostname).  I need to be able to
specify a p4 username and p4 client for Continuum to use.

Usually specifying P4USER and P4CLIENT in the environment is enough.
Can this be done with Continuum?

-- Neil




RE : RE : [m2.0.1] trouble with mojo report with maven-reporting-impl with version 2.0.1

2005-12-13 Thread Olivier Lamy
I can't remove it.
Because it's an abstract method in
org.apache.maven.reporting.AbstractMavenReport and I need to extend it
to made a mojo report.

- Olivier

-Message d'origine-
De : Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 13 décembre 2005 16:59
À : Maven Users List
Objet : Re: RE : [m2.0.1] trouble with mojo report with
maven-reporting-impl with version 2.0.1


Can you try to remove your getSiteRenderer method and change package of
SiteRenderer in your import?

Emmanuel

Olivier Lamy a écrit :
 Can you explain more ?
 Because my mojo report needs to extends 
 org.apache.maven.reporting.AbstractMavenReport
 This contains the abstract method : 
 org.codehaus.doxia.site.renderer.SiteRenderer getSiteRenderer()
 
 That's why my mojo field is :
 /**
  * @component
  * @required
  * @readonly
  */
 private SiteRenderer siteRenderer;
 
 I implements the simple method :
 
 /** 
  * @see
 org.apache.maven.reporting.AbstractMavenReport#getSiteRenderer()
  */
 protected SiteRenderer getSiteRenderer()
 {
 return siteRenderer;
 }
 
 I have certainly miss something in the mojo's field configuration or 
 in the getSiteRenderer implementation ??
 
 Thanks,
 - Olivier
 
 -Message d'origine-
 De : Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Envoyé : mardi 13 décembre 2005 16:17
 À : Maven Users List
 Objet : Re: [m2.0.1] trouble with mojo report with
maven-reporting-impl
 with version 2.0.1
 
 
 doxia is now in org.apache.maven.doxia
 
 Olivier Lamy a écrit :
 
Hi,
A reporting mojo worked with 2.0 now failed with 2.0.1 (by updating
maven-reporting-impl with version 2.0.1). The following stack trace 
(not full)  : ause the requirement
ComponentRequirement{role='org.codehaus.doxia.site.renderer.SiteRend
rer', roleHint='null', fieldName='siteRenderer'} was missing
 
Mojo field :

/**
 * @component
 * @required
 * @readonly
 */
 
I have updated my pom to use maven-reporting-api and
maven-reporting-impl with version 2.0.1. The second update generate 
the trouble. I need to revert it to 2.0. Do I miss something ?
 
- Olivier
 


This e-mail, any attachments and the information contained therein
(this message) are confidential and intended solely for the use of
 
 the addressee(s). If you have received this message in error please 
 send it back to the sender and delete it. Unauthorized publication, 
 use, dissemination or disclosure of this message, either in whole or 
 in part is strictly prohibited.
 
**
 
 
Ce message electronique et tous les fichiers joints ainsi que  les
 
 informations contenues dans ce message ( ci apres le message ), sont

 confidentiels et destines exclusivement a l'usage de la  personne a 
 laquelle ils sont adresses. Si vous avez recu ce message par erreur, 
 merci  de le renvoyer a son emetteur et de le detruire. Toutes 
 diffusion, publication, totale ou partielle ou divulgation sous 
 quelque forme que se soit non expressement autorisees de ce message, 
 sont interdites.
 
**
 
 

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



This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après le message ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
** 


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



RE: Cannot add Perforce project to Continuum 1.0.2

2005-12-13 Thread Neil Padgen
 

 -Original Message-
 From: Mike Perham [mailto:[EMAIL PROTECTED] 
 Sent: 13 December 2005 16:01
 To: continuum-users@maven.apache.org
 Subject: RE: Cannot add Perforce project to Continuum 1.0.2
 
 Neil, I'm the Perforce SCM plugin author.  Perhaps I need to 
 explain why the Perforce SCM plugin is doing what it is doing.
 
 Continuum needs to check out a project's source into a 
 particular working directory.  Perforce does not have any 
 notion of checkout to a random directory - you need to use a 
 clientspec to map a depot location onto a local filesystem 
 location and then sync that clientspec in order to checkout.  
 So when Continuum asks the plugin to checkout //depot/foo to 
 /tmp/working/bar, the plugin creates or updates a clientspec 
 named ${user}-${host}-maven to have a Root of 
 /tmp/working/bar with a View mapping of //depot/foo/... to 
 //${user}-${host}-maven/... and syncs that.
 
 The idea is that the user should not have to create any 
 special build clientspec - the plugin will handle all of that 
 internally.

Yep, got all that.  However, we have a naming policy for our Perforce
clientspecs here (project-branch-machine), so I'm trying to persuade
Continuum to use that.

I'm not sure how to persuade Continuum to use a specified username for
Perforce though.  Our Perforce license grants us one automated
(non-human) user, who is called background, so all automated processes
which use Perforce need to use that Perforce user.  It's unlikely that
Continuum will run as a user background, so this will need to be
specified.

 Obviously there is a bit of gum in the works.  I'm planning 
 on installing Continuum today and trying out a build of my 
 own to see if I have any better luck.  I'll let you know how I fare.

Looking forward to hearing it! :-)

-- Neil

http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system. 
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received. 
Further communication will signify your consent to this.


Exception running continuum on solaris

2005-12-13 Thread Mordo, Aviran (EXP N-NANNATEK)
I'm trying to build a project using continuum on Solaris and I'm getting
the following exception:

 org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
  at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellC
ommand(AbstractBuildExecutor.java:199)
   at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.buil
d(MavenTwoBuildExecutor.java:86)
  at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.exe
cute(ExecuteBuilderContinuumAction.java:127)
   at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
DefaultBuildController.java:171)
   at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.exec
uteTask(BuildProjectTaskExecutor.java:53)
  at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
   at java.lang.Thread.run(Thread.java:595)
 Caused by: java.lang.StringIndexOutOfBoundsException: String index out
of range: -1
   at java.lang.String.substring(String.java:1768)
   at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLi
neUtils.java:188)
   at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Commandlin
e.java:355)
   at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execute
ShellCommand(DefaultShellCommandHelper.java:71)
   at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execute
ShellCommand(DefaultShellCommandHelper.java:53)
   at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellC
ommand(AbstractBuildExecutor.java:190)
   ... 6 more


I have maven in the system's path, and continuum is running without any
problems on a Windows workstation, but under Solaris 10 it does not
build.

Continuum was able to pull the project from Starteam, but it will not
build it. (I can build it manually by calling maven directly)

Any thoughts?

Thanks

Aviran

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



Re: Exception running continuum on solaris

2005-12-13 Thread Emmanuel Venisse

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 2.0.1)
Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :

I'm trying to build a project using continuum on Solaris and I'm getting
the following exception:

 org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
  at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellC
ommand(AbstractBuildExecutor.java:199)
   at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.buil
d(MavenTwoBuildExecutor.java:86)
  at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.exe
cute(ExecuteBuilderContinuumAction.java:127)
   at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
DefaultBuildController.java:171)
   at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.exec
uteTask(BuildProjectTaskExecutor.java:53)
  at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
   at java.lang.Thread.run(Thread.java:595)
 Caused by: java.lang.StringIndexOutOfBoundsException: String index out
of range: -1
   at java.lang.String.substring(String.java:1768)
   at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLi
neUtils.java:188)
   at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Commandlin
e.java:355)
   at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execute
ShellCommand(DefaultShellCommandHelper.java:71)
   at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execute
ShellCommand(DefaultShellCommandHelper.java:53)
   at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellC
ommand(AbstractBuildExecutor.java:190)
   ... 6 more


I have maven in the system's path, and continuum is running without any
problems on a Windows workstation, but under Solaris 10 it does not
build.

Continuum was able to pull the project from Starteam, but it will not
build it. (I can build it manually by calling maven directly)

Any thoughts?

Thanks

Aviran

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



cygwin: maven-2.0.1-bin.tar.gz: tar: A lone zero block at 2665

2005-12-13 Thread Christopher Cobb
Am I the only one getting this error?  I've tried from several download
sites now:

$ tar ztf maven-2.0.1-bin.tar.gz
maven-2.0.1/conf/
maven-2.0.1/core/plexus-container-default-1.0-alpha-9.jar
maven-2.0.1/core/plexus-utils-1.0.5.jar
...
maven-2.0.1/bin/mvn
maven-2.0.1/conf/settings.xml
maven-2.0.1/lib/maven-core-2.0.1.jar
tar: A lone zero block at 2665




-
Attention:
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity. The information
contained in this message and or attachments is intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material.  If you received this in error, please
contact the sender and delete the material from any system and destroy
any copies.


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



RE: Exception running continuum on solaris

2005-12-13 Thread Mordo, Aviran (EXP N-NANNATEK)
Yes I do, I have the following line: -- (without the quotes) 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 11:42 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 
2.0.1) Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :
 I'm trying to build a project using continuum on Solaris and I'm 
 getting the following exception:
 
  org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
 Error while executing shell command. The most common error is that 'mvn'
 is not in your path.
   at
 org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShel
 lC
 ommand(AbstractBuildExecutor.java:199)
at
 org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.bu
 il
 d(MavenTwoBuildExecutor.java:86)
   at
 org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.e
 xe
 cute(ExecuteBuilderContinuumAction.java:127)
at
 org.apache.maven.continuum.buildcontroller.DefaultBuildController.buil
 d(
 DefaultBuildController.java:171)
at
 org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.ex
 ec
 uteTask(BuildProjectTaskExecutor.java:53)
   at
 org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Exec
 ut
 orRunnable.run(ThreadedTaskQueueExecutor.java:103)
at java.lang.Thread.run(Thread.java:595)
  Caused by: java.lang.StringIndexOutOfBoundsException: String index 
 out of range: -1
at java.lang.String.substring(String.java:1768)
at
 org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(Command
 Li
 neUtils.java:188)
at
 org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Commandl
 in
 e.java:355)
at
 org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execu
 te
 ShellCommand(DefaultShellCommandHelper.java:71)
at
 org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execu
 te
 ShellCommand(DefaultShellCommandHelper.java:53)
at
 org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShel
 lC
 ommand(AbstractBuildExecutor.java:190)
... 6 more
 
 
 I have maven in the system's path, and continuum is running without 
 any problems on a Windows workstation, but under Solaris 10 it does 
 not build.
 
 Continuum was able to pull the project from Starteam, but it will not 
 build it. (I can build it manually by calling maven directly)
 
 Any thoughts?
 
 Thanks
 
 Aviran
 
 -
 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: Exception running continuum on solaris

2005-12-13 Thread Emmanuel Venisse

hmm, strange line.
Do you know what is it? It isn't an environment variable

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :
Yes I do, I have the following line: -- (without the quotes) 


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 11:42 AM

To: Maven Users List
Subject: Re: Exception running continuum on solaris

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 
2.0.1) Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :

I'm trying to build a project using continuum on Solaris and I'm 
getting the following exception:


org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
 at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShel
lC
ommand(AbstractBuildExecutor.java:199)
  at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.bu
il
d(MavenTwoBuildExecutor.java:86)
 at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.e
xe
cute(ExecuteBuilderContinuumAction.java:127)
  at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.buil
d(
DefaultBuildController.java:171)
  at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.ex
ec
uteTask(BuildProjectTaskExecutor.java:53)
 at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Exec
ut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
  at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index 
out of range: -1

  at java.lang.String.substring(String.java:1768)
  at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(Command
Li
neUtils.java:188)
  at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Commandl
in
e.java:355)
  at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execu
te
ShellCommand(DefaultShellCommandHelper.java:71)
  at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execu
te
ShellCommand(DefaultShellCommandHelper.java:53)
  at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShel
lC
ommand(AbstractBuildExecutor.java:190)
  ... 6 more


I have maven in the system's path, and continuum is running without 
any problems on a Windows workstation, but under Solaris 10 it does 
not build.


Continuum was able to pull the project from Starteam, but it will not 
build it. (I can build it manually by calling maven directly)


Any thoughts?

Thanks

Aviran

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








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



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







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



Re: Exception running continuum on solaris

2005-12-13 Thread Emmanuel Venisse

Can you add a comment on http://jira.codehaus.org/browse/MNG-1819

Mordo, Aviran (EXP N-NANNATEK) a écrit :
Yes I do, I have the following line: -- (without the quotes) 


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 11:42 AM

To: Maven Users List
Subject: Re: Exception running continuum on solaris

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 
2.0.1) Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :

I'm trying to build a project using continuum on Solaris and I'm 
getting the following exception:


org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
 at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShel
lC
ommand(AbstractBuildExecutor.java:199)
  at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.bu
il
d(MavenTwoBuildExecutor.java:86)
 at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.e
xe
cute(ExecuteBuilderContinuumAction.java:127)
  at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.buil
d(
DefaultBuildController.java:171)
  at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.ex
ec
uteTask(BuildProjectTaskExecutor.java:53)
 at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Exec
ut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
  at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index 
out of range: -1

  at java.lang.String.substring(String.java:1768)
  at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(Command
Li
neUtils.java:188)
  at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Commandl
in
e.java:355)
  at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execu
te
ShellCommand(DefaultShellCommandHelper.java:71)
  at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execu
te
ShellCommand(DefaultShellCommandHelper.java:53)
  at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShel
lC
ommand(AbstractBuildExecutor.java:190)
  ... 6 more


I have maven in the system's path, and continuum is running without 
any problems on a Windows workstation, but under Solaris 10 it does 
not build.


Continuum was able to pull the project from Starteam, but it will not 
build it. (I can build it manually by calling maven directly)


Any thoughts?

Thanks

Aviran

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








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



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







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



RE: Exception running continuum on solaris

2005-12-13 Thread Mordo, Aviran (EXP N-NANNATEK)
It is part of the SP1 env variable. If I echo SP1 I get [EMAIL PROTECTED]:$PWD 
--  but if I type env I get the -- in a separate line

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 11:55 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

hmm, strange line.
Do you know what is it? It isn't an environment variable

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :
 Yes I do, I have the following line: -- (without the quotes)
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 13, 2005 11:42 AM
 To: Maven Users List
 Subject: Re: Exception running continuum on solaris
 
 the correct list is continuum-users@maven.apache.org ;-)
 
 It seems there is a bug in our command line util class (used too by maven 
 2.0.1) Do you have a line without '=' when you run env command?
 The problem is with a substring on env result.
 
 Emmanuel
 
 Mordo, Aviran (EXP N-NANNATEK) a écrit :
 
I'm trying to build a project using continuum on Solaris and I'm 
getting the following exception:

 org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
  at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShel
lC
ommand(AbstractBuildExecutor.java:199)
   at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.bu
il
d(MavenTwoBuildExecutor.java:86)
  at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.e
xe
cute(ExecuteBuilderContinuumAction.java:127)
   at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.buil
d(
DefaultBuildController.java:171)
   at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.ex
ec
uteTask(BuildProjectTaskExecutor.java:53)
  at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Exec
ut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
   at java.lang.Thread.run(Thread.java:595)
 Caused by: java.lang.StringIndexOutOfBoundsException: String index 
out of range: -1
   at java.lang.String.substring(String.java:1768)
   at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(Command
Li
neUtils.java:188)
   at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Commandl
in
e.java:355)
   at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execu
te
ShellCommand(DefaultShellCommandHelper.java:71)
   at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execu
te
ShellCommand(DefaultShellCommandHelper.java:53)
   at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShel
lC
ommand(AbstractBuildExecutor.java:190)
   ... 6 more


I have maven in the system's path, and continuum is running without 
any problems on a Windows workstation, but under Solaris 10 it does 
not build.

Continuum was able to pull the project from Starteam, but it will not 
build it. (I can build it manually by calling maven directly)

Any thoughts?

Thanks

Aviran

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




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


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



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



Re: Exception running continuum on solaris

2005-12-13 Thread Emmanuel Venisse

so -- is part of previous line with a return carriage?

Mordo, Aviran (EXP N-NANNATEK) a écrit :

It is part of the SP1 env variable. If I echo SP1 I get [EMAIL PROTECTED]:$PWD -- 
 but if I type env I get the -- in a separate line

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 11:55 AM

To: Maven Users List
Subject: Re: Exception running continuum on solaris

hmm, strange line.
Do you know what is it? It isn't an environment variable

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :


Yes I do, I have the following line: -- (without the quotes)

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:42 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 
2.0.1) Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :


I'm trying to build a project using continuum on Solaris and I'm 
getting the following exception:


org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShel
lC
ommand(AbstractBuildExecutor.java:199)
 at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.bu
il
d(MavenTwoBuildExecutor.java:86)
at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.e
xe
cute(ExecuteBuilderContinuumAction.java:127)
 at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.buil
d(
DefaultBuildController.java:171)
 at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.ex
ec
uteTask(BuildProjectTaskExecutor.java:53)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Exec
ut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index 
out of range: -1

 at java.lang.String.substring(String.java:1768)
 at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(Command
Li
neUtils.java:188)
 at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Commandl
in
e.java:355)
 at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execu
te
ShellCommand(DefaultShellCommandHelper.java:71)
 at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.execu
te
ShellCommand(DefaultShellCommandHelper.java:53)
 at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShel
lC
ommand(AbstractBuildExecutor.java:190)
 ... 6 more


I have maven in the system's path, and continuum is running without 
any problems on a Windows workstation, but under Solaris 10 it does 
not build.


Continuum was able to pull the project from Starteam, but it will not 
build it. (I can build it manually by calling maven directly)


Any thoughts?

Thanks

Aviran

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








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



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








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



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







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



RE: Exception running continuum on solaris

2005-12-13 Thread Mordo, Aviran (EXP N-NANNATEK)
Correct.

Anyway I changed this entry not to have a carriage return and I'm still getting 
the exception.

I don't know if this is related but I found that if I have an entry in the 
system's path with a folder name containing a space, continuum will fail to 
start. 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 12:08 PM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

so -- is part of previous line with a return carriage?

Mordo, Aviran (EXP N-NANNATEK) a écrit :
 It is part of the SP1 env variable. If I echo SP1 I get 
 [EMAIL PROTECTED]:$PWD --  but if I type env I get the -- in a separate 
 line
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 13, 2005 11:55 AM
 To: Maven Users List
 Subject: Re: Exception running continuum on solaris
 
 hmm, strange line.
 Do you know what is it? It isn't an environment variable
 
 Emmanuel
 
 Mordo, Aviran (EXP N-NANNATEK) a écrit :
 
Yes I do, I have the following line: -- (without the quotes)

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:42 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 
2.0.1) Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :


I'm trying to build a project using continuum on Solaris and I'm 
getting the following exception:

org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
 at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShe
l
lC
ommand(AbstractBuildExecutor.java:199)
  at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.b
u
il
d(MavenTwoBuildExecutor.java:86)
 at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.
e
xe
cute(ExecuteBuilderContinuumAction.java:127)
  at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.bui
l
d(
DefaultBuildController.java:171)
  at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.e
x
ec
uteTask(BuildProjectTaskExecutor.java:53)
 at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Exe
c
ut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
  at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index 
out of range: -1
  at java.lang.String.substring(String.java:1768)
  at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(Comman
d
Li
neUtils.java:188)
  at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Command
l
in
e.java:355)
  at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exec
u
te
ShellCommand(DefaultShellCommandHelper.java:71)
  at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exec
u
te
ShellCommand(DefaultShellCommandHelper.java:53)
  at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShe
l
lC
ommand(AbstractBuildExecutor.java:190)
  ... 6 more


I have maven in the system's path, and continuum is running without 
any problems on a Windows workstation, but under Solaris 10 it does 
not build.

Continuum was able to pull the project from Starteam, but it will not 
build it. (I can build it manually by calling maven directly)

Any thoughts?

Thanks

Aviran

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







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



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




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


-
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: Exception running continuum on solaris

2005-12-13 Thread Emmanuel Venisse

Can you put your env result in a file and attach it to the issue?

You have a space in a folder name under solaris!!! I thought it was only under 
windows.
So, you need to remove line wrapper.java.additional.5.stripquotes=TRUE in bin/solaris/wrapper.conf 
(if you use the wrapper)


Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :

Correct.

Anyway I changed this entry not to have a carriage return and I'm still getting 
the exception.

I don't know if this is related but I found that if I have an entry in the system's path with a folder name containing a space, continuum will fail to start. 


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 12:08 PM

To: Maven Users List
Subject: Re: Exception running continuum on solaris

so -- is part of previous line with a return carriage?

Mordo, Aviran (EXP N-NANNATEK) a écrit :

It is part of the SP1 env variable. If I echo SP1 I get 
[EMAIL PROTECTED]:$PWD --  but if I type env I get the -- in a separate 
line


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:55 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

hmm, strange line.
Do you know what is it? It isn't an environment variable

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :



Yes I do, I have the following line: -- (without the quotes)

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:42 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 
2.0.1) Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :



I'm trying to build a project using continuum on Solaris and I'm 
getting the following exception:


org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
   at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShe
l
lC
ommand(AbstractBuildExecutor.java:199)
at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.b
u
il
d(MavenTwoBuildExecutor.java:86)
   at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.
e
xe
cute(ExecuteBuilderContinuumAction.java:127)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.bui
l
d(
DefaultBuildController.java:171)
at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.e
x
ec
uteTask(BuildProjectTaskExecutor.java:53)
   at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Exe
c
ut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index 
out of range: -1

at java.lang.String.substring(String.java:1768)
at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(Comman
d
Li
neUtils.java:188)
at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Command
l
in
e.java:355)
at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exec
u
te
ShellCommand(DefaultShellCommandHelper.java:71)
at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exec
u
te
ShellCommand(DefaultShellCommandHelper.java:53)
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShe
l
lC
ommand(AbstractBuildExecutor.java:190)
... 6 more


I have maven in the system's path, and continuum is running without 
any problems on a Windows workstation, but under Solaris 10 it does 
not build.


Continuum was able to pull the project from Starteam, but it will not 
build it. (I can build it manually by calling maven directly)


Any thoughts?

Thanks

Aviran

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








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



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








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



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








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

2.0.1 exception after update

2005-12-13 Thread Yuriy Ivanov
Hello,

After updating from maven 2.0 to maven 2.0.1 I have this ...

 

 constituent[38]:
file:/C:/Programming/maven-2.0/lib/wagon-ssh-1.0-alpha-5.jar

---

Exception in thread main java.lang.NoSuchMethodError:
org.codehaus.plexus.util.cli.CommandLineUtils.getS

ystemEnvVars()Ljava/util/Properties;

at
org.codehaus.plexus.util.interpolation.EnvarBasedValueSource.init(EnvarBas
edValueSource.java:

16)

at
org.apache.maven.settings.DefaultMavenSettingsBuilder.readSettings(DefaultMa
venSettingsBuilder.

java:103)

at
org.apache.maven.settings.DefaultMavenSettingsBuilder.buildSettings(DefaultM
avenSettingsBuilder

.java:145)

at
org.apache.maven.settings.DefaultMavenSettingsBuilder.buildSettings(DefaultM
avenSettingsBuilder

.java:137)

at org.apache.maven.cli.MavenCli.buildSettings(MavenCli.java:292)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)

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)



[ANN] Maven Changes Plugin 1.6 for Maven 1 released

2005-12-13 Thread ltheussl
We are pleased to announce the Maven Changes Plugin 1.6 release! 

http://maven.apache.org/maven-1.x/reference/plugins/changes/


===

Changes in this version include:

  New Features:

o Validate changes.xml. Fixes MPCHANGES-25. 
o Add multiple due-to/due-to-email support. Fixes MPCHANGES-15. 
o Add multiple issue support. Fixes MPCHANGES-16. 
o Add a live bookmark link for the RSS for Firefox. 

  Fixed bugs:

o The encoding of changes.xml is not preserved after scm:prepare-release. 
  Fixes MPCHANGES-24. 
o Fix XTHML 1.0 compliance. 
o Document description attribute of release element. Fixes MPCHANGES-22. 
  Thanks to Mike Traum. 
o Added sorting of actionelements. It is controlled by 2 properties. 
  The maven.changes.sortproperty decides whether sorting is enabled or not 
  and the maven.changes.sort.orderone decides the sort order. Defaults to 
  add,fix,update,remove. Fixes MPCHANGES-14. 

  Changes:

o Update dependencies to match ones in maven 1.1 core and to unify them 
  between plugins. The following dependencies are updated : dom4j v1.4-dev-8 
  - v1.4 xml-apis v 1.0.b2 - xmlParserAPIs v2.6.2 Fixes MAVEN-1712.  

===


To automatically install the plugin, type the following on a single line:

maven plugin:download
  
-Dmaven.repo.remote=http://www.ibiblio.org/maven,http://cvs.apache.org/repository/
  -DgroupId=maven
  -DartifactId=maven-changes-plugin
  -Dversion=1.6

For a manual installation, you can download the plugin here:
http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-changes-plugin-1.6.jar
 

Have fun!
-The Maven Changes Plugin development team

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



[ANN] Maven Announcement Plugin 1.4 for Maven 1 released

2005-12-13 Thread ltheussl
We are pleased to announce the Maven Announcement Plugin 1.4 release! 

http://maven.apache.org/maven-1.x/reference/plugins/announcement/

The Announcement plugin generates release announcements. It uses the 
information found in both the POM and in the changes.xml file to generate the 
announcement text. 

===

Changes in this version include:

  New Features:

o Added property maven.announcement.lenient. Fixes MPANNOUNCEMENT-19. 
o Support new format of actionelement in changes.xml. Fixes 
  MPANNOUNCEMENT-18. 
o Modified the announcement text  The ${pom.groupId} team is pleased... in 
  favor of  We are pleased... and changed the signature from  The 
  ${pom.groupId} team to  The ${pom.name} development team. Fixes 
  MPANNOUNCEMENT-15. 
o Add information about the Maven remote repo to use in the generated 
  download instructions. Added a maven.announcement.repo.remoteproperty that 
  can be used to specify from which Maven remote repository the artifact for 
  this project can be found. Fixes MPANNOUNCEMENT-16. 

  Fixed bugs:

o CR-LF generated do not match the platform. Fixes MPANNOUNCEMENT-3. 
o Xml entities transformed in wrong direction. Fixes MPANNOUNCEMENT-10. 

  Changes:

o Update dependencies to match ones in maven 1.1 core and to unify them 
  between plugins. The following dependencies are updated : commons-net 
  v1.2.1 - v1.4.0 commons-jelly-tags-xml v1.0 - v1.1 Fixes 
  MAVEN-1712.  

===


To automatically install the plugin, type the following on a single line:

maven plugin:download
  
-Dmaven.repo.remote=http://www.ibiblio.org/maven,http://cvs.apache.org/repository/
  -DgroupId=maven
  -DartifactId=maven-announcement-plugin
  -Dversion=1.4

For a manual installation, you can download the plugin here:
http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-announcement-plugin-1.4.jar
 

Have fun!
-The Maven Announcement Plugin development team

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



RE: Exception running continuum on solaris

2005-12-13 Thread Mordo, Aviran (EXP N-NANNATEK)
Sorry in I wasn't clear, the space in the path was under Windows where it 
failed to start.

I attached the env file

Aviran

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 12:24 PM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

Can you put your env result in a file and attach it to the issue?

You have a space in a folder name under solaris!!! I thought it was only under 
windows.
So, you need to remove line wrapper.java.additional.5.stripquotes=TRUE in 
bin/solaris/wrapper.conf (if you use the wrapper)

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :
 Correct.
 
 Anyway I changed this entry not to have a carriage return and I'm still 
 getting the exception.
 
 I don't know if this is related but I found that if I have an entry in the 
 system's path with a folder name containing a space, continuum will fail to 
 start. 
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 13, 2005 12:08 PM
 To: Maven Users List
 Subject: Re: Exception running continuum on solaris
 
 so -- is part of previous line with a return carriage?
 
 Mordo, Aviran (EXP N-NANNATEK) a écrit :
 
It is part of the SP1 env variable. If I echo SP1 I get 
[EMAIL PROTECTED]:$PWD --  but if I type env I get the -- in a separate 
line

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:55 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

hmm, strange line.
Do you know what is it? It isn't an environment variable

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :


Yes I do, I have the following line: -- (without the quotes)

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:42 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 
2.0.1) Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :



I'm trying to build a project using continuum on Solaris and I'm 
getting the following exception:

org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeSh
e
l
lC
ommand(AbstractBuildExecutor.java:199)
 at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.
b
u
il
d(MavenTwoBuildExecutor.java:86)
at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.
e
xe
cute(ExecuteBuilderContinuumAction.java:127)
 at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.bu
i
l
d(
DefaultBuildController.java:171)
 at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.
e
x
ec
uteTask(BuildProjectTaskExecutor.java:53)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Ex
e
c
ut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index 
out of range: -1
 at java.lang.String.substring(String.java:1768)
 at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(Comma
n
d
Li
neUtils.java:188)
 at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Comman
d
l
in
e.java:355)
 at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exe
c
u
te
ShellCommand(DefaultShellCommandHelper.java:71)
 at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exe
c
u
te
ShellCommand(DefaultShellCommandHelper.java:53)
 at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeSh
e
l
lC
ommand(AbstractBuildExecutor.java:190)
 ... 6 more


I have maven in the system's path, and continuum is running without 
any problems on a Windows workstation, but under Solaris 10 it does 
not build.

Continuum was able to pull the project from Starteam, but it will 
not build it. (I can build it manually by calling maven directly)

Any thoughts?

Thanks

Aviran


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







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



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







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

[m2] TestNG and webapp testing

2005-12-13 Thread Srepfler Srgjan

Hi,
I've read this blog 
http://blog.hibernate.org/cgi-bin/blosxom.cgi/Christian%20Bauer/java/ejb3withtestng.html 
and I found it very interesting. Is there a plugin for TestNG for 
maven2? What about Cactus?
What is the approach to developing in-container tests? I read somewhere 
that Cargo has some support but I don't understand how is it done (any 
example projects?), and also what's the status of Cargo form m2 and 
what's the compatibility status on JBoss 4.0.3?

Thanks


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



[m2.0.1] antlib error - Duplicate project ID found in pom.

2005-12-13 Thread Tomislav Stojcevich
Getting the following error in 2.0.1 when I run artifact:dependencies
from a project that has a parent pom.  It use to work in 2.0.

[artifact:dependencies] An error has occurred while processing the
Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to build project: D:\Projects\abc\ejb\pom.xml
[artifact:dependencies] Duplicate project ID found in
D:\Projects\abc\ejb\pom.xml

Here is the build script:
artifact:localRepository id=maven.local.repository
location=@{localRepository}/
artifact:pom id=maven.project file=@{pom} /
artifact:dependencies pathId=maven.project.dependency.classpath
   verbose=@{verbose}
   useScope=compile
pom refid=maven.project /
localRepository refid=maven.local.repository/
/artifact:dependencies

Any ideas?

--
tom

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



[m2] Passing command-line argument to custom plugin

2005-12-13 Thread Kris Nuttycombe
Hi, all,

I'm currently in the process of developing my first Maven 2.0 plugin.
I've been able to figure out everything except how to add custom
command-line arguments. Can anyone point out some documentation of how
to do this?

For example, I want to do the following:

mvn -Dmyarg1=val1 -Dmyarg2=val2 myplugin:mygoal

Thanks,

Kris

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

[m2] New libraries coming out

2005-12-13 Thread Srepfler Srgjan

Hi,
I just wanted to let people know some libs have been released but since 
I don't have the time to make the pom's for them I'm hoping someone else 
would like to volunteer.
First of all hibernate 3.1 got final, then there is a 3.1 beta2 of their 
tools package that I for instance use to get the ant tasks and some 
library support, this package is very useful (specially if you'd like to 
use ant and xdoclet stuff with external plugins)  and none the less 
latest version in ibiblio is 3.0.0 alpha. I do however have some 
remarks, perhaps an alternative artifact might be better suited as this 
is a whole plugin package for eclipse, leaving space to extract only 
basic libraries.
Then there is acegisecurity 1.0.0RC and I the most difficult pom to be 
made would be experimental pom's for spring 2 (not out yet, but the 
sooner we start preparing for it the better).

Srgjan

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



[m2.0.1] error after update from 2.0

2005-12-13 Thread Yuriy Ivanov
Please help!

 

After updating from maven 2.0 to maven 2.0.1 I have this ...

 

 constituent[38]:

 file:///C:\Programming\maven-2.0\lib\wagon-ssh-1.0-alpha-5.jar
file:/C:/Programming/maven-2.0/lib/wagon-ssh-1.0-alpha-5.jar

 

---

 

Exception in thread main java.lang.NoSuchMethodError:

org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars()Ljava/util/P
roperties;

at
org.codehaus.plexus.util.interpolation.EnvarBasedValueSource.init(EnvarBas

edValueSource.java:16)

at
org.apache.maven.settings.DefaultMavenSettingsBuilder.readSettings(DefaultMa

venSettingsBuilder.java:103)

at
org.apache.maven.settings.DefaultMavenSettingsBuilder.buildSettings(
DefaultMavenSettingsBuilder.java:145)

at
org.apache.maven.settings.DefaultMavenSettingsBuilder.buildSettings(
DefaultMavenSettingsBuilder.java:137)

at org.apache.maven.cli.MavenCli.buildSettings(MavenCli.java:292)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)

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)

 

 

Yuri



Re: [m2] New libraries coming out

2005-12-13 Thread Tomislav Stojcevich
There are poms you can copy under org.hibernate for a start.

The versions there are a bit more up to date than under hibernate and
those poms seem to have information rather than being the default as
are the ones in hibernate.

I needed the newest version of the hibernate-tools and just used the
latest version pom I found under org.hibernate and modified the
version number.  Never got around to submitting an upload request.


On 12/13/05, Srepfler Srgjan [EMAIL PROTECTED] wrote:
 Hi,
 I just wanted to let people know some libs have been released but since
 I don't have the time to make the pom's for them I'm hoping someone else
 would like to volunteer.
 First of all hibernate 3.1 got final, then there is a 3.1 beta2 of their
 tools package that I for instance use to get the ant tasks and some
 library support, this package is very useful (specially if you'd like to
 use ant and xdoclet stuff with external plugins)  and none the less
 latest version in ibiblio is 3.0.0 alpha. I do however have some
 remarks, perhaps an alternative artifact might be better suited as this
 is a whole plugin package for eclipse, leaving space to extract only
 basic libraries.
 Then there is acegisecurity 1.0.0RC and I the most difficult pom to be
 made would be experimental pom's for spring 2 (not out yet, but the
 sooner we start preparing for it the better).
 Srgjan

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




--
tom

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



RE: [m2] TestNG and webapp testing

2005-12-13 Thread Vincent Massol
Hi,

 -Original Message-
 From: Srepfler Srgjan [mailto:[EMAIL PROTECTED]
 Sent: mardi 13 décembre 2005 19:25
 To: Maven Users List
 Subject: [m2] TestNG and webapp testing
 
 Hi,
 I've read this blog
 http://blog.hibernate.org/cgi-
 bin/blosxom.cgi/Christian%20Bauer/java/ejb3withtestng.html
 and I found it very interesting. Is there a plugin for TestNG for
 maven2? What about Cactus?
 What is the approach to developing in-container tests? I read somewhere
 that Cargo has some support but I don't understand how is it done (any
 example projects?), and also what's the status of Cargo form m2 and
 what's the compatibility status on JBoss 4.0.3?

Lots of questions! :-)

I can answer for Cargo:

* Cargo is for starting/stopping containers, configuring them and deploying
to them. See http://cargo.codehaus.org

* There's a m2 plugin for Cargo. Read
http://cargo.codehaus.org/Maven2+plugin. There are examples listed and
there's a link to several examples located in the Cargo's SVN. 

* The m2 plugin has not been released yet but the link above explains how to
use it.

* Cargo should support JBoss 4.x. The should is because JBoss support is
new in Cargo 0.7 and has not fully tested yet. It would be good to know if
it's working for you so that we can correct before we do the 0.7 release.

* All feedback/questions about cargo should go to the cargo mailing lists.
We are also frequently on irc. Check http://cargo.codehaus.org for details.

Thanks
-Vincent


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



Re: [m2] New libraries coming out

2005-12-13 Thread Tomislav Stojcevich
I take back part of that.  org.hibernate.hibernate.3.1rc2 has a pom
you can you for a start.

org.hibernate.hibernate-tools only had alpha5 with no pom.  I made up
the following based on what was in the lib directory of the download
for the 3.1beta1.  It depends on a snapshot of jtidy-r8 which is not
yet released, now I know why I didn't request an upload.  Here's my
pom you can use for a start.

project
  modelVersion4.0.0/modelVersion
  groupIdorg.hibernate/groupId
  artifactIdhibernate-tools/artifactId
  version3.1.0.beta1/version
  dependencies
dependency
  groupIdehcache/groupId
  artifactIdehcache/artifactId
  version1.1/version
/dependency
dependency
  groupIdvelocity/groupId
  artifactIdvelocity/artifactId
  version1.4/version
/dependency
dependency
  groupIdvelocity-tools/groupId
  artifactIdvelocity-tools-generic/artifactId
  version1.1/version
/dependency
dependency
  groupIdjtidy/groupId
  artifactIdjtidy/artifactId
  versionr8-SNAPSHOT/version
/dependency
  /dependencies
/project

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



Re: [m2] Passing command-line argument to custom plugin

2005-12-13 Thread dan tran
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

after that, you can use -Dkey=value to override any configurations
(parameters) of hte plugin

-Dan


On 12/13/05, Kris Nuttycombe [EMAIL PROTECTED] wrote:

 Hi, all,

 I'm currently in the process of developing my first Maven 2.0 plugin.
 I've been able to figure out everything except how to add custom
 command-line arguments. Can anyone point out some documentation of how
 to do this?

 For example, I want to do the following:

 mvn -Dmyarg1=val1 -Dmyarg2=val2 myplugin:mygoal

 Thanks,

 Kris



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




Re: [m2] New libraries coming out

2005-12-13 Thread Srepfler Srgjan

Hvala (thanks),
If anyone is following this and want's to add his 2 cents please do.

Tomislav Stojcevich wrote:


I take back part of that.  org.hibernate.hibernate.3.1rc2 has a pom
you can you for a start.

org.hibernate.hibernate-tools only had alpha5 with no pom.  I made up
the following based on what was in the lib directory of the download
for the 3.1beta1.  It depends on a snapshot of jtidy-r8 which is not
yet released, now I know why I didn't request an upload.  Here's my
pom you can use for a start.

project
 modelVersion4.0.0/modelVersion
 groupIdorg.hibernate/groupId
 artifactIdhibernate-tools/artifactId
 version3.1.0.beta1/version
 dependencies
   dependency
 groupIdehcache/groupId
 artifactId
 



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



RE: Exception running continuum on solaris

2005-12-13 Thread Mayorgaadame, Alex
Can you try:

PATH=$PATH:/usr/sbin:/usr/builduser/maven-2.0/bin:/usr/bin

Instead of:

PATH=.:/usr/sbin:/usr/builduser/maven-2.0/bin:/usr/bin

And see if it does any good. I'm moving the discussion over to the Continuum 
List.

Regards,
Alex
-Original Message-
From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 1:21 PM
To: Maven Users List
Subject: RE: Exception running continuum on solaris


Sorry in I wasn't clear, the space in the path was under Windows where it 
failed to start.

I attached the env file

Aviran

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 12:24 PM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

Can you put your env result in a file and attach it to the issue?

You have a space in a folder name under solaris!!! I thought it was only under 
windows.
So, you need to remove line wrapper.java.additional.5.stripquotes=TRUE in 
bin/solaris/wrapper.conf (if you use the wrapper)

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :
 Correct.
 
 Anyway I changed this entry not to have a carriage return and I'm still 
 getting the exception.
 
 I don't know if this is related but I found that if I have an entry in the 
 system's path with a folder name containing a space, continuum will fail to 
 start. 
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 13, 2005 12:08 PM
 To: Maven Users List
 Subject: Re: Exception running continuum on solaris
 
 so -- is part of previous line with a return carriage?
 
 Mordo, Aviran (EXP N-NANNATEK) a écrit :
 
It is part of the SP1 env variable. If I echo SP1 I get 
[EMAIL PROTECTED]:$PWD --  but if I type env I get the -- in a separate 
line

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:55 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

hmm, strange line.
Do you know what is it? It isn't an environment variable

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :


Yes I do, I have the following line: -- (without the quotes)

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:42 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 
2.0.1) Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :



I'm trying to build a project using continuum on Solaris and I'm 
getting the following exception:

org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeSh
e
l
lC
ommand(AbstractBuildExecutor.java:199)
 at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.
b
u
il
d(MavenTwoBuildExecutor.java:86)
at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.
e
xe
cute(ExecuteBuilderContinuumAction.java:127)
 at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.bu
i
l
d(
DefaultBuildController.java:171)
 at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.
e
x
ec
uteTask(BuildProjectTaskExecutor.java:53)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Ex
e
c
ut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index 
out of range: -1
 at java.lang.String.substring(String.java:1768)
 at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(Comma
n
d
Li
neUtils.java:188)
 at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Comman
d
l
in
e.java:355)
 at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exe
c
u
te
ShellCommand(DefaultShellCommandHelper.java:71)
 at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exe
c
u
te
ShellCommand(DefaultShellCommandHelper.java:53)
 at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeSh
e
l
lC
ommand(AbstractBuildExecutor.java:190)
 ... 6 more


I have maven in the system's path, and continuum is running without 
any problems on a Windows workstation, but under Solaris 10 it does 
not build.

Continuum was able to pull the project from Starteam, but it will 
not build it. (I can build it manually by calling maven directly)

Any thoughts?

Thanks

Aviran


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








Re: [m2] New libraries coming out

2005-12-13 Thread Srepfler Srgjan
I personally think that we should lobby for grater use of maven2. I mean 
with all respect to maven you team just can't and shouldn't handle this 
enormous repository. I mean the hibernate guys should build their libs 
with m2 pom and also house the libs themselves. I mean we can't really 
bother your people for every little thing like hibernate annotation 
3.1beta*7* or something else I mean come on, you have lives too :)

Same thing goes for spring libraries, or any other project.

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



Re: JavaPolis

2005-12-13 Thread Martin van den Bemt

Without the hat I already look funny enough I think :)
You probably met me already without knowing it though. If someone asked you to 
vote for Milos or offered you a chair to have a one on one presentation from 
Milos : that was me.. ;)

I want thank everyone that voted for his plugin to be presented and thanx for 
Milos for creating a top quality netbeans plugin for maven!

So if you are a Netbeans user : go download the plugin from 
http://mevenide.codehaus.org/mevenide-netbeans-project/index.html!

Mvgr,
Martin

ir. ing. Jan Dockx wrote:
So, I was at JavaPolis today (and I didn't have the heart to stay until 
21:30 for the MyFaces BOF, since there was nothing to do after the end 
of the Sun Java One Studio talk and a chat with the mevenide developer 
in the plugin bazar). I saw nobody with Maven written over his/her 
face, so maybe we make a more formal arrangement? Who will be there 
tomorrow? Maybe we can agree for maven people to wear a funny hat 
tomorrow, or something?





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



RE: JavaPolis

2005-12-13 Thread Frank Russo
Will this work for maven 2?

Frank Russo
Senior Developer
FX Alliance, LLC


 -Original Message-
 From: Martin van den Bemt [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, December 13, 2005 3:26 PM
 To: Maven Users List
 Subject: Re: JavaPolis
 
 
 Without the hat I already look funny enough I think :)
 You probably met me already without knowing it though. If 
 someone asked you to vote for Milos or offered you a chair to 
 have a one on one presentation from Milos : that was me.. ;)
 
 I want thank everyone that voted for his plugin to be 
 presented and thanx for Milos for creating a top quality 
 netbeans plugin for maven!
 
 So if you are a Netbeans user : go download the plugin from 
 http://mevenide.codehaus.org/mevenide-netbeans-project/index.h
tml!

Mvgr,
Martin

ir. ing. Jan Dockx wrote:
 So, I was at JavaPolis today (and I didn't have the heart to stay 
 until
 21:30 for the MyFaces BOF, since there was nothing to do after the end

 of the Sun Java One Studio talk and a chat with the mevenide developer

 in the plugin bazar). I saw nobody with Maven written over his/her 
 face, so maybe we make a more formal arrangement? Who will be there 
 tomorrow? Maybe we can agree for maven people to wear a funny hat 
 tomorrow, or something?
 
 

-
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: JavaPolis

2005-12-13 Thread Martin van den Bemt

Nope it is maven1.. Although Milos started on the maven2 plugin.

Mvgr,
Martin

Frank Russo wrote:

Will this work for maven 2?

Frank Russo
Senior Developer
FX Alliance, LLC



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



Re: [m2] Passing command-line argument to custom plugin

2005-12-13 Thread Kris Nuttycombe
dan tran wrote:

http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

after that, you can use -Dkey=value to override any configurations
(parameters) of hte plugin

-Dan

  

I'm having a hard time getting this to work. Here's a snippet of my
plugin source:

/**
 * This plugin is used to create and run an SDIF pipeline.
 *
 * @goal sdif
 * @description This plugin is used to create and run an SDIF pipeline.
 * @requiresProject false
 */
public class SdifPlugin extends AbstractMojo {
/**
 * The XML configuration file for the pipeline to run.
 * @parameter
 */
protected File pipeConfig;

/**
 * The XML configuration file for the log4j logging system.
 * @parameter
 */
protected File logConfig;

/**
 * A list of objects to enqueue onto the first stage of the pipeline.
 * @parameter
 */
protected ListObject queueElements;

public void execute() throws MojoExecutionException {
if (pipeConfig == null || !pipeConfig.exists()) {
throw new MojoExecutionException(this, You must specify the
location of the pipeline configuration file., null);
}
...
}
}

I install the plugin as usual...

mvn -e -DpipeConfig=acars_conf.xml -DlogConfig=log4j_acars.xml
eds:m2-sdif-plugin:0.1-SNAPSHOT:sdif

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] : [EMAIL PROTECTED]
You must specify the location of the pipeline configuration file.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: You must specify
the location of the pipeline configuration file.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:216)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
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:249)
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: You must
specify the location of the pipeline configuration file.
at gov.noaa.eds.sdif.m2.SdifPlugin.execute(SdifPlugin.java:57)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)


The plugin is clearly getting run, but the file (which is in the
directory that I'm running the plugin from) is not being found.

Thanks for your help,

Kris

On 12/13/05, Kris Nuttycombe [EMAIL PROTECTED] wrote:
  

Hi, all,

I'm currently in the process of developing my first Maven 2.0 plugin.
I've been able to figure out everything except how to add custom
command-line arguments. Can anyone point out some documentation of how
to do this?

For example, I want to do the following:

mvn -Dmyarg1=val1 -Dmyarg2=val2 myplugin:mygoal

Thanks,

Kris



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

Defining Resources

2005-12-13 Thread Frank Russo
I have the following configuration for resources: 

src/main/resources(Contains files for building any war)
src/main/resources/dev(Contains files for building only the
development war)
src/main/resources/qa (Contains files for building only the
qa war)
src/main/resources/prod   (Contains files for building only the
production war)

In my pom, I have the following set up for resources:

resources
resource
directorysrc/main/resources/${environment}/directory
filteringtrue/filtering
/resource
resources

${environment} is defined in a profile in pom as well. This allows me to
only pull the files from the folder for which I'm building, i.e. if I'm
building for dev, only the files from the dev folder will be included in
my war, etc.
 
I also need to be able to build the war with the files in
src/main/resources. There are files here that are general files that are
not environment specific. 
 
I tried added the following two solutions:

1.  resource
directorysrc/main/resources/directory
filteringtrue/filtering
/resource
2.  resource
directorysrc/main/resources/*.*/directory
filteringtrue/filtering
/resource

Neither of these seem to work. Only the environment specific files are
being including in the war. 
 
Does anyone know how to accomplish this? 
 
Thanks...
Frank Russo
Senior Developer
FX Alliance, LLC



Re: [m2] Passing command-line argument to custom plugin

2005-12-13 Thread dan tran
add expression=${} see my changes below

-D


On 12/13/05, Kris Nuttycombe [EMAIL PROTECTED] wrote:

 dan tran wrote:

 http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
 
 after that, you can use -Dkey=value to override any configurations
 (parameters) of hte plugin
 
 -Dan
 
 
 
 I'm having a hard time getting this to work. Here's a snippet of my
 plugin source:

 /**
 * This plugin is used to create and run an SDIF pipeline.
 *
 * @goal sdif
 * @description This plugin is used to create and run an SDIF pipeline.
 * @requiresProject false
 */
 public class SdifPlugin extends AbstractMojo {
/**
 * The XML configuration file for the pipeline to run.
 * @parameter expression=${pipeConfig}
 */
protected File pipeConfig;

/**
 * The XML configuration file for the log4j logging system.
 * @parameter expression=${logConfig}

 */
protected File logConfig;

/**
 * A list of objects to enqueue onto the first stage of the pipeline.
 * @parameter
 */
protected ListObject queueElements;

public void execute() throws MojoExecutionException {
if (pipeConfig == null || !pipeConfig.exists()) {
throw new MojoExecutionException(this, You must specify the
 location of the pipeline configuration file., null);
}
...
}
 }

 I install the plugin as usual...

 mvn -e -DpipeConfig=acars_conf.xml -DlogConfig=log4j_acars.xml
 eds:m2-sdif-plugin:0.1-SNAPSHOT:sdif

 [INFO]

 
 [ERROR] BUILD ERROR
 [INFO]

 
 [INFO] : [EMAIL PROTECTED]
 You must specify the location of the pipeline configuration file.
 [INFO]

 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: You must specify
 the location of the pipeline configuration file.
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:555)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
 DefaultLifecycleExecutor.java:485)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
 DefaultLifecycleExecutor.java:455)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
 (DefaultLifecycleExecutor.java:303)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
 DefaultLifecycleExecutor.java:216)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
 DefaultLifecycleExecutor.java:139)
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:249)
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: You must
 specify the location of the pipeline configuration file.
at gov.noaa.eds.sdif.m2.SdifPlugin.execute(SdifPlugin.java:57)
at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(
 DefaultPluginManager.java:432)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:530)


 The plugin is clearly getting run, but the file (which is in the
 directory that I'm running the plugin from) is not being found.

 Thanks for your help,

 Kris

 On 12/13/05, Kris Nuttycombe [EMAIL PROTECTED] wrote:
 
 
 Hi, all,
 
 I'm currently in the process of developing my first Maven 2.0 plugin.
 I've been able to figure out everything except how to add custom
 command-line arguments. Can anyone point out some documentation of how
 to do this?
 
 For example, I want to do the following:
 
 mvn -Dmyarg1=val1 -Dmyarg2=val2 myplugin:mygoal
 
 Thanks,
 
 Kris
 
 
 
 -
 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: Exception running continuum on solaris

2005-12-13 Thread Mordo, Aviran (EXP N-NANNATEK)
I got the same exception. I also tried to remove the . From the path and it 
still does not work

-Original Message-
From: Mayorgaadame, Alex [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 3:13 PM
To: Maven Users List
Cc: continuum-users@maven.apache.org
Subject: RE: Exception running continuum on solaris

Can you try:

PATH=$PATH:/usr/sbin:/usr/builduser/maven-2.0/bin:/usr/bin

Instead of:

PATH=.:/usr/sbin:/usr/builduser/maven-2.0/bin:/usr/bin

And see if it does any good. I'm moving the discussion over to the Continuum 
List.

Regards,
Alex
-Original Message-
From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 1:21 PM
To: Maven Users List
Subject: RE: Exception running continuum on solaris


Sorry in I wasn't clear, the space in the path was under Windows where it 
failed to start.

I attached the env file

Aviran

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 12:24 PM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

Can you put your env result in a file and attach it to the issue?

You have a space in a folder name under solaris!!! I thought it was only under 
windows.
So, you need to remove line wrapper.java.additional.5.stripquotes=TRUE in 
bin/solaris/wrapper.conf (if you use the wrapper)

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :
 Correct.
 
 Anyway I changed this entry not to have a carriage return and I'm still 
 getting the exception.
 
 I don't know if this is related but I found that if I have an entry in the 
 system's path with a folder name containing a space, continuum will fail to 
 start. 
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 13, 2005 12:08 PM
 To: Maven Users List
 Subject: Re: Exception running continuum on solaris
 
 so -- is part of previous line with a return carriage?
 
 Mordo, Aviran (EXP N-NANNATEK) a écrit :
 
It is part of the SP1 env variable. If I echo SP1 I get 
[EMAIL PROTECTED]:$PWD --  but if I type env I get the -- in a separate 
line

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:55 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

hmm, strange line.
Do you know what is it? It isn't an environment variable

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :


Yes I do, I have the following line: -- (without the quotes)

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:42 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 
2.0.1) Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :



I'm trying to build a project using continuum on Solaris and I'm 
getting the following exception:

org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeSh
e
l
lC
ommand(AbstractBuildExecutor.java:199)
 at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.
b
u
il
d(MavenTwoBuildExecutor.java:86)
at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.
e
xe
cute(ExecuteBuilderContinuumAction.java:127)
 at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.bu
i
l
d(
DefaultBuildController.java:171)
 at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.
e
x
ec
uteTask(BuildProjectTaskExecutor.java:53)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Ex
e
c
ut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index 
out of range: -1
 at java.lang.String.substring(String.java:1768)
 at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(Comma
n
d
Li
neUtils.java:188)
 at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Comman
d
l
in
e.java:355)
 at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exe
c
u
te
ShellCommand(DefaultShellCommandHelper.java:71)
 at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exe
c
u
te
ShellCommand(DefaultShellCommandHelper.java:53)
 at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeSh
e
l
lC
ommand(AbstractBuildExecutor.java:190)
 ... 6 more


I have maven in the system's path, and continuum is running without 
any problems on a Windows workstation, but under Solaris 10 it does 
not build.

Continuum was able to pull the 

RE: Exception running continuum on solaris

2005-12-13 Thread Mordo, Aviran (EXP N-NANNATEK)
 

I got the same exception. I also tried to remove the . From the path and it 
still does not work

-Original Message-
From: Mayorgaadame, Alex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 3:13 PM
To: Maven Users List
Cc: continuum-users@maven.apache.org
Subject: RE: Exception running continuum on solaris

Can you try:

PATH=$PATH:/usr/sbin:/usr/builduser/maven-2.0/bin:/usr/bin

Instead of:

PATH=.:/usr/sbin:/usr/builduser/maven-2.0/bin:/usr/bin

And see if it does any good. I'm moving the discussion over to the Continuum 
List.

Regards,
Alex
-Original Message-
From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 1:21 PM
To: Maven Users List
Subject: RE: Exception running continuum on solaris


Sorry in I wasn't clear, the space in the path was under Windows where it 
failed to start.

I attached the env file

Aviran

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 12:24 PM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

Can you put your env result in a file and attach it to the issue?

You have a space in a folder name under solaris!!! I thought it was only under 
windows.
So, you need to remove line wrapper.java.additional.5.stripquotes=TRUE in 
bin/solaris/wrapper.conf (if you use the wrapper)

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :
 Correct.
 
 Anyway I changed this entry not to have a carriage return and I'm still 
 getting the exception.
 
 I don't know if this is related but I found that if I have an entry in the 
 system's path with a folder name containing a space, continuum will fail to 
 start. 
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 13, 2005 12:08 PM
 To: Maven Users List
 Subject: Re: Exception running continuum on solaris
 
 so -- is part of previous line with a return carriage?
 
 Mordo, Aviran (EXP N-NANNATEK) a écrit :
 
It is part of the SP1 env variable. If I echo SP1 I get 
[EMAIL PROTECTED]:$PWD --  but if I type env I get the -- in a separate 
line

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:55 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

hmm, strange line.
Do you know what is it? It isn't an environment variable

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :


Yes I do, I have the following line: -- (without the quotes)

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 11:42 AM
To: Maven Users List
Subject: Re: Exception running continuum on solaris

the correct list is continuum-users@maven.apache.org ;-)

It seems there is a bug in our command line util class (used too by maven 
2.0.1) Do you have a line without '=' when you run env command?
The problem is with a substring on env result.

Emmanuel

Mordo, Aviran (EXP N-NANNATEK) a écrit :



I'm trying to build a project using continuum on Solaris and I'm 
getting the following exception:

org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while executing shell command. The most common error is that 'mvn'
is not in your path.
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeSh
e
l
lC
ommand(AbstractBuildExecutor.java:199)
 at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.
b
u
il
d(MavenTwoBuildExecutor.java:86)
at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.
e
xe
cute(ExecuteBuilderContinuumAction.java:127)
 at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.bu
i
l
d(
DefaultBuildController.java:171)
 at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.
e
x
ec
uteTask(BuildProjectTaskExecutor.java:53)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Ex
e
c
ut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index 
out of range: -1
 at java.lang.String.substring(String.java:1768)
 at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(Comma
n
d
Li
neUtils.java:188)
 at
org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Comman
d
l
in
e.java:355)
 at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exe
c
u
te
ShellCommand(DefaultShellCommandHelper.java:71)
 at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.exe
c
u
te
ShellCommand(DefaultShellCommandHelper.java:53)
 at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeSh
e
l
lC
ommand(AbstractBuildExecutor.java:190)
 ... 6 more


I have maven in the system's path, and continuum is running without 
any problems on a Windows workstation, but under Solaris 10 it does 
not build.

Continuum was able to pull the 

Re: [m2] Passing command-line argument to custom plugin

2005-12-13 Thread Kris Nuttycombe
Excellent, that was exactly the problem. I'm not sure how I overlooked
that attribute, but thanks very much!

Kris

dan tran wrote:

add expression=${} see my changes below

-D

  




  


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

Re: Can the xDoc plug-in pass the #169; entity into the XHTML without conversion?

2005-12-13 Thread Lance Bader
Thanks Lukas.

Here is my solution.  It's not pretty but it does the job.

script type=text/javascriptdocument.write('\xA9')/script

Just place this where you want the copyright symbol to appear.  I'm already
using a customized copy of site.jsl, so I just replaced each of the 4
occurrences of the #169; entity with a copy of the above Javascript
segment.  I can publish with WebDAV and the symbol appears correctly.

- Lance

On 12/9/05, Lukas Theussl [EMAIL PROTECTED] wrote:

 Hi Lance,

 I tried a few things but I couldn't get it work like you want, so I'm
 afraid the preliminary answer to your question is no. Unfortunately,
 jelly is not very consistent with the treatment of entities, we've had
 several related problems in the past.

 -Lukas


 Lance Bader wrote:
  By default, the jelly style language file, site.jsl, used by the xDoc
  plug-in to convert the xDoc XML source into XHTML, supplies a footer
 that
  includes a copyright symbol.  The site.jsl file specifies the symbol
 using
  the #169; entity notation, but the XHTML file generated contains the
 real
  copyright character.
 
  If you deploy your web site using WebDAV protocols, this character is
  mangled into a question mark.
 
  Is there a way to modify the site.jsl file so that the #169; entity
  notation appears in the XHTML output instead of the copyright symbol?
 

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




[M2] Error building Maven plugins from source

2005-12-13 Thread Richard Allen
I had a problem building Maven 2 from the latest source because of some 
dependency references to 2.0.1-SNAPSHOT versions.


To make the build work, I had to change these dependency version 
references to 2.1-SNAPSHOT. The POMs I had to change were:


maven-plugin-plugin
maven-ear-plugin
maven-ejb-plugin
maven-jar-plugin
maven-rar-plugin
maven-war-plugin

Maybe this will help anyone having the same problem.

Richard Allen

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



Re: cygwin: maven-2.0.1-bin.tar.gz: tar: A lone zero block at 2665

2005-12-13 Thread Brett Porter
I get it too. It's a minor issue - doesn't affect the distro.

- Brett

On 12/13/05, Christopher Cobb [EMAIL PROTECTED] wrote:
 Am I the only one getting this error?  I've tried from several download
 sites now:

 $ tar ztf maven-2.0.1-bin.tar.gz
 maven-2.0.1/conf/
 maven-2.0.1/core/plexus-container-default-1.0-alpha-9.jar
 maven-2.0.1/core/plexus-utils-1.0.5.jar
 ...
 maven-2.0.1/bin/mvn
 maven-2.0.1/conf/settings.xml
 maven-2.0.1/lib/maven-core-2.0.1.jar
 tar: A lone zero block at 2665




 -
 Attention:
 Any views expressed in this message are those of the individual sender,
 except where the message states otherwise and the sender is authorized
 to state them to be the views of any such entity. The information
 contained in this message and or attachments is intended only for the
 person or entity to which it is addressed and may contain confidential
 and/or privileged material.  If you received this in error, please
 contact the sender and delete the material from any system and destroy
 any copies.


 -
 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: [M2] multi-module executing plugin after all children are executed

2005-12-13 Thread Brett Porter
Hi Ruel,

I know we discussed this briefly on IRC. Did you find an appropriate
solution for your use case? (just trying to record it for the
archves).

- Brett

On 12/7/05, Ruel Loehr [EMAIL PROTECTED] wrote:
 Guys,

 I have a multi-module build.   I would like to be able to execute a
 plugin AFTER all of the children have been executed.

 In my root module, I declare a dependency on each artifact produced by
 the child modules.  The first time I build (mvn install), things are
 great.  All children are executed and finally, the root module is
 executed.

 The second time I build, the root module sees all of its dependencies as
 satisfied.  The root module is then executed, followed by each of its
 children.

 The question is where would I define a plugin that I want to execute
 after all the children are built?  I can't do it in the root, because of
 reasons stated above.

 Am I missing something simple?

 Ruel Loehr
 JBoss QA

 -
 512-347-7840 ext 2011
 Yahoo: ruelloehr
 Skype: ruelloehr
 AOL: dokoruel


 -
 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: [m2] site and site:deploy running tests twice.

2005-12-13 Thread Nik Gonzalez

Ben,

I can't replicate this.  Please send your entire pom.xml.

Thanks!
Nik

Ben Gidley wrote:


I am trying to set up site/site deploy so that they automatically run during
the deploy phase. However when I do this and have the surefire reports
plugin it runs the tests twice - is there a way to stop it running the tests
twice?

I have got in plugins

plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-site-plugin/artifactId
   executions
   execution
   iddeploy/id
   phasedeploy/phase
   goals
   goalsite/goal
   goaldeploy/goal
   /goals
   /execution
   /executions
/plugin


Thanks

Ben

 




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



type vs packaging looping over dependencies

2005-12-13 Thread Chris Berry
Greetings,
A couple of questions;

1) Can someone point me at the docs, or if none are available (as it seems),
tell me how to create a type of dependency that doesn't actually map
directly to it's underlying type -- e.g. say I want to create a type CAR
(some hypothetical type)  that is actually a TGZ in reality . I think that
this has something to do with packaging? But I haven't discovered how to
implement this.

2) Since dependencies no longer have arbitrary properties (which IMO is a
shame), I need to locate dependencies of a given type (e.g. CAR), since I
can simulate properties in this way... Can somebody point me a snippet of
Mojo Java code that loops over a project's dependencies, and looks for each
dependency of a given type, and then executes some code for that match. I
know how to do this in with Jelly, but don't know the corresponding m2 way
to do it in Java. So before I go off and scan the Plugin sources (or do a
lot of trial and error), I am hoping someone can point me in the right
direction...

Thanks,
-- Chris


Re: Surefires test order

2005-12-13 Thread Dirk Olmes

I have a test suite that depends on a certain order of tests. More
precisely, a unit test, which looks like

[...]

I'm not sure if the surefire plugin behaves the same as JUnit ... but  
in JUnit you can manually create a TestSuite and specify the order in  
which tests are executed:


TestSuite suite= new TestSuite();
suite.addTest(new MathTest(testAdd));
suite.addTest(new MathTest(testDivideByZero));

Maybe this helps?

-dirk


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



Re: type vs packaging looping over dependencies

2005-12-13 Thread dan tran
On 12/13/05, Chris Berry [EMAIL PROTECTED] wrote:

 Greetings,
 A couple of questions;

 1) Can someone point me at the docs, or if none are available (as it
 seems),
 tell me how to create a type of dependency that doesn't actually map
 directly to it's underlying type -- e.g. say I want to create a type CAR
 (some hypothetical type)  that is actually a TGZ in reality . I think that
 this has something to do with packaging? But I haven't discovered how to
 implement this.


maven-native at mojo.codehaus.org can map a native-lib to .lib
check out the component.xml

http://svn.codehaus.org/trunk/mojo/maven-native/native-maven-plugin/?root=mojo


2) Since dependencies no longer have arbitrary properties (which IMO is a
 shame), I need to locate dependencies of a given type (e.g. CAR), since I
 can simulate properties in this way... Can somebody point me a snippet of
 Mojo Java code that loops over a project's dependencies, and looks for
 each
 dependency of a given type, and then executes some code for that match. I
 know how to do this in with Jelly, but don't know the corresponding m2 way
 to do it in Java. So before I go off and scan the Plugin sources (or do a
 lot of trial and error), I am hoping someone can point me in the right
 direction...


* NativeLinkMojo.java  *
**

   Set artifacts = this.project.getArtifacts();




Thanks,
 -- Chris




[m2] can't read url exception

2005-12-13 Thread Law Green-A20134
When I running mvn -U site:site to generate offline document for
maven2, I got the following error:
 
[INFO]

-
---
[INFO] Can't read the url
[http://www.apache.org/licenses/LICENSE-2.0.txt] : www
.apache.org
[INFO]

-
---
java.util.MissingResourceException: Can't read the url
[http://www.apache.org/li
censes/LICENSE-2.0.txt] : www.apache.org http://www.apache.org 
at
org.apache.maven.report.projectinfo.LicenseReport$LicenseRenderer.ren
derBody(LicenseReport.java:248)
at
org.apache.maven.reporting.AbstractMavenReportRenderer.render(Abstrac
tMavenReportRenderer.java:65)
at
org.apache.maven.report.projectinfo.LicenseReport.executeReport(Licen
seReport.java:133)
at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven
Report.java:98)
at
org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.
java:802)
at
org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:399)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:519)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:452)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:137)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.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)
 
However, I can open the url in my browser. And I have already set the
proxy settings of JRE to be the same as browser settings.
 
Can anyone tell me where is my problem?
 
Regards,
Green


[M2.0.1] Ant tasks can't parse pom.xml

2005-12-13 Thread Matt Raible
I tried upgrading my Maven 2 Ant Tasks' JAR tonight, and after doing
so, I'm getting the following error:

foxxy:~/dev/equinox mraible$ ant war
Buildfile: build.xml

init:
[artifact:dependencies] An error has occurred while processing the
Maven artifact tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to build project:
/Users/mraible/Work/equinox/pom.xml
[artifact:dependencies] Duplicate project ID found in
/Users/mraible/Work/equinox/pom.xml

BUILD FAILED
/Users/mraible/Work/equinox/build.xml:27: Unable to build project:
/Users/mraible/Work/equinox/pom.xml

Total time: 2 seconds
foxxy:~/dev/equinox mraible$

I haven't been able to find the duplicate project id the error is
referring to.  The strange thing is if I run mvn package on my
project, everything works fine with Maven 2.0.1.  If I revert my
maven-artifact-ant-2.0.1-dep.jar to maven-artifact-ant-2.0-dep.jar,
everything works as expected.

Here's how I declare the Maven Ant tasks in my build.xml:

target name=init description=Initializes tasks and downloads
dependencies
typedef resource=org/apache/maven/artifact/ant/antlib.xml
uri=urn:maven-artifact-ant
classpath
pathelement
location=${basedir}/lib/maven-artifact-ant-2.0-dep.jar /
/classpath
/typedef

artifact:pom file=pom.xml id=maven.project/

Here's line 27 of build.xml:

artifact:dependencies pathId=compile.classpath
filesetId=compile.fileset useScope=compile
pom refid=maven.project/
/artifact:dependencies

Thanks,

Matt

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



Re: [m2] site and site:deploy running tests twice.

2005-12-13 Thread Ben Gidley
Nik,
  I have sent the the whole POM off list. The whole project is in CVS at
scm:cvs:pserver:[EMAIL PROTECTED]:/cvsroot/zebra:zebra/src/java/zebra-hivemind


It is quite odd - it may be some interaction with the other plugins. It does
the initial source deploy. Then it runs site and that is when Surefire is
kicked off again.

Ben


On 14/12/05, Nik Gonzalez [EMAIL PROTECTED] wrote:

 Ben,

 I can't replicate this.  Please send your entire pom.xml.

 Thanks!
 Nik

 Ben Gidley wrote:

 I am trying to set up site/site deploy so that they automatically run
 during
 the deploy phase. However when I do this and have the surefire reports
 plugin it runs the tests twice - is there a way to stop it running the
 tests
 twice?
 
 I have got in plugins
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-site-plugin/artifactId
 executions
 execution
 iddeploy/id
 phasedeploy/phase
 goals
 goalsite/goal
 goaldeploy/goal
 /goals
 /execution
 /executions
 /plugin
 
 
 Thanks
 
 Ben
 
 
 


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




Re: [m2] TestNG and webapp testing

2005-12-13 Thread Wim Deblauwe
I don't think there is a plugin for TestNG yet sadly enough. There is a
TestNG plugin for Maven 1, but I did not get it working properly, you might
have more luck.

regards,

Wim

2005/12/13, Srepfler Srgjan [EMAIL PROTECTED]:

 Hi,
 I've read this blog

 http://blog.hibernate.org/cgi-bin/blosxom.cgi/Christian%20Bauer/java/ejb3withtestng.html
 and I found it very interesting. Is there a plugin for TestNG for
 maven2? What about Cactus?
 What is the approach to developing in-container tests? I read somewhere
 that Cargo has some support but I don't understand how is it done (any
 example projects?), and also what's the status of Cargo form m2 and
 what's the compatibility status on JBoss 4.0.3?
 Thanks


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




Re: [m2] TestNG and webapp testing

2005-12-13 Thread Kaare Nilsen
I tried to make a testNG plugin for m2, but got it only 80% finished.
It was succesfully running tests with commons attributes (1.4 support
of testng) but did not manage to get it to run 1.5 annotation tests.
And since i have seen better codebases than testNG in my life (and
this was my second time around trying to make testNG work for me,
first of was a bug in the eclipseplugin) I abondoned my try to make
the plugin finished and went back to good old junit. but hey if anyone
want a 80% code to continue to work on, just send me a mail, and i
would be glad to share my code.

On 14/12/05, Wim Deblauwe [EMAIL PROTECTED] wrote:
 I don't think there is a plugin for TestNG yet sadly enough. There is a
 TestNG plugin for Maven 1, but I did not get it working properly, you might
 have more luck.

 regards,

 Wim

 2005/12/13, Srepfler Srgjan [EMAIL PROTECTED]:
 
  Hi,
  I've read this blog
 
  http://blog.hibernate.org/cgi-bin/blosxom.cgi/Christian%20Bauer/java/ejb3withtestng.html
  and I found it very interesting. Is there a plugin for TestNG for
  maven2? What about Cactus?
  What is the approach to developing in-container tests? I read somewhere
  that Cargo has some support but I don't understand how is it done (any
  example projects?), and also what's the status of Cargo form m2 and
  what's the compatibility status on JBoss 4.0.3?
  Thanks
 
 
  -
  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: [m2] TestNG and webapp testing

2005-12-13 Thread Jörg Schaible
Kaare Nilsen wrote on Wednesday, December 14, 2005 8:47 AM:

 I tried to make a testNG plugin for m2, but got it only 80% finished.
 It was succesfully running tests with commons attributes (1.4 support
 of testng) but did not manage to get it to run 1.5 annotation tests.
 And since i have seen better codebases than testNG in my life (and
 this was my second time around trying to make testNG work for me,
 first of was a bug in the eclipseplugin) I abondoned my try to make
 the plugin finished and went back to good old junit. but hey if anyone
 want a 80% code to continue to work on, just send me a mail, and i
 would be glad to share my code.

You might find this interesting though:
http://www-128.ibm.com/developerworks/java/library/j-junit4.html

- Jörg

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