Re: Example POM for WebLogic servicegen needed

2006-11-13 Thread Dmystery

What i have right now is a ejb-project, war-project and an ear-project. In
the ejb-project i use appc to compile the generated artifact so when i do an
install the 'compiled artifact' gets installed in the repository. The
war-project uses the compiled ejb artifact. Same for the ear-project, it
generates the ear (with compiled ejb and the war), generates Webservices
using servicegen, runs appc and then gets installed in the repository. So, i
have a fully compiled and webservice ready ear in the repository. 

If one is to use seperate projects for servicegen and appc, then what should
be the 'packaging' of that project? Also doing so will generate services
using the ear in the local project build folders, so how to install the ear
again in the repository? This is important for a multi-module project where
an 'mvn install' will build all the modules populate the repositiry. 

I guess the appc should be in an ear or ejb project and the sericegen in the
ear project.

But my original question still remains - appc in package phase still
executes the build twice :( 

Thanks. 




Jeff Bailey wrote:
 
 Thanks for the example.  That saved me a lot of time!
 
 Re: phase for appc, I'm trying to take the approach having one project
 create the ejb-jar and a separate project create the web services using
 servicegen.  Currently I run appc in the package phase.  I thought it
 might be better to decompose things that way instead of trying to do to
 much in one project.  In fact, I'm starting look into actually having a
 another project to create the ear.  In a nutshell I'd have the following
 projects:
 
 EJB Project - contains my session beans.  
 WebService Project - uses servicegen to create webservices for my sessions
 beans
 Web Project - contains my web app
 EAR Project - Packages the artifacts of the other three packages into the
 ear for my application.
 
 My goal is to separate out the assembly of the EAR and to keep each
 project relatively simple.  I have a few challenges that I need to
 overcome:
 
 1) servicegen needs to reference the ejb jar as a parameter.  I currently
 have a relative path hardcoded to my ejb project, but what I'd really like
 to do is reference the ejb artifact.  I'm sure this can be done but I need
 to dig into how to refernce it.  Maybe declare the ejb jar as a dependency
 and somehow reference that in the servicegen call?
 2) The WebService project uses servicegen to generate an EAR.  I'm really
 only interested in the war file that's generated by servicegen so it can
 be packaged into the EAR by my EAR project.  I have servicegen configured
 to generate an exploded ear, but I need to figure out how to make the war
 that servicegen generates the artifact of my WebService project so that it
 will be installed in the repository and can be picked up by my EAR
 project.
 
 Hopefully this makes sense.  I'd be curious to know if others think by
 breakdown of maven projects is good pattern or an anti-pattern and if you
 have any suggestions on how to solve the remaining issues. 
 
 Thanks,
 Jeff
 
 Dmystery wrote:
 
 On a different note, what execution phase are you executing the
 weblogic:appc? I'm doing it in a pom which first generate sources using
 XMLbeans, compiles some aspects, create ejb-jar, ejb-client-jar and then
 run weblogic:appc which is in the package phase. The problem is, when
 appc is started, it does the whole thing again, XMLBeans to
 ejb-client-jar. Just wanna know what phase you have weblogic:appc? 
 
 Thanks. 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Example-POM-for-WebLogic-servicegen-needed-tf2604105s177.html#a7312860
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Unsupported WTP version: 1.5

2006-11-13 Thread Minto van der Sluis

Hi all,

I try to use the maven eclipse plugin for WTP 1.5. But it tells me it does
not know WTP 1.5. What am I doing wrong?

My pom looks like this:

  properties
ejbversion2.0/ejbversion
java13_home/opt/java/ibm-jdk-131//java13_home
  /properties

  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0/version
configuration
  forktrue/fork
  compilerVersion1.3/compilerVersion
  executable${java13_home}/bin/javac/executable
/configuration
  /plugin
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.2/version
configuration
  wtpversion1.5/wtpversion
/configuration
  /plugin
/plugins
  /build

Here is the message I get:

[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Unsupported WTP version: 1.5. This plugin currently supports only the
following versions: 1.0 R7 none.
[INFO]

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

Any clues? Am I missing dependancies? Even removing the eclipse version from
the pom does not help.

Kind regards,

Minto van der Sluis
-- 
View this message in context: 
http://www.nabble.com/Unsupported-WTP-version%3A-1.5-tf2620918s177.html#a7313519
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Not set groupId and version?

2006-11-13 Thread jiangshachina

Hi guys,
I have saw some guides like the following,
http://maven.apache.org/guides/mini/guide-assemblies.html
plugin
artifactIdmaven-assembly-plugin/artifactId
configuration
  descriptorsrc/main/assembly/dep.xml/descriptor
/configuration
/plugin
Why can not set groupId and artifactId?
Then how do Maven to deal with the plugin?
Mave would search the whole local repository, then find it(the artifactId is
unique), and use the last version?
If the artifactId is duplicted, what would happen?

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/Not-set-groupId-and-version--tf2620955s177.html#a7313571
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Not set groupId and version?

2006-11-13 Thread Dmystery

The parent of this pom might be using pluginManagement. To know more
http://maven.apache.org/pom.html#Plugin%20Management


jiangshachina wrote:
 
 Hi guys,
 I have saw some guides like the following,
 http://maven.apache.org/guides/mini/guide-assemblies.html
 plugin
 artifactIdmaven-assembly-plugin/artifactId
 configuration
   descriptorsrc/main/assembly/dep.xml/descriptor
 /configuration
 /plugin
 Why can not set groupId and artifactId?
 Then how do Maven to deal with the plugin?
 Mave would search the whole local repository, then find it(the artifactId
 is unique), and use the last version?
 If the artifactId is duplicted, what would happen?
 
 a cup of Java, cheers!
 Sha Jiang
 

-- 
View this message in context: 
http://www.nabble.com/Not-set-groupId-and-version--tf2620955s177.html#a7313626
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Unsupported WTP version: 1.5

2006-11-13 Thread Stéphane Bouchet
You may use the 2.3-SNAPSHOT version of the eclipse plugin to have it to 
work.


Cheers,

Stéphane.


Minto van der Sluis a écrit :

Hi all,

I try to use the maven eclipse plugin for WTP 1.5. But it tells me it does
not know WTP 1.5. What am I doing wrong?

My pom looks like this:

  properties
ejbversion2.0/ejbversion
java13_home/opt/java/ibm-jdk-131//java13_home
  /properties

  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0/version
configuration
  forktrue/fork
  compilerVersion1.3/compilerVersion
  executable${java13_home}/bin/javac/executable
/configuration
  /plugin
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.2/version
configuration
  wtpversion1.5/wtpversion
/configuration
  /plugin
/plugins
  /build

Here is the message I get:

[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Unsupported WTP version: 1.5. This plugin currently supports only the
following versions: 1.0 R7 none.
[INFO]

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

Any clues? Am I missing dependancies? Even removing the eclipse version from
the pom does not help.

Kind regards,

Minto van der Sluis
  



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



Re: Not set groupId and version?

2006-11-13 Thread jiangshachina

Well Dmystery,
I almost forget the matter :)
Thanks for awaking my memory.

In fact, I don't use dependency management usually. 
I think it wastes me too much ink *_*
Or anybody has a good way to use the element.
Thanks!

a cup of Java, cheers!
Sha Jiang


Dmystery wrote:
 
 The parent of this pom might be using pluginManagement. To know more
 http://maven.apache.org/pom.html#Plugin%20Management
 
 
 jiangshachina wrote:
 
 Hi guys,
 I have saw some guides like the following,
 http://maven.apache.org/guides/mini/guide-assemblies.html
 plugin
 artifactIdmaven-assembly-plugin/artifactId
 configuration
   descriptorsrc/main/assembly/dep.xml/descriptor
 /configuration
 /plugin
 Why can not set groupId and artifactId?
 Then how do Maven to deal with the plugin?
 Mave would search the whole local repository, then find it(the artifactId
 is unique), and use the last version?
 If the artifactId is duplicted, what would happen?
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Not-set-groupId-and-version--tf2620955s177.html#a7313815
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Not set groupId and version?

2006-11-13 Thread Tom Huybrechts

According to the POM schema, the groupId for plugin has a default
value of org.apache.maven.plugins

Tom

On 11/13/06, jiangshachina [EMAIL PROTECTED] wrote:


Hi guys,
I have saw some guides like the following,
http://maven.apache.org/guides/mini/guide-assemblies.html
plugin
artifactIdmaven-assembly-plugin/artifactId
configuration
  descriptorsrc/main/assembly/dep.xml/descriptor
/configuration
/plugin
Why can not set groupId and artifactId?
Then how do Maven to deal with the plugin?
Mave would search the whole local repository, then find it(the artifactId is
unique), and use the last version?
If the artifactId is duplicted, what would happen?

a cup of Java, cheers!
Sha Jiang
--
View this message in context: 
http://www.nabble.com/Not-set-groupId-and-version--tf2620955s177.html#a7313571
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Running tests several times - saving the state (current phase) of the project

2006-11-13 Thread Steinar Cook
The surefire reporting plugin re-runs the tests, which is kind of  
natural as there is really no way to tell the current state of the  
project. I think Maven should introduce the concept of a project  
state, which would make some of the plugins easier to implement.


Maven2 supplies a set of well defined life cycle phases. If the  
current state (phase) of the project was available to each mojo, we  
would solve the problem of having several mojos being run twice, like  
for instance the surefire plugin.



Regards,

Steinar Cook




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



RE: Unsupported WTP version: 1.5

2006-11-13 Thread hermod.opstvedt
Hi

You need to use the latest snapshot of the plugin - Not the released

Hermod

-Original Message-
From: Minto van der Sluis [mailto:[EMAIL PROTECTED]
Sent: Monday, November 13, 2006 10:07 AM
To: users@maven.apache.org
Subject: Unsupported WTP version: 1.5



Hi all,

I try to use the maven eclipse plugin for WTP 1.5. But it tells me it does
not know WTP 1.5. What am I doing wrong?

My pom looks like this:

  properties
ejbversion2.0/ejbversion
java13_home/opt/java/ibm-jdk-131//java13_home
  /properties

  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0/version
configuration
  forktrue/fork
  compilerVersion1.3/compilerVersion
  executable${java13_home}/bin/javac/executable
/configuration
  /plugin
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.2/version
configuration
  wtpversion1.5/wtpversion
/configuration
  /plugin
/plugins
  /build

Here is the message I get:

[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Unsupported WTP version: 1.5. This plugin currently supports only the
following versions: 1.0 R7 none.
[INFO]

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

Any clues? Am I missing dependancies? Even removing the eclipse version from
the pom does not help.

Kind regards,

Minto van der Sluis
-- 
View this message in context: 
http://www.nabble.com/Unsupported-WTP-version%3A-1.5-tf2620918s177.html#a7313519
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

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

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

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


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



RE: [m2] List of All Dependencies for any project X

2006-11-13 Thread Peter . Pilgrim


 

 -Original Message-
 From: Barrett Nuzum [mailto:[EMAIL PROTECTED] 
 Sent: 10 November 2006 17:30
 To: Maven Users List
 Subject: RE: [m2] List of All Dependencies for any project X
 
 Peter:
  
 mvn project-info-reports:dependencies should give you what you want.
  

Can you make this report easily descend recursively through sub-projects
or not ?

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: [m2] List of All Dependencies for any project X

2006-11-13 Thread Mark Hobson

On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Can you make this report easily descend recursively through sub-projects
or not ?


Don't you get a dependency tree like on this report?:
http://maven.apache.org/plugins/maven-project-info-reports-plugin/dependencies.html

Mark

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



Re: Not set groupId and version?

2006-11-13 Thread jiangshachina

Hi Tom,

 According to the POM schema, the groupId for plugin has a default
 value of org.apache.maven.plugins
How to see it?

a cup of Java, cheers!
Sha Jiang


Tom Huybrechts wrote:
 
 According to the POM schema, the groupId for plugin has a default
 value of org.apache.maven.plugins
 
 Tom
 
 On 11/13/06, jiangshachina [EMAIL PROTECTED] wrote:

 Hi guys,
 I have saw some guides like the following,
 http://maven.apache.org/guides/mini/guide-assemblies.html
 plugin
 artifactIdmaven-assembly-plugin/artifactId
 configuration
   descriptorsrc/main/assembly/dep.xml/descriptor
 /configuration
 /plugin
 Why can not set groupId and artifactId?
 Then how do Maven to deal with the plugin?
 Mave would search the whole local repository, then find it(the artifactId
 is
 unique), and use the last version?
 If the artifactId is duplicted, what would happen?

 a cup of Java, cheers!
 Sha Jiang
 --
 View this message in context:
 http://www.nabble.com/Not-set-groupId-and-version--tf2620955s177.html#a7313571
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Not-set-groupId-and-version--tf2620955s177.html#a7314183
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: [m2] List of All Dependencies for any project X

2006-11-13 Thread Peter . Pilgrim


 

 -Original Message-
 From: Barrett Nuzum [mailto:[EMAIL PROTECTED] 
 Sent: 10 November 2006 17:30
 To: Maven Users List
 Subject: RE: [m2] List of All Dependencies for any project X
 
 Peter:
  
 mvn project-info-reports:dependencies should give you what you want.
  
What I meant to ask. Is there a way to get a aggregate (or grand total)
of all the dependencies for project A and it descendent sub projects 
A-A, A-B, A-B-A, A-B-B etc?


--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: Problem during build

2006-11-13 Thread ETIENNE Olivier

I found the solution !
It cames from dirty files stored in the CVS repository, removing them 
has solved my problem.


ETIENNE Olivier a écrit :

Hi,

I'm trying to compile a Java project based on a CVS repository and ant 
builds scripts. When the project build is launch, the files are 
retrieved from CVS but the build command doesn't work (Error at the 
end of the mail).
But if I open a shell and go in the corresponding working directory, 
launch the cvs command and run the ant script, everything  works 
perfectly.


Here are some of the messages from the continuum console.

vm 1| cvs update: cannot open CVS/Entries for reading: No such 
file or directory
jvm 1| cvs update: in directory 
CMC/Applicatif/GTC/bin/phr/ibs/cmc/gtc/suivreLePassage:
jvm 1| cvs update: cannot open CVS/Entries for reading: No such 
file or directory

jvm 1|
*jvm 1| 2006-11-10 17:16:29,564 [Thread-2] WARN  
ContinuumScm- Provider message: The cvs command failed.
jvm 1| ERROR 22001: A truncation error was encountered trying to 
shrink VARCHAR 'cvs update: in directory CMC/Applicatif/GTC/bin:

jvm 1| cvs update:' to length 1024.*
jvm 1|  at 
org.apache.derby.iapi.error.StandardException.newException(Unknown 
Source)
jvm 1|  at 
org.apache.derby.iapi.types.SQLChar.hasNonBlankChars(Unknown Source)
jvm 1|  at 
org.apache.derby.iapi.types.SQLVarchar.normalize(Unknown Source)

...
jvm 1|  at 
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47) 

jvm 1|  at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103) 


jvm 1|  at java.lang.Thread.run(Thread.java:595)
*jvm 1| 2006-11-10 17:16:29,791 [Thread-2] ERROR 
BuildController- Error while building project.
jvm 1| javax.jdo.JDODataStoreException: Insert request failed: 
INSERT INTO SCMRESULT 
(SCMRESULT_ID,MODEL_ENCODING,EXCEPTION,COMMAND_LINE,PROVIDER_MESSAGE,SUCCESS,COMMAND_OUTPUT) 
VALUES (?,?,?,?,?,?,?)*
jvm 1|  at 
org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:387) 

jvm 1|  at 
org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:2146)
jvm 1|  at 
org.jpox.store.StoreManager.insert(StoreManager.java:739)



...
jvm 1|  at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103) 


jvm 1|  at java.lang.Thread.run(Thread.java:595)
*jvm 1| NestedThrowablesStackTrace:
jvm 1| ERROR 22001: A truncation error was encountered trying to 
shrink VARCHAR 'cvs update: in directory CMC/Applicatif/GTC/bin:

jvm 1| cvs update:' to length 1024.*
jvm 1|  at 
org.apache.derby.iapi.error.StandardException.newException(Unknown 
Source)
jvm 1|  at 
org.apache.derby.iapi.types.SQLChar.hasNonBlankChars(Unknown Source)
jvm 1|  at 
org.apache.derby.iapi.types.SQLVarchar.normalize(Unknown Source)




vm 1|  at 
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:192) 

jvm 1|  at 
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47) 

jvm 1|  at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103) 


jvm 1|  at java.lang.Thread.run(Thread.java:595)
*jvm 1| ERROR 22001: A truncation error was encountered trying to 
shrink VARCHAR 'cvs update: in directory CMC/Applicatif/GTC/bin:

jvm 1| cvs update:' to length 1024.*
jvm 1|  at 
org.apache.derby.iapi.error.StandardException.newException(Unknown 
Source)
jvm 1|  at 
org.apache.derby.iapi.types.SQLChar.hasNonBlankChars(Unknown Source)




vm 1|  at 
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47) 

jvm 1|  at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103) 


jvm 1|  at java.lang.Thread.run(Thread.java:595)
*jvm 1| 2006-11-10 17:16:29,891 [Thread-2] ERROR 
BuildController- Internal error while building the 
project.
jvm 1| javax.jdo.JDODataStoreException: Insert request failed: 
INSERT INTO SCMRESULT 
(SCMRESULT_ID,MODEL_ENCODING,EXCEPTION,COMMAND_LINE,PROVIDER_MESSAGE,SUCCESS,COMMAND_OUTPUT) 
VALUES (?,?,?,?,?,?,?)*
jvm 1|  at 
org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:387) 

jvm 1|  at 
org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:2146)
jvm 1|  at 
org.jpox.store.StoreManager.insert(StoreManager.java:739)




jvm 1|  at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103) 


jvm 

RE: Mailing is not working

2006-11-13 Thread Artamonov, Juri
Do you use single continuum or continuum with maestro?
If second then the issue could be in the code and here is the file you
need to have updated:
http://people.apache.org/~evenisse/private/continuum-plexus-application-
1.0.3-maestro-1.0.1.jar

-Original Message-
From: Morgovsky, Alexander (US - Glen Mills)
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 08, 2006 7:57 PM
To: continuum-users@maven.apache.org
Subject: RE: Mailing is not working


Does username, password, and sslMode relate to mailing?  Also, how do I
set the email you mentioned inside continuum using the shell projects?
Are there any examples for this? 

-Original Message-
From: aquinault [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 08, 2006 3:18 AM
To: continuum-users@maven.apache.org
Subject: Re: Mailing is not working


Hi,
You must set up the username, password and sslMode because it seems
commented into your file. You must set your email inside pom.xml (maven2
project) or inside continuum (shell project) as notifiers. Voila.

Anthony quinault / Sogeti



Morgovsky, Alexander (US - Glen Mills) wrote:
 
 Hi.  I set up my mailing like this, but I am not receiving any emails.

 May someone please help me with this?  Thanks in advance.
 
 [EMAIL PROTECTED] like [EMAIL PROTECTED]
 y=name like Bob
 configuration
 from-mailboxx/from-mailbox
 from-namey/from-name
 timestamp-formatEEE, d MMM  HH:mm:ss
Z/timestamp-format
 includeBuildResulttrue/includeBuildResult
 alwaysSendtrue/alwaysSend
   /configuration
 
 z=name @domain.com like [EMAIL PROTECTED]
 configuration
 !--
 Setting this propery will make Continuum send all emails to
 this address instead the address specified in the project
 configuration
 --
 to-overridez/to-override
   /configuration
 
 a=mail host
 b=mail port
 
 component
   roleorg.codehaus.plexus.mailsender.MailSender/role
  

implementationorg.codehaus.plexus.mailsender.javamail.JavamailMailSend
 er/implementation
   configuration
 smtp-hosta/smtp-host
 smtp-portb/smtp-port

sslProvidercom.sun.net.ssl.internal.ssl.Provider/sslProvider
   !--
 usernamemylogin/username
 passwordmypassword/password
 sslModetrue/sslMode
 --
   /configuration
 /component
 
 
 This message (including any attachments) contains confidential
information
 intended for a specific individual and purpose, and is protected by
law. 
 If you are not the intended recipient, you should delete this message.

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

-- 
View this message in context:
http://www.nabble.com/Mailing-is-not-working-tf2592508.html#a7234399
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: [m2] List of All Dependencies for any project X

2006-11-13 Thread Mark Hobson

On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

What I meant to ask. Is there a way to get a aggregate (or grand total)
of all the dependencies for project A and it descendent sub projects
A-A, A-B, A-B-A, A-B-B etc?


So a list of all transitive dependencies, as per the report, but also
with the dependency path for each one?  Not that I'm aware of,
although it'd be easy enough to do.

Mark

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



Re: Not set groupId and version?

2006-11-13 Thread Tom Huybrechts

The POM reference is http://maven.apache.org/pom.html
It contains a link to the schema: http://maven.apache.org/maven-v4_0_0.xsd


On 11/13/06, jiangshachina [EMAIL PROTECTED] wrote:


Hi Tom,

 According to the POM schema, the groupId for plugin has a default
 value of org.apache.maven.plugins
How to see it?

a cup of Java, cheers!
Sha Jiang


Tom Huybrechts wrote:

 According to the POM schema, the groupId for plugin has a default
 value of org.apache.maven.plugins

 Tom

 On 11/13/06, jiangshachina [EMAIL PROTECTED] wrote:

 Hi guys,
 I have saw some guides like the following,
 http://maven.apache.org/guides/mini/guide-assemblies.html
 plugin
 artifactIdmaven-assembly-plugin/artifactId
 configuration
   descriptorsrc/main/assembly/dep.xml/descriptor
 /configuration
 /plugin
 Why can not set groupId and artifactId?
 Then how do Maven to deal with the plugin?
 Mave would search the whole local repository, then find it(the artifactId
 is
 unique), and use the last version?
 If the artifactId is duplicted, what would happen?

 a cup of Java, cheers!
 Sha Jiang
 --
 View this message in context:
 
http://www.nabble.com/Not-set-groupId-and-version--tf2620955s177.html#a7313571
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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




--
View this message in context: 
http://www.nabble.com/Not-set-groupId-and-version--tf2620955s177.html#a7314183
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



RE: [m2] List of All Dependencies for any project X

2006-11-13 Thread Peter . Pilgrim



 -Original Message-
 From: Mark Hobson [mailto:[EMAIL PROTECTED] 
 Sent: 13 November 2006 10:15
 To: Maven Users List
 Subject: Re: [m2] List of All Dependencies for any project X
 
 On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  What I meant to ask. Is there a way to get a aggregate (or grand 
  total) of all the dependencies for project A and it descendent sub 
  projects
  A-A, A-B, A-B-A, A-B-B etc?
 
 So a list of all transitive dependencies, as per the report, 
 but also with the dependency path for each one?  Not that I'm 
 aware of, although it'd be easy enough to do.
 

Something like that I think. 

For now I would like to know if what the dependency used in the 
whole project.

Suppose I had a project tree such as this:

A--B--C
|
D--E--F
|
G

Say if `commons-collections (3.1)' is used subproject D, 
I would like to see it.

If `struts 1.2.9' is used at sub project B, C and G. 
I would like to see it.

If `servlet 2.4' is used only A. I would like see it, when 
I save generate (this grand total of dependencies) from the
master project A. 

On the other hand if I ask to generate the same report at sub-project C
then I will only see `struts 1.2.9'



Here is the analogy: The difference between with the traditional UNIX
command

(1) du /usr/src

and

  (2) du -k /usr/src


--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::
  

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



How does Continuum launch a build process?

2006-11-13 Thread Binil Thomas

Hi all,

I am using Maven2+Continuum1.0.3+Win2K. I have some automated GUI tests for
my project. In my tests, I take a screenshot of every step using
java.awt.Robot.createScreenCapture
(http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Robot.html#createScreenCapture(java.awt.Rectangle).

When I run the tests from my desktop, the screen shots work fine. When I run
the tests from the CI server, all my screenshots turn return back images.

My Continuum instance was installed as a service, so I thought that might be
the problem. I uninstalled the service and ran Continuum from the command
prompt. Still I was getting the images as black.

I would like to verify the java command line settings used to launch the mvn
process. Where should I look for this? Any tips?

Thanks,
Binil
-- 
View this message in context: 
http://www.nabble.com/How-does-Continuum-launch-a-build-process--tf2621492.html#a7314968
Sent from the Continuum - Users mailing list archive at Nabble.com.



RE: [m2] List of All Dependencies for any project X

2006-11-13 Thread Peter . Pilgrim
Hi Mark

Is this a MOJO or plug-in? I loaded this project from the ZIP into
Eclipse and
built it from the command. I commented out the maven-shared-component
definition
in the pom.xml. 

How do I use this plug-in? There are no descriptions or secret
parameters
that I can see. 

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::
 

 -Original Message-
 From: Mark Hobson [mailto:[EMAIL PROTECTED] 
 Sent: 10 November 2006 18:01
 To: Maven Users List
 Subject: Re: [m2] List of All Dependencies for any project X
 
 On 10/11/06, Sebastien Brunot [EMAIL PROTECTED] wrote:
  Mark Hobson seems to have authored mojos that does this:
  http://jira.codehaus.org/browse/MNG-2654
 
 Yep, that's the prerequisite to provide a patch for 
 http://jira.codehaus.org/browse/MPH-14, which is the cleanest 
 solution.  Although as Barrett mentioned, this will indeed 
 give the same info as obtained from mvn 
 project-info-reports:dependencies.
 
 Mark
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: [m2] List of All Dependencies for any project X

2006-11-13 Thread Mark Hobson

On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Something like that I think.

For now I would like to know if what the dependency used in the
whole project.

Suppose I had a project tree such as this:

A--B--C
|
D--E--F
|
G

Say if `commons-collections (3.1)' is used subproject D,
I would like to see it.

If `struts 1.2.9' is used at sub project B, C and G.
I would like to see it.

If `servlet 2.4' is used only A. I would like see it, when
I save generate (this grand total of dependencies) from the
master project A.

On the other hand if I ask to generate the same report at sub-project C
then I will only see `struts 1.2.9'


Hmm, not too sure I understand what you mean there.  The dependency
tree in the aforementioned report will give you the full dependency
hierarchy for whichever project you run it under.


Here is the analogy: The difference between with the traditional UNIX
command

(1) du /usr/src

and

  (2) du -k /usr/src


This just changes the units to kilobytes, not sure what the analogy is here?

Mark

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



Re: [m2] List of All Dependencies for any project X

2006-11-13 Thread Mark Hobson

Hi Peter,

On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Is this a MOJO or plug-in? I loaded this project from the ZIP into
Eclipse and
built it from the command. I commented out the maven-shared-component
definition
in the pom.xml.

How do I use this plug-in? There are no descriptions or secret
parameters
that I can see.


It's a plexus component rather than a mojo.  It will be used by MPH-14
once it has been committed - I'm holding off submitting that patch in
case the shared component API needs to change.

Mark

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



Advice for 3rd party deps not in public repos

2006-11-13 Thread Mirko Nasato

Hi all,

I'm moving the JOOReports and JOOConverter 
(http://jooreports.sourceforge.net) open source projects to a 
maven2-based build, with an eye to publishing the artifacts to a public 
repository.


The migration was very easy thanks to the excellent documentation, 
especially Better Builds with Maven.


Now for the issue.   JOOConverter converts between different document 
formats using OpenOffice.org automation.  To do so it depends on some 
jars provided by OpenOffice.org.  These jars are included in any 
OpenOffice.org installation.  They aren *not* available in any public 
maven repository.  I've raised an issue with the OOo team asking them to 
publish the jars but I'll be very surprised if they actually listen to 
that request.


I'd like some advice on how to declare them as dependencies, so that 
projects that in turn depends on JOOConverter will get them as 
transitive dependencies with minimum effort.  Options I see are


1. install OOo jars manually on the local m2 repo with mvn 
install:install-file; users will have to do the same; or


2. declare OOo jars as system dependencies, e.g.

   dependency
 groupIdorg.openoffice/groupId
 artifactIdunoil/artifactId
 version2.0/version
 scopesystem/scope
 systemPath${openoffice.home}/program/classes/unoil.jar/systemPath
   /dependency

 and have users pass

  mvn -Dopenoffice.home=/path/to/their/openoffice ...

 (but system jars don't seem to get packaged e.g. in webapps)

A third (and probably the best) option would be to publish these jars 
under the JOOConverter groupId, but I'm not sure I'm allowed to do this 
since I'm not the author.


Thanks

Mirko


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



Re: Exclude modules from site

2006-11-13 Thread dawn.angelito

Hi JC,

Have you tried using moduleExcludes instead? You may refer to:
http://maven.apache.org/plugins/maven-site-plugin/site-mojo.html#moduleExcludes.

Hope this helps.

Dawn


JC Walmetz wrote:
 
 I have a pom with several modules. I'd like to exclude some of the modules
 from the site.
 
 I have tried  the excludeModules optin as mentionned in the doc. It seems
 not to works. Modules are still in the generated site.
 build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-site-plugin/artifactId
 configuration
   excludeModulesfml/excludeModules
 /configuration
   /plugin
 /plugins
   /build
 
 What's wrong in my declaration ? Is it a bug ?
 

-- 
View this message in context: 
http://www.nabble.com/Exclude-modules-from-site-tf2610656s177.html#a7315394
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: [m2] List of All Dependencies for any project X

2006-11-13 Thread Peter . Pilgrim



 -Original Message-
 From: Mark Hobson [mailto:[EMAIL PROTECTED] 
 Sent: 13 November 2006 11:23
 To: Maven Users List
 Subject: Re: [m2] List of All Dependencies for any project X
 
 On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Something like that I think.
 
  For now I would like to know if what the dependency used in 
 the whole 
  project.
 
  Suppose I had a project tree such as this:
 
  A--B--C
  |
  D--E--F
  |
  G
 

Forgot about that ... clearly did not explain my problem

====

 
 Hmm, not too sure I understand what you mean there.  The 
 dependency tree in the aforementioned report will give you 
 the full dependency hierarchy for whichever project you run it under.


Let take it step backwards. Let say I am working with the DayTrader J2EE
project in the BBWB pdf.

daytrader
   |
   +--client
   |  |
   |  +--streamer
   |  +--wsappclient
   |  \--pom.xml
   |
   +--server
   |  +--ear
   |  +--ejb
   |  +--web
   |  \--pom.xml
   |
   \--pom.xml


I would like to see a full list of dependencies required for the whole
of DayTrader J2EE application and all of it sub-projects `client',
`client/streamer'
`client/wsappclient' , `server', `server/ear'. 

I would rather see it is one report under 
`daytrader/target/site/dependencies.html' instead of a series
of separate reports under 
`daytrader/{client,server}/**/target/site/dependencies.html'

Ok when I try running `mvn project-info-reports:dependencies' on my 
client's own project I don't see this grand total view. 
I can see only the dependencies relevant to the current project 
that I am in, even it is the (root) master project. 
(e.g. the daytrader/pom.xml). Is it making sense now?
 
  Here is the analogy: The difference between with the 
 traditional UNIX 
  command
 
  (1) du /usr/src
 

du /usr/src

  and
 
(2) du -k /usr/src

Wrong flag (twice in one day, huh)

du -s /usr/src 

 
 This just changes the units to kilobytes, not sure what the 
 analogy is here?
====
--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::
 

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



RE: [m2] List of All Dependencies for any project X

2006-11-13 Thread Peter . Pilgrim


 -Original Message-
 From: Mark Hobson [mailto:[EMAIL PROTECTED] 
====
 
 On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Is this a MOJO or plug-in? I loaded this project from the ZIP into 
  Eclipse and built it from the command. I commented out the 
  maven-shared-component definition in the pom.xml.
 
  How do I use this plug-in? There are no descriptions or secret 
  parameters that I can see.
 
 It's a plexus component rather than a mojo.  It will be used 
 by MPH-14 once it has been committed - I'm holding off 
 submitting that patch in case the shared component API needs 
 to change.

So this is no go, then until the Mojo is released.

====

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Ant build file generation is bad...

2006-11-13 Thread Javier Leyba

Hi

I´ve used ant:ant command from maven to generate a build file some
time ago and ant place in the generated build file all dependencies as
classpath.

I did today and discovered that ant just make something like this:

path id=build.classpath
   fileset dir=${maven.repo.local}/
 /path

Is this more efficient than the old way ??



--
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar

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



Re: [m2] List of All Dependencies for any project X

2006-11-13 Thread Mark Hobson

On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Ok when I try running `mvn project-info-reports:dependencies' on my
client's own project I don't see this grand total view.
I can see only the dependencies relevant to the current project
that I am in, even it is the (root) master project.
(e.g. the daytrader/pom.xml). Is it making sense now?


Right, I see.  This is what the latest dependency report does in fact
display.  Check the example report:

http://maven.apache.org/plugins/maven-project-info-reports-plugin/dependencies.html

It shows the immediate dependencies (Project Dependencies); all
transitive dependencies (Project Transitive Dependencies) (what you
require I believe); and the dependency tree (Project Dependency
Graph).

If you're not seeing that maybe you're running an old version?


Wrong flag (twice in one day, huh)

du -s /usr/src


Heh, I get you now.

Mark

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



Re: [m2] List of All Dependencies for any project X

2006-11-13 Thread Mark Hobson

On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

So this is no go, then until the Mojo is released.


Kind of - I could submit the patch in the meantime, but really it just
gives the same info as the dependency reports plugin.

Mark

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



Setting up a new jre to maven

2006-11-13 Thread Allan Valeriano

Hi all,


I'm having problems setting up a new jre to run mvn install.
My default java version is 1.4.2_11, but I need maven to use jre 5 for it.
I've read the FAQ, but I must say the example for it is not really helpful.
Could somebody give me a hand on this sending a complete example?


thanks in advance
Allan Valeriano


Re: Passing Maven Variable as a system property to the tests

2006-11-13 Thread Binil Thomas


dan tran wrote:
 
 ${basedir}/target could be the work around
 
 -D
 

I did not try this, but by replacing ${project.build.outputDirectory} with
${basedir}/target we end up shifting the problem of evaluating
${project.build.outputDirectory} with one of evaluating ${basedir} rt?
Also, using File f = new File(target) will get my the target directory,
but I wanted my test not to break if someone configures the output directory
to be something other than target.

Thanks,
Binil
-- 
View this message in context: 
http://www.nabble.com/Passing-Maven-Variable-as-a-system-property-to-the-tests-tf2600462s177.html#a7316114
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Advice for 3rd party deps not in public repos

2006-11-13 Thread Nicolas DE LOOF



You can create POMs for those artifacts and create an upload bundle. 
Then publish a request on Jira for uploading.

http://maven.apache.org/guides/mini/guide-central-repository-upload.html

The best solution would be to get those jar published by Oo.org themselve.
Did you try to contact them for this ? You may sugget your home mades 
POMs to openoffice developpers for approval prior to creating an upload 
request. Notice those POMs are not required to be used to build the 
artifact, they only need to describe them, so Oo.org developer don't 
have to migrate there build process to be maven compliant.


Nico.


Mirko Nasato a écrit :

Hi all,

I'm moving the JOOReports and JOOConverter 
(http://jooreports.sourceforge.net) open source projects to a 
maven2-based build, with an eye to publishing the artifacts to a 
public repository.


The migration was very easy thanks to the excellent documentation, 
especially Better Builds with Maven.


Now for the issue.   JOOConverter converts between different document 
formats using OpenOffice.org automation.  To do so it depends on some 
jars provided by OpenOffice.org.  These jars are included in any 
OpenOffice.org installation.  They aren *not* available in any public 
maven repository.  I've raised an issue with the OOo team asking them 
to publish the jars but I'll be very surprised if they actually listen 
to that request.


I'd like some advice on how to declare them as dependencies, so that 
projects that in turn depends on JOOConverter will get them as 
transitive dependencies with minimum effort.  Options I see are


1. install OOo jars manually on the local m2 repo with mvn 
install:install-file; users will have to do the same; or


2. declare OOo jars as system dependencies, e.g.

   dependency
 groupIdorg.openoffice/groupId
 artifactIdunoil/artifactId
 version2.0/version
 scopesystem/scope
 
systemPath${openoffice.home}/program/classes/unoil.jar/systemPath

   /dependency

 and have users pass

  mvn -Dopenoffice.home=/path/to/their/openoffice ...

 (but system jars don't seem to get packaged e.g. in webapps)

A third (and probably the best) option would be to publish these jars 
under the JOOConverter groupId, but I'm not sure I'm allowed to do 
this since I'm not the author.


Thanks

Mirko


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



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



RE: [m2] List of All Dependencies for any project X

2006-11-13 Thread Peter . Pilgrim
 -Original Message-
 From: Mark Hobson [mailto:[EMAIL PROTECTED] 
====
 
 On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Ok when I try running `mvn project-info-reports:dependencies' on my 
  client's own project I don't see this grand total view.
  I can see only the dependencies relevant to the current 
 project that I 
  am in, even it is the (root) master project.
  (e.g. the daytrader/pom.xml). Is it making sense now?
 
 Right, I see.  This is what the latest dependency report does 
 in fact display.  Check the example report:
 

http://maven.apache.org/plugins/maven-project-info-reports-plugin/depend
encies.html
 
This is the correct report

 It shows the immediate dependencies (Project Dependencies); 
 all transitive dependencies (Project Transitive Dependencies) 
 (what you require I believe); and the dependency tree 
 (Project Dependency Graph).

Excellent. This is what I really want.

 
 If you're not seeing that maybe you're running an old version?
 

Running `mvn -U project-info-reports:dependencies'. Does not get the
latest
version. Where is the latest version in the SVN tree? And is the one in 
SVN actually working now?

Cheers

  Wrong flag (twice in one day, huh)
 
  du -s /usr/src
 
 Heh, I get you now.
 
--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::
 

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: Advice for 3rd party deps not in public repos

2006-11-13 Thread Mirko Nasato

Hi Nicolas,

Nicolas DE LOOF wrote:


The best solution would be to get those jar published by Oo.org 
themselve.
Did you try to contact them for this ? You may sugget your home mades 
POMs to openoffice developpers for approval prior to creating an 
upload request. Notice those POMs are not required to be used to build 
the artifact, they only need to describe them, so Oo.org developer 
don't have to migrate there build process to be maven compliant.


I agree that it would be the best solution.  As I mentioned I did raise 
an issue with the OOo team


 http://www.openoffice.org/issues/show_bug.cgi?id=71358

but honestly I don't really expect them to do it.  They seem to be quite 
slow in responding to requests, and they probably give higher priority 
to improving OOo as a desktop application rather than as a tool that can 
be integrated in other (possibly server-side) applications.


I'll try submitting some POMs as you said, then wait a week or so and if 
they don't reply then ask for permission to publish the JARs myself.  If 
after that they still don't answer I'll just try and get them published 
anyway.  They're LGPL after all.


Thanks

Mirko




Mirko Nasato a écrit :

Hi all,

I'm moving the JOOReports and JOOConverter 
(http://jooreports.sourceforge.net) open source projects to a 
maven2-based build, with an eye to publishing the artifacts to a 
public repository.


The migration was very easy thanks to the excellent documentation, 
especially Better Builds with Maven.


Now for the issue.   JOOConverter converts between different document 
formats using OpenOffice.org automation.  To do so it depends on some 
jars provided by OpenOffice.org.  These jars are included in any 
OpenOffice.org installation.  They aren *not* available in any public 
maven repository.  I've raised an issue with the OOo team asking them 
to publish the jars but I'll be very surprised if they actually 
listen to that request.


I'd like some advice on how to declare them as dependencies, so that 
projects that in turn depends on JOOConverter will get them as 
transitive dependencies with minimum effort.  Options I see are


1. install OOo jars manually on the local m2 repo with mvn 
install:install-file; users will have to do the same; or


2. declare OOo jars as system dependencies, e.g.

   dependency
 groupIdorg.openoffice/groupId
 artifactIdunoil/artifactId
 version2.0/version
 scopesystem/scope
 
systemPath${openoffice.home}/program/classes/unoil.jar/systemPath

   /dependency

 and have users pass

  mvn -Dopenoffice.home=/path/to/their/openoffice ...

 (but system jars don't seem to get packaged e.g. in webapps)

A third (and probably the best) option would be to publish these jars 
under the JOOConverter groupId, but I'm not sure I'm allowed to do 
this since I'm not the author.


Thanks

Mirko


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



This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



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






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



Best practice for source-generating multiple archetype plugin

2006-11-13 Thread Tomas Carlsson

Hi,

We have a tool that given one input file generates code for different
purposes (currently j2me, j2se, ansi-c). I'm planning to write an m2 plugin
for this tool but I'm not really sure how to do it.

What I'm trying to achieve is to only have one copy of the original input
file and whenever it is changed there should be a simple build/release step
generating the result deliverables where the different types of deliverables
preferably has the same version number (ie. generated-j2me-1.0.jar, 
generated-j2se-1.0.jar, generated-ansi-c-1.0.zip)

My initial thought is to create a plugin that first generates sources for
the different purposes, then compiles them and lastly packages one archive
for each type.

I.e:
 1 input file = 3 generated source trees = 3 compiled classes tress =
3 packed archetypes

I'm seeing some trouble with this though:

1. It violates the maven philosophy of only having one archetype
2. The plugin seems to get quite complicated which I think should be
possible to avoid


Anyone having experience with this kind of setup? Any best practices out
there?


best regards
Tomas


Re: [m2] List of All Dependencies for any project X

2006-11-13 Thread Mark Hobson

On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Running `mvn -U project-info-reports:dependencies'. Does not get the
latest
version. Where is the latest version in the SVN tree? And is the one in
SVN actually working now?


The latest version is 2.0.1:

http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-project-info-reports-plugin/2.0.1/
http://maven.apache.org/plugins/maven-project-info-reports-plugin/
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-project-info-reports-plugin/

Mark

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



Re: Exclude modules from site

2006-11-13 Thread JC Walmetz

Hi,

I've tried several configuration 
artifactIdmaven-site-plugin/artifactId
   configuration

moduleExcludesmoduleExcludetransferobject.sdo.test/moduleExclude/moduleExcludes
  /configuration
This one is ignored, module is still in the test
artifactIdmaven-site-plugin/artifactId
   configuration
 moduleExcludestransferobject.sdo.test/moduleExcludes
  /configuration
This one return an error, moduleExcludes is waiting for a Map.

Page
http://maven.apache.org/plugins/maven-site-plugin/examples/moduleexcludes.html
looks to be wrong.

Going through plugin source code, it looks like the list of module to
exclude is send to doxia. I have not been able to find in doxia where
excluded modules are used ...

Suggetions are welcome 




dawn.angelito wrote:
 
 Hi JC,
 
 Have you tried using moduleExcludes instead? You may refer to:
 http://maven.apache.org/plugins/maven-site-plugin/site-mojo.html#moduleExcludes.
 
 Hope this helps.
 
 Dawn
 
 
 JC Walmetz wrote:
 
 I have a pom with several modules. I'd like to exclude some of the
 modules from the site.
 
 I have tried  the excludeModules optin as mentionned in the doc. It seems
 not to works. Modules are still in the generated site.
 build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-site-plugin/artifactId
 configuration
   excludeModulesfml/excludeModules
 /configuration
   /plugin
 /plugins
   /build
 
 What's wrong in my declaration ? Is it a bug ?
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Exclude-modules-from-site-tf2610656s177.html#a7317077
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Unsupported WTP version: 1.5

2006-11-13 Thread Minto van der Sluis

Hi,

Thanks for the answers. I not have the following in my pom:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.3-SNAPSHOT/version
configuration
  wtpversion1.5/wtpversion
/configuration
  /plugin

But it seems like maven is not able to find it in any of the following
repositories:

  repositories
repository
  snapshots
enabledtrue/enabled
updatePolicydaily/updatePolicy
  /snapshots
  idmaven2-snapshot-apache/id
  namemaven2-snapshot-apache/name
  urlhttp://people.apache.org/maven-snapshot-repository/url
/repository
repository
  snapshots
enabledtrue/enabled
updatePolicydaily/updatePolicy
  /snapshots
  idmaven2-snapshot-codehaus/id
  namemaven2-snapshot-codehaus/name
  urlhttp://snapshots.maven.codehaus.org/maven2/url
/repository
  /repositories

I even tried building it from trunk, but then I get complaints about other
plugins (maven-plugin-test-harness) it is not able to find.

Can anyone tell me where I can find a precompiled snapshot? Or maybe I have
done something wrong. 

Regards,

Minto



Stéphane Bouchet-3 wrote:
 
 You may use the 2.3-SNAPSHOT version of the eclipse plugin to have it to 
 work.
 
 Cheers,
 
 Stéphane.
 
 
 Minto van der Sluis a écrit :
 Hi all,

 I try to use the maven eclipse plugin for WTP 1.5. But it tells me it
 does
 not know WTP 1.5. What am I doing wrong?

 My pom looks like this:

   properties
 ejbversion2.0/ejbversion
 java13_home/opt/java/ibm-jdk-131//java13_home
   /properties

   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 version2.0/version
 configuration
   forktrue/fork
   compilerVersion1.3/compilerVersion
   executable${java13_home}/bin/javac/executable
 /configuration
   /plugin
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-eclipse-plugin/artifactId
 version2.2/version
 configuration
   wtpversion1.5/wtpversion
 /configuration
   /plugin
 /plugins
   /build

 Here is the message I get:

 [INFO] Preparing eclipse:eclipse
 [INFO] No goals needed for project - skipping
 [INFO] [eclipse:eclipse]
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Unsupported WTP version: 1.5. This plugin currently supports only
 the
 following versions: 1.0 R7 none.
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch

 Any clues? Am I missing dependancies? Even removing the eclipse version
 from
 the pom does not help.

 Kind regards,

 Minto van der Sluis
   
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Unsupported-WTP-version%3A-1.5-tf2620918s177.html#a7317187
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Unsupported WTP version: 1.5

2006-11-13 Thread Stéphane Bouchet
the eclipse plugin snapshot is hosted on apache. add these to your 
settings :


 repositories
   repository
 idapache.snapshots/id
 urlhttp://people.apache.org/maven-snapshot-repository//url
   /repository
 /repositories
 pluginRepositories
   pluginRepository
 idapache.snapshots/id
 urlhttp://people.apache.org/maven-snapshot-repository//url
   /pluginRepository
 /pluginRepositories


Cheers,

Stéphane.



Minto van der Sluis a écrit :

Hi,

Thanks for the answers. I not have the following in my pom:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.3-SNAPSHOT/version
configuration
  wtpversion1.5/wtpversion
/configuration
  /plugin

But it seems like maven is not able to find it in any of the following
repositories:

  repositories
repository
  snapshots
enabledtrue/enabled
updatePolicydaily/updatePolicy
  /snapshots
  idmaven2-snapshot-apache/id
  namemaven2-snapshot-apache/name
  urlhttp://people.apache.org/maven-snapshot-repository/url
/repository
repository
  snapshots
enabledtrue/enabled
updatePolicydaily/updatePolicy
  /snapshots
  idmaven2-snapshot-codehaus/id
  namemaven2-snapshot-codehaus/name
  urlhttp://snapshots.maven.codehaus.org/maven2/url
/repository
  /repositories

I even tried building it from trunk, but then I get complaints about other
plugins (maven-plugin-test-harness) it is not able to find.

Can anyone tell me where I can find a precompiled snapshot? Or maybe I have
done something wrong. 


Regards,

Minto



Stéphane Bouchet-3 wrote:
  
You may use the 2.3-SNAPSHOT version of the eclipse plugin to have it to 
work.


Cheers,

Stéphane.


Minto van der Sluis a écrit :


Hi all,

I try to use the maven eclipse plugin for WTP 1.5. But it tells me it
does
not know WTP 1.5. What am I doing wrong?

My pom looks like this:

  properties
ejbversion2.0/ejbversion
java13_home/opt/java/ibm-jdk-131//java13_home
  /properties

  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0/version
configuration
  forktrue/fork
  compilerVersion1.3/compilerVersion
  executable${java13_home}/bin/javac/executable
/configuration
  /plugin
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.2/version
configuration
  wtpversion1.5/wtpversion
/configuration
  /plugin
/plugins
  /build

Here is the message I get:

[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Unsupported WTP version: 1.5. This plugin currently supports only
the
following versions: 1.0 R7 none.
[INFO]

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

Any clues? Am I missing dependancies? Even removing the eclipse version
from
the pom does not help.

Kind regards,

Minto van der Sluis
  
  

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



SV: Best practice for source-generating multiple archetype plugin

2006-11-13 Thread Jonas Olsson
How about moving the input file into a dependency for the other three projects 
(each using the same plugin configured for one of its three modes)?
You end up with four projects instead of one, but it's maven compliant. Also 
you get the (unwanted in your case) option of having different versions if the 
plugin/underlying tool changes for one mode, but not the others.

/jonas 

-Ursprungligt meddelande-
Från: Tomas Carlsson [mailto:[EMAIL PROTECTED] 
Skickat: den 13 november 2006 14:17
Till: users@maven.apache.org
Ämne: Best practice for source-generating multiple archetype plugin

Hi,

We have a tool that given one input file generates code for different
purposes (currently j2me, j2se, ansi-c). I'm planning to write an m2 plugin
for this tool but I'm not really sure how to do it.

What I'm trying to achieve is to only have one copy of the original input
file and whenever it is changed there should be a simple build/release step
generating the result deliverables where the different types of deliverables
preferably has the same version number (ie. generated-j2me-1.0.jar, 
generated-j2se-1.0.jar, generated-ansi-c-1.0.zip)

My initial thought is to create a plugin that first generates sources for
the different purposes, then compiles them and lastly packages one archive
for each type.

I.e:
  1 input file = 3 generated source trees = 3 compiled classes tress =
3 packed archetypes

I'm seeing some trouble with this though:

 1. It violates the maven philosophy of only having one archetype
 2. The plugin seems to get quite complicated which I think should be
possible to avoid


Anyone having experience with this kind of setup? Any best practices out
there?


best regards
Tomas


This e-mail has been scanned for viruses by http://www.virus112.se


Detta e-mail har blivit undersökt av http://www.virus112.se


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



Re: Exception while registering Interceptor class pssForceAdminUserInterceptor

2006-11-13 Thread Erik Ruisma

Seems like some update have been submitted to the archiva project I got it
up and running know:
As mentionned on the site Deploying in Plexus is broken at the moment.

This works fine for me:

  - cd archiva-webapp
  - mvn jetty:run




On 11/9/06, Erik Ruisma [EMAIL PROTECTED] wrote:


Hello,

I've followed the archiva installation instruction as described on:
http://maven.apache.org/archiva/guides/getting-started/index.html

However I keep getting the same errors over and over.

The first problem I encountered was when running plexus.bat (I'm on
Windows XP), which resulted in:
- Error 500 Unable to compile class for JSP
I figured out quite quickly I had to add tools.jar to %archiva_home%\core,
which solves that problem.
Remark (when using %archiva_home%\bin\win32\run.bat I don't need the
tools.jar).

With both run.bat and plexus.bat (and also installed with tomcat) I always
get the following stacktrace:

Error 404 Caught Exception while registering Interceptor class
pssForceAdminUserInterceptor
HTTP ERROR: 404 Caught Exception while registering Interceptor class
pssForceAdminUserInterceptor
RequestURI=/index.action

This results in an enormous log file (see bottom). The cause of this all
seems to be:
Caused by: org.codehaus.plexus.component.composition.CompositionException:

Component Composition failed.
No field of name: 'config' exists in component: role: '
org.codehaus.plexus.security.policy.UserSecurityPolicy',
implementation: '
org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy', role hint:
'default'

How can I fix this?
I already cleaned my local repository, but I got the same exception again.
Any help would be appreciated.

Thanks,
Erik




C:\javadev\tools\archiva\1.0.0-SNAPSHOT\bin\win32 run.bat
wrapper  | -- Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1| Wrapper (Version 3.1.2) http://wrapper.tanukisoftware.org
jvm 1|
jvm 1| [INFO] Loading on start [role,roleHint]: [
org.codehaus.plexus.naming.Naming,dataSources]
jvm 1| [INFO] Services will be deployed in: '..\..\services'.
jvm 1| [INFO] Applications will be deployed in: '..\..\apps'.
jvm 1| [INFO] Service Supervisor is deploying
plexus-appserver-service-jetty-2.0-alpha-3.
jvm 1| [INFO] Removing old service.
jvm 1| [INFO] Loading on start [role,roleHint]: [
org.codehaus.plexus.appserver.service.PlexusService ,jetty]
jvm 1| 09-Nov-2006 12:40:54 org.mortbay.http.HttpServer doStart
jvm 1| INFO: Version Jetty/5.1.10
jvm 1| 09-Nov-2006 12:40:54 org.mortbay.util.Container start
jvm 1| INFO: Started [EMAIL PROTECTED]
jvm 1| [INFO] Application Supervisor is deploying
archiva-plexus-application-1.0-SNAPSHOT.
jvm 1| [INFO] Application 'archiva' already extracted.
jvm 1| [INFO] Deploying application 'archiva' at
'C:\javadev\tools\archiva\1.0.0-SNAPSHOT\apps\archiva'.
jvm 1| [INFO] Using application configurator file
..\..\apps\archiva\conf\application.xml.
jvm 1| [INFO] Using appDir = ..\..\apps\archiva
jvm 1| [INFO] Deploying
C:\javadev\tools\archiva\1.0.0-SNAPSHOT\apps\archiva\webapp with context
path of /
jvm 1| [INFO] Using standard webapp classloader for webapp.
jvm 1| [INFO] Deploying appserver 'archiva'.
jvm 1| [INFO] Adding HTTP listener on *:8080
jvm 1| 09-Nov-2006 12:40:55 org.mortbay.http.SocketListener start
jvm 1| INFO: Started SocketListener on 0.0.0.0:8080
jvm 1| [INFO] Starting Jetty Context /
jvm 1| 09-Nov-2006 12:40:55 org.mortbay.util.FileResource clinit
jvm 1| INFO: Checking Resource aliases
jvm 1| 09-Nov-2006 12:40:55 org.mortbay.xml.XmlParser init
jvm 1| WARNING: Schema validation may not be supported
jvm 1| 09-Nov-2006 12:40:55 org.mortbay.util.Container start
jvm 1| INFO: Started
[EMAIL PROTECTED]
jvm 1| 09-Nov-2006 12:40:55
org.mortbay.jetty.servlet.ServletHandler$Context log
jvm 1| INFO: Loading plexus context properties from:
'/WEB-INF/plexus.properties'
jvm 1| 09-Nov-2006 12:40:55
org.mortbay.jetty.servlet.ServletHandler$Context log
jvm 1| INFO: Could not load plexus context properties from:
'/WEB-INF/plexus.properties'
jvm 1| 2006-11-09 12:40:56,047 [WrapperSimpleAppMain]
INFO  PlexusContainer- Loading on start [role]: [
org.apache.maven.archiva.scheduler.RepositoryTaskScheduler]
jvm 1| 2006-11-09 12:40:56,312 [WrapperSimpleAppMain]
INFO  RAMJobStore- RAMJobStore initialized.
jvm 1| 2006-11-09 12:40:56,312 [WrapperSimpleAppMain]
INFO  StdSchedulerFactory- Quartz scheduler 'defaultScheduler'
initialized from an externally provided properties instance.
jvm 1| 2006-11-09 12:40:56,312 [WrapperSimpleAppMain]
INFO  StdSchedulerFactory- Quartz scheduler version: 1.4.5
jvm 1| 2006-11-09 12:40:56,312 [WrapperSimpleAppMain]
INFO  QuartzScheduler- Scheduler
defaultScheduler_$_NON_CLUSTERED started.
jvm 1| 2006-11-09 12:40:56,750 [WrapperSimpleAppMain]
WARN  ConfigurationStore  

Re: Newbie help needed with Eclipse project

2006-11-13 Thread Adam Hardy

Marco Mistroni wrote:

Hi rick,
try this link

http://blogs.unixage.com/blojsom/blog/adam.kruszewski/eclipse/?permalink=Maven2-Eclipse-plugin-with-latest-WTP-from-callisto-update-site.html 




looks like an 'updated version' of maven2 plugin for eclipse...

i m using it too.. even though i m running mvn from command line

btw, since i m here, for anyone who runs maven via eclipse, where do you
specify the profile? in the command line argument of the external task
launched for running mvn?


Can do, but I've never had the need to. I guess you could try making the 
profile active in profiles.xml too.


This m2eclipse helper plugin does what mvn war:inplace does already surely?

Do you use an embedded servlet container inside eclipse?

I don't, I just point tomcat at the web directory in my source and I 
don't try building the war from eclipse.


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



RE: [m2] List of All Dependencies for any project X

2006-11-13 Thread Peter . Pilgrim


 

 -Original Message-
 From: Mark Hobson [mailto:[EMAIL PROTECTED] 
 Sent: 13 November 2006 13:34
 To: Maven Users List
 Subject: Re: [m2] List of All Dependencies for any project X
 
 On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Running `mvn -U project-info-reports:dependencies'. Does 
 not get the 
  latest version. Where is the latest version in the SVN tree? And is 
  the one in SVN actually working now?
 
 The latest version is 2.0.1:
 
 http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-p
 roject-info-reports-plugin/2.0.1/
 http://maven.apache.org/plugins/maven-project-info-reports-plugin/
 http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-proj
 ect-info-reports-plugin/
 
Guess I must be missing something elementary here with report set up,
because I definitely have the latest 2.0.1 on my machine. Unfortunately
I don't see the aggregate view for all the sub projects at all.

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



customize email notification

2006-11-13 Thread raghurajan . x . gurunathan
Is there a way to customize the email notification sent from continuum??





Thanks,
Raghurajan Gurunathan



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


Re: How does Continuum launch a build process?

2006-11-13 Thread Emmanuel Venisse
mvn is launched by Continuum by using mvn command and the build definition define on your project, 
by default is '-N clean install'. So continuum build the project with this command 'mvn -N clean 
install'


For your problem, it's possible you don't have a display on your server.

Emmanuel

Binil Thomas a écrit :

Hi all,

I am using Maven2+Continuum1.0.3+Win2K. I have some automated GUI tests for
my project. In my tests, I take a screenshot of every step using
java.awt.Robot.createScreenCapture
(http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Robot.html#createScreenCapture(java.awt.Rectangle).

When I run the tests from my desktop, the screen shots work fine. When I run
the tests from the CI server, all my screenshots turn return back images.

My Continuum instance was installed as a service, so I thought that might be
the problem. I uninstalled the service and ran Continuum from the command
prompt. Still I was getting the images as black.

I would like to verify the java command line settings used to launch the mvn
process. Where should I look for this? Any tips?

Thanks,
Binil




RE: customize email notification

2006-11-13 Thread Artamonov, Juri
Not in 1.0.3. I believe continuum developers will introduce this in 1.1
and make them based on templates.

Best regards,
Juri.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, November 13, 2006 5:00 PM
To: continuum-users@maven.apache.org
Subject: customize email notification


Is there a way to customize the email notification sent from continuum??





Thanks,
Raghurajan Gurunathan



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


ZQ: Parent POM version

2006-11-13 Thread Rahamim, Zvi \(Zvi\)
Hi,
In case I have a project with pom.xml with a parent.
I want that this pom.xml will use the latest version of the parent (so
that in case there is a change in the dependencies of the parent, I
won't have to change pom.xml, but only the parent).
How can I do it?
Thanks!

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



Re: [m2] List of All Dependencies for any project X

2006-11-13 Thread Mark Hobson

On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Guess I must be missing something elementary here with report set up,
because I definitely have the latest 2.0.1 on my machine. Unfortunately
I don't see the aggregate view for all the sub projects at all.


Subprojects.. right, so you're running this as a pom project.  I
haven't tried to use the report under multi-module builds, so not sure
how aggregation would work.  Anyone else know much about this?

Mark

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



Re: Setting up a new jre to maven

2006-11-13 Thread Wayne Fay

We already did. There were 5 responses to your original email sent on Friday.

Wayne

On 11/13/06, Allan Valeriano [EMAIL PROTECTED] wrote:

Hi all,


I'm having problems setting up a new jre to run mvn install.
My default java version is 1.4.2_11, but I need maven to use jre 5 for it.
I've read the FAQ, but I must say the example for it is not really helpful.
Could somebody give me a hand on this sending a complete example?


thanks in advance
Allan Valeriano




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



RE: [m2] List of All Dependencies for any project X

2006-11-13 Thread Peter . Pilgrim


 -Original Message-
 From: Mark Hobson [mailto:[EMAIL PROTECTED] 
 Sent: 13 November 2006 15:31
 To: Maven Users List
 Subject: Re: [m2] List of All Dependencies for any project X
 
 On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Guess I must be missing something elementary here with 
 report set up, 
  because I definitely have the latest 2.0.1 on my machine. 
  Unfortunately I don't see the aggregate view for all the 
 sub projects at all.
 
 Subprojects.. right, so you're running this as a pom project. 
  I haven't tried to use the report under multi-module builds, 
 so not sure how aggregation would work.  Anyone else know 
 much about this?

Would a dummy project with a fake artifact work? I wonder ... 
--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: [M1] AspectJ with two source trees (main/src main/test)

2006-11-13 Thread diyfiesta

So, looking into this more (and having created a simple example project to
demonstrate it), it looks like the the aspectj plugin is compiling things
correctly, its just that the tests are being run from the incorrect place.

So, for example, the output of the aspectj compilation goes into

target/classes/...

but the tests run from a folder called 

target/test-classes/... 

which has the compiled test code, but not the aspectj compiled code. So, if
a test is affected by an aspect, it isn't in this folder.


diyfiesta wrote:
 
 Hi,
 
 Thanks for the note, I tried this but still don't have any luck, for
 example, I'm using the convention main/src/java and main/src/test for my
 source trees, so adding an src/aspectj folder doesn't really fit in, if I
 add it to main/src/aspectj, I get the same problem (and just for
 completness, setting it to src/aspectj causes is the same!).
 
 From the plugin's homepage, I didn't get the impression that setting the
 soruce directiory to src/aspectj was a requirement more of an example, and
 you should be able to set this to whatever your folder is. Is this not the
 case?
 
 I think I'll have a go at creating a simple test project that demonstrates
 the problem, see if I can get some feedback.
 
 Any other ideas?
 
 Cheers
 
 
 Alexandre Touret wrote:
 
 Hello,
 There are 2 builds : the classes and test classes.
 If you specify the aspectsourcedirectory in src/java, aspectj doesn t 
 parse any file in src/test. Its the default behaviour
 I can suggest you to put all the aspects file have in 
 ${maven.src.dir}/aspectj (as described in the plugin homepage). I 
 suppose this directory is accessible in both the build classpaths and  
 test classpath.
 
 Hope this helps.
 Alexandre
 
 Toby Weston wrote:
 Hi Folks,
 [...]
 I've got my source code under main/src and the unit tests under
 main/test, however I can't get aspectj compiling both. I added this to
 my project.xml hoping it would pick up both, but it doesn't seem to,,,

aspectSourceDirectorymain/src/java/aspectSourceDirectory
aspectSourceDirectorymain/test/java/aspectSourceDirectory

 I'm kind of not confident I know the correct process, so may be doing
 something really silly. I was thinking that the pregoal for compile to
 run the aspectj compiler would apply my aspects to the code that they
 affect? After running this though, my unit tests confirm that the
 aspect isn't applied, and if I reverse engineer the test code, there
 is no aspect code in there (and there is if I do a normal eclipse
 aspectj compile).

 So, for some reason, its not applying my aspects to test code in the
 second source tree... :(

 Cheers,
 Toby

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

-- 
View this message in context: 
http://www.nabble.com/-M1--AspectJ-with-two-source-trees-%28main-src---main-test%29-tf2556159s177.html#a7319470
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: [m2] List of All Dependencies for any project X

2006-11-13 Thread Peter . Pilgrim

No. It wont work at all

 -Original Message-
 From: Mark Hobson [mailto:[EMAIL PROTECTED] 
 Sent: 13 November 2006 15:31
 To: Maven Users List
 Subject: Re: [m2] List of All Dependencies for any project X
 
 On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Guess I must be missing something elementary here with 
 report set up, 
  because I definitely have the latest 2.0.1 on my machine. 
  Unfortunately I don't see the aggregate view for all the 
 sub projects at all.
 
 Subprojects.. right, so you're running this as a pom project. 
  I haven't tried to use the report under multi-module builds, 
 so not sure how aggregation would work.  Anyone else know 
 much about this?
 

[INFO] Scanning for projects...
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).


Project ID: com.ubs.firc.ptsp.faketop:faketop
POM Location: V:\pilgripe_PTSP1_2\LDN_PTS\build\faketop\pom.xml
Validation Messages:

[0]  Packaging 'jar' is invalid. Aggregator projects require 'pom'
as packaging.

Reason: Failed to validate POM
--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::
 

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: [m2] eclipse:eclipse and checkstyle nature

2006-11-13 Thread Daniel Kulp


On Wednesday November 08 2006 4:31 pm, Barrie Treloar wrote:
 I found one post here
 http://www.nabble.com/forum/ViewPost.jtp?post=2165470framed=yskin=177
 which discussed creating the buildcommand, projectnature and
 additional .checkstyle file needed for configuring checkstyle in
 eclipse but this has yet made it back to the community.

 I can configure the checkstyle using the following:
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-eclipse-plugin/artifactId
   configuration
 downloadSourcestrue/downloadSources
 additionalBuildcommands
   buildcommand
 com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder
   /buildcommand
 /additionalBuildcommands
 additionalProjectnatures
   projectnature
 com.atlassw.tools.eclipse.checkstyle.CheckstyleNature
   /projectnature
 /additionalProjectnatures
   /configuration
 /plugin

 But I also need the ${project}/.checkstyle file.

 Anyone have recommendations on how to do this?
 Should eclipse:eclipse be extended to support this?
 Should eclipse:checkstyle be created instead?

We kind of ran into the same problem, but it's not limited to checkstyle.  
PMD also has the same issue.   We also wanted the ability to setup the 
workspace to set warning levels, code formats, import orders, etc

We ended up creating a -Psetup.eclipse profile that uses a combination 
of the eclipse plugin and antrun to completely get things setup.   
eclipse:eclipse handles the .classpath/.project stuff, but antrun creates 
the .pmd, .ruleset, .checkstyle files as well as creates the workspace, 
injects code formats into the workspace, adds the checkstyle.xml file 
into the workspace (with the correct name), etc

Anyway, you can see what we did at:
http://svn.apache.org/repos/asf/incubator/cxf/trunk/pom.xml


-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727C: 508-380-7194   F:781-902-8001
[EMAIL PROTECTED]

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



Re: Unknown file status: 'S' in line Skipped '.'.

2006-11-13 Thread thenew05

What seems to be happening is that the parent is throwing the error/warning
then it skips the update for
all the child projects?

Is there a way to get pass this?
Or is this a known problem?

Thanks

On 11/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


The problem is that the build passes, because the src code is not being
updated.
So, I ran the command from manually, and I narrowed it down to this
command.

Thanks,

On 11/12/06, Max Cooper [EMAIL PROTECTED] wrote:

 I don't know why your build failed, but this table of file/dir statii
 from the Subversion Book may help you figure it out:

 
http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.tour.cycle.examine.status

 Maybe the svn repo specified on the maven command line does not match
 the repo (in a precise, I'm a computer, and I demand precision kind of

 way) that was used to check out the working directories? It isn't clear
 to me how that would switch your working dirs, but the fact that you
 have to specify the repo when running the command raises a red flag to
 me in terms of it's consistent use over time.

 You might try 'svn stat' to see what the subversion status of your
 working directory tree is.

 -Max

 On Sun, 2006-11-12 at 14:40 -0600, [EMAIL PROTECTED] wrote:
  I am running :
 
  mvn 2.0.4
  JDK 1.5
  subversion
 
  Multiple project structure!
 
  *Why does this build has a SUCCESSFUL status? It did not do an
 update?*
  *Is there something wrong with my pom.xml? This did work back in July
 2006!*
  **
  **
  Parent pom.xml
|
| Child pom.xml
 
  If am trying to do a scm:update
 
  mvn scm:update
  -DconnectionUrl=scm:svn:svn://csspap/CSS_JAVA_DEVELOPMENT/trunk
 
  [INFO] Scanning for projects...
  [INFO] Reactor build order:
  [INFO]   CSS JAVA APPLICATIONS  *-- Parent*
  [INFO]   OPER_MET*---
  Child*
  [INFO] Searching repository for plugin with prefix: 'scm'.
  [INFO]
 
 

  [INFO] Building CSS JAVA APPLICATIONS
  [INFO]task-segment: [scm:update] (aggregator-style)
  [INFO]
 
 
  [INFO] [scm:update]
  [INFO] Executing: svn --non-interactive update
  [INFO] Working directory: /usr2/local/builds/CSS_JAVA_DEV/projects
  [INFO] Unknown file status: 'S' in line Skipped'.'.
 *--- This is the issue I believe*
  [INFO] Storing revision in 'scm.revision' project property.
  [INFO]
 
 
  [INFO] BUILD SUCCESSFUL
  [INFO]
 
 
  [INFO] Total time: 5 seconds
  [INFO] Finished at: Fri Nov 10 16:27:38 CST 2006
  [INFO] Final Memory: 6M/225M
  [INFO]
 
 
 
  *But this does not update the any of the src directories!*
  *PARENT POM.XML*
  **
  ?xml version=1.0 encoding=UTF-8?
  project
  modelVersion 4.0.0/modelVersion
   groupIdcom.weenergies.development/groupId
   artifactIdJavaDev/artifactId
   version1.0-SNAPSHOT/version
   packagingpom/packaging
   nameCSS JAVA APPLICATIONS/name
   description
 This is our main pom.xml. This file ^M
 will control the sub-modules for builds, ^M
  test and deploy. This main project will provide
  the basic values that will be passed to sub-modules.
  /description
  pluginRepositories
   pluginRepository
idibiblio.net /id
urlhttp://www.ibiblio.net/pub/packages/maven2/url
   /pluginRepository
  /pluginRepositories
   properties
 war.deploy/usr2/local/jboss-4.0.3SP1
  /server/JTEST/deploy//war.deploy
   /properties
   modules
 moduleOPER_MET/module
   /modules
   dependencies
 dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
   scopetest/scope
 /dependency
 dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
 version 1.2.13/version
 scopecompile/scope
 /dependency
   /dependencies
   build
   plugins
   /plugins
   /build
  distributionManagement
   site
 idwebsite/id
 urlfile:///usr2/local/jboss-4.0.3SP1/server/JSTAGE/deploy/Reports.war/
  /url
   /site
  /distributionManagement
  /project
 
  *CHILD POM.XML*
 
 
  ?xml version=1.0 encoding=UTF-8?
  project
   parent
   groupIdcom.weenergies.development/groupId
   artifactIdJavaDev/artifactId
   version1.0-SNAPSHOT/version
   /parent
   modelVersion4.0.0/modelVersion
   groupIdcom.weenergies.development.tools/groupId
   artifactIdOPER_MET/artifactId
   packagingwar/packaging
   version1.0-SNAPSHOT/version
   nameOPER_MET/name
   descriptionThis will configure the Operating Metrics Web
  Application!/description
   pluginRepositories
 
  

continuum build project more than once

2006-11-13 Thread Wierschke Robert

hi,

why does continuum build my projects multiple times (up to 31) when i click on 
build now???


robert


Re: Test : preventing expected stack trace in the console

2006-11-13 Thread Mirko Nasato

Same problem here.

dawn.angelito wrote:

Try using the --quiet option. It will change the logging level to ERROR.

  

The --quiet option doesn't seem to exist in Maven 2.0.4

$ mvn --quiet test
Unable to parse command line options: Unrecognized option: --quiet
...

I've also tried the redirectOutputToFile option but it doesn't make a 
difference.**


Other ideas?

Thanks

Mirko


Wim Deblauwe wrote:
  

I already posted the same question a few days ago, but no answer yet.
Maybe
we should file a bug on this? It is annoying when converting to Maven
2,you
don't get the same functionality.

regards,

Wim

2006/11/11, Olivier Catteau [EMAIL PROTECTED]:


Hi,

I have a lot of unit tests in my app. When the tests runs, I see numerous
expected stack traces logged in the console and at the end I get a normal
Build Successful (but the first impression is that it failed).
I would like that these expected stack traces don't appear in the console
(in maven1, these traces wasn't logged). Is it possible ?

Thanks.
Olivier


  



  



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



RE: [m2] List of All Dependencies for any project X

2006-11-13 Thread Peter . Pilgrim


 

 -Original Message-
 From: Mark Hobson [mailto:[EMAIL PROTECTED] 
 Sent: 13 November 2006 15:31
 To: Maven Users List
 Subject: Re: [m2] List of All Dependencies for any project X
 
 On 13/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Guess I must be missing something elementary here with 
 report set up, 
  because I definitely have the latest 2.0.1 on my machine. 
  Unfortunately I don't see the aggregate view for all the 
 sub projects at all.
 
 Subprojects.. right, so you're running this as a pom project. 
  I haven't tried to use the report under multi-module builds, 
 so not sure how aggregation would work.  Anyone else know 
 much about this?
 
Well I can see a use-case where we need to get this list project
(sub-project) 
of dependencies in some thing other than HTML, e.g. CSV or simply a text
file in
some format.

Then we need to feed this file into a `correlation engine' for
a Maven Mirror. This engine would tell I have the dependency X here
but I don't have the dependency Y here at all.

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Ignore CVS-directories in Eclipse builds of a Maven 2 project

2006-11-13 Thread Robin de Silva Jayasinghe

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi folks!

I have the following problem with a Maven 2 project:

My project is in a CVS repository and the target-dir is excluded from  
CVS via .cvsignore. As long as I build with Maven everything is fine.  
When I generate a Eclipse project out of this and import it in my  
workspace I run into the problem that Eclipse builds the sources to  
the target target. Sadly the CVS -directories from src are not  
excluded from target. After the build the target directories contain  
CVS directories and confuse the CVS syncronization of Eclipse. Now  
Eclipse thinks that it wants to add the target-directories CVS  
although I specified them in the .cvsignore.
When I add an exclusion pattern (CVS) for each source-directory in  
the project properties of Eclipse manually then Eclipse behaves fine  
while syncronization with CVS. My question is if it is possible to  
define those exclusion patterns in POM that is reflected in a  
generated Eclipse project. I attached the pom.xml for this project.


Best Regards,
Robin

- --
Robin de Silva Jayasinghe
[EMAIL PROTECTED]



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFFWJ5tJWhj7CIqBXkRAqsMAKCidohImCquDRBGX6otsYErGlQnSACgoehF
eBgpKV3TcrZ77M25Wf8Jf5A=
=IHsw
-END PGP SIGNATURE-

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



Re: Setting up a new jre to maven

2006-11-13 Thread Allan Valeriano

Sorry about it. I had some problems with my subscription, so I didn't
receive any response.
I found them at the mail archive, but I'm still having the same problem.
=(


I put the tag Julio S.G. suggested in the pom.xml of my project's packaging
pom because it's multimodule


project
  build
plugins
  plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
/configuration
  /plugin
/plugins
  /build
/project



Then I tried to insert this tag Eric Redmond suggested too:

  project

  build
 plugins
plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
   source1.5/source
   target1.5/target
   verbosetrue/verbose
   forktrue/fork
   executable
   /usr/lib64/jvm/java-1.5.0-sun-1.5.0_06/bin
   /executable
   compilerVersion1.5/compilerVersion
   /configuration
/plugin
 /plugins
  /build
   /project



Any other ideas? I'm kind of stuck on this.
Should I put this tags in the pom.xml with the packaging jar or it's
correct to be in the pom?

thanks in advance,
Allan Valeriano

On 11/13/06, Wayne Fay  [EMAIL PROTECTED] wrote:


We already did. There were 5 responses to your original email sent on
Friday.

Wayne

On 11/13/06, Allan Valeriano [EMAIL PROTECTED] wrote:
 Hi all,


 I'm having problems setting up a new jre to run mvn install.
 My default java version is 1.4.2_11, but I need maven to use jre 5 for
it.
 I've read the FAQ, but I must say the example for it is not really
helpful.
 Could somebody give me a hand on this sending a complete example?


 thanks in advance
 Allan Valeriano



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




Definition of a custom archetype

2006-11-13 Thread Barbier-Accary Aurélien
Hi,

 

I try to define a custom j2ee archetype with spring, struts, hibernate, ...

I have an issue to define the sources and resources in the archetype.xml file :

sources

sourcesrc/main/java/**/* /source

/sources

 

resources

resourcesrc/main/resources/**/* /resource

resourcesrc/main/resources/**/* /resource

resourcesrc/main/webapp/**/* /resource

/resources

 

testSources

sourcesrc/test/java/**/*/source

/testSources

 

testResources

resourcesrc/test/resources/**/*/resource

/testResources

 

siteResources

resourcesrc/site/**/*/resource

/siteResources

 

When I use my archetype, there is an error:

Embedded error: Error merging velocity templates

D:\IGN\testarchetype\gestiocouches\src\main\java\fr\geoportail\**\*.txt 
(unknown path)

 

What's wrong ?

Thanks in advance.

Aurelien.



Re: Passing Maven Variable as a system property to the tests

2006-11-13 Thread Dan Tran

I think you got stucked with this, just like me.

File a jira againt surefire plugin to support Map as additional
configuration
( beside Properties) , that will solve all the problems.

-D



On 11/13/06, Binil Thomas [EMAIL PROTECTED] wrote:




dan tran wrote:

 ${basedir}/target could be the work around

 -D


I did not try this, but by replacing ${project.build.outputDirectory} with
${basedir}/target we end up shifting the problem of evaluating
${project.build.outputDirectory} with one of evaluating ${basedir} rt?
Also, using File f = new File(target) will get my the target directory,
but I wanted my test not to break if someone configures the output
directory
to be something other than target.

Thanks,
Binil
--
View this message in context:
http://www.nabble.com/Passing-Maven-Variable-as-a-system-property-to-the-tests-tf2600462s177.html#a7316114
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: Setting up a new jre to maven

2006-11-13 Thread Wayne Fay

You can put it in the parent pom project with complete configuration
etc, but then you also need to include a reference to the
compiler-plugin in the build section in each of your modules.

Wayne

On 11/13/06, Allan Valeriano [EMAIL PROTECTED] wrote:

Sorry about it. I had some problems with my subscription, so I didn't
receive any response.
I found them at the mail archive, but I'm still having the same problem.
=(


I put the tag Julio S.G. suggested in the pom.xml of my project's packaging
pom because it's multimodule

 project
   build
 plugins
   plugin
 artifactIdmaven-compiler-plugin/artifactId
 configuration
   source1.5/source
   target1.5/target
 /configuration
   /plugin
 /plugins
   /build
 /project


Then I tried to insert this tag Eric Redmond suggested too:

   project
   build
  plugins
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
verbosetrue/verbose
forktrue/fork
executable
/usr/lib64/jvm/java-1.5.0-sun-1.5.0_06/bin
/executable
compilerVersion1.5/compilerVersion
/configuration
 /plugin
  /plugins
   /build
/project


Any other ideas? I'm kind of stuck on this.
Should I put this tags in the pom.xml with the packaging jar or it's
correct to be in the pom?

thanks in advance,
Allan Valeriano

On 11/13/06, Wayne Fay  [EMAIL PROTECTED] wrote:

 We already did. There were 5 responses to your original email sent on
 Friday.

 Wayne

 On 11/13/06, Allan Valeriano [EMAIL PROTECTED] wrote:
  Hi all,
 
 
  I'm having problems setting up a new jre to run mvn install.
  My default java version is 1.4.2_11, but I need maven to use jre 5 for
 it.
  I've read the FAQ, but I must say the example for it is not really
 helpful.
  Could somebody give me a hand on this sending a complete example?
 
 
  thanks in advance
  Allan Valeriano
 
 

 -
 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: Advice for 3rd party deps not in public repos

2006-11-13 Thread Mirko Nasato

Mirko Nasato wrote:


I've raised an issue with the OOo team asking them to publish the 
jars but I'll be very surprised if they actually listen to that 
request.


Actually I have to take this back; seems like they'll let me maintain 
the OOo jars on ibiblio. :)


Best regards

Mirko


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



RE: Performance collapse when logged as admin

2006-11-13 Thread Samuel Langlois
Hello,

Can you please confirm that the issue is pinpointed and taken care of?

I apologize for sounding pushy, but I would really like to be sure that this 
performance issue will be corrected in the future (and
hopefully before we roll out in a few months!)

In case it matters, we indeed use Derby (as packaged in Maestro 1.1) and do not 
use any custom roles.
I don't understand your question about the project name.

Thanks for your time,

Samuel

 -Original Message-
 From: Jesse McConnell [mailto:[EMAIL PROTECTED]
 Sent: mardi 7 novembre 2006 14:55
 To: continuum-users@maven.apache.org
 Subject: Re: Performance collapse when logged as admin
 
 k, then my bet is its something up with that authz behavior there.
 
 do you have any custom roles?
 
 what is the name of the project in question?  (ie, The Doxia Project)
 you can make something up that follows the same naming structure
 
 thanks, and I'll try and nail this down in continuum
 jesse
 
 On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
  I believe the same that goes with Continuum, yea I suppose this is
  derby.
 
  -Original Message-
  From: Jesse McConnell [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 07, 2006 3:48 PM
  To: continuum-users@maven.apache.org
  Subject: Re: Performance collapse when logged as admin
 
 
  hm, that sounds to me like it would be an issue with the speed of authz
  activities on those pages, they had been really slow until I put in abit
  of per page caching in the session to speed it up...and it was a lot
  faster from then on...but this could be something related to that.
 
  what database are you guys using for this?  the derby one with the
  release?
 
  jesse
 
  On 11/7/06, Artamonov, Juri [EMAIL PROTECTED] wrote:
   Yes, I had the same and also I see th bug which not allowing me to
   start every created goal for project. I also decided to return to
   1.0.1.
  
   Best regards,
Juri.
  
   -Original Message-
   From: Samuel Langlois [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, November 07, 2006 12:28 PM
   To: continuum-users@maven.apache.org
   Subject: Performance collapse when logged as admin
  
  
   Hello,
  
   I find Continuum web console very slow, especially when logged as
   admin, and I think there is something wrong.
  
   For instance, to display the summary page of a project group
   containing 3 projects, it takes a few seconds when not logged in, and
   20s when logged as admin. For a project group containing 58 projects,
   it goes from 15s (which is already quite long...) to an amazing 130s
   when logged as admin.
  
   I use Continuum 1.0.3-maestro-1.1 with all default settings. I have
   the feeling (but cannot confirm) that the version shipped with Maestro
 
   1.0.1 did not show this problem. My server is a Pentium4, 1.5GHz under
 
   Fedora Core 5. Not really a speed king, but still... I recently
   upgraded it to 1Go RAM without much effect.
  
   Am I the only one in this situation?
   How can I help diagnose the problem further?
  
   Thanks for your help
  
   Samuel
  
  
  
 
 
  --
  jesse mcconnell
  [EMAIL PROTECTED]
 
 
 
 --
 jesse mcconnell
 [EMAIL PROTECTED]




Re: Unsupported WTP version: 1.5

2006-11-13 Thread Minto van der Sluis

Thanks, now it works.

Stupid me forgot all about the separate plugin repositories. :-)

regards,

Minto


Stéphane Bouchet-3 wrote:
 
 the eclipse plugin snapshot is hosted on apache. add these to your 
 settings :
 
   repositories
 repository
   idapache.snapshots/id
   urlhttp://people.apache.org/maven-snapshot-repository//url
 /repository
   /repositories
   pluginRepositories
 pluginRepository
   idapache.snapshots/id
   urlhttp://people.apache.org/maven-snapshot-repository//url
 /pluginRepository
   /pluginRepositories
 
 
 Cheers,
 
 Stéphane.
 
 
 
 Minto van der Sluis a écrit :
 Hi,

 Thanks for the answers. I not have the following in my pom:

   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-eclipse-plugin/artifactId
 version2.3-SNAPSHOT/version
 configuration
   wtpversion1.5/wtpversion
 /configuration
   /plugin

 But it seems like maven is not able to find it in any of the following
 repositories:

   repositories
 repository
   snapshots
 enabledtrue/enabled
 updatePolicydaily/updatePolicy
   /snapshots
   idmaven2-snapshot-apache/id
   namemaven2-snapshot-apache/name
   urlhttp://people.apache.org/maven-snapshot-repository/url
 /repository
 repository
   snapshots
 enabledtrue/enabled
 updatePolicydaily/updatePolicy
   /snapshots
   idmaven2-snapshot-codehaus/id
   namemaven2-snapshot-codehaus/name
   urlhttp://snapshots.maven.codehaus.org/maven2/url
 /repository
   /repositories

 I even tried building it from trunk, but then I get complaints about
 other
 plugins (maven-plugin-test-harness) it is not able to find.

 Can anyone tell me where I can find a precompiled snapshot? Or maybe I
 have
 done something wrong. 

 Regards,

 Minto



 Stéphane Bouchet-3 wrote:
   
 You may use the 2.3-SNAPSHOT version of the eclipse plugin to have it to 
 work.

 Cheers,

 Stéphane.


 Minto van der Sluis a écrit :
 
 Hi all,

 I try to use the maven eclipse plugin for WTP 1.5. But it tells me it
 does
 not know WTP 1.5. What am I doing wrong?

 My pom looks like this:

   properties
 ejbversion2.0/ejbversion
 java13_home/opt/java/ibm-jdk-131//java13_home
   /properties

   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 version2.0/version
 configuration
   forktrue/fork
   compilerVersion1.3/compilerVersion
   executable${java13_home}/bin/javac/executable
 /configuration
   /plugin
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-eclipse-plugin/artifactId
 version2.2/version
 configuration
   wtpversion1.5/wtpversion
 /configuration
   /plugin
 /plugins
   /build

 Here is the message I get:

 [INFO] Preparing eclipse:eclipse
 [INFO] No goals needed for project - skipping
 [INFO] [eclipse:eclipse]
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Unsupported WTP version: 1.5. This plugin currently supports
 only
 the
 following versions: 1.0 R7 none.
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch

 Any clues? Am I missing dependancies? Even removing the eclipse version
 from
 the pom does not help.

 Kind regards,

 Minto van der Sluis
   
   
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Unsupported-WTP-version%3A-1.5-tf2620918s177.html#a7322100
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Trying Quickly build Archiva

2006-11-13 Thread Peter . Pilgrim
Hi

Trying to build Archiva because there is no binaries available.

What are the correct repositories?


278K downloaded
Downloading:
https://maven-repository.dev.java.net/nonav/repository/commons-conf
iguration/jars/commons-configuration-1.3.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Error transferring file
  commons-configuration:commons-configuration:jar:1.3

from the specified remote repositories:
  codehaus.org (http://snapshots.repository.codehaus.org),
  central (http://repo1.maven.org/maven2),
  java.net (https://maven-repository.dev.java.net/nonav/repository),
  apache.snapshots
(http://people.apache.org/repo/m2-snapshot-repository),
  apache-snapshots (http://people.apache.org/maven-snapshot-repository),
  codehaus-snapshots (http://snapshots.repository.codehaus.org)
Path to dependency:
1) org.apache.maven.archiva:archiva-security:jar:1.0-SNAPSHOT
2)
org.codehaus.plexus.security:plexus-security-system:jar:1.0-alpha-6-S
NAPSHOT
3)
org.codehaus.plexus.security:plexus-security-configuration:jar:1.0-al
pha-6-SNAPSHOT
4) commons-configuration:commons-configuration:jar:1.3



[INFO]

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

[INFO] Total time: 1 minute 14 seconds
[INFO] Finished at: Mon Nov 13 17:21:47 GMT 2006
[INFO] Final Memory: 15M/27M
[INFO]


--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: Trying Quickly build Archiva

2006-11-13 Thread Wendy Smoak

On 11/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi

Trying to build Archiva because there is no binaries available.

What are the correct repositories?



Error transferring file
  commons-configuration:commons-configuration:jar:1.3


Did it happen more than once?  Commons Configuration should be
available [1], but Archiva does require several jars that aren't in
the public repositories, see this page for information:
  http://maven.apache.org/archiva/guides/getting-started/index.html

(And it has separate lists: http://maven.apache.org/archiva/mail-lists.html )

[1] 
http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/

--
Wendy

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



mvn2: Failed to validate POM error

2006-11-13 Thread Attila Mezei-Horvati
I have two projects. One is a jar, second is a war.
I run the 'mvn clean install' for the jar and works
fine. I can see the files installed in my local
.m2/repository.

The second project has the dependency on the first:

dependency
groupIdgroupId/groupId
artifactIdprojName/artifactId
versionversionNumber/version
/dependency

where projName is the jar projects id.

When I run 'mvn clean package' for this war project, I
get a warning at every phase which says:
POM for 'projname':compile  is invalid. It will be
ignored for artifact resolution. Reason: Failed to
validate POM. 

What is this supposed to mean? Is there anybody who
could give an advice where to look, how to identify
the issue?

thanks,
Attila


 

Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited

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



RE: Trying Quickly build Archiva

2006-11-13 Thread Peter . Pilgrim

 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
 Sent: 13 November 2006 18:22
====
 
 On 11/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Hi
 
  Trying to build Archiva because there is no binaries available.
 
  What are the correct repositories?
 
  Error transferring file
commons-configuration:commons-configuration:jar:1.3
 
 Did it happen more than once?  Commons Configuration should 
 be available [1], but Archiva does require several jars that 
 aren't in the public repositories, see this page for information:
http://maven.apache.org/archiva/guides/getting-started/index.html
 
 (And it has separate lists: 
 http://maven.apache.org/archiva/mail-lists.html )
 
 [1] 

http://repo1.maven.org/maven2/commons-configuration/commons-configuratio
n/1.3/

Hi Wendy
 
I download all of the software from the required page as described. The
sun jars.
I cant see what is wrong there. It happens more than once in build
Archive Security
Configuration project.


--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::
 

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: Setting up a new jre to maven

2006-11-13 Thread Aaron Metzger


Can anyone explain the rationale behind this behavior?

Why doesn't maven default to using the highest source and binary 
versions supported by the JVM with which Maven itself is executed with 
the configuration only required if you don't want that?


When the JDK reaches version 42.7, will Maven still default to 1.4?



Wayne Fay wrote:

You can put it in the parent pom project with complete configuration
etc, but then you also need to include a reference to the
compiler-plugin in the build section in each of your modules.

Wayne

On 11/13/06, Allan Valeriano [EMAIL PROTECTED] wrote:

Sorry about it. I had some problems with my subscription, so I didn't
receive any response.
I found them at the mail archive, but I'm still having the same problem.
=(


I put the tag Julio S.G. suggested in the pom.xml of my project's 
packaging

pom because it's multimodule

 project
   build
 plugins
   plugin
 artifactIdmaven-compiler-plugin/artifactId
 configuration
   source1.5/source
   target1.5/target
 /configuration
   /plugin
 /plugins
   /build
 /project


Then I tried to insert this tag Eric Redmond suggested too:

   project
   build
  plugins
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
verbosetrue/verbose
forktrue/fork
executable
/usr/lib64/jvm/java-1.5.0-sun-1.5.0_06/bin
/executable
compilerVersion1.5/compilerVersion
/configuration
 /plugin
  /plugins
   /build
/project


Any other ideas? I'm kind of stuck on this.
Should I put this tags in the pom.xml with the packaging jar or it's
correct to be in the pom?

thanks in advance,
Allan Valeriano

On 11/13/06, Wayne Fay  [EMAIL PROTECTED] wrote:

 We already did. There were 5 responses to your original email sent on
 Friday.

 Wayne

 On 11/13/06, Allan Valeriano [EMAIL PROTECTED] wrote:
  Hi all,
 
 
  I'm having problems setting up a new jre to run mvn install.
  My default java version is 1.4.2_11, but I need maven to use jre 5 
for

 it.
  I've read the FAQ, but I must say the example for it is not really
 helpful.
  Could somebody give me a hand on this sending a complete example?
 
 
  thanks in advance
  Allan Valeriano
 
 

 -
 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: Trying Quickly build Archiva

2006-11-13 Thread Wendy Smoak

On 11/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


I download all of the software from the required page as described. The
sun jars.
I cant see what is wrong there. It happens more than once in build
Archive Security
Configuration project.


The error you posted said it couldn't download commons-configuration
1.3, which is definitely available.  Are you still getting the same
error?  Does it download anything at all?

(At this point I start suspecting you're behind a proxy, because we've
seen numerous reports of problems when a proxy is involved.)

Sorry I can't help more, but Archiva builds fine here.

--
Wendy

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



Updating the super pom.xml

2006-11-13 Thread Prashanth Krishnamurthy

We recently moved the maven repository to a different
machine. Hence we updated the ftp url in the super
pom.xml, pointing to the new maven machine.

When I build the projects in continuum, they are all
still pointing to the ftp server on the old maven
machine. Shouldn't this sync up (perforce) during the
build process ? How to resolve this issue ? 

thanks
--Prashanth


 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


Re: mvn2: Failed to validate POM error

2006-11-13 Thread Eric Redmond

Does it actually say: POM for 'projname':compile? with 'projname' in
quotes? Note that all IDs are case sensitive also.

As a last resort, try deleting the offending project from your local
repository, then recompiling.

Eric

On 11/13/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote:


I have two projects. One is a jar, second is a war.
I run the 'mvn clean install' for the jar and works
fine. I can see the files installed in my local
.m2/repository.

The second project has the dependency on the first:

dependency
groupIdgroupId/groupId
artifactIdprojName/artifactId
versionversionNumber/version
/dependency

where projName is the jar projects id.

When I run 'mvn clean package' for this war project, I
get a warning at every phase which says:
POM for 'projname':compile  is invalid. It will be
ignored for artifact resolution. Reason: Failed to
validate POM. 

What is this supposed to mean? Is there anybody who
could give an advice where to look, how to identify
the issue?

thanks,
Attila





Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited

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





--
Eric Redmond
http://codehaus.org/~eredmond


test failure on trunk

2006-11-13 Thread Brian E. Fox
I'm trying to build the trunk and I get this test failure:
 
Test set: org.apache.maven.continuum.DefaultContinuumTest

---
Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 25.313
sec  FAILURE!
testAddMavenTwoProjectSet(org.apache.maven.continuum.DefaultContinuumTes
t)  Time elapsed: 6.953 sec   FAILURE!
junit.framework.AssertionFailedError: result.warnings.size expected:0
but was:1
 at junit.framework.Assert.fail(Assert.java:47)
 at junit.framework.Assert.failNotEquals(Assert.java:282)
 at junit.framework.Assert.assertEquals(Assert.java:64)
 at junit.framework.Assert.assertEquals(Assert.java:201)
 at
org.apache.maven.continuum.DefaultContinuumTest.testAddMavenTwoProjectSe
t(DefaultContinuumTest.java:75)

 
 
Is this a real problem or something wonky with my config?


Re: Best practice for source-generating multiple archetype plugin

2006-11-13 Thread Arnaud Bailly
Tomas Carlsson [EMAIL PROTECTED] writes:

 Hi,

 My initial thought is to create a plugin that first generates sources for
 the different purposes, then compiles them and lastly packages one archive
 for each type.

 I.e:
  1 input file = 3 generated source trees = 3 compiled classes tress =
 3 packed archetypes

 I'm seeing some trouble with this though:

 1. It violates the maven philosophy of only having one archetype
 2. The plugin seems to get quite complicated which I think should be
 possible to avoid


Hello Tomas, 

I wrote a code generation plugin that does different things, ie. have
different mojos. I do not think this is complicated as this seems to
be the norm. 

As for Q.1, I do not have any definitive answer but what I did in my
case was creating one subproject for each different generation process
with dependency on the model project. Then you can configure your
plugin to do one thing in each project before compile or anything
else, then generate one artifact per project which is compliant with
standard maven usage. 

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


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



Re: Trying Quickly build Archiva

2006-11-13 Thread Arnaud HERITIER

I deployed some days ago a snapshot of the webapp with some patchs applied
which aren't yet in the trunk :
http://people.apache.org/~aheritier/archiva/
http://jira.codehaus.org/browse/MRM-211
If it can help ...

Arnaud


On 11/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hi

Trying to build Archiva because there is no binaries available.

What are the correct repositories?


278K downloaded
Downloading:
https://maven-repository.dev.java.net/nonav/repository/commons-conf
iguration/jars/commons-configuration-1.3.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Error transferring file
  commons-configuration:commons-configuration:jar:1.3

from the specified remote repositories:
  codehaus.org (http://snapshots.repository.codehaus.org),
  central (http://repo1.maven.org/maven2),
  java.net (https://maven-repository.dev.java.net/nonav/repository),
  apache.snapshots
(http://people.apache.org/repo/m2-snapshot-repository),
  apache-snapshots (http://people.apache.org/maven-snapshot-repository),
  codehaus-snapshots (http://snapshots.repository.codehaus.org)
Path to dependency:
1) org.apache.maven.archiva:archiva-security:jar:1.0-SNAPSHOT
2)
org.codehaus.plexus.security:plexus-security-system:jar:1.0-alpha-6-S
NAPSHOT
3)
org.codehaus.plexus.security:plexus-security-configuration:jar:1.0-al
pha-6-SNAPSHOT
4) commons-configuration:commons-configuration:jar:1.3



[INFO]

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

[INFO] Total time: 1 minute 14 seconds
[INFO] Finished at: Mon Nov 13 17:21:47 GMT 2006
[INFO] Final Memory: 15M/27M
[INFO]


--
Peter Pilgrim
UBS Investment Bank,
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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




Re: mvn2: Failed to validate POM error

2006-11-13 Thread Attila Mezei-Horvati
Eric,

thanks for your reply. 
So far I couldn't get any closer to the issue. 
I already tried to delete from my local repo and then
reinstall. The error still occurs.  I checked the pom
itself in the installed package. It is valid xml and
seems as a valid pom file to me. 

This is the exact message:

[WARNING] POM for
'com.mycompany:myapp:pom:1.5-5007.0-QA0-SNAPSHOT:compile'
is invalid. It will be ignored for artifact
resolution. Reason: Failed to validate POM

To me this is a meaningless error message. I have no
idea what validation failed and where/why. It gives me
no help. Just frustration. If you have any hints,
please let me know.

thanks,
Attila



 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

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



maven stat cvs plugin

2006-11-13 Thread Kaukuntla, Sukumar - CO B
I have a NullPointerException with de plugin statcvs and I don´t known how
 to solve it...

 

Thanks,

Sukumar


The information contained in this email may be privileged, confidential or 
otherwise protected from disclosure.  All persons are advised that they may 
face penalties under state and federal law for sharing this information with 
unauthorized individuals.  If you received this email in error, please reply to 
the sender that you have received this information in error.  Also, please 
delete this email after replying to the sender.


RE: Deploy trunk on tomcat

2006-11-13 Thread Brian E. Fox
For the archives:

I was able to get 1.1-SNAPSHOT deployed on Tomcat 5.0 and MSSQL 2005. I 
configured the resources via the admin tool and it updated the server.xml file 
as follows (I was unsuccesfull in getting the resources defined in the 
continum.xml)
GlobalNamingResources
 ResourceParams name=jdbc/continuum
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value4/value
  /parameter
  parameter
namepassword/name
valuecontinuum/value
  /parameter
  parameter
nameurl/name
valuejdbc:jtds:sqlserver://machine:1433/continuum/value
  /parameter
  parameter
namedriverClassName/name
valuenet.sourceforge.jtds.jdbc.Driver/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
nameusername/name
valuecontinuum/value
  /parameter
/ResourceParams
ResourceParams name=jdbc/users
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value4/value
  /parameter
  parameter
namepassword/name
valuecontinuum-users/value
  /parameter
  parameter
nameurl/name
valuejdbc:jtds:sqlserver://machinem:1433/continuum/value
  /parameter
  parameter
namedriverClassName/name
valuenet.sourceforge.jtds.jdbc.Driver/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
nameusername/name
valuecontinuum-users/value
  /parameter
/ResourceParams 

Then in /conf/catalina/localhost/continuum.xml I have:

?xml version='1.0' encoding='utf-8'?
Context displayName=Continuum Webapp docBase=c:\continuum.war 
path=/continuum workDir=work\Catalina\localhost\continuum
  ResourceLink name=jdbc/continuum type=javax.sql.DataSource 
global=jdbc/continuum/
  ResourceLink name=jdbc/users type=javax.sql.DataSource 
global=jdbc/users/
/Context

I placed the war in the specified location and it gets extracted to webapps. (I 
could probably change this but haven't tried yet).

Then to make it work on mssql, I made the changes specified in: 
http://jira.codehaus.org/browse/CONTINUUM-697


-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 03, 2006 7:31 PM
To: continuum-users@maven.apache.org
Subject: RE: Deploy trunk on tomcat

Perfect, this is exactly what I needed. I would like to point this at a mssql 
database. This should be straightforward because I also have a jira instance 
pointed there and the configuration is also though the datasources. Are there 
any other known issues using mssql? 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Friday, November 03, 2006 3:24 PM
To: continuum-users@maven.apache.org
Subject: Re: Deploy trunk on tomcat

A sample tomcat 5.X conf is there : 
http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-webapp-test/src/test/tomcat5x/conf/Catalina/localhost/continuum.xml

Emmanuel

Brian E. Fox a écrit :
 I have seen some recent messages that indicate the trunk should work 
 on tomcat. I built the war and dropped it into tomcat but I'm getting 
 some exceptions that are related (i'm guessing) to data sources not 
 being setup. Any guidance would be appreciated.
  
 2006-11-02 13:34:35 StandardContext[/continuum]Exception sending 
 context initialized event to listener instance of class 
 org.codehaus.plexus.xwork.PlexusLifecycleListener
 org.jpox.exceptions.ConnectionFactoryNotFoundException: Connection 
 Factory java:comp/env/jdbc/continuum not found  at 
 org.jpox.AbstractPersistenceManagerFactory.lookupDataSource(AbstractPe
 rs
 istenceManagerFactory.java:175)
  at
 org.jpox.AbstractPersistenceManagerFactory.freezeConfiguration(Abstrac
 tP
 ersistenceManagerFactory.java:212)
  at
 org.jpox.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(Pe
 rs
 istenceManagerFactoryImpl.java:99)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
 av
 a:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
 or
 Impl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
 javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:534)
  at
 javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:478)
  at
 org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.doConfigure(Abs
 tr
 actConfigurableJdoFactory.java:108)
  at
 org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.configure(Abstr
 ac
 tConfigurableJdoFactory.java:75)
  at
 org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.getPersistenceM
 an
 agerFactory(AbstractConfigurableJdoFactory.java:43)
  at
 

Re: How to get path to artifact for a dependency in a plugin

2006-11-13 Thread pjungwir

Hi Joachim,

Some methods on MavenProject are deliberately limited to what you see in the
pom, and others contain computed values. getDependencies() and
getDependencyArtifacts() are the former type. Probably you want
getArtifacts(). That will give you a Set of Artifact objects which should
have the information you want.

Regards,
Paul



Joachim Van der Auwera wrote:
 
 I am writing a plugin where I need access to the jar file for a
 dependency.
 
 I have tried looping the dependencies to find this (from 
 MavenProject.getDependencies()), but the dependencies always seem to 
 have null as their getSystemPath() value.
 
 I have also tried checking the artifacts, but similarly, getFile() on 
 the artifacts is also always null...
 
 So, what is the proper way to find the path where the artifact can be
 found?
 
 Thanks for the help,
 Joachim
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-path-to-artifact-for-a-dependency-in-a-plugin-tf2579609s177.html#a7326788
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Setting up a new jre to maven

2006-11-13 Thread Arnaud Bailly
Wayne Fay [EMAIL PROTECTED] writes:

 You can put it in the parent pom project with complete configuration
 etc, but then you also need to include a reference to the
 compiler-plugin in the build section in each of your modules.

Hello,

I tried without adding the reference to compiler plugin in build
section of child project and it works ok.

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


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



Re: problem with provided scope

2006-11-13 Thread pjungwir

I believe that dependencyManagement does not actually add dependencies. It
just specifies which version should be used if a child adds that dependency.
So instead of using dependencyManagement, perhaps you should try
dependencies.

Paul




Joachim Van der Auwera wrote:
 
 Thanks for the help.
 
 I had at least two libraries with this problem, and one of them did not 
 have any transitive dependencies, the other one has. So unfortunely, it 
 cannot be just that.
 
 Any other ideas?
 
 Thanks for the help,
 Joachim
 
 Edwin Punzalan wrote:

 hmm... I'm pretty sure the provided scoped artifacts appear in the 
 compile phase... maybe what your project is missing are the transitive 
 dependencies of the provided artifact?

 Joachim Van der Auwera wrote:
 I am using maven 2.0.4

 In my project, I have some artifacts which are defined as provided 
 scope as these artifacts should not be included in the war file. So 
 far so good.

 However, once I change the scope, my project does not *compile* any 
 more as the artifacts seem to have disappeared from the compile 
 classpath as well.

 I have defined the scope in my global pom (in dependecyManagement 
 section) and the classes which reference these are in a module, where 
 the dependency is mentioned without scope (or version).

 What am I doing wrong?

 Thanks for the help,
 Joachim

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

-- 
View this message in context: 
http://www.nabble.com/problem-with-%22provided%22-scope-tf2579617s177.html#a7327408
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Setting up a new jre to maven

2006-11-13 Thread Wayne Fay

Then I have no idea why its not working for Aaron... ;-)

Wayne

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

Wayne Fay [EMAIL PROTECTED] writes:

 You can put it in the parent pom project with complete configuration
 etc, but then you also need to include a reference to the
 compiler-plugin in the build section in each of your modules.

Hello,

I tried without adding the reference to compiler plugin in build
section of child project and it works ok.

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


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




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



Why does ${...} replacement not work within parent.../parent?

2006-11-13 Thread Christian Goetze

Why can't I do this:

project
 modelVersion4.0.0/modelVersion

 !-- This project belongs to ... --
 parent
  groupIdcom.sensage/groupId
  artifactIdsensage/artifactId
  version${sensage-version}/version
 /parent

I do run mvn -Dsensage-version=3.6...

It works fine when I run from the top of the project down.
--
cg

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



How do I avoid install error when using dir assembly?

2006-11-13 Thread Christian Goetze
I'd like to avoid getting the following error, but still have an - 
bin.dir file available:


[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Error installing artifact: 
/local/home/cg/a/fremont/src/java/cli/DO/i386-RedHat-linux26/debug/target/cli-3.6-bin.dir 
(Is a directory)


Is there a magic exclude I can insert someplace?
--
cg

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



Re: Assembly plugin - packaging chaning the extension

2006-11-13 Thread pjungwir

Hi Ste,

I'm not sure how to get a s4j extension. You could rename the file, but then
it wouldn't be an attached artifact, so things like deploy would break.

To get rid of the top-level directory, put this in your assembly descriptor:

  includeBaseDirectoryfalse/includeBaseDirectory

Paul



Stefano Nichele-2 wrote:
 
 Hi All,
 I have a problem with the assembly plug-in.
 My project builds a war application but the output should be a zip file 
 with the following structure:
 
 /webapp/ 
 myapp.war
 /config
 configFile1.xml
 configFile2.xml
 configFile3.xml
 
 I'm using the following assembly descriptor:
 
 assembly
   idbin/id
   formats
 formatzip/format
   /formats
  
   fileSets
 fileSet
   directorysrc/main/resources/bean/directory
   outputDirectoryconfig/outputDirectory
   includes
 include**/*.*/include
   /includes
 /fileSet
 
 fileSet
   directorytarget/directory
   outputDirectorywebapp/outputDirectory
   includes
 include*.war/include
   /includes
 /fileSet
   /fileSets
 /assembly
 
 Using that descriptor, the output file is a zip file but i need a 
 different extension. I mean, I need a zip file (as format) with 
 extension s4j.
 
 How can i do to  obtain that ?
 
 Moreover, using the above descriptor I obtain a zip file that contains:
 
 /myartifactid
 /webapp
  myapp.war
/config
 *.xml
 
 How can I remove the first level myartifactid ?
 
 Thanks in advance.
 Ste
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Assembly-plugin---packaging-chaning-the-extension-tf2584876s177.html#a7328439
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Junit and sites in Continuum

2006-11-13 Thread Lee Meador

First, I'm assuming you are talking about the site that is generated by
Maven 2.

I deploy the site to a handy Apache server. (See distributionManagement)
It points back to the continuum server. (ciManagement I think)

So its sort of the opposite of the way you are asking about.

-- Lee

On 11/8/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED]
wrote:


It is possible to have buttons to display the JUnit test results and
access the built project sites from the Continuum user interface?  How
are others integrating their JUnit tests and site generation in their CI
builds?  Thanks.


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


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





--
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com


Re: mvn2: Failed to validate POM error

2006-11-13 Thread Maria Odea Ching

Hi Attila,

Have you tried deleting the .pom file 
((com.mycompany-myapp-1.5-5007.0-QA0-SNAPSHOT.pom) from the repo before 
you re-installed the artifact or did you delete only the .jar 
(com.mycompany-myapp-1.5-5007.0-QA0-SNAPSHOT.jar) file?


Thanks,
Deng

Attila Mezei-Horvati wrote:


Eric,

thanks for your reply. 
So far I couldn't get any closer to the issue. 
I already tried to delete from my local repo and then

reinstall. The error still occurs.  I checked the pom
itself in the installed package. It is valid xml and
seems as a valid pom file to me. 


This is the exact message:

[WARNING] POM for
'com.mycompany:myapp:pom:1.5-5007.0-QA0-SNAPSHOT:compile'
is invalid. It will be ignored for artifact
resolution. Reason: Failed to validate POM

To me this is a meaningless error message. I have no
idea what validation failed and where/why. It gives me
no help. Just frustration. If you have any hints,
please let me know.

thanks,
Attila





Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

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

 




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



Re: Continue Build and Site Generation on Junit failure

2006-11-13 Thread pjungwir

Suppose you say this:
  
  mvn test  mvn site

That gives you a failure but not a site. And if you say this:

  mvn test; mvn site

you get a site but not a failure.

So what if you wrote a quick plugin that checks for errors in the surefire
reports? Then you could say:

  mvn test; mvn site; mvn my-group:check-for-failures

Paul


jp4 wrote:
 
 I am interested in what you did.  We use CC as well.  Any info you can
 provide would be greatly appreciated.  This is very important as we have a
 huge codebase and would like to identify all errors every night (NOT JUST
 THE FIRST ONE!)
 
 Thanks,
 
 jp4
 
 
 Jon SlinnHawkins wrote:
 
 TestFailureIgnore will then result in a build success.  When infact the 
 tests failed, so the build needs to be failed.
 
 I had exeactly the same issue.
 
 We are using CruiseControl for our Continuous Integration system. 
 Unfortunately I had to modify the CC code.  It was only a minor change
 but 
 it has enable us to
 
 execute maven 3 times as part of the same build, if any of the 3 runs
 fail 
 the build will continue until all 3 are finshed and THEN report a build 
 failure.
 
 FYI -
 1 - Checkout source and cleanup folders
 2 - Maven deploy (inculding unit and functional testing)
 3 - Build the site.
 
 If you are using CC i will try and find the peice of code i changed.  It
 was 
 a very simple change.
 
 Cheers
 
 Jon
 
 Alexandre Russel [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED] 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Continue-Build-and-Site-Generation-on-Junit-failure-tf2553508s177.html#a7329947
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [m2] eclipse:eclipse and checkstyle nature

2006-11-13 Thread Barrie Treloar

On 11/13/06, Rolf Strijdhorst [EMAIL PROTECTED] wrote:

Ok then,
in the maven eclipse plugin i found the following that could be of use?


Top find Rolf.

I am already using the 2.3-SNAPSHOT to try out the pde stuff.

eclipse:eclipse is now able to produce the .checkstyle file correctly
and eclipse is happy.

Thanks.

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



Re: How do I avoid install error when using dir assembly?

2006-11-13 Thread Barrie Treloar

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

I'd like to avoid getting the following error, but still have an -
bin.dir file available:


This is a known problem and has been fixed in the snapshot version and
scheduled for 2.2.
http://jira.codehaus.org/browse/MASSEMBLY-119

2.2 is meant to be release soonish, there was a hold up for some
reason but I can't recall what the reasons are.

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



RE: [M1] AspectJ with two source trees (main/src main/test)

2006-11-13 Thread Jeff Jensen
Are you saying that the test classes in test-classes need a pass by the
AspectJ compiler, or the test classes do not see the AspectJ compiled
classes in the classes dir?  (or something else entirely?)

The fact that the production classes compile to target/classes and the
test classes compile to /target/test-classes seems correct to me (from what
I understand from your emails).  When the tests run, the production code is
also on the classpath, so works well (now there could be some bug in that...
:-).


-Original Message-
From: diyfiesta [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 13, 2006 9:53 AM
To: users@maven.apache.org
Subject: Re: [M1] AspectJ with two source trees (main/src  main/test)


So, looking into this more (and having created a simple example project to
demonstrate it), it looks like the the aspectj plugin is compiling things
correctly, its just that the tests are being run from the incorrect place.

So, for example, the output of the aspectj compilation goes into

target/classes/...

but the tests run from a folder called 

target/test-classes/... 

which has the compiled test code, but not the aspectj compiled code. So, if
a test is affected by an aspect, it isn't in this folder.


diyfiesta wrote:
 
 Hi,
 
 Thanks for the note, I tried this but still don't have any luck, for 
 example, I'm using the convention main/src/java and main/src/test for 
 my source trees, so adding an src/aspectj folder doesn't really fit 
 in, if I add it to main/src/aspectj, I get the same problem (and just 
 for completness, setting it to src/aspectj causes is the same!).
 
 From the plugin's homepage, I didn't get the impression that setting 
 the soruce directiory to src/aspectj was a requirement more of an 
 example, and you should be able to set this to whatever your folder 
 is. Is this not the case?
 
 I think I'll have a go at creating a simple test project that 
 demonstrates the problem, see if I can get some feedback.
 
 Any other ideas?
 
 Cheers
 
 
 Alexandre Touret wrote:
 
 Hello,
 There are 2 builds : the classes and test classes.
 If you specify the aspectsourcedirectory in src/java, aspectj doesn t 
 parse any file in src/test. Its the default behaviour I can suggest 
 you to put all the aspects file have in ${maven.src.dir}/aspectj (as 
 described in the plugin homepage). I suppose this directory is 
 accessible in both the build classpaths and test classpath.
 
 Hope this helps.
 Alexandre
 
 Toby Weston wrote:
 Hi Folks,
 [...]
 I've got my source code under main/src and the unit tests under 
 main/test, however I can't get aspectj compiling both. I added this 
 to my project.xml hoping it would pick up both, but it doesn't seem 
 to,,,

aspectSourceDirectorymain/src/java/aspectSourceDirectory
aspectSourceDirectorymain/test/java/aspectSourceDirectory

 I'm kind of not confident I know the correct process, so may be 
 doing something really silly. I was thinking that the pregoal for 
 compile to run the aspectj compiler would apply my aspects to the 
 code that they affect? After running this though, my unit tests 
 confirm that the aspect isn't applied, and if I reverse engineer the 
 test code, there is no aspect code in there (and there is if I do a 
 normal eclipse aspectj compile).

 So, for some reason, its not applying my aspects to test code in the 
 second source tree... :(

 Cheers,
 Toby

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

--
View this message in context:
http://www.nabble.com/-M1--AspectJ-with-two-source-trees-%28main-src---main-
test%29-tf2556159s177.html#a7319470
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Re: Continue Build and Site Generation on Junit failure

2006-11-13 Thread Rahul Thakur

Have you tried  passing -fn (fail never) option when you invoke a build?

mvn test site -fn

That should continue the build inspite of any failures.

HTH,
Rahul


pjungwir wrote:

Suppose you say this:
  
  mvn test  mvn site


That gives you a failure but not a site. And if you say this:

  mvn test; mvn site

you get a site but not a failure.

So what if you wrote a quick plugin that checks for errors in the surefire
reports? Then you could say:

  mvn test; mvn site; mvn my-group:check-for-failures

Paul


jp4 wrote:
  

I am interested in what you did.  We use CC as well.  Any info you can
provide would be greatly appreciated.  This is very important as we have a
huge codebase and would like to identify all errors every night (NOT JUST
THE FIRST ONE!)

Thanks,

jp4


Jon SlinnHawkins wrote:

TestFailureIgnore will then result in a build success.  When infact the 
tests failed, so the build needs to be failed.


I had exeactly the same issue.

We are using CruiseControl for our Continuous Integration system. 
Unfortunately I had to modify the CC code.  It was only a minor change
but 
it has enable us to


execute maven 3 times as part of the same build, if any of the 3 runs
fail 
the build will continue until all 3 are finshed and THEN report a build 
failure.


FYI -
1 - Checkout source and cleanup folders
2 - Maven deploy (inculding unit and functional testing)
3 - Build the site.

If you are using CC i will try and find the peice of code i changed.  It
was 
a very simple change.


Cheers

Jon

Alexandre Russel [EMAIL PROTECTED] wrote in message 
news:[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: ZQ: Generate a report to show source changes

2006-11-13 Thread franz see

Good day to you, Rahamim,

Try maven-changes-plugin ( see [1] ).

Cheers,
Franz

[1] http://maven.apache.org/plugins/maven-changes-plugin/


Rahamim, Zvi (Zvi) wrote:
 
 Hi,
 Is there a way to have a report that shows the changes between the
 sources of two releases?
 Thanks!
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ZQ%3A-Generate-a-report-to-show-source-changes-tf2620519s177.html#a7330751
Sent from the Maven - Users mailing list archive at Nabble.com.


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



http://www.ibiblio.org/maven2 vs. http://repo1.maven.org/maven2?

2006-11-13 Thread jiangshachina

Hello guys,
In Maven2 super pom(see following link)
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html
the repository is http://repo1.maven.org/maven2;
but there is another repository http://www.ibiblio.org/maven2;
I browsed the two, but didn't find any real difference between them.

What's the difference between the two repositories?
There is any story of them ^_^

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/http%3A--www.ibiblio.org-maven2-vs.-http%3A--repo1.maven.org-maven2--tf2627036s177.html#a7330818
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Setting up a new jre to maven

2006-11-13 Thread franz see

Good day to you, Sha Jiang,

You may be running your maven2 in jdk1.5, but the plugins that uses java may
not necessarily use 1.5. 

For example, you can set the maven-compiler-plugin (which by default,
handles the compile phase of your build) to a different JVM ( see [1] ) or
by specifying the source and targets ( see [2] ). Furthermore, you can also
specify the JVM that you will use for the maven-surefire-plugin (which by
defaults, handles the test phase of your build) ( see [3] ).

Cheers,
Franz

[1]
http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html
[2]
http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html
[3] http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#jvm


jiangshachina wrote:
 
 Hi,
 otherwise it defaults to 1.4 classes with the 1.5 JRE.
 I'm using JDK1.5.0_08, but Maven uses 1.3, but 1.4, as default.
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 Wayne Fay wrote:
 
 Yes, to compile 1.5 classes, you must use a 1.5 (or greater) JRE. But
 you also must set the 1.5 configuration, otherwise it defaults to 1.4
 classes with the 1.5 JRE.
 
 Wayne
 
 On 11/11/06, jiangshachina [EMAIL PROTECTED] wrote:

 Hello,
  configuration
  source1.5/source
  target1.5/target
  /configuration
 If that's true, I'm confused by the settings.
 Why Maven(or javac) can compile sources to 1.5-compatible classes at
 1.4.2JRE(or 1.4.2 javac)?
 In order to fulfil the requirement, I think must install JDK1.5 firstly.
 Then use the real jre1.5.0 and configuration quoted above.

 a cup of Java, cheers!
 Sha Jiang


 Julio S. G. wrote:
 
 Hi Allan,
 
 Add these lines to you pom.xml:
 
  project
build
  plugins
plugin
  artifactIdmaven-compiler-plugin/artifactId
  configuration
source1.5/source
target1.5/target
  /configuration
/plugin
  /plugins
/build
  /project
 
  Julio
 
 
  On 11/10/06, Allan Valeriano [EMAIL PROTECTED] wrote:
  Hi all,
 
 
  I'm having problems setting up a new jre to run mvn install.
  My default java version is 1.4.2_11, but I need maven to use jre 5
 for
  it.
  I've read the FAQ, but I must say the example for it is not really
  helpful.
  Could somebody give me a hand on this sending a complete example?
 
 
  thanks in advance
  Allan Valeriano
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Setting-up-a-new-jre-to-maven-tf2610500s177.html#a7299977
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Setting-up-a-new-jre-to-maven-tf2610500s177.html#a7330855
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Running tests several times - saving the state (current phase) of the project

2006-11-13 Thread franz see

Good day to you, Steinar,

You may want to discuss that further in the Maven Dev List and / or file a
Jira Issue for that.

Thanks,
Franz


Steinar Cook wrote:
 
 The surefire reporting plugin re-runs the tests, which is kind of  
 natural as there is really no way to tell the current state of the  
 project. I think Maven should introduce the concept of a project  
 state, which would make some of the plugins easier to implement.
 
 Maven2 supplies a set of well defined life cycle phases. If the  
 current state (phase) of the project was available to each mojo, we  
 would solve the problem of having several mojos being run twice, like  
 for instance the surefire plugin.
 
 
 Regards,
 
 Steinar Cook
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Running-tests-several-times---saving-the-state-%28current-phase%29-of-the-project-tf2621098s177.html#a7330863
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: http://www.ibiblio.org/maven2 vs. http://repo1.maven.org/maven2?

2006-11-13 Thread Brett Porter

Ibiblio is a mirror of repo1 - they are the same content.

On 14/11/06, jiangshachina [EMAIL PROTECTED] wrote:


Hello guys,
In Maven2 super pom(see following link)
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html
the repository is http://repo1.maven.org/maven2;
but there is another repository http://www.ibiblio.org/maven2;
I browsed the two, but didn't find any real difference between them.

What's the difference between the two repositories?
There is any story of them ^_^

a cup of Java, cheers!
Sha Jiang
--
View this message in context: 
http://www.nabble.com/http%3A--www.ibiblio.org-maven2-vs.-http%3A--repo1.maven.org-maven2--tf2627036s177.html#a7330818
Sent from the Maven - Users mailing list archive at Nabble.com.


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





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

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



Re: http://www.ibiblio.org/maven2 vs. http://repo1.maven.org/maven2?

2006-11-13 Thread jiangshachina

Hi Brett,
Thanks for your reply.

Additionally, I find that some artifacts are duplicated in the repository.
For example, there are groups spring and springframework.
They have same artifactsId, but the artifacts in springframework are newer.
It means the group spring is deprecated?

There are many similar cases in central repository, how can I deal with the
matter?
There are some easy ways to distinguish the differences quickly?
May have a convention for names of the groups?

a cup of Java, cheers!
Sha Jiang


Brett Porter wrote:
 
 Ibiblio is a mirror of repo1 - they are the same content.
 
 On 14/11/06, jiangshachina [EMAIL PROTECTED] wrote:

 Hello guys,
 In Maven2 super pom(see following link)
 http://maven.apache.org/guides/introduction/introduction-to-the-pom.html
 the repository is http://repo1.maven.org/maven2;
 but there is another repository http://www.ibiblio.org/maven2;
 I browsed the two, but didn't find any real difference between them.

 What's the difference between the two repositories?
 There is any story of them ^_^

 a cup of Java, cheers!
 Sha Jiang
 --
 View this message in context:
 http://www.nabble.com/http%3A--www.ibiblio.org-maven2-vs.-http%3A--repo1.maven.org-maven2--tf2627036s177.html#a7330818
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/http%3A--www.ibiblio.org-maven2-vs.-http%3A--repo1.maven.org-maven2--tf2627036s177.html#a7331070
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: http://www.ibiblio.org/maven2 vs. http://repo1.maven.org/maven2?

2006-11-13 Thread Brett Porter

On 14/11/06, jiangshachina [EMAIL PROTECTED] wrote:

They have same artifactsId, but the artifacts in springframework are newer.
It means the group spring is deprecated?


Some newer versions get moved to a new group ID. We are generally
trying to consolidate them over time, and migrate old ones.



There are many similar cases in central repository, how can I deal with the
matter?


Find the one with the version you are using.


May have a convention for names of the groups?


The convention is reverse-domain. So you will probably find all the
newest releases in org.springframework group ID (directory
org/springframework/).

- Brett

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



  1   2   >