RE: Project specific build.properties for Maven1 build

2006-04-06 Thread Shute, James
Thanks Emmanuel - prompt reply as ever!

I'm planning to have 2 instances of Continuum running: one on linux, one on 
windows so I can be sure my tests work on both platforms.  Given the property 
in question is an absolute file path the project.properties approach won't 
work, but the command line idea should do nicely.

thanks

James

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 9:37 AM
To: continuum-users@maven.apache.org
Subject: Re: Project specific build.properties for Maven1 build

I think you can put your property in project.properties and maven1 on continuum 
machine will use it. 
For developers, the value define in their build.properties will override the 
value in project.properties.

An other solution would be to add the property on the m1 command line via the 
build definition of your project.

Emmanuel

Shute, James a écrit :
 Hi,
 
 Just started using Continuum and am really liking it, but have just 1 
 small issue I can't seem to find an answer to.
 
 One of our projects, which is built using Maven 1, needs a machine 
 specific property set (it's an absolute path to a specific file), so 
 that goes in build.properties in the project dir and each developer 
 sets it to the correct value for their box.  It's potentially 
 different on each box, hence it can't go in project.properties.
 
 Now I tried fixing our build under Continuum by adding the 
 build.properties file with the value set into the working area, but 
 next time a CVS update happens during the build that file gets wiped 
 out and the build fails again.
 
 For now I've got it working by putting the setting in the system wide 
 build.properties file, but that's not an ideal solution as this 
 property is only really relevant to this 1 project.
 
 Is there some way round this, or shall I file a JIRA?
 
 thanks
 
 James
 
 --
  This message is intended only for the personal and 
 confidential use of the designated recipient(s) named above.  If you are not 
 the intended recipient of this message you are hereby notified that any 
 review, dissemination, distribution or copying of this message is strictly 
 prohibited.  This communication is for information purposes only and should 
 not be regarded as an offer to sell or as a solicitation of an offer to buy 
 any financial product, an official confirmation of any transaction, or as an 
 official statement of Lehman Brothers.  Email transmission cannot be 
 guaranteed to be secure or error-free.  Therefore, we do not represent that 
 this information is complete or accurate and it should not be relied upon as 
 such.  All information is subject to change without notice.
 
 
 
 






--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.



Re: continuum build fails

2006-04-06 Thread Emmanuel Venisse

ok, you must have ant, maven, mvn, cvs and svn in your path.

and it seems you have a lock on C:\svnmvn\maven\continuum\continuum-core-it\target\it\cvs-root, 
perhaps a dos console open in it


Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :

Attached...

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 11:35 AM

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

send me the content of your surefire-reports directory.

An other solution is to use snapshot builds : 
http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/


Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :

Here is log from today's build... 



2006-04-06 11:12:12,974 [main] INFO  SCHEMA - Catalog 
, Schema SA initialised - managing 26 classes
2006-04-06 11:12:13,489 [main] INFO  Continuum  -  6:Ant CVS
Project:ant
2006-04-06 11:12:13,489 [main] INFO  Continuum  - Starting C
ontinuum.
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  Continuum  -  Continuu
m 1.1-SNAPSHOT started! 
2006-04-06 11:12:13,489 [main] INFO  Continuum  - --
-
2006-04-06 11:12:13,489 [main] INFO  Continuum  -\
^__^
2006-04-06 11:12:13,489 [main] INFO  Continuum  - \
(oo)\___
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
(__)\   )\/\
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
||w |
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
|| ||
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  ContinuumInitializer   - Continuum
initializer running ...
2006-04-06 11:12:15,739 [main] INFO  SchedulesActivator - Activating
schedules ...
2006-04-06 11:12:15,755 [main] WARN  ContinuumScheduler - Will not s
chedule this job as a job {DEFAULT_SCHEDULE:DEFAULT} already exists.
2006-04-06 11:12:15,755 [main] INFO  SchedulesActivator - null
2006-04-06 11:12:15,755 [main] INFO  PlexusContainer- Loading on
start [role,roleHint]: [org.codehaus.plexus.taskqueue.execution.TaskQueueExecut
or,build-project]
2006-04-06 11:12:15,755 [main] WARN  RecipientSource- Using '${m
ail.override.to.address}' as the to address for all emails.
2006-04-06 11:12:15,755 [main] INFO  TaskQueueExecutor:build-project - Starting
task executor, thread name 'build-project'.
2006-04-06 11:12:15,755 [main] INFO  PlexusContainer- Loading on
start [role,roleHint]: [org.codehaus.plexus.taskqueue.execution.TaskQueueExecut
or,check-out-project]
2006-04-06 11:12:15,755 [main] INFO  TaskQueueExecutor:check-out-project - Start
ing task executor, thread name 'check-out-project'.
---
[2006.04.06 11:12:15] Integration test settings
---
[2006.04.06 11:12:15] IT root: C:\svnmvn\maven\continuum\continuum-core-it\targe
t\it
[2006.04.06 11:12:15] Remoting method: jvm
[2006.04.06 11:12:15] Store implementation: class org.apache.maven.continuum.sto
re.JdoContinuumStore
---
[surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 16.499 sec 
 FAILURE !!
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 7 minutes 33 seconds
[INFO] Finished at: Thu Apr 06 11:12:16 EDT 2006
[INFO] Final Memory: 61M/63M
[INFO] 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 9:05 AM

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

In console, you must have a line with  FAILURE !! or you can look in 
continuum-core-it/target/surefire-reports


Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :



Where does it write the log? I am not able to find it in the continuum 
directory where I checked out the code and doing the build.

Thanks,
Sandeep

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 

Re: continuum build fails

2006-04-06 Thread Wayne Fay
You still have the same problem that Emmanuel already responded to:
[ stacktrace ] ---
java.io.IOException: Directory
C:\svnctm\continuum-core-it\target\it\cvs-root unable to be deleted.

As he said:
and it seems you have a lock on
C:\svnmvn\maven\continuum\continuum-core-it\target\it\cvs-root,
perhaps a dos console open in it


Close all your DOS windows.
Close all your Windows Explorer windows.
If that doesn't work, reboot the computer and try again.

Wayne

On 4/6/06, Dixit, Sandeep (ProSource Solutions)
[EMAIL PROTECTED] wrote:

 I have added Ant in the classpath. Looks like it created the 
 continuum-webapp-1.1.war. It is though still failing while deleting a 
 directory (see attached zip). Please advise.

 Thanks,
 Sandeep

 -Original Message-
 From: Dixit, Sandeep (ProSource Solutions)
 Sent: Thursday, April 06, 2006 12:12 PM
 To: 'continuum-users@maven.apache.org'
 Subject: RE: continuum build fails

 I do see cvsnt getting activated on my workstation. What versions of these 
 tools do I need?

 Also, just to give you a brief idea, my goal is to build a war that we can 
 deploy in WebSphere 6. How should I approach this? Please advise.

 Thanks in advance,
 Sandeep


 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 06, 2006 12:01 PM
 To: continuum-users@maven.apache.org
 Subject: Re: continuum build fails

 ok, you must have ant, maven, mvn, cvs and svn in your path.

 and it seems you have a lock on 
 C:\svnmvn\maven\continuum\continuum-core-it\target\it\cvs-root,
 perhaps a dos console open in it

 Emmanuel

 Dixit, Sandeep (ProSource Solutions) a écrit :
  Attached...
 
  -Original Message-
  From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
  Sent: Thursday, April 06, 2006 11:35 AM
  To: continuum-users@maven.apache.org
  Subject: Re: continuum build fails
 
  send me the content of your surefire-reports directory.
 
  An other solution is to use snapshot builds :
  http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/
 
  Emmanuel
 
  Dixit, Sandeep (ProSource Solutions) a écrit :
 
 Here is log from today's build...
 
 
 2006-04-06 11:12:12,974 [main] INFO  SCHEMA - 
 Catalog 
 , Schema SA initialised - managing 26 classes
 2006-04-06 11:12:13,489 [main] INFO  Continuum  -  
 6:Ant CVS
  Project:ant
 2006-04-06 11:12:13,489 [main] INFO  Continuum  - 
 Starting C
 ontinuum.
 2006-04-06 11:12:13,489 [main] INFO  Continuum  -
 2006-04-06 11:12:13,489 [main] INFO  Continuum  -
 2006-04-06 11:12:13,489 [main] INFO  Continuum  -  
 Continuu
 m 1.1-SNAPSHOT started! 
 2006-04-06 11:12:13,489 [main] INFO  Continuum  - 
 --
 -
 2006-04-06 11:12:13,489 [main] INFO  Continuum  -   
  \
  ^__^
 2006-04-06 11:12:13,489 [main] INFO  Continuum  -   
   \
  (oo)\___
 2006-04-06 11:12:13,489 [main] INFO  Continuum  -
  (__)\   )\/\
 2006-04-06 11:12:13,489 [main] INFO  Continuum  -
  ||w |
 2006-04-06 11:12:13,489 [main] INFO  Continuum  -
  || ||
 2006-04-06 11:12:13,489 [main] INFO  Continuum  -
 2006-04-06 11:12:13,489 [main] INFO  Continuum  -
 2006-04-06 11:12:13,489 [main] INFO  ContinuumInitializer   - 
 Continuum
 initializer running ...
 2006-04-06 11:12:15,739 [main] INFO  SchedulesActivator - 
 Activating
  schedules ...
 2006-04-06 11:12:15,755 [main] WARN  ContinuumScheduler - Will 
 not s
 chedule this job as a job {DEFAULT_SCHEDULE:DEFAULT} already exists.
 2006-04-06 11:12:15,755 [main] INFO  SchedulesActivator - null
 2006-04-06 11:12:15,755 [main] INFO  PlexusContainer- 
 Loading on
  start [role,roleHint]: 
  [org.codehaus.plexus.taskqueue.execution.TaskQueueExecut
 or,build-project]
 2006-04-06 11:12:15,755 [main] WARN  RecipientSource- Using 
 '${m
 ail.override.to.address}' as the to address for all emails.
 2006-04-06 11:12:15,755 [main] INFO  TaskQueueExecutor:build-project - 
 Starting
 task executor, thread name 'build-project'.
 2006-04-06 11:12:15,755 [main] INFO  PlexusContainer- 
 Loading on
  start [role,roleHint]: 
  [org.codehaus.plexus.taskqueue.execution.TaskQueueExecut
 or,check-out-project]
 2006-04-06 11:12:15,755 [main] INFO  TaskQueueExecutor:check-out-project - 
 Start
 ing task executor, thread name 'check-out-project'.
 ---
 [2006.04.06 11:12:15] Integration test settings
 ---
 [2006.04.06 11:12:15] IT root: 
 

Re: continuum build fails

2006-04-06 Thread Emmanuel Venisse
Is it a war of continuum you try to do? In this case, it isn't possible actually. Actually, 
Continuum is a standalone server, a webapp will be available for 1.1


Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :
I do see cvsnt getting activated on my workstation. What versions of these tools do I need? 


Also, just to give you a brief idea, my goal is to build a war that we can 
deploy in WebSphere 6. How should I approach this? Please advise.

Thanks in advance,
Sandeep


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 12:01 PM

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

ok, you must have ant, maven, mvn, cvs and svn in your path.

and it seems you have a lock on C:\svnmvn\maven\continuum\continuum-core-it\target\it\cvs-root, 
perhaps a dos console open in it


Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :


Attached...

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 11:35 AM

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

send me the content of your surefire-reports directory.

An other solution is to use snapshot builds : 
http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/


Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :


Here is log from today's build... 



2006-04-06 11:12:12,974 [main] INFO  SCHEMA - Catalog 
, Schema SA initialised - managing 26 classes
2006-04-06 11:12:13,489 [main] INFO  Continuum  -  6:Ant CVS
Project:ant
2006-04-06 11:12:13,489 [main] INFO  Continuum  - Starting C
ontinuum.
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  Continuum  -  Continuu
m 1.1-SNAPSHOT started! 
2006-04-06 11:12:13,489 [main] INFO  Continuum  - --
-
2006-04-06 11:12:13,489 [main] INFO  Continuum  -\
^__^
2006-04-06 11:12:13,489 [main] INFO  Continuum  - \
(oo)\___
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
(__)\   )\/\
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
   ||w |
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
   || ||
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  ContinuumInitializer   - Continuum
initializer running ...
2006-04-06 11:12:15,739 [main] INFO  SchedulesActivator - Activating
schedules ...
2006-04-06 11:12:15,755 [main] WARN  ContinuumScheduler - Will not s
chedule this job as a job {DEFAULT_SCHEDULE:DEFAULT} already exists.
2006-04-06 11:12:15,755 [main] INFO  SchedulesActivator - null
2006-04-06 11:12:15,755 [main] INFO  PlexusContainer- Loading on
start [role,roleHint]: [org.codehaus.plexus.taskqueue.execution.TaskQueueExecut
or,build-project]
2006-04-06 11:12:15,755 [main] WARN  RecipientSource- Using '${m
ail.override.to.address}' as the to address for all emails.
2006-04-06 11:12:15,755 [main] INFO  TaskQueueExecutor:build-project - Starting
task executor, thread name 'build-project'.
2006-04-06 11:12:15,755 [main] INFO  PlexusContainer- Loading on
start [role,roleHint]: [org.codehaus.plexus.taskqueue.execution.TaskQueueExecut
or,check-out-project]
2006-04-06 11:12:15,755 [main] INFO  TaskQueueExecutor:check-out-project - Start
ing task executor, thread name 'check-out-project'.
---
[2006.04.06 11:12:15] Integration test settings
---
[2006.04.06 11:12:15] IT root: C:\svnmvn\maven\continuum\continuum-core-it\targe
t\it
[2006.04.06 11:12:15] Remoting method: jvm
[2006.04.06 11:12:15] Store implementation: class org.apache.maven.continuum.sto
re.JdoContinuumStore
---
[surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 16.499 sec 
 FAILURE !!
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 7 minutes 33 seconds
[INFO] Finished at: Thu Apr 06 11:12:16 EDT 2006
[INFO] Final Memory: 61M/63M
[INFO] 

jboss:start??

2006-04-06 Thread raja bangaru
Hi
I'm able to run jboss:configure run successful
but when i use jboss:start
it is giving the following error:
System cannot find the path specified..


any solutions please.


Re: jboss:start??

2006-04-06 Thread Taavi Sildeberg

Hello,

Try using mvn jboss:start -X and search from the debug message, what 
path is missing. May the jboss:configure dont make correct configuration 
fail.


All the best.
Taavi Sildeberg

raja bangaru wrote:

Hi
I'm able to run jboss:configure run successful
but when i use jboss:start
it is giving the following error:
System cannot find the path specified..


any solutions please.



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



Maven and JTestCase

2006-04-06 Thread Pierre Jacquot
To make Unit Test I use Junit and JTestCase. All works with eclispe but when
i want to use JTestCase I have a problemem with my JDom package. I already
have one but it seems to doesn't work good in Maven.
If anyone have the same problem, or had have the same, Can he explain me how
to resolve it ?

Here the java's error :
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.maven.surefire.battery.JUnitBattery.processTestClass(
JUnitBattery.java:130)
at org.apache.maven.surefire.battery.JUnitBattery.init(
JUnitBattery.java:81)
at org.apache.maven.surefire.SurefireUtils.instantiateBattery(
SurefireUtils.java:63)
at org.apache.maven.surefire.Surefire.instantiateBatteries(
Surefire.java:262)
at org.apache.maven.surefire.Surefire.run(Surefire.java:140)
at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(
SurefireBooter.java:313)
at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java
:221)
at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java
:371)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecy
5)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle
(DefaultLifecycleE
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle
(DefaultLifecycleExecutor
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecy
5)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.j
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLi
a:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(DefaultLifecycleEx
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.NoClassDefFoundError: org/jaxen/BaseXPath
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.jdom.xpath.XPath.newInstance(XPath.java:126)
at org.jdom.xpath.XPath.selectNodes(XPath.java:337)
at org.jtestcase.core.digester.XQueryParserImpl_Jaxen.getElements
(XQueryParserImpl_Jaxen.java
at
org.jtestcase.core.digester.JTestCaseDigester.getTestCaseGlobalParams(
JTestCaseDigester.ja
at org.jtestcase.JTestCase.getGlobalParams(JTestCase.java:240)
at org.jtestcase.JTestCase.getGlobalParamLocale(JTestCase.java:278)
at org.jtestcase.JTestCase.init(JTestCase.java:155)
at com.test_junit.app.CalculatorTest.init(CalculatorTest.java:53)
at com.test_junit.app.CalculatorTest.suite(CalculatorTest.java:76)


Re: Re: How to put a Jar in my War

2006-04-06 Thread Raymond Domingo
Hello Mang Jun Lau,

Thank you for responsing, but it still isn't working :(

Currently I have this in my pom.xml:
plugin
artifactIdmaven-war-plugin/artifactId
configuration
warSourceDirectoryweb/warSourceDirectory
warNamespg/warName
webXmlweb/WEB-INF/web.xml/webXml
/configuration
/plugin

I also tried:
plugin
artifactIdmaven-war-plugin/artifactId
configuration
webXmlweb/WEB-INF/web.xml/webXml
/configuration
/plugin

I even upgraded from maven 2.0.2 to 2.0.3

But I still get this error:

Embedded error: webxml attribute is required (or pre-existing WEB-INF/web.xml
if executing in update mode)


NOTE
Some time ago we used this configuration to create a valid war file using:
mvn package

But we need to move the stuff in WEB-INF/classes to WEB-INF/lib/spg.jar

That is why we are looking in to assembly's.


Can you think of anything else that might solve this problem ?

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



Re: Maven Webstart Plugin

2006-04-06 Thread jerome lacoste
On 4/5/06, Jeff Louw [EMAIL PROTECTED] wrote:

 It is working ... but:

 The generated launch.jnlp file does not appear to be correct. I think the
 problem is the template.vm overrides the information that has already been
 provided in the pom.xml ?

 How can I setup the template.vm so that a correct launch.jnlp is created ?
 Any samples ?

The .vm file will be processed and some values are replaced according
to the doc:

See the JNLP File Generation section in:

http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html

Start by looking at what you want to obtain and replace the sections
that the plugin will auto-generate by the variable the plugin
understands. Be sure to have your pom configured correctly.

Jerome

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



Re: New SVG project

2006-04-06 Thread Geoffrey De Smet
Maven itself won't use it, but having it on Ibiblio is definitely of 
interest to anyone using maven or Ivy to build, so a lot of people :)



Mark McKay wrote:
Well, I wasn't quite sure either.  The main reason was that one of my 
users suggested it.  From that, I figured it might be of interest to the 
Maven community.


Mark McKay


Ray Ward wrote:

Mark,

Maybe I'm just being dense this afternoon, but it's not obvious to me 
how a

Scalable Vector Graphics library fits in with Maven, or would help Maven
users.  (I may be missing a project that incorporates graphic reports 
into

Maven, similarly to jarAnalyzer/Graphviz?)

I can see how you might use Maven to manage your project builds...

Ray


On 4/5/06, Mark McKay [EMAIL PROTECTED] wrote:
 

I manage the SVG Salamander project on
http://svgsalamander.dev.java.net.  Recently a user suggested I post my
binaries to Maven because this would help Maven users.  I started the
issue below, but so far have had no feedback:

http://jira.codehaus.org/browse/MAVENUPLOAD-805

Anyone know what would happen next, or where I should look for
feedback?  Also, am I right in thinking that Maven is similar to RPM,
except for Java jars?  Also, what do I do when I change my code and
recompile my jars?

Mark McKay

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





  


--
With kind regards,
Geoffrey De Smet


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



Re: Maven Webstart Plugin

2006-04-06 Thread jerome lacoste
On 4/5/06, Wayne Fay [EMAIL PROTECTED] wrote:
 In your jnlp section, do you have a mainClass defined?

 Line 629 in JnlpMojo is:
 if ( artifactContainsClass( artifact, jnlp.getMainClass() ) ) {

Oups. I will try to make this configuration error more visible to the user.

I created
  this http://jira.codehaus.org/browse/MOJO-356
to track the issue.

Jerome

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



[m2] 2.0.4 release

2006-04-06 Thread Franz Fehringer

Hello,

Is the (approximate) release date of 2.0.4  known already?
Are there pending show stoppers (which)?

Best regards

Franz


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

How to put a Jar in my War

2006-04-06 Thread Raymond Domingo


Hello Mang Jun Lau,

Thank you for responsing, but it still isn't working :(

Currently I have this in my pom.xml:
   plugin
   artifactIdmaven-war-plugin/artifactId
   configuration
   warSourceDirectoryweb/warSourceDirectory
  warNamespg/warName
   webXmlweb/WEB-INF/web.xml/webXml
   /configuration
   /plugin

I also tried:
   plugin
   artifactIdmaven-war-plugin/artifactId
   configuration
   webXmlweb/WEB-INF/web.xml/webXml
   /configuration
   /plugin

I even upgraded from maven 2.0.2 to 2.0.3

But I still get this error:

Embedded error: webxml attribute is required (or pre-existing WEB-INF/web.xml
if executing in update mode)

NOTE
Some time ago we used this configuration to create a valid war file using:
mvn package

But we need to move the stuff in WEB-INF/classes to WEB-INF/lib/spg.jar

That is why we are looking in to assembly's.

Can you think of anything else that might solve this problem ?

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



Re: SCM plugin for MKS SI in M2

2006-04-06 Thread Emmanuel Venisse

Sharma is starting the development of it. If you want to contribute, subscribe 
to scm developer list.

Emmanuel

[EMAIL PROTECTED] a écrit :
Agreed, I am very interested to know what the plan is here, or even to 
contribute.


-j

---
Justin Fung
[EMAIL PROTECTED]
Sr. Analyst, Business Systems
IT Banking Systems, e-Business
HSBC Bank Canada
http://www.hsbc.ca
p: (604) 643-6605
f: (604) 643-6727








Sharma, Jaikumar [EMAIL PROTECTED]
04/04/2006 10:45 PM
Please respond to Maven Users List

 
To: Sharma, Jaikumar [EMAIL PROTECTED], Maven Users List 
users@maven.apache.org
cc: 
Subject:RE: SCM plugin for MKS SI in M2


  Our Ref: 
Your Ref: 



Oops! Typo.
It would be really helpful to lots of people, if somebody can take the
initiative!

-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 05, 2006 10:53 AM

To: Maven Users List
Subject: Re: SCM plugin for MKS SI in M2


There was some discussion about implementing MKS maven-scm-provider, but
the implementation has never surfaced.

-D


On 4/4/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:


Dear Maven users,

Has anyone of you come across / or have info about MKS Source
Integrity plugin for M2 ? http://www.mks.com http://www.mks.com

Thanks for your help!

- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message
is privileged and confidential, and is intended only for the use of 
the

addressee(s) named above and others who have been specifically


authorized


to
receive it. If you are not the intended recipient, you are hereby


notified


that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability


for


any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liablility for any delays. If you have
received this message in error, please contact the sender and delete


the


message. Thank you.




- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized 
to

receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for 
any

damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.


 
*** 
This email may contain confidential information, and is intended only for 
the named recipient and may be privileged.  Distribution or copying of 
this email by anyone other than the named recipient is prohibited. If you 
are not the named recipient, please notify us immediately and permanently 
destroy this email and all copies of it.  Internet email is not private, 
secure, or reliable.  No member of the HSBC Group is liable for any errors 
or omissions in the content or transmission of this email. Any opinions 
contained in this email are solely those of the author and, unless clearly 
indicated otherwise in writing, are not endorsed by any member of the HSBC 
Group. 
*** 
Ce courriel peut renfermer des renseignements confidentiels et privilégiés 
et s'adresse au destinataire désigné seulement.   La distribution ou la 
copie de ce courriel par toute personne autre que le destinataire désigné 
est interdite.  Si vous n'êtes pas le destinataire désigné, veuillez nous 
en aviser immédiatement et détruire de façon permanente ce courriel ainsi 
que toute copie de celui-ci. La transmission de courriel par Internet ne 
constitue pas un mode de transmission confidentiel, sécuritaire ou fiable. 
 Aucun membre du Groupe HSBC ne sera responsable des erreurs ou des 
omissions relatives au contenu ou à la transmission de ce courriel. 
L'auteur de ce courriel est seul responsable des opinions émises dans ce 
courriel, lesquelles, à moins  d'un avis contraire fourni par écrit, ne 
sont pas endossées par aucun membre du Groupe HSBC. 
*** 




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



Re: How to put a Jar in my War

2006-04-06 Thread Piéroni Raphaël
Hello Raymond,

Inline answer

2006/4/6, Raymond Domingo [EMAIL PROTECTED]:



 Hello Mang Jun Lau,

 Thank you for responsing, but it still isn't working :(

 Currently I have this in my pom.xml:
plugin
artifactIdmaven-war-plugin/artifactId
configuration
warSourceDirectoryweb/warSourceDirectory
   warNamespg/warName
webXmlweb/WEB-INF/web.xml/webXml
/configuration
/plugin

 I also tried:
plugin
artifactIdmaven-war-plugin/artifactId
configuration
webXmlweb/WEB-INF/web.xml/webXml
/configuration
/plugin

 I even upgraded from maven 2.0.2 to 2.0.3

 But I still get this error:

 Embedded error: webxml attribute is required (or pre-existing
 WEB-INF/web.xml
 if executing in update mode)

 NOTE
 Some time ago we used this configuration to create a valid war file using:
 mvn package

 But we need to move the stuff in WEB-INF/classes to WEB-INF/lib/spg.jar


Why don't you create an spg project with the jar packaging on which
your war project depends ?

If you want some sample, checkout the axis-archetype code at mojo.
http://mojo.codehaus.org/ (it is in the sandbox)

Hope this helps.

Raphaël


That is why we are looking in to assembly's.

 Can you think of anything else that might solve this problem ?

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




Project specific build.properties for Maven1 build

2006-04-06 Thread Shute, James
Hi,

Just started using Continuum and am really liking it, but have just 1
small issue I can't seem to find an answer to.

One of our projects, which is built using Maven 1, needs a machine
specific property set (it's an absolute path to a specific file), so
that goes in build.properties in the project dir and each developer sets
it to the correct value for their box.  It's potentially different on
each box, hence it can't go in project.properties.

Now I tried fixing our build under Continuum by adding the
build.properties file with the value set into the working area, but next
time a CVS update happens during the build that file gets wiped out and
the build fails again.

For now I've got it working by putting the setting in the system wide
build.properties file, but that's not an ideal solution as this property
is only really relevant to this 1 project.

Is there some way round this, or shall I file a JIRA?

thanks

James

--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.



[m2] How to exclude a jar in WEB-INF/lib

2006-04-06 Thread Wesslan

When I build my jar with mvn package I get both cglib-2.1_3.jar and
cglib-nodep-2.1_3.jar in WEB-INF/lib. I only want cglib-nodep-2.1_3.jar so
how do I get rid of cglib-2.1_3.jar?

Regards,
Peter
--
View this message in context: 
http://www.nabble.com/-m2-How-to-exclude-a-jar-in-WEB-INF-lib-t1404553.html#a3780339
Sent from the Maven - Users forum at Nabble.com.


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



Re: Project specific build.properties for Maven1 build

2006-04-06 Thread Emmanuel Venisse
I think you can put your property in project.properties and maven1 on continuum machine will use it. 
For developers, the value define in their build.properties will override the value in 
project.properties.


An other solution would be to add the property on the m1 command line via the build definition of 
your project.


Emmanuel

Shute, James a écrit :

Hi,

Just started using Continuum and am really liking it, but have just 1
small issue I can't seem to find an answer to.

One of our projects, which is built using Maven 1, needs a machine
specific property set (it's an absolute path to a specific file), so
that goes in build.properties in the project dir and each developer sets
it to the correct value for their box.  It's potentially different on
each box, hence it can't go in project.properties.

Now I tried fixing our build under Continuum by adding the
build.properties file with the value set into the working area, but next
time a CVS update happens during the build that file gets wiped out and
the build fails again.

For now I've got it working by putting the setting in the system wide
build.properties file, but that's not an ideal solution as this property
is only really relevant to this 1 project.

Is there some way round this, or shall I file a JIRA?

thanks

James

--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.








Re: Archetypes

2006-04-06 Thread Napoleon Esmundo Ramirez
Hello,

The archetype plugin gives you a kick to start on projects immediately.  It
creates the template of your project as far as sources and resources are
concerned.  The target is defined in the project's pom.xml and it doesn't
need to be in the archetype as it frequently gets cleaned in the file
system. :)

Cheers!
Nap

On 4/5/06, Christopher Cudennec [EMAIL PROTECTED] wrote:

 Hello everyone,

 I try to get to know what I can do by the archetype plugin. The guide to
 creating archetypes is alright for the basics but I would like to know
 how to set more variables by the archetype.xml. The documentation talks
 about setting the source and test-source-directory. But what about the
 target directory? In order to be able to adjust my own archetype to my
 existing project structure I would like to be able to set this one as
 well. I would appreciate any comments or a DTD ;).

 Thanks,

 Christopher

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




Maven2 : mvn site nullpointer

2006-04-06 Thread Tom Joad
Hello all,
When I add ${java.home}/../lib/tools.jar

dependency
  groupIdsun.jdk/groupId
  artifactIdtools/artifactId
  version1.4.2/version
  scopesystem/scope
  systemPath${java.home}/../lib/tools.jar/systemPath
/dependency
as dependency of my project and  run mvn site I get following error
...
[DEBUG] -- end configuration --
[INFO] [site:site]
[INFO] Generate Continuous Integration report.
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
[INFO] Generate Dependencies report.
[INFO] 

[ERROR] FATAL ERROR
[INFO] 

[INFO] null
[INFO] 

[DEBUG] Trace
java.lang.NullPointerException
at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:82)
at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:3
86)
at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:351)
at 
org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer.getMavenProjectFromRepository(Dep
endenciesReport.java:362)
at 
org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer.renderBody(DependenciesReport.jav
a:242)
at 
org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:65)
at 
org.apache.maven.report.projectinfo.DependenciesReport.executeReport(DependenciesReport.java:157)
at 
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
at 
org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:802)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:47

Is it a bug ?

Tom.

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



Re: [m2] How to exclude a jar in WEB-INF/lib

2006-04-06 Thread Tom Joad
Hello,
If the two jars are direct dependency in your project you can use
scope provided for what you want to exclude.
If they are bundled by transitive dependency mechanism , you declare
them as direct dependency inside the pom.xml and use provided scope.
I do it to exclude servlet-api which is compile dependency of spring
and acegisecurity in WEB-INF/lib .
I hope it helps,
Tom.


2006/4/6, Wesslan [EMAIL PROTECTED]:

 When I build my jar with mvn package I get both cglib-2.1_3.jar and
 cglib-nodep-2.1_3.jar in WEB-INF/lib. I only want cglib-nodep-2.1_3.jar so
 how do I get rid of cglib-2.1_3.jar?

 Regards,
 Peter
 --
 View this message in context: 
 http://www.nabble.com/-m2-How-to-exclude-a-jar-in-WEB-INF-lib-t1404553.html#a3780339
 Sent from the Maven - Users forum 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]



modello-plugin-xpp3 version 1.0-alpha-8

2006-04-06 Thread Tom Huybrechts
Hi all,

I just checked out maven-2.0.3 from svn and I'm trying to build it. However,
I'm getting an error while building Maven Model:

Downloading:
http://10.233.26.67/maven-proxy/repository/org/codehaus/modello/modello-plugin-xpp3/1.0-alpha-8/modello-plugin-xpp3-1.0-alpha-8.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Error transferring file
  org.codehaus.modello:modello-plugin-xpp3:jar:1.0-alpha-8

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  jris-snapshot (http://10.233.26.67/snapshots),
  snapshots (http://snapshots.maven.codehaus.org/maven2)
Path to dependency:
1)
org.codehaus.modello:modello-maven-plugin:maven-plugin:1.0-alpha-8
2) org.codehaus.modello:modello-plugin-xpp3:jar:1.0-alpha-8



Caused by I/O exception: Server returned HTTP response code: 500 for URL:
http://10.233.26.67/maven-proxy/repository/org/codehaus/modello/modello-plugin-xpp3/1.0-alpha-8/modello-plugin-xpp3-1.0-alpha-8.jar


I have http://snapshots.maven.codehaus.org/maven2 configured as a
repository, but it seems this version of the plugin isn't there, although
alpha-7 and alpha-9 ARE present.

What am I doing wrong ?

Tom


Re: [m2] How to exclude a jar in WEB-INF/lib

2006-04-06 Thread clark . rao

Dear
 you can exclude jar in web-intf/lib.






thanks.
Tel: (020)36315358-328 Fax: (020)36315170



   
  Tom Joad
   
  [EMAIL PROTECTED]To:   Maven Users List 
users@maven.apache.org   
  cc:  
   
   Subject:  Re: [m2] How to 
exclude a jar in WEB-INF/lib  
  06/04/2006 16:50  
   
  Please respond to 
   
  Maven Users  
   
  List 
   

   

   




Hello,
If the two jars are direct dependency in your project you can use
scope provided for what you want to exclude.
If they are bundled by transitive dependency mechanism , you declare
them as direct dependency inside the pom.xml and use provided scope.
I do it to exclude servlet-api which is compile dependency of spring
and acegisecurity in WEB-INF/lib .
I hope it helps,
Tom.


2006/4/6, Wesslan [EMAIL PROTECTED]:

 When I build my jar with mvn package I get both cglib-2.1_3.jar and
 cglib-nodep-2.1_3.jar in WEB-INF/lib. I only want cglib-nodep-2.1_3.jar
so
 how do I get rid of cglib-2.1_3.jar?

 Regards,
 Peter
 --
 View this message in context:
http://www.nabble.com/-m2-How-to-exclude-a-jar-in-WEB-INF-lib-t1404553.html#a3780339

 Sent from the Maven - Users forum 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]


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__



2006 sees Hactl's 30 years of commitment to Hong Kong and our customers.
On this occasion we extend our thanks to all of you for your loyalty and
trust.
You have contributed to our success.

Visit us at our website at www.hactl.com

DISCLAIMER :-
The information contained in this message, including any attachment, is
confidential and may also be privileged. The information is intended only
for the person or entity to which it is addressed. Any review,
re-transmission, copying, storage, distribution or other use or disclosure
of this information by persons or entities other than the intended
recipient is prohibited. If you are not the intended recipient, please
contact the sender immediately by return email and delete this message from
your system. Thank you.




__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Re: [m2] How to exclude a jar in WEB-INF/lib

2006-04-06 Thread Wesslan

I've tried provided and it worked but maven keeps (correctly) telling me
that:
[WARNING]
Artifact cglib:cglib:jar:2.1_3:provided retains local scope
'provided' overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or remove the
local scope.

It's not so nice seeing this everytime you build. Though, it works! :-)

FYI I'm using Spring with Hibernate and Spring needs cglib-nodep-2.1_3.jar
and Hibernate have configured a transitive dependency to cglib-2.1_3.jar.

Regards,
Peter
--
View this message in context: 
http://www.nabble.com/-m2-How-to-exclude-a-jar-in-WEB-INF-lib-t1404553.html#a3780631
Sent from the Maven - Users forum at Nabble.com.


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



Re: [m2] How to exclude a jar in WEB-INF/lib

2006-04-06 Thread Wesslan

And how do I do that? (I have kinda hard time finding my way around the
docs...)

Regards,
Peter
--
View this message in context: 
http://www.nabble.com/-m2-How-to-exclude-a-jar-in-WEB-INF-lib-t1404553.html#a3780718
Sent from the Maven - Users forum at Nabble.com.


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



jboss-sar-maven-plugin and packaging sar

2006-04-06 Thread Peschier J. (Jeroen)

I built jboss-sar-maven-plugin-2.0-SNAPSHOT from source since it is not
yet released. If I set packagingsar/packaging I get this error:

[ERROR] BUILD ERROR
[INFO] ---
[INFO] Cannot find lifecycle mapping for packaging: 'sar'.
Component descriptor cannot be found in the component repository:
org.apache.maven.lifecycle.mapping.LifecycleMappingsar.

The plugin itself seems to work because if I set
packagingjarpackaging both a JAR and a SAR are build. However only
the JAR is installed in the repository. I would like to install the SAR
with the extension .sar in the repository. Am I missing something here?


Using maven 2.0.3 with the following plugin config:

resources
  resource
directoryconf/directory
includes
  includejboss-service.xml/include
/includes
  targetPathMETA-INF/targetPath
  /resource
/resources

plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjboss-sar-maven-plugin/artifactId
executions
  execution
phasepackage/phase
goals
  goalsar/goal
/goals
  /execution
/executions
  /plugin
/plugins


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



Re: Archetypes

2006-04-06 Thread Christopher Cudennec

Hey,

thanks for the answer. I got to it by thinking and reading the 
documentation in the meantime as well ;). Archetypes are not what I was 
really looking for to tell the truth. I prefer copying my pom.xml in my 
existing projects. It's really poor that you need to define any kind of 
file for a folder to be created. Just giving a folder name for source 
does nothing... Using allowPartial didn't work out as well, so I'm 
quite annoyed by the archetype. The main stuff (packaging, ...) worked 
fine nevertheless...


Thanks,
Christopher

Napoleon Esmundo Ramirez schrieb:

Hello,

The archetype plugin gives you a kick to start on projects immediately.  It
creates the template of your project as far as sources and resources are
concerned.  The target is defined in the project's pom.xml and it doesn't
need to be in the archetype as it frequently gets cleaned in the file
system. :)

Cheers!
Nap

On 4/5/06, Christopher Cudennec [EMAIL PROTECTED] wrote:
  

Hello everyone,

I try to get to know what I can do by the archetype plugin. The guide to
creating archetypes is alright for the basics but I would like to know
how to set more variables by the archetype.xml. The documentation talks
about setting the source and test-source-directory. But what about the
target directory? In order to be able to adjust my own archetype to my
existing project structure I would like to be able to set this one as
well. I would appreciate any comments or a DTD ;).

Thanks,

Christopher

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





  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.5/302 - Release Date: 05.04.2006
  



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



RE: How to put a Jar in my War

2006-04-06 Thread hermod.opstvedt
Hi

I noted that the error states: webxml attribute is required , while you have a 
parameter webXml (note the uppercase X)

Hermod

-Original Message-
From: Piéroni Raphaël [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 06, 2006 10:25 AM
To: Maven Users List
Subject: Re: How to put a Jar in my War


Hello Raymond,

Inline answer

2006/4/6, Raymond Domingo [EMAIL PROTECTED]:



 Hello Mang Jun Lau,

 Thank you for responsing, but it still isn't working :(

 Currently I have this in my pom.xml:
plugin
artifactIdmaven-war-plugin/artifactId
configuration
warSourceDirectoryweb/warSourceDirectory
   warNamespg/warName
webXmlweb/WEB-INF/web.xml/webXml
/configuration
/plugin

 I also tried:
plugin
artifactIdmaven-war-plugin/artifactId
configuration
webXmlweb/WEB-INF/web.xml/webXml
/configuration
/plugin

 I even upgraded from maven 2.0.2 to 2.0.3

 But I still get this error:

 Embedded error: webxml attribute is required (or pre-existing
 WEB-INF/web.xml
 if executing in update mode)

 NOTE
 Some time ago we used this configuration to create a valid war file using:
 mvn package

 But we need to move the stuff in WEB-INF/classes to WEB-INF/lib/spg.jar


Why don't you create an spg project with the jar packaging on which
your war project depends ?

If you want some sample, checkout the axis-archetype code at mojo.
http://mojo.codehaus.org/ (it is in the sandbox)

Hope this helps.

Raphaël


That is why we are looking in to assembly's.

 Can you think of anything else that might solve this problem ?

 -
 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 virus programs used
in the DnB NOR Group.

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



Re: How to put a Jar in my War

2006-04-06 Thread Raymond Domingo
Hi Piéroni Raphaël,

Thank you for responding,
it might be a solution...

So if I understand you correctly I don't need to change my dir structure to do
this, currently we have one large project which should remain this way for now.

in /pom.xml (root pom) I will use packagingjar/packaging this will be the
spg.jar

And in /subdir/of/root/pom.xml I will use packagingwar/packaging this will
create my war, and by setting my parent in this pom it will include my jar
from the parent pom.

Did I understand this correclty, or do I also need to add dependencies to this
pom ?

Because I'm new to maven I still find it hard to use the dependency
mechanishm. It's not completely clear to me if dependencies always need to be
in a mvnrepository before they can be used, or if (this is what we need) the
spg.jar just build can be used when packaging my war file without first
releasing it in a mvnrepository.


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



RE: How to put a Jar in my War

2006-04-06 Thread Raymond Domingo
thank you for clearing this out. It is indeed confusing.
Documentation is mentioning webXml, but error refers to webxml.
I tried both, camel case and lowercase.

On Thu, 6 Apr 2006 10:46:47 +0200, hermod.opstvedt wrote
 Hi
 
 I noted that the error states: webxml attribute is required , while 
 you have a parameter webXml (note the uppercase X)
 
 Hermod
 
 -Original Message-
 From: Piéroni Raphaël [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 06, 2006 10:25 AM
 To: Maven Users List
 Subject: Re: How to put a Jar in my War
 
 Hello Raymond,
 
 Inline answer
 
 2006/4/6, Raymond Domingo [EMAIL PROTECTED]:
 
 
 
  Hello Mang Jun Lau,
 
  Thank you for responsing, but it still isn't working :(
 
  Currently I have this in my pom.xml:
 plugin
 artifactIdmaven-war-plugin/artifactId
 configuration
 warSourceDirectoryweb/warSourceDirectory
warNamespg/warName
 webXmlweb/WEB-INF/web.xml/webXml
 /configuration
 /plugin
 
  I also tried:
 plugin
 artifactIdmaven-war-plugin/artifactId
 configuration
 webXmlweb/WEB-INF/web.xml/webXml
 /configuration
 /plugin
 
  I even upgraded from maven 2.0.2 to 2.0.3
 
  But I still get this error:
 
  Embedded error: webxml attribute is required (or pre-existing
  WEB-INF/web.xml
  if executing in update mode)
 
  NOTE
  Some time ago we used this configuration to create a valid war file using:
  mvn package
 
  But we need to move the stuff in WEB-INF/classes to WEB-INF/lib/spg.jar
 
 Why don't you create an spg project with the jar packaging on which
 your war project depends ?
 
 If you want some sample, checkout the axis-archetype code at mojo.
 http://mojo.codehaus.org/ (it is in the sandbox)
 
 Hope this helps.
 
 Raphaël
 
 That is why we are looking in to assembly's.
 
  Can you think of anything else that might solve this problem ?
 
  -
  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 virus programs used
 in the DnB NOR Group.
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * *




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



RE: How to put a Jar in my War

2006-04-06 Thread Raymond Domingo
thank you for clearing this out. It is indeed confusing.
Documentation is mentioning webXml, but error refers to webxml.
I tried both, camel case and lowercase.

On Thu, 6 Apr 2006 10:46:47 +0200, hermod.opstvedt wrote
 Hi
 
 I noted that the error states: webxml attribute is required , while 
 you have a parameter webXml (note the uppercase X)
 
 Hermod
 
 -Original Message-
 From: Piéroni Raphaël [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 06, 2006 10:25 AM
 To: Maven Users List
 Subject: Re: How to put a Jar in my War
 
 Hello Raymond,
 
 Inline answer
 
 2006/4/6, Raymond Domingo [EMAIL PROTECTED]:
 
 
 
  Hello Mang Jun Lau,
 
  Thank you for responsing, but it still isn't working :(
 
  Currently I have this in my pom.xml:
 plugin
 artifactIdmaven-war-plugin/artifactId
 configuration
 warSourceDirectoryweb/warSourceDirectory
warNamespg/warName
 webXmlweb/WEB-INF/web.xml/webXml
 /configuration
 /plugin
 
  I also tried:
 plugin
 artifactIdmaven-war-plugin/artifactId
 configuration
 webXmlweb/WEB-INF/web.xml/webXml
 /configuration
 /plugin
 
  I even upgraded from maven 2.0.2 to 2.0.3
 
  But I still get this error:
 
  Embedded error: webxml attribute is required (or pre-existing
  WEB-INF/web.xml
  if executing in update mode)
 
  NOTE
  Some time ago we used this configuration to create a valid war file using:
  mvn package
 
  But we need to move the stuff in WEB-INF/classes to WEB-INF/lib/spg.jar
 
 Why don't you create an spg project with the jar packaging on which
 your war project depends ?
 
 If you want some sample, checkout the axis-archetype code at mojo.
 http://mojo.codehaus.org/ (it is in the sandbox)
 
 Hope this helps.
 
 Raphaël
 
 That is why we are looking in to assembly's.
 
  Can you think of anything else that might solve this problem ?
 
  -
  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 virus programs used
 in the DnB NOR Group.
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * *




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



Re: PMD reports

2006-04-06 Thread Rik Bosman
Great, I'd like to use the jsp rulesets. Is the option do not check java,
check jsp also included?


Re: jboss-sar-maven-plugin and packaging sar

2006-04-06 Thread Tom Huybrechts
On 4/6/06, Peschier J. (Jeroen) [EMAIL PROTECTED] wrote:


 I built jboss-sar-maven-plugin-2.0-SNAPSHOT from source since it is not
 yet released. If I set packagingsar/packaging I get this error:

 [ERROR] BUILD ERROR
 [INFO] ---
 [INFO] Cannot find lifecycle mapping for packaging: 'sar'.
 Component descriptor cannot be found in the component repository:
 org.apache.maven.lifecycle.mapping.LifecycleMappingsar.

 snip

Add: extensionstrue/extensions to the plugin element for the
jboss-sar-maven-plugin.

Tom


Re: [m2] How to exclude a jar in WEB-INF/lib

2006-04-06 Thread Tom Joad
your pom.xml looks like this
Spring and hibernate dependency
dependency
...
spring
/dependency
dependency
...
   hibernate
/dependency
dependency
  groupIdcglib/groupId
  artifactIdcglib/artifactId
  version2.1_3/version
  scopeprovided/provided
/dependency
I think warning message  is to recall to you that spring  dependency
needs cglib2.1.3 to work and tell you to be sure what about you are
doing.
Tom.

2006/4/6, Wesslan [EMAIL PROTECTED]:

 And how do I do that? (I have kinda hard time finding my way around the
 docs...)

 Regards,
 Peter
 --
 View this message in context: 
 http://www.nabble.com/-m2-How-to-exclude-a-jar-in-WEB-INF-lib-t1404553.html#a3780718
 Sent from the Maven - Users forum 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]



KEYSTORES in M2 : is it possible to create / use KEYSTORE in M2 ?

2006-04-06 Thread Sharma, Jaikumar
Dear.
Is it possible to create / use keystores in M2 ?
Regards.
- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.


weblogic help

2006-04-06 Thread Paul Li
hi guys,

I am using maven to package my ear file at the moment. And it
automatically generates application.xml (great!) However I need to
deploy to weblogic app server, which looks for
weblogic-application.xml. Is there a way I could configure the
maven-ear plug in to generate this file the same way as
application.xml?

What I am also looking for is to figure out a way to specify the
classloader resources tag. I believe these will be the jar/war files
that gets loaded during application start up.

a bit like this in the application.xml

classloader-structure
module-ref
module-uriejb1.jar/module-uri
/module-ref
module-ref
module-uriweb3.war/module-uri
/module-ref
classloader-structure
module-ref
module-uriweb1.war/module-uri
/module-ref
/classloader-structure
classloader-structure
module-ref
module-uriejb3.jar/module-uri
/module-ref
module-ref
module-uriweb2.war/module-uri
/module-ref
classloader-structure
module-ref
module-uriweb4.war/module-uri
/module-ref
/classloader-structure
classloader-structure
module-ref
module-uriejb2.jar/module-uri
/module-ref
/classloader-structure
/classloader-structure
/classloader-structure


thanks in advance!

paul

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



RE: jboss-sar-maven-plugin and packaging sar

2006-04-06 Thread Peschier J. (Jeroen)

I got this when trying your suggestion. 

[INFO]
 --
[INFO] The plugin 'org.apache.maven.plugins:maven-sar-plugin' does not
exist or no valid version could be found
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-sar-plugin' does not exist or no valid
version could be found


Why is it looking for org.apache.maven.plugins:maven-sar-plugin? The
plugin I built is org.codehaus.mojo:jboss-sar-maven-plugin. Am I correct
in assuming there are different plugins for the same task? Or perhaps
one plugin for the SAR-packaging-type and one for building a SAR
archive?
 
The org.apache.maven.plugins:maven-sar-plugin is not available at
ibiblio. I found loom:maven-sar-plugin, but it's just an empty stub on
ibiblio. Any ideas where it can be found?


 Add: extensionstrue/extensions to the plugin element for the
 jboss-sar-maven-plugin.
 
 Tom


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



Multi modules/different pom/more than one source dir

2006-04-06 Thread Christopher Cudennec

Hey everyone,

as far as I know it is not possible to set the name of the pom-file when 
using a multi module project. The xml schema states this:


xs:element name=modules minOccurs=0
   xs:annotation
 xs:documentation source=version4.0.0/xs:documentation
 xs:documentation source=descriptionThe modules to build in 
addition to the current project/xs:documentation

   /xs:annotation
   xs:complexType
 xs:sequence
   xs:element name=module minOccurs=0 
maxOccurs=unbounded type=xs:string/

 /xs:sequence
   /xs:complexType
 /xs:element

So my pom.xml for the project looks something like

project
  ...
 modules
   moduleone/module
   moduletwo/module
 /modules
/project

I guess the default file name (i.e. pom.xml) is assumed. I can build my 
projects by commandline using something like mvn -f myproject.xml so 
why not adding an attribute to set the name of the pom file?


The reason why I need this is that I have to cope with a multi source 
folder problem. I already know that this is regarded as being evil but 
I would like to introduce maven to an existing project without (much) 
changing the directory structure... I can solve my problem in each 
subproject by creating a new pom.xml and packaging this project before 
my real project.


Any comments or suggestions?

Thanks,

Christopher

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



Re: How to put a Jar in my War

2006-04-06 Thread Piéroni Raphaël
If you take the axis archetype example
you have something like this :

parent-project
+-- pom.xml (packaging = pom, modules= jspg-core, jspg-webapp)
+-- jspg-core
|   +-- pom.xml (packaging = jar)
+-- jspg-webapp
+-- pom.xml (packaging = war, dependency = jspg-core)

Do not forget to add the parent element in the child poms.

When you call mvn install in the parent pom directory,
Maven will install the parent pom in your local repository,
then it will compile, test, and install the pom AND jar of jspg-core in your
local repository
then it will compile, test, and install the pom AND war of jspg-webapp
(including the jspg-core.jar) in your local repository

Regards,

Raphaël

2006/4/6, Raymond Domingo [EMAIL PROTECTED]:

 Hi Piéroni Raphaël,

 Thank you for responding,
 it might be a solution...

 So if I understand you correctly I don't need to change my dir structure
 to do
 this, currently we have one large project which should remain this way for
 now.

 in /pom.xml (root pom) I will use packagingjar/packaging this will be
 the
 spg.jar

 And in /subdir/of/root/pom.xml I will use packagingwar/packaging this
 will
 create my war, and by setting my parent in this pom it will include my jar
 from the parent pom.

 Did I understand this correclty, or do I also need to add dependencies to
 this
 pom ?

 Because I'm new to maven I still find it hard to use the dependency
 mechanishm. It's not completely clear to me if dependencies always need to
 be
 in a mvnrepository before they can be used, or if (this is what we need)
 the
 spg.jar just build can be used when packaging my war file without first
 releasing it in a mvnrepository.


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




Re: [m2] How to exclude a jar in WEB-INF/lib

2006-04-06 Thread Wesslan

That's exactly how my pom looks like and I'm actually glad that Maven is
complaining. It should be! :-)

Thanks for replying!

Regards,
Peter
--
View this message in context: 
http://www.nabble.com/-m2-How-to-exclude-a-jar-in-WEB-INF-lib-t1404553.html#a3781591
Sent from the Maven - Users forum at Nabble.com.


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



jars needs to be located in local repository

2006-04-06 Thread Venkatagopalaraju
Dear Maven Users,

  I am working in multiple projects. After building with maven tool, jars 
are locating in same project of classes folder. But, these jars are not 
locating in local repository.Even I am using some of our project jars as a 
dependencies(in multiple projects).

Could you please let me know, what I need to do for generated jars needs to be 
located in local repository.


Thanks  Regards
  Gopal


Re: jars needs to be located in local repository

2006-04-06 Thread Arik Kfir
what command are you running with mvn? are you running mvn install?
(install means installing the project's artifacts - e.g. the JAR files -
into your local repository.

P.S.
I assume you are using maven 2.x

On 4/6/06, Venkatagopalaraju [EMAIL PROTECTED]
wrote:

 Dear Maven Users,

   I am working in multiple projects. After building with maven tool,
 jars are locating in same project of classes folder. But, these jars are not
 locating in local repository.Even I am using some of our project jars as a
 dependencies(in multiple projects).

 Could you please let me know, what I need to do for generated jars needs
 to be located in local repository.


 Thanks  Regards
   Gopal




Re: Multi modules/different pom/more than one source dir

2006-04-06 Thread Napoleon Esmundo Ramirez
Hello,

Well, you are right that the module / requires a directory and that the
multi-module build assumes a pom.xml in every module--but it isn't what the
xsd states (it only describes the elements, types and cardinality).

Anyway, I would recommend that you follow the convention.  It would really
be easier that way since you wouldn't have to configure much. :)

Cheers!
Nap

On 4/6/06, Christopher Cudennec [EMAIL PROTECTED] wrote:

 Hey everyone,

 as far as I know it is not possible to set the name of the pom-file when
 using a multi module project. The xml schema states this:

 xs:element name=modules minOccurs=0
 xs:annotation
   xs:documentation source=version4.0.0/xs:documentation
   xs:documentation source=descriptionThe modules to build in
 addition to the current project/xs:documentation
 /xs:annotation
 xs:complexType
   xs:sequence
 xs:element name=module minOccurs=0
 maxOccurs=unbounded type=xs:string/
   /xs:sequence
 /xs:complexType
   /xs:element

 So my pom.xml for the project looks something like

 project
...
   modules
 moduleone/module
 moduletwo/module
   /modules
 /project

 I guess the default file name (i.e. pom.xml) is assumed. I can build my
 projects by commandline using something like mvn -f myproject.xml so
 why not adding an attribute to set the name of the pom file?

 The reason why I need this is that I have to cope with a multi source
 folder problem. I already know that this is regarded as being evil but
 I would like to introduce maven to an existing project without (much)
 changing the directory structure... I can solve my problem in each
 subproject by creating a new pom.xml and packaging this project before
 my real project.

 Any comments or suggestions?

 Thanks,

 Christopher

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




Re: Continued Cobertura Plugin Issues

2006-04-06 Thread Kaare Nilsen
Hi

My comments inline

Best regards
Kaare Nilsen

On 04/04/06, Daun DeFrance [EMAIL PROTECTED] wrote:
 Lee,

 I was able to move past this issue by removing the version tag from my
 Cobertura plugin specifications (below) and performing a -U when
 executing mvn clean site.



 I have since found a conflict between the Cobertura and AspectJ plugins
 where, because of a bug with AspectJ, the plugin copies the .class files
 from /src/main/java into my /target/test-classes directory.

Well.. it is actually not a bug, but a feature ;)
The aspectJ test-compile goal includes all the classes in the
src/main/java in the compile process. This is because when tests are
run, any aspects that might be a part of the test sourcedir, and also
aspects that are under src/main/java must be applied so that the tests
run properly.
Well. In your case, perhaps you only weave classes in the
src/main/test, and then you will need to add exclude statements in the
test-compile goal to aviod having any files from the src/main/java to
be a part of the compile.
But even if you do this, we still have not found a solution to the
conflict between surefire/cobertura/aspectJ

 The surefire plugin puts the /target/test-classes directory in front of the
 /target/generated-classes/cobertura directory in the classpath for the
 tests.  Therefore, non-instrumented class files were being loaded before
 the cobertura classes.  Therefore, I always got 0 % results on the
 projects which used Aspectj.  I got around this by modifying the
 surefire plugin to load the classesdir before the testclassesdir
 and deployed that change locally.  Of course, this is not ideal because
 now mock objects are useless in my test directory.  However, until the
 bug with the AspectJ compiler gets fixed (and thus the AspectJ plugin),

It is just by chance that i saw this mail by searching in the lists for aspectJ.
If you later finds bugs, or have questions about the usage please file
jira issues using the aspectj component, and/or send mail to the mojo
user mailing list.

jira : http://jira.codehaus.org/browse/MOJO

 it's the best I could do.



 Now, if someone would just make Cobertura exercise the
 integration-test goal instead of test so my web application project
 which builds and tests a war during the integration-test phase can get
 some coverage reports.  :-)  That's my current pain...



 Hope this helps,

 D DeFrance



 

 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Lee Meador
 Sent: Tuesday, April 04, 2006 1:57 PM
 To: Maven Users List; Daun DeFrance
 Subject: Re: Continued Cobertura Plugin Issues



 Did you get this worked out?

 On 3/28/06, Daun DeFrance [EMAIL PROTECTED] wrote:

 FWIW,
 Removing the cobertura:clean execution below from my pom means I get
 results every time I run site now, but they are cumulative.  So if a
 line gets called twice during a test, every time I run site, the line
 count increments by 2.  And if I remove a test for that line, it still
 shows the last line count before the test removal.  So, for me, this is
 unacceptable.  I need cobertura to tell me the coverage of THIS run, not
 whatever is left in the ser file from previous runs.

 It seems like this is the old problem of using process boundaries to set
 the ser file and because the test is running in the same process as the
 reporting, I get 0% coverage.

 Also, removing the scopetest/scope from the cobertura jar keeps the
 test from running twice, but I get ClassDefNotFound errors if I remove
 the jar as a dependency entirely.

 Surely, I am just really messed up here and there's a simple answer to
 all these issues.

 Thanks,
 D DeFrance

 -Original Message-
 From: Daun DeFrance [mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] ]
 Sent: Tuesday, March 28, 2006 12:46 PM
 To: users@maven.apache.org
 Subject: Continued Cobertura Plugin Issues

 Hi all,

 I followed Boris Lenzinger's suggestions dated March 19 (Re: [M2] Maven
 Generated Reports).  I am unable to generate any coverage of my
 projects.  Assuming it was something about my multiproject build
 (because running site on the parent pom.xml still generates a
 Cobertura error), I decided to start from scratch.



 I created a simple archetype project using mvn archetype:create
 -DgroupId=com.mycompany.app -DartifactId=my-app.



 I then modified the pom as follows:



 project xmlns= http://maven.apache.org/POM/4.0.0;

   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;

   modelVersion4.0.0/modelVersion

   groupIdcom.mycompany.app/groupId

   artifactIdmy-app/artifactId

   packagingjar/packaging

   version1.0-SNAPSHOT/version

   nameMaven Quick Start Archetype/name

   urlhttp://maven.apache.org/url

   dependencies

 dependency

   groupIdjunit/groupId

   

Trouble or misunderstanding with profile and settings. ?

2006-04-06 Thread Olivier Lamy
Hi,
I don't know if it's a trouble but I have made a simple test.
My pom contains :
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
phasevalidate/phase
configuration
tasks
echo${test}/echo
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions 
/plugin

In my $HOME/.m2/settings.xml, the profile (id=dev) with
activeByDefaulttrue/activeByDefault contains :
properties
..
testdev/test
/properties
The profile (id=snapshots) contains :
properties
..
testsnapshots/test
/properties

All are in the section :
activeProfiles
activeProfiledev/activeProfile
activeProfilesnapshots/activeProfile
/activeProfiles

mvn validate :
[echo] dev 
mvn -P snapshots validate :
[echo] dev


Is there any trouble somewhere : antrun plugin or in maven or a know
issue ?
Or I musunderstand something ? 

- Olivier



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


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



RE: continuum build fails

2006-04-06 Thread Dixit, Sandeep (ProSource Solutions)
Where does it write the log? I am not able to find it in the continuum 
directory where I checked out the code and doing the build.

Thanks,
Sandeep

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 05, 2006 4:03 PM
To: continuum-users@maven.apache.org
Subject: Re: continuum build fails

what is the test that failed?

Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :
 I am getting the following error message while trying to build on winxp
 machine. How do I resolve this?
 
 Thanks in advance,
 Sandeep
 
 
 
 ---
 [2006.04.05 14:55:39] Integration test settings
 
 ---
 [2006.04.05 14:55:39] IT root: C:\continuum\continuum-core-it\target\it
 [2006.04.05 14:55:39] Remoting method: jvm
 [2006.04.05 14:55:39] Store implementation: class
 org.apache.maven.continuum.sto
 re.JdoContinuumStore
 
 ---
 [surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 7.938 sec
 
  FAILURE !!
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] There are test failures.
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 7 minutes 5 seconds
 [INFO] Finished at: Wed Apr 05 14:55:39 EDT 2006
 [INFO] Final Memory: 60M/63M
 [INFO]
 
 
 ---
 ***National City made the following annotations
 ---
 This communication is a confidential and proprietary business communication.  
 It is intended solely for the use of the designated recipient(s).  If this
 communication is received in error, please contact the sender and delete 
 this communication.
 ===
 
 
 





RE: [m2.0.3] Scanning for projects... hangs

2006-04-06 Thread Allison, Bob
Is there a reason to protect against the following:

connection${project.scm.developerConnection}/xx/connection
developerConnection${project.scm.connection}/xx/developerConnection

Looking at John's patch, it would not catch this kind of configuration
issue.  What I have above is certainly fabricated and is unlikely to
occur.  But I can see the possibility of circular references like this
cropping up from cut-n-paste errors which may not be obvious because
they are not in adjacent lines.

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 05, 2006 20:02
To: Maven Users List
Subject: Re: [m2.0.3] Scanning for projects... hangs


John has fixed this and will post a new RC shortly.

On 4/5/06, Allison, Bob [EMAIL PROTECTED] wrote:
 And yes it hangs in the 2.0.4 RC

 -Original Message-
 From: Allison, Bob [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 04, 2006 19:10
 To: Maven Users List
 Subject: RE: [m2.0.3] Scanning for projects... hangs


 It doesn't require child projects.  The following POM hangs in 2.0.3
(I
 haven't downloaded the 2.0.4 RC yet):

 ?xml version=1.0 encoding=UTF-8?
 project
   modelVersion4.0.0/modelVersion
   groupIdtest/groupId
   artifactIdtest/artifactId
   packagingpom/packaging
   nameTest Hang/name
   version1.0-SNAPSHOT/version
   scm
 connection${project.scm.connection}/xx/connection


developerConnection${project.scm.developerConnection}/xx/developerCon
 nection
 url${project.scm.url}/xx/url
   /scm
 /project

 Notice that project.scm.url contains ${project.scm.url} and likewise
for
 the other two SCM entries.  I believe that this is what is causing the
 hang.  I suspect what Jens is trying to do is get the value of
 project.scm.* from the parent project.

 -Original Message-
 From: Brett Porter [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 04, 2006 17:48
 To: Maven Users List
 Subject: Re: [m2.0.3] Scanning for projects... hangs


 what about the hang?

 On 4/5/06, Jens Zastrow [EMAIL PROTECTED] wrote:
  Neither with the 2.0.4-SNAPSHOT.
 
  To test this just add teh following to a child-pom.
 
  scm
  connection${project.scm.connection}/xxx/connection
 
 

developerConnection${project.scm.developerConnection}/xxx/developerCo
  nnection
  url${project.scm.url}/xxx/url
  /scm
 

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


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



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


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



RE: Weblogic help

2006-04-06 Thread Scott Ryan
Is this a file that you can truly generate or is it a fixed file that you
can just place in your resources directory like the web.xml and
weblogic.xml.  The application.xml is easy to generate since it is
predictable what is needed however I am not sure the Weblogic version is
that easy to generate.  On our side we just hand code it an include it with
the project using the resources directory in both Maven 1 and 2.  From your
example it looks like you are mainly using it to change the class loader
hierarchy and there is really no way to automate that since the generated
one would just generate the standard J2EE hierarchy which is the default so
no weblogic-application.xml is actually required.


Scott Ryan
Chief Technology Officer
Soaring Eagle L.L.C.
[EMAIL PROTECTED]
www.soaringeagleco.com
(303) 263-3044

-Original Message-
From: Paul Li [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 06, 2006 4:02 AM
To: Maven Users List
Subject: weblogic help


hi guys,

I am using maven to package my ear file at the moment. And it
automatically generates application.xml (great!) However I need to
deploy to weblogic app server, which looks for
weblogic-application.xml. Is there a way I could configure the
maven-ear plug in to generate this file the same way as
application.xml?

What I am also looking for is to figure out a way to specify the
classloader resources tag. I believe these will be the jar/war files
that gets loaded during application start up.

a bit like this in the application.xml

classloader-structure
module-ref
module-uriejb1.jar/module-uri
/module-ref
module-ref
module-uriweb3.war/module-uri
/module-ref
classloader-structure
module-ref
module-uriweb1.war/module-uri
/module-ref
/classloader-structure
classloader-structure
module-ref
module-uriejb3.jar/module-uri
/module-ref
module-ref
module-uriweb2.war/module-uri
/module-ref
classloader-structure
module-ref
module-uriweb4.war/module-uri
/module-ref
/classloader-structure
classloader-structure
module-ref
module-uriejb2.jar/module-uri
/module-ref
/classloader-structure
/classloader-structure
/classloader-structure


thanks in advance!

paul

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



JDOM et java.lang.NoClassDefFoundError

2006-04-06 Thread Pierre Jacquot
When i use this javacode in a maven project :
setXPathClass(Class.forName(className));

where className=org.jdom.xpath.JaxenXPath

i have this error :
java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.jdom.xpath.XPath.newInstance(XPath.java:128)
at org.jdom.xpath.XPath.selectNodes(XPath.java:349)
at 
org.jtestcase.core.digester.XQueryParserImpl_Jaxen.getElements(XQueryParserImpl_Jaxen.java:79)

at
org.jtestcase.core.digester.JTestCaseDigester.getTestCaseGlobalParams(
JTestCaseDigester.java:828)
at org.jtestcase.JTestCase.getGlobalParams(JTestCase.java:240)
at org.jtestcase.JTestCase.getGlobalParamLocale(JTestCase.java:278)
at org.jtestcase.JTestCase.init(JTestCase.java:155)
at com.test_junit.app.CalculatorTest.init(CalculatorTest.java:53)
at com.test_junit.app.CalculatorTest.suite(CalculatorTest.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.maven.surefire.battery.JUnitBattery.processTestClass(
JUnitBattery.java:130)
at org.apache.maven.surefire.battery.JUnitBattery.init(
JUnitBattery.java:81)
at org.apache.maven.surefire.SurefireUtils.instantiateBattery(
SurefireUtils.java:63)
at org.apache.maven.surefire.Surefire.instantiateBatteries(
Surefire.java:262)
at org.apache.maven.surefire.Surefire.run(Surefire.java:140)
at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(
SurefireBooter.java:313)
at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)

at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)

at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(
DefaultLifecycleExecutor.java:891)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle
(DefaultLifecycleExecutor.java:734)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:525)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


Where the error come from? Why the JDOM package works in Eclipse but doesn't
in Maven? How resolve the problem ?
Thaks for anyone who reads me.
Pierre


Re: JDOM et java.lang.NoClassDefFoundError

2006-04-06 Thread Boris Lenzinger
You are probably missing a dependency (with scope test I guess) in your 
pom file. This dependency should be related to jaxen.


Pierre Jacquot a écrit :

When i use this javacode in a maven project :
setXPathClass(Class.forName(className));

where className=org.jdom.xpath.JaxenXPath

i have this error :
java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.jdom.xpath.XPath.newInstance(XPath.java:128)
at org.jdom.xpath.XPath.selectNodes(XPath.java:349)
at 
org.jtestcase.core.digester.XQueryParserImpl_Jaxen.getElements(XQueryParserImpl_Jaxen.java:79)

at
org.jtestcase.core.digester.JTestCaseDigester.getTestCaseGlobalParams(
JTestCaseDigester.java:828)
at org.jtestcase.JTestCase.getGlobalParams(JTestCase.java:240)
at org.jtestcase.JTestCase.getGlobalParamLocale(JTestCase.java:278)
at org.jtestcase.JTestCase.init(JTestCase.java:155)
at com.test_junit.app.CalculatorTest.init(CalculatorTest.java:53)
at com.test_junit.app.CalculatorTest.suite(CalculatorTest.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.maven.surefire.battery.JUnitBattery.processTestClass(
JUnitBattery.java:130)
at org.apache.maven.surefire.battery.JUnitBattery.init(
JUnitBattery.java:81)
at org.apache.maven.surefire.SurefireUtils.instantiateBattery(
SurefireUtils.java:63)
at org.apache.maven.surefire.Surefire.instantiateBatteries(
Surefire.java:262)
at org.apache.maven.surefire.Surefire.run(Surefire.java:140)
at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(
SurefireBooter.java:313)
at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)

at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)

at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(
DefaultLifecycleExecutor.java:891)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle
(DefaultLifecycleExecutor.java:734)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:525)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


Where the error come from? Why the JDOM package works in Eclipse but doesn't
in Maven? How resolve the problem ?
Thaks for anyone who reads me.
Pierre

  



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



[M1] Comparing properties in maven.xml

2006-04-06 Thread Shute, James
Does anybody know how I can compare 2 properties in a custom goal in my
maven.xml file?

e.g.

For a build where the properties are
 java.specification.version : 1.5
 maven.compile.target : 1.4

Then these steps 

 echo${java.specification.version ne maven.compile.target}/echo
 echo${java.specification.version eq maven.compile.target}/echo
 echo${java.specification.version != maven.compile.target}/echo
 echo${java.specification.version == maven.compile.target}/echo

output this

[echo] false
[echo] true
[echo] false
[echo] true

which is the exact opposite of what I'd expect, as they're not the same.
In fact forcing the 2nd property to be 1.5 via the command line still
gives the same output, as do any other values I try.

Surely this must be possible?  Every example I can find compares a
property to a string literal, but I can't believe I'm the 1st person to
ever want to compare 2 properties?!

thanks

James

--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


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



Re: continuum build fails

2006-04-06 Thread Emmanuel Venisse
In console, you must have a line with  FAILURE !! or you can look in 
continuum-core-it/target/surefire-reports


Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :

Where does it write the log? I am not able to find it in the continuum 
directory where I checked out the code and doing the build.

Thanks,
Sandeep

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 05, 2006 4:03 PM

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

what is the test that failed?

Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :


I am getting the following error message while trying to build on winxp
machine. How do I resolve this?

Thanks in advance,
Sandeep



---
[2006.04.05 14:55:39] Integration test settings

---
[2006.04.05 14:55:39] IT root: C:\continuum\continuum-core-it\target\it
[2006.04.05 14:55:39] Remoting method: jvm
[2006.04.05 14:55:39] Store implementation: class
org.apache.maven.continuum.sto
re.JdoContinuumStore

---
[surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 7.938 sec

 FAILURE !!
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] There are test failures.
[INFO]

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

[INFO] Total time: 7 minutes 5 seconds
[INFO] Finished at: Wed Apr 05 14:55:39 EDT 2006
[INFO] Final Memory: 60M/63M
[INFO]


---
***National City made the following annotations
---
This communication is a confidential and proprietary business communication.  
It is intended solely for the use of the designated recipient(s).  If this
communication is received in error, please contact the sender and delete 
this communication.

===















Re: JDOM et java.lang.NoClassDefFoundError

2006-04-06 Thread Pierre Jacquot
what's scope test is ?

2006/4/6, Boris Lenzinger [EMAIL PROTECTED]:

 You are probably missing a dependency (with scope test I guess) in your
 pom file. This dependency should be related to jaxen.

 Pierre Jacquot a écrit :
  When i use this javacode in a maven project :
  setXPathClass(Class.forName(className));
 
  where className=org.jdom.xpath.JaxenXPath
 
  i have this error :
  java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:141)
  at org.jdom.xpath.XPath.newInstance(XPath.java:128)
  at org.jdom.xpath.XPath.selectNodes(XPath.java:349)
  at
 org.jtestcase.core.digester.XQueryParserImpl_Jaxen.getElements
 (XQueryParserImpl_Jaxen.java:79)
 
  at
  org.jtestcase.core.digester.JTestCaseDigester.getTestCaseGlobalParams(
  JTestCaseDigester.java:828)
  at org.jtestcase.JTestCase.getGlobalParams(JTestCase.java:240)
  at org.jtestcase.JTestCase.getGlobalParamLocale(JTestCase.java
 :278)
  at org.jtestcase.JTestCase.init(JTestCase.java:155)
  at com.test_junit.app.CalculatorTest.init(CalculatorTest.java
 :53)
  at com.test_junit.app.CalculatorTest.suite(CalculatorTest.java
 :76)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(
  NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
  DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
 org.apache.maven.surefire.battery.JUnitBattery.processTestClass(
  JUnitBattery.java:130)
  at org.apache.maven.surefire.battery.JUnitBattery.init(
  JUnitBattery.java:81)
  at org.apache.maven.surefire.SurefireUtils.instantiateBattery(
  SurefireUtils.java:63)
  at org.apache.maven.surefire.Surefire.instantiateBatteries(
  Surefire.java:262)
  at org.apache.maven.surefire.Surefire.run(Surefire.java:140)
  at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(
  NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
  DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(
  SurefireBooter.java:313)
  at org.apache.maven.surefire.SurefireBooter.run(
 SurefireBooter.java:221)
 
  at org.apache.maven.test.SurefirePlugin.execute(
 SurefirePlugin.java:371)
 
  at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
  DefaultPluginManager.java:412)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
  DefaultLifecycleExecutor.java:534)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
  (DefaultLifecycleExecutor.java:475
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle
 (
  DefaultLifecycleExecutor.java:891)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle
  (DefaultLifecycleExecutor.java:734)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
  DefaultLifecycleExecutor.java:525)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
  (DefaultLifecycleExecutor.java:475
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
  DefaultLifecycleExecutor.java:454)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
  (DefaultLifecycleExecutor.java
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
  DefaultLifecycleExecutor.java:273)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
  DefaultLifecycleExecutor.java:140)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
 :322)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(
  NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
  DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.codehaus.classworlds.Launcher.launchEnhanced(
 Launcher.java:315)
 
  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at org.codehaus.classworlds.Launcher.mainWithExitCode(
 Launcher.java:430)
 
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 
 
  Where the error come from? Why the JDOM package works in 

Re: Maven and JTestCase

2006-04-06 Thread Eric Redmond
The one relevant line:
Caused by: java.lang.NoClassDefFoundError: org/jaxen/BaseXPath

Anyway, I'd suggest using the Maven 2 plugin in Eclipse and get the
dependencies to work that way (rather than through the classpath). So when
you have the classpath set up correctly in Eclipse, it should work with
Maven as well.

Eric

On 4/6/06, Pierre Jacquot [EMAIL PROTECTED] wrote:

 To make Unit Test I use Junit and JTestCase. All works with eclispe but
 when
 i want to use JTestCase I have a problemem with my JDom package. I already
 have one but it seems to doesn't work good in Maven.
 If anyone have the same problem, or had have the same, Can he explain me
 how
 to resolve it ?

 Here the java's error :
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.maven.surefire.battery.JUnitBattery.processTestClass
 (
 JUnitBattery.java:130)
 at org.apache.maven.surefire.battery.JUnitBattery.init(
 JUnitBattery.java:81)
 at org.apache.maven.surefire.SurefireUtils.instantiateBattery(
 SurefireUtils.java:63)
 at org.apache.maven.surefire.Surefire.instantiateBatteries(
 Surefire.java:262)
 at org.apache.maven.surefire.Surefire.run(Surefire.java:140)
 at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(
 SurefireBooter.java:313)
 at org.apache.maven.surefire.SurefireBooter.run(
 SurefireBooter.java
 :221)
 at org.apache.maven.test.SurefirePlugin.execute(
 SurefirePlugin.java
 :371)
 at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
 DefaultPluginManager.java:412)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
 (DefaultLifecycleExecutor.
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
 (DefaultLifecy
 5)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle
 (DefaultLifecycleE
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle
 (DefaultLifecycleExecutor
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
 (DefaultLifecycleExecutor.
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
 (DefaultLifecy
 5)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
 (
 DefaultLifecycleExecutor.j
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
 (DefaultLi
 a:306)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
 (DefaultLifecycleEx
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
 DefaultLifecycleExecutor.java:
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
 :315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at org.codehaus.classworlds.Launcher.mainWithExitCode(
 Launcher.java
 :430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: java.lang.NoClassDefFoundError: org/jaxen/BaseXPath
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:141)
 at org.jdom.xpath.XPath.newInstance(XPath.java:126)
 at org.jdom.xpath.XPath.selectNodes(XPath.java:337)
 at org.jtestcase.core.digester.XQueryParserImpl_Jaxen.getElements
 (XQueryParserImpl_Jaxen.java
 at
 org.jtestcase.core.digester.JTestCaseDigester.getTestCaseGlobalParams(
 JTestCaseDigester.ja
 at org.jtestcase.JTestCase.getGlobalParams(JTestCase.java:240)
 at org.jtestcase.JTestCase.getGlobalParamLocale(JTestCase.java
 :278)
 at org.jtestcase.JTestCase.init(JTestCase.java:155)
 at 

Re: [M1] Comparing properties in maven.xml

2006-04-06 Thread Dion Gillard
James,

there were some issues in earlier versions of maven using dotted variables.

Could you try the following:

j:set var=specVersion value=${java.specification.version}/
j:set var=compileTarget value=${maven.compile.target}/

and then use specVersion and compileTarget in your echo's.

On 4/6/06, Shute, James [EMAIL PROTECTED] wrote:

 Does anybody know how I can compare 2 properties in a custom goal in my
 maven.xml file?

 e.g.

 For a build where the properties are
 java.specification.version : 1.5
 maven.compile.target : 1.4

 Then these steps

  echo${java.specification.version ne maven.compile.target}/echo
  echo${java.specification.version eq maven.compile.target}/echo
  echo${java.specification.version != maven.compile.target}/echo
  echo${java.specification.version == maven.compile.target}/echo

 output this

 [echo] false
 [echo] true
 [echo] false
 [echo] true

 which is the exact opposite of what I'd expect, as they're not the same.
 In fact forcing the 2nd property to be 1.5 via the command line still
 gives the same output, as do any other values I try.

 Surely this must be possible?  Every example I can find compares a
 property to a string literal, but I can't believe I'm the 1st person to
 ever want to compare 2 properties?!

 thanks

 James


 --
 This message is intended only for the personal and confidential use of the
 designated recipient(s) named above.  If you are not the intended recipient
 of this message you are hereby notified that any review, dissemination,
 distribution or copying of this message is strictly prohibited.  This
 communication is for information purposes only and should not be regarded as
 an offer to sell or as a solicitation of an offer to buy any financial
 product, an official confirmation of any transaction, or as an official
 statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
 secure or error-free.  Therefore, we do not represent that this information
 is complete or accurate and it should not be relied upon as such.  All
 information is subject to change without notice.


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




--
http://www.multitask.com.au/people/dion/
Chuck Norris sleeps with a night light. Not because Chuck Norris is afraid
of the dark, but because the dark is afraid of Chuck Norris


Property filter with xml files

2006-04-06 Thread Kevin Galligan
Is there any way to specify an xml file as the source of property values
instead of a properties files...

build
filters
  !-- Something like this ... --
  filtersrc/main/filters/filter.xml/filter
  !-- End of special section.  Don't worry about the rest... --
/filters
resources
  resource
directorysrc/main/resources/directory
filteringtrue/filtering
  /resource
/resources
  /build

We're specifying the replace file in a command line switch, and the
different files get out of date as new properties are added.  Having an xml
file would allow for an xml schema, and that would make it easier to see
which files are out of date.

Thanks


Re: Archetypes

2006-04-06 Thread Kathryn Huxtable
It would be nice in designing archetypes if you could make use of package
structure under the java directories, e.g. Having something like
foo/bar/baz.java and specifying a package of a.b.c would yield the file
a/b/c/foo/bar/baz.java instead of foo/bar/a/b/c/baz.java.

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas


On 4/6/06 4:13 AM, Christopher Cudennec [EMAIL PROTECTED] wrote:

 Hey,
 
 thanks for the answer. I got to it by thinking and reading the
 documentation in the meantime as well ;). Archetypes are not what I was
 really looking for to tell the truth. I prefer copying my pom.xml in my
 existing projects. It's really poor that you need to define any kind of
 file for a folder to be created. Just giving a folder name for source
 does nothing... Using allowPartial didn't work out as well, so I'm
 quite annoyed by the archetype. The main stuff (packaging, ...) worked
 fine nevertheless...
 
 Thanks,
 Christopher
 
 Napoleon Esmundo Ramirez schrieb:
 Hello,
 
 The archetype plugin gives you a kick to start on projects immediately.  It
 creates the template of your project as far as sources and resources are
 concerned.  The target is defined in the project's pom.xml and it doesn't
 need to be in the archetype as it frequently gets cleaned in the file
 system. :)
 
 Cheers!
 Nap
 
 On 4/5/06, Christopher Cudennec [EMAIL PROTECTED] wrote:
   
 Hello everyone,
 
 I try to get to know what I can do by the archetype plugin. The guide to
 creating archetypes is alright for the basics but I would like to know
 how to set more variables by the archetype.xml. The documentation talks
 about setting the source and test-source-directory. But what about the
 target directory? In order to be able to adjust my own archetype to my
 existing project structure I would like to be able to set this one as
 well. I would appreciate any comments or a DTD ;).
 
 Thanks,
 
 Christopher
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
   
 
 
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.385 / Virus Database: 268.3.5/302 - Release Date: 05.04.2006
   
 
 
 -
 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: Shared projects and Maven best practice

2006-04-06 Thread Eric Redmond
Oh, its unfortunate that I have run across this interesting thread just now.
I actually ran across the exact same issue. Here's what I did (note this may
not be the most elegant solution, however, it worked well, and was the
easiest to implement). Since you mentioned that this is merely for rapid
development, it is presumed that you will eventually update everyone to the
newest version.

I created an alternate repository named TAG (whatever your tag is) and
pointed apache to it. For example, if your corporate repo is
http://corp/repo1, then create another repository named
http://corp/repo1-TAG, and continuum can build only specific projects that
should be overridden. This repository was populated solely with a specific
tagged cut of the code. Then your team can depend upon the repositories of
both. When they point to Utility 1.0.0, they should pick it up from TAG.

Now, in my defense, this strategy was employed to work on top of a very
legacy build/deploy system that knew only of SNAPSHOTs (and nothing else...
so its not really fair to even call it a versioning system). It sounds like
you guys have an equally goofy system. Are you guys supporting legacy
version in tandem? Meaning, do you branch 1.0 and continue working on it,
and then also work on 1.1? This was actually our big problem.

Eric

On 4/4/06, Mang Jun Lau [EMAIL PROTECTED] wrote:

 Hi everyone,

 I just want to spark a discussion here on the list.  I want to know if you
 guys/girls have encountered a simliar problem to what I'm having now.  So
 here goes:

 At our company we have two J2EE applications that are fairly large with
 many projects.  We operate in a RAD/Eclipse environment with CVS as our
 SCM.  There are shared projects (e.g. Utility projects) between the two
 applications.  These shared projects are developed more or less separately
 from the two main applications.  It is ideal for the two big applications
 to depend on the latest (i.e. HEAD) of the utility projects.  However,
 sometimes when deadlines are looming, and there's no time to test these
 latest changes, one or both of our applications will want to depend on an
 older, CVS tagged version of these utility projects.

 So the question is, how can I design my POM for these Utility projects so
 that I can build the application despite using a CVS tagged version?

 What I have now:
 - App 1 depends on Utility 1.1.0 (HEAD)
 - App 2 depends on Utility 1.0.0 (old CVS tagged version)
 - Continuum 1.0.2
 - Utility pom.xml at HEAD is 1.1.0
 - Utility pom.xml at tag is 1.0.0
 - both applications are in Continuum, modules are symlinked in CVS so that
 Continuum can check them all out at once. Utility project included with
 each application checkout.

 So really I guess that if there's a way to checkout an older version of
 the Utility project but HEAD of everything else, then I'm fine.  Is there
 a way to do this? Or am I using Maven incorrectly?  If I'm unclear, please
 ask and I'll try my best to clarify what I have.

 Thanks so much.


 _Mang Lau



Re: Property filter with xml files

2006-04-06 Thread Eric Redmond
Current documentation states that filters are *.properties files. I have not
heard of any change to this. It should be a relatively minor patch, why
don't you submit the idea?

Eric

On 4/6/06, Kevin Galligan [EMAIL PROTECTED] wrote:

 Is there any way to specify an xml file as the source of property values
 instead of a properties files...

 build
 filters
   !-- Something like this ... --
   filtersrc/main/filters/filter.xml/filter
   !-- End of special section.  Don't worry about the rest... --
 /filters
 resources
   resource
 directorysrc/main/resources/directory
 filteringtrue/filtering
   /resource
 /resources
   /build

 We're specifying the replace file in a command line switch, and the
 different files get out of date as new properties are added.  Having an
 xml
 file would allow for an xml schema, and that would make it easier to see
 which files are out of date.

 Thanks




search repository

2006-04-06 Thread Giacomo Cosenza

Hi,
we are planning to use two http/s corporate repository: one for external 
artifacts (e.g. sun artifacts, we call it product repository) and one 
for internal artifacts.


The two artifacts repository will be mainteined by an internal defined 
role.


During artifacts developing, the developer should be able to ask the 
products repository if an artifact (eventually with an associated 
version) is already available in that repository.


If no, the internal defined role will be asked to deploy the new 
artifact in the product repository.



My very simple question is: is there a maven 2 command to search an http 
repository for an artifact or should I have to implement the search 
command by myself?


Thanks

Mimmo

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



Re: Archetypes

2006-04-06 Thread Eric Redmond
Oddly enough:
http://jira.codehaus.org/browse/ARCHETYPE-22#action_62607


On 4/6/06, Kathryn Huxtable [EMAIL PROTECTED] wrote:

 It would be nice in designing archetypes if you could make use of package
 structure under the java directories, e.g. Having something like
 foo/bar/baz.java and specifying a package of a.b.c would yield the file
 a/b/c/foo/bar/baz.java instead of foo/bar/a/b/c/baz.java.

 --
 Kathryn Huxtable
 Middleware Architect
 Core Middleware
 Information Technology, a division of Information Services
 The University of Kansas


 On 4/6/06 4:13 AM, Christopher Cudennec [EMAIL PROTECTED] wrote:

  Hey,
 
  thanks for the answer. I got to it by thinking and reading the
  documentation in the meantime as well ;). Archetypes are not what I was
  really looking for to tell the truth. I prefer copying my pom.xml in my
  existing projects. It's really poor that you need to define any kind of
  file for a folder to be created. Just giving a folder name for source
  does nothing... Using allowPartial didn't work out as well, so I'm
  quite annoyed by the archetype. The main stuff (packaging, ...) worked
  fine nevertheless...
 
  Thanks,
  Christopher
 
  Napoleon Esmundo Ramirez schrieb:
  Hello,
 
  The archetype plugin gives you a kick to start on projects
 immediately.  It
  creates the template of your project as far as sources and resources
 are
  concerned.  The target is defined in the project's pom.xml and it
 doesn't
  need to be in the archetype as it frequently gets cleaned in the file
  system. :)
 
  Cheers!
  Nap
 
  On 4/5/06, Christopher Cudennec [EMAIL PROTECTED] wrote:
 
  Hello everyone,
 
  I try to get to know what I can do by the archetype plugin. The guide
 to
  creating archetypes is alright for the basics but I would like to know
  how to set more variables by the archetype.xml. The documentation
 talks
  about setting the source and test-source-directory. But what about the
  target directory? In order to be able to adjust my own archetype to my
  existing project structure I would like to be able to set this one as
  well. I would appreciate any comments or a DTD ;).
 
  Thanks,
 
  Christopher
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.1.385 / Virus Database: 268.3.5/302 - Release Date:
 05.04.2006
 
 
 
  -
  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: Property filter with xml files

2006-04-06 Thread Kevin Galligan
Not sure how the submit process works...

On 4/6/06, Eric Redmond [EMAIL PROTECTED] wrote:

 Current documentation states that filters are *.properties files. I have
 not
 heard of any change to this. It should be a relatively minor patch, why
 don't you submit the idea?

 Eric

 On 4/6/06, Kevin Galligan [EMAIL PROTECTED] wrote:
 
  Is there any way to specify an xml file as the source of property values
  instead of a properties files...
 
  build
  filters
!-- Something like this ... --
filtersrc/main/filters/filter.xml/filter
!-- End of special section.  Don't worry about the rest... --
  /filters
  resources
resource
  directorysrc/main/resources/directory
  filteringtrue/filtering
/resource
  /resources
/build
 
  We're specifying the replace file in a command line switch, and the
  different files get out of date as new properties are added.  Having an
  xml
  file would allow for an xml schema, and that would make it easier to see
  which files are out of date.
 
  Thanks
 
 




Re: Property filter with xml files

2006-04-06 Thread Eric Redmond
http://maven.apache.org/contributing/help.html

On 4/6/06, Kevin Galligan [EMAIL PROTECTED] wrote:

 Not sure how the submit process works...

 On 4/6/06, Eric Redmond [EMAIL PROTECTED] wrote:
 
  Current documentation states that filters are *.properties files. I have
  not
  heard of any change to this. It should be a relatively minor patch, why
  don't you submit the idea?
 
  Eric
 
  On 4/6/06, Kevin Galligan [EMAIL PROTECTED] wrote:
  
   Is there any way to specify an xml file as the source of property
 values
   instead of a properties files...
  
   build
   filters
 !-- Something like this ... --
 filtersrc/main/filters/filter.xml/filter
 !-- End of special section.  Don't worry about the rest... --
   /filters
   resources
 resource
   directorysrc/main/resources/directory
   filteringtrue/filtering
 /resource
   /resources
 /build
  
   We're specifying the replace file in a command line switch, and the
   different files get out of date as new properties are added.  Having
 an
   xml
   file would allow for an xml schema, and that would make it easier to
 see
   which files are out of date.
  
   Thanks
  
  
 
 




Re: Trouble or misunderstanding with profile and settings. ?

2006-04-06 Thread Eric Redmond
Why is the profile in your POM, but you're attempting to activate is within
your settings.xml?

Try and put the profile in settings, or activate it in the POM.

Why debuggin profile activation issues, this goal is useful:

mvn help:active-profiles
http://maven.apache.org/plugins/maven-help-plugin/active-profiles-mojo.html
Eric

On 4/6/06, Olivier Lamy [EMAIL PROTECTED] wrote:

 Hi,
 I don't know if it's a trouble but I have made a simple test.
 My pom contains :
 plugin
 artifactIdmaven-antrun-plugin/artifactId
 executions
 execution
 phasevalidate/phase
 configuration
 tasks
 echo${test}/echo
 /tasks
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
 /executions
 /plugin

 In my $HOME/.m2/settings.xml, the profile (id=dev) with
 activeByDefaulttrue/activeByDefault contains :
 properties
 ..
 testdev/test
 /properties
 The profile (id=snapshots) contains :
 properties
 ..
 testsnapshots/test
 /properties

 All are in the section :
 activeProfiles
 activeProfiledev/activeProfile
 activeProfilesnapshots/activeProfile
 /activeProfiles

 mvn validate :
 [echo] dev
 mvn -P snapshots validate :
 [echo] dev


 Is there any trouble somewhere : antrun plugin or in maven or a know
 issue ?
 Or I musunderstand something ?

 - Olivier



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


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




M2 native plugin

2006-04-06 Thread Marcell Manfrin Barbacena
Hi,

I'm trying to run the svn example of native plugin but aparently the
plugin isn't deployed to ibiblio. The msg that I get is:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.codehaus.mojo:native-maven-plugin: checking for updates from
 central
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.codehaus.mojo:native-maven-plugin' does not exist or no v
alid version could be found
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 15 seconds
[INFO] Finished at: Thu Apr 06 11:05:44 GMT-03:00 2006
[INFO] Final Memory: 1M/2M
[INFO] 

Tnx.

--
Nobody knows who i really am
 I never felt this empty before
 And if I never need someone to come along
 Who's gonna comfort me and keep me strong?
--
Marcell Manfrin Barbacena
[EMAIL PROTECTED]
MSN Messenger: [EMAIL PROTECTED]
ICQ UIN: 63671762
Skype: callto://marcell84bruk
+55 (83) 8808-8555 (Oi)

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



RE: continuum build fails

2006-04-06 Thread Dixit, Sandeep (ProSource Solutions)
See my log below. It does have  FAILURE in it. Just doesn't have a 
detailed message. Do I need to run with -e option?

Thanks,
Sandeep

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 9:05 AM
To: continuum-users@maven.apache.org
Subject: Re: continuum build fails

In console, you must have a line with  FAILURE !! or you can look in 
continuum-core-it/target/surefire-reports

Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :
 Where does it write the log? I am not able to find it in the continuum 
 directory where I checked out the code and doing the build.
 
 Thanks,
 Sandeep
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 05, 2006 4:03 PM
 To: continuum-users@maven.apache.org
 Subject: Re: continuum build fails
 
 what is the test that failed?
 
 Emmanuel
 
 Dixit, Sandeep (ProSource Solutions) a écrit :
 
I am getting the following error message while trying to build on winxp
machine. How do I resolve this?

Thanks in advance,
Sandeep



---
[2006.04.05 14:55:39] Integration test settings

---
[2006.04.05 14:55:39] IT root: C:\continuum\continuum-core-it\target\it
[2006.04.05 14:55:39] Remoting method: jvm
[2006.04.05 14:55:39] Store implementation: class
org.apache.maven.continuum.sto
re.JdoContinuumStore

---
[surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 7.938 sec

 FAILURE !!
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] There are test failures.
[INFO]

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

[INFO] Total time: 7 minutes 5 seconds
[INFO] Finished at: Wed Apr 05 14:55:39 EDT 2006
[INFO] Final Memory: 60M/63M
[INFO]


---
***National City made the following annotations
---
This communication is a confidential and proprietary business communication.  
It is intended solely for the use of the designated recipient(s).  If this
communication is received in error, please contact the sender and delete 
this communication.
===



 
 
 
 
 
 
 





excluding parent jar

2006-04-06 Thread Vijay Shanker
Hi there,
 
Could you please let me know how to exclude parent POM's jar in child POM? I 
have following pom.xml
 
  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopecompile/scope
/dependency
dependency
  groupIdj2ee/groupId
  artifactIdj2ee/artifactId
  version1.5/version
  scopecompile/scope
/dependency
dependency
  groupIdcom.honda/groupId
  artifactIdGALC_Core/artifactId
  version1.0/version
  scopecompile/scope
/dependency

I would like to exclude GALC_Core in child POM.
 
Thanking you in advance.
 
Vijay
 

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

RE : Trouble or misunderstanding with profile and settings. ?

2006-04-06 Thread Olivier Lamy
Look at the email I have send : In my $HOME/.m2/settings.xml .
All profiles are in my settings.xml no one in my pom.

I have tryed mvn help:active-profiles
Output says :
The following profiles are active:

 - snapshots (source: settings.xml)
 - dev (source: settings.xml)
 - dev (source: settings.xml)

Strange I don't have two profiles with id dev in my settings.xml.

IMHO it's an issue, I have record one to have a response :
http://jira.codehaus.org/browse/MNG-2206.
Download the attached pom, add profiles in your settings.xml and look
;-))

- Olivier

-Message d'origine-
De : Eric Redmond [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 6 avril 2006 15:57
À : Maven Users List
Objet : Re: Trouble or misunderstanding with profile and settings. ?


Why is the profile in your POM, but you're attempting to activate is
within your settings.xml?

Try and put the profile in settings, or activate it in the POM.

Why debuggin profile activation issues, this goal is useful:

mvn help:active-profiles
http://maven.apache.org/plugins/maven-help-plugin/active-profiles-mojo.
html
Eric

On 4/6/06, Olivier Lamy [EMAIL PROTECTED] wrote:

 Hi,
 I don't know if it's a trouble but I have made a simple test. My pom 
 contains : plugin
 artifactIdmaven-antrun-plugin/artifactId
 executions
 execution
 phasevalidate/phase
 configuration
 tasks
 echo${test}/echo
 /tasks
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
 /executions
 /plugin

 In my $HOME/.m2/settings.xml, the profile (id=dev) with 
 activeByDefaulttrue/activeByDefault contains : properties
 ..
 testdev/test
 /properties
 The profile (id=snapshots) contains :
 properties
 ..
 testsnapshots/test
 /properties

 All are in the section :
 activeProfiles
 activeProfiledev/activeProfile
 activeProfilesnapshots/activeProfile
 /activeProfiles

 mvn validate :
 [echo] dev
 mvn -P snapshots validate :
 [echo] dev


 Is there any trouble somewhere : antrun plugin or in maven or a know 
 issue ? Or I musunderstand something ?

 - Olivier



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


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




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



Re: Shared projects and Maven best practice

2006-04-06 Thread Mang Jun Lau
Eric Redmond [EMAIL PROTECTED] wrote on 04/06/2006 09:40:38 AM:

 
 I created an alternate repository named TAG (whatever your tag is) and
 pointed apache to it. For example, if your corporate repo is
 http://corp/repo1, then create another repository named
 http://corp/repo1-TAG, and continuum can build only specific projects 
that
 should be overridden. This repository was populated solely with a 
specific
 tagged cut of the code. Then your team can depend upon the repositories 
of
 both. When they point to Utility 1.0.0, they should pick it up from TAG.

Isn't creating another repository too much overhead and a little overkill? 
 Currently, we build the applications from RAD with the Utility project 
source.  If an application needs to rely on older Utility source, we 
simply check out a tagged version of it into the workspace.  Now, with 
Maven and Continuum, it gets a bit messy when you want to build your whole 
application together along with the Utility jars since we don't use Maven 
conventions with regards to CVS modules (i.e. each project is a separate 
module so the whole application has many CVS modules and not just one). To 
build properly using Continuum, I had to symlink all the modules into one 
so that Continuum can check it out properly.  So the problem is that I 
can't mix and match CVS tags in one build.

 Now, in my defense, this strategy was employed to work on top of a very
 legacy build/deploy system that knew only of SNAPSHOTs (and nothing 
else...
 so its not really fair to even call it a versioning system). It sounds 
like
 you guys have an equally goofy system. Are you guys supporting legacy
 version in tandem? Meaning, do you branch 1.0 and continue working on 
it,
 and then also work on 1.1? This was actually our big problem.

We don't tend to do branching and we usually work off of HEAD.  When we 
release, we tag everything in our existing workspace and continue to work 
off HEAD for the next release.

Right now, the solution for us may be to mix and match tags in the RAD 
workspace to your liking, then tag your entire workspace, then in 
Continuum, build from that tag.


_Mang

Re: search repository

2006-04-06 Thread Geoffrey De Smet
There are working on such a thing, it's called the repository manager I 
believe. I checked it out svn a couple of weeks ago, looked promising 
but far from finished.


Giacomo Cosenza wrote:

Hi,
we are planning to use two http/s corporate repository: one for external 
artifacts (e.g. sun artifacts, we call it product repository) and one 
for internal artifacts.


The two artifacts repository will be mainteined by an internal defined 
role.


During artifacts developing, the developer should be able to ask the 
products repository if an artifact (eventually with an associated 
version) is already available in that repository.


If no, the internal defined role will be asked to deploy the new 
artifact in the product repository.



My very simple question is: is there a maven 2 command to search an http 
repository for an artifact or should I have to implement the search 
command by myself?


Thanks

Mimmo


--
With kind regards,
Geoffrey De Smet


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



Re: search repository

2006-04-06 Thread Giacomo Cosenza

Geoffrey De Smet wrote:
There are working on such a thing, it's called the repository manager I 
believe. I checked it out svn a couple of weeks ago, looked promising 
but far from finished.


thanks so much,

I'll take a look there and

http://maven.apache.org/eclipse-plugin.html

to verify if this plugin support repository search from inside Eclipse

Mimmo



Giacomo Cosenza wrote:

Hi,
we are planning to use two http/s corporate repository: one for 
external artifacts (e.g. sun artifacts, we call it product repository) 
and one for internal artifacts.


The two artifacts repository will be mainteined by an internal defined 
role.


During artifacts developing, the developer should be able to ask the 
products repository if an artifact (eventually with an associated 
version) is already available in that repository.


If no, the internal defined role will be asked to deploy the new 
artifact in the product repository.



My very simple question is: is there a maven 2 command to search an 
http repository for an artifact or should I have to implement the 
search command by myself?


Thanks

Mimmo





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



Ruby on Maven / problem with repository - Maven 2.0.3

2006-04-06 Thread Julio Oliveira
Hi

As the doc say i put  in maven:
1)

   !--  remote repository --
   repositories
repository
  idpropellors.net/id
  urlhttp://propellors.net/maven-repo/url
/repository
   /repositories


2)
type the command .
-


E:\Work\eclipse3_1\Jfp_libsmvn rubyarchetype:create -DgroupId=test
-DartifactId=rubyplugin
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'rubyarchetype'.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin
'org.apache.maven.plugins:maven-rubyarchetype-plugin' does not exist
or no valid version could be found
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Thu Apr 06 11:39:53 ART 2006
[INFO] Final Memory: 1M/2M
[INFO] 


run with  -e  switch


E:\Work\eclipse3_1\Jfp_libsmvn rubyarchetype:create -DgroupId=test
-DartifactId=rubyplugin
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'rubyarchetype'.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin
'org.apache.maven.plugins:maven-rubyarchetype-plugin' does not exist
or no valid version could be found
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Thu Apr 06 11:39:53 ART 2006
[INFO] Final Memory: 1M/2M
[INFO] 



regards

Julio Oliveira - Buenos Aires

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



Re: Property filter with xml files

2006-04-06 Thread Kevin Galligan
Ok.  More of a general question.  I found the spot in the code that loads
the properties and I see an easy insert.

Now, I'm used to dealing with xml through jdom, and (somewhat) the standard
dom.  Questions:

1) Is there a standard way to load xml files in a maven project, say
through some utility.
2) If not, is there a dependency already defined that I should be using code
from.
3) If not, and I need to add a dependency to the resources plugin, is there
a specific one I should use.

Thanks in advance...

On 4/6/06, Eric Redmond [EMAIL PROTECTED] wrote:

 http://maven.apache.org/contributing/help.html

 On 4/6/06, Kevin Galligan [EMAIL PROTECTED] wrote:
 
  Not sure how the submit process works...
 
  On 4/6/06, Eric Redmond [EMAIL PROTECTED] wrote:
  
   Current documentation states that filters are *.properties files. I
 have
   not
   heard of any change to this. It should be a relatively minor patch,
 why
   don't you submit the idea?
  
   Eric
  
   On 4/6/06, Kevin Galligan [EMAIL PROTECTED] wrote:
   
Is there any way to specify an xml file as the source of property
  values
instead of a properties files...
   
build
filters
  !-- Something like this ... --
  filtersrc/main/filters/filter.xml/filter
  !-- End of special section.  Don't worry about the rest...
 --
/filters
resources
  resource
directorysrc/main/resources/directory
filteringtrue/filtering
  /resource
/resources
  /build
   
We're specifying the replace file in a command line switch, and the
different files get out of date as new properties are added.  Having
  an
xml
file would allow for an xml schema, and that would make it easier to
  see
which files are out of date.
   
Thanks
   
   
  
  
 
 




RE: continuum build fails

2006-04-06 Thread Dixit, Sandeep (ProSource Solutions)
Here is log from today's build... 


2006-04-06 11:12:12,974 [main] INFO  SCHEMA - Catalog 
, Schema SA initialised - managing 26 classes
2006-04-06 11:12:13,489 [main] INFO  Continuum  -  6:Ant CVS
 Project:ant
2006-04-06 11:12:13,489 [main] INFO  Continuum  - Starting C
ontinuum.
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  Continuum  -  Continuu
m 1.1-SNAPSHOT started! 
2006-04-06 11:12:13,489 [main] INFO  Continuum  - --
-
2006-04-06 11:12:13,489 [main] INFO  Continuum  -\
 ^__^
2006-04-06 11:12:13,489 [main] INFO  Continuum  - \
 (oo)\___
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
 (__)\   )\/\
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
 ||w |
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
 || ||
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  ContinuumInitializer   - Continuum
initializer running ...
2006-04-06 11:12:15,739 [main] INFO  SchedulesActivator - Activating
 schedules ...
2006-04-06 11:12:15,755 [main] WARN  ContinuumScheduler - Will not s
chedule this job as a job {DEFAULT_SCHEDULE:DEFAULT} already exists.
2006-04-06 11:12:15,755 [main] INFO  SchedulesActivator - null
2006-04-06 11:12:15,755 [main] INFO  PlexusContainer- Loading on
 start [role,roleHint]: [org.codehaus.plexus.taskqueue.execution.TaskQueueExecut
or,build-project]
2006-04-06 11:12:15,755 [main] WARN  RecipientSource- Using '${m
ail.override.to.address}' as the to address for all emails.
2006-04-06 11:12:15,755 [main] INFO  TaskQueueExecutor:build-project - Starting
task executor, thread name 'build-project'.
2006-04-06 11:12:15,755 [main] INFO  PlexusContainer- Loading on
 start [role,roleHint]: [org.codehaus.plexus.taskqueue.execution.TaskQueueExecut
or,check-out-project]
2006-04-06 11:12:15,755 [main] INFO  TaskQueueExecutor:check-out-project - Start
ing task executor, thread name 'check-out-project'.
---
[2006.04.06 11:12:15] Integration test settings
---
[2006.04.06 11:12:15] IT root: C:\svnmvn\maven\continuum\continuum-core-it\targe
t\it
[2006.04.06 11:12:15] Remoting method: jvm
[2006.04.06 11:12:15] Store implementation: class org.apache.maven.continuum.sto
re.JdoContinuumStore
---
[surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 16.499 sec 
 FAILURE !!
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 7 minutes 33 seconds
[INFO] Finished at: Thu Apr 06 11:12:16 EDT 2006
[INFO] Final Memory: 61M/63M
[INFO] 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 9:05 AM
To: continuum-users@maven.apache.org
Subject: Re: continuum build fails

In console, you must have a line with  FAILURE !! or you can look in 
continuum-core-it/target/surefire-reports

Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :
 Where does it write the log? I am not able to find it in the continuum 
 directory where I checked out the code and doing the build.
 
 Thanks,
 Sandeep
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 05, 2006 4:03 PM
 To: continuum-users@maven.apache.org
 Subject: Re: continuum build fails
 
 what is the test that failed?
 
 Emmanuel
 
 Dixit, Sandeep (ProSource Solutions) a écrit :
 
I am getting the following error message while trying to build on winxp
machine. How do I resolve this?

Thanks in advance,
Sandeep



---
[2006.04.05 14:55:39] Integration test settings

---
[2006.04.05 14:55:39] IT root: C:\continuum\continuum-core-it\target\it
[2006.04.05 14:55:39] Remoting method: jvm
[2006.04.05 14:55:39] Store 

RE: [m2.0.3] Embedder - setAlignWithUser ignored

2006-04-06 Thread Rollo, Dan
 
Done: 

MNG-2200: [m2.0.3] Embedder - no way to override the localRepository,
.start() and alignWithUserInstallation broken

http://jira.codehaus.org/browse/MNG-2200

Dan

-Original Message-
From: Jason van Zyl [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 31, 2006 3:21 PM
To: Maven Users List
Subject: Re: [m2.0.3] Embedder - setAlignWithUser ignored

Rollo, Dan wrote:
 I'm not sure I understand how the branching/merging will pan out. 
 Seems like this particular change could be pretty easy, like:
 
 private void detectUserInstallation()
 {
 if ( new File( userHome, .m2 ).exists() 
 localRepositoryDirectory == null)
 {
 alignWithUserInstallation = true;
 }
 }
 
 
 Should I create a bug report issue for this MavenEmbedder bug?

That's the best plan. I'm working on the branch right now.

--
This e-mail and any files transmitted with it may contain privileged or 
confidential information.
It is solely for use by the individual for whom it is intended, even if 
addressed incorrectly.
If you received this e-mail in error, please notify the sender; do not 
disclose, copy, distribute,
or take any action in reliance on the contents of this information; and delete 
it from
your system. Any other use of this e-mail is prohibited.

Thank you for your compliance.
--

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



Re: continuum build fails

2006-04-06 Thread Emmanuel Venisse

I don't have the name of test in your log?
The name of test is in the line that start by [surefire] Running org.apache.maven.continuum.it few 
lines above the  Failure message, but if you open txt files in 
continuum-core-it/target/surefire-reports directory, it will more easy to find the test in failure


Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :

See my log below. It does have  FAILURE in it. Just doesn't have a 
detailed message. Do I need to run with -e option?

Thanks,
Sandeep

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 9:05 AM

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

In console, you must have a line with  FAILURE !! or you can look in 
continuum-core-it/target/surefire-reports


Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :


Where does it write the log? I am not able to find it in the continuum 
directory where I checked out the code and doing the build.

Thanks,
Sandeep

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 05, 2006 4:03 PM

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

what is the test that failed?

Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :



I am getting the following error message while trying to build on winxp
machine. How do I resolve this?

Thanks in advance,
Sandeep



---
[2006.04.05 14:55:39] Integration test settings

---
[2006.04.05 14:55:39] IT root: C:\continuum\continuum-core-it\target\it
[2006.04.05 14:55:39] Remoting method: jvm
[2006.04.05 14:55:39] Store implementation: class
org.apache.maven.continuum.sto
re.JdoContinuumStore

---
[surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 7.938 sec

 FAILURE !!
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] There are test failures.
[INFO]

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

[INFO] Total time: 7 minutes 5 seconds
[INFO] Finished at: Wed Apr 05 14:55:39 EDT 2006
[INFO] Final Memory: 60M/63M
[INFO]


---
***National City made the following annotations
---
This communication is a confidential and proprietary business communication.  
It is intended solely for the use of the designated recipient(s).  If this
communication is received in error, please contact the sender and delete 
this communication.

===






















RE: Ruby on Maven / problem with repository - Maven 2.0.3

2006-04-06 Thread KC Baltz
Hello,

Where did you put the repository definition you mention in 1) below?  I would 
expect it to go in your %HOMEPATH%\.m2\settings.xml file.  

K.C.

-Original Message-
From: Julio Oliveira [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 06, 2006 8:07 AM
To: Maven Users List
Subject: Ruby on Maven / problem with repository - Maven 2.0.3


Hi

As the doc say i put  in maven:
1)

   !--  remote repository --
   repositories
repository
  idpropellors.net/id
  urlhttp://propellors.net/maven-repo/url
/repository
   /repositories


2)
type the command .
-


E:\Work\eclipse3_1\Jfp_libsmvn rubyarchetype:create -DgroupId=test
-DartifactId=rubyplugin
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'rubyarchetype'.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin
'org.apache.maven.plugins:maven-rubyarchetype-plugin' does not exist
or no valid version could be found
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Thu Apr 06 11:39:53 ART 2006
[INFO] Final Memory: 1M/2M
[INFO] 


run with  -e  switch


E:\Work\eclipse3_1\Jfp_libsmvn rubyarchetype:create -DgroupId=test
-DartifactId=rubyplugin
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'rubyarchetype'.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin
'org.apache.maven.plugins:maven-rubyarchetype-plugin' does not exist
or no valid version could be found
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Thu Apr 06 11:39:53 ART 2006
[INFO] Final Memory: 1M/2M
[INFO] 



regards

Julio Oliveira - Buenos Aires

-
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: continuum build fails

2006-04-06 Thread Emmanuel Venisse

send me the content of your surefire-reports directory.

An other solution is to use snapshot builds : 
http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/


Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :
Here is log from today's build... 



2006-04-06 11:12:12,974 [main] INFO  SCHEMA - Catalog 
, Schema SA initialised - managing 26 classes
2006-04-06 11:12:13,489 [main] INFO  Continuum  -  6:Ant CVS
 Project:ant
2006-04-06 11:12:13,489 [main] INFO  Continuum  - Starting C
ontinuum.
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  Continuum  -  Continuu
m 1.1-SNAPSHOT started! 
2006-04-06 11:12:13,489 [main] INFO  Continuum  - --
-
2006-04-06 11:12:13,489 [main] INFO  Continuum  -\
 ^__^
2006-04-06 11:12:13,489 [main] INFO  Continuum  - \
 (oo)\___
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
 (__)\   )\/\
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
 ||w |
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
 || ||
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  Continuum  -
2006-04-06 11:12:13,489 [main] INFO  ContinuumInitializer   - Continuum
initializer running ...
2006-04-06 11:12:15,739 [main] INFO  SchedulesActivator - Activating
 schedules ...
2006-04-06 11:12:15,755 [main] WARN  ContinuumScheduler - Will not s
chedule this job as a job {DEFAULT_SCHEDULE:DEFAULT} already exists.
2006-04-06 11:12:15,755 [main] INFO  SchedulesActivator - null
2006-04-06 11:12:15,755 [main] INFO  PlexusContainer- Loading on
 start [role,roleHint]: [org.codehaus.plexus.taskqueue.execution.TaskQueueExecut
or,build-project]
2006-04-06 11:12:15,755 [main] WARN  RecipientSource- Using '${m
ail.override.to.address}' as the to address for all emails.
2006-04-06 11:12:15,755 [main] INFO  TaskQueueExecutor:build-project - Starting
task executor, thread name 'build-project'.
2006-04-06 11:12:15,755 [main] INFO  PlexusContainer- Loading on
 start [role,roleHint]: [org.codehaus.plexus.taskqueue.execution.TaskQueueExecut
or,check-out-project]
2006-04-06 11:12:15,755 [main] INFO  TaskQueueExecutor:check-out-project - Start
ing task executor, thread name 'check-out-project'.
---
[2006.04.06 11:12:15] Integration test settings
---
[2006.04.06 11:12:15] IT root: C:\svnmvn\maven\continuum\continuum-core-it\targe
t\it
[2006.04.06 11:12:15] Remoting method: jvm
[2006.04.06 11:12:15] Store implementation: class org.apache.maven.continuum.sto
re.JdoContinuumStore
---
[surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 16.499 sec 
 FAILURE !!
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 7 minutes 33 seconds
[INFO] Finished at: Thu Apr 06 11:12:16 EDT 2006
[INFO] Final Memory: 61M/63M
[INFO] 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 9:05 AM

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

In console, you must have a line with  FAILURE !! or you can look in 
continuum-core-it/target/surefire-reports


Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :


Where does it write the log? I am not able to find it in the continuum 
directory where I checked out the code and doing the build.

Thanks,
Sandeep

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 05, 2006 4:03 PM

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

what is the test that failed?

Emmanuel

Dixit, Sandeep (ProSource Solutions) a écrit :



I am getting the following error message while trying to build on winxp
machine. How do I resolve this?

Thanks in advance,
Sandeep



---
[2006.04.05 14:55:39] Integration test settings

Re: m2 unable to build on linux with maven-compiler-plugin 2.0.1 version

2006-04-06 Thread Gautham Pamu
Hi Carlos and Wayne,

Do you still want me to open the bug report on
http://jira.codehaus.org/browse or is it already opened. Carlos, can you
tell me on which project I should open
this bug.

Thanks
Gautham Pamu


On 4/5/06, Carlos Sanchez [EMAIL PROTECTED] wrote:

 I'm fixing it


 On 4/5/06, Gautham Pamu [EMAIL PROTECTED] wrote:
  There seems to be some special character in the white spaces in pom.xml
  files for plexus-compiler-manager, plexus-compiler-javac,
  plexus-compiler-api for 1.5.2
  version. Could you please fix it as soon as possible and upload to the
 maven
  repository.
 
  Thanks
  Gautham Pamu
 
 
  On 4/5/06, Wayne Fay [EMAIL PROTECTED] wrote:
   Sounds like a bug report. Try to find the bad character (or other root
   cause) and post the issue on JIRA.
  
   Wayne
  
  
   On 4/5/06, Gautham Pamu [EMAIL PROTECTED]  wrote:
Hi Everyone,
   
There seems to be a problem in the pom.xml files of
  plexus-compiler-api:jar:
1.5.2 and maven-compiler-plugin 2.0.1 is using this version.
   
I have seem this sun.io.MalformedInputException error while compile
 java
code if the code has special characters in comments.
The code is not build on Linux platform as the jvm does not like
 these
  pom
files, I think the pom.xml file has some special characters.
   
When I changed to maven-compiler-plugin 2.0, it worked...
   
[INFO] Using default encoding to copy filtered resources.
[INFO]
 
 [ERROR]
BUILD ERROR
[INFO]
   
 
 [INFO]
Error building POM (may not be this project's POM).
   
   
Project ID: null:plexus-compiler-api:jar: 1.5.2
   
Reason: Cannot find parent:
  org.codehaus.plexus:plexus-compiler for project:
null:plexus-compiler-api:jar:1.5.2
   
   
[INFO]
   
 
 [INFO]
Trace
org.apache.maven.lifecycle.LifecycleExecutionException:
  Unable to get
dependency information: Unable to read the metadata file for
 artifact '
org.codehaus.plexus:plexus-compiler-api:jar ': Cannot
  find parent:
org.codehaus.plexus:plexus-compiler for project:
null:plexus-compiler-api:jar:1.5.2
 org.codehaus.plexus:plexus-compiler-api:jar:1.5.2
   
from the specified remote repositories:
 central (http://repo1.maven.org/maven2 ),
 apache.snapshots
  (http://svn.apache.org/maven-snapshot-repository ),
 snapshots (http://snapshots.maven.codehaus.org/maven2
  )
Path to dependency:
   1)
  org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1
   
   
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java :551)
   at
   
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java :454)
   at
   
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
   at
   
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
  (
DefaultLifecycleExecutor.java:273)
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
  (
DefaultLifecycleExecutor.java:140)
   at
  org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at
  org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at
  org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java :85)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:58)
   at
  sun.reflect.DelegatingMethodAccessorImpl.invoke (
DelegatingMethodAccessorImpl.java:60)
   at java.lang.reflect.Method.invoke(Method.java:391)
   at
  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
   at org.codehaus.classworlds.Launcher.launch
  (Launcher.java:255)
   at
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
   at
  org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by:
  org.apache.maven.artifact.resolver.ArtifactResolutionException
  :
Unable to get dependency information: Unable to read the metadata
 file
  for
artifact 'org.codehaus.plexus:plexus-compiler-api:jar':
  Cannot find parent:
org.codehaus.plexus:plexus-compiler for project:
null:plexus-compiler-api:jar: 1.5.2
 org.codehaus.plexus:plexus-compiler-api:jar:1.5.2
   
from the specified remote repositories:
 central (http://repo1.maven.org/maven2 ),
 

Re: [m2.0.3] Scanning for projects... hangs

2006-04-06 Thread John Casey

Alright, this should be fixed now. Can  you give the latest RC a try?

It's here:

http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-20060406.131501.tar.gz

Thanks,

John

Allison, Bob wrote:

It doesn't require child projects.  The following POM hangs in 2.0.3 (I
haven't downloaded the 2.0.4 RC yet):

?xml version=1.0 encoding=UTF-8?
project
  modelVersion4.0.0/modelVersion
  groupIdtest/groupId
  artifactIdtest/artifactId
  packagingpom/packaging
  nameTest Hang/name
  version1.0-SNAPSHOT/version
  scm
connection${project.scm.connection}/xx/connection
 
developerConnection${project.scm.developerConnection}/xx/developerCon

nection
url${project.scm.url}/xx/url
  /scm
/project

Notice that project.scm.url contains ${project.scm.url} and likewise for
the other two SCM entries.  I believe that this is what is causing the
hang.  I suspect what Jens is trying to do is get the value of
project.scm.* from the parent project.

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 04, 2006 17:48

To: Maven Users List
Subject: Re: [m2.0.3] Scanning for projects... hangs


what about the hang?

On 4/5/06, Jens Zastrow [EMAIL PROTECTED] wrote:

Neither with the 2.0.4-SNAPSHOT.

To test this just add teh following to a child-pom.

scm
connection${project.scm.connection}/xxx/connection



developerConnection${project.scm.developerConnection}/xxx/developerCo

nnection
url${project.scm.url}/xxx/url
/scm



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



Setting up Ear Project

2006-04-06 Thread MTedesco
I am trying to create an initial ear project 

mvn archetype:create -DgroupId=com.mycompany -DartifactId=mycom 
-DarchetypeArtifactId=maven-archetype-ear

but get the following error any ideas?

[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-ear
Version: RELEASE

Reason: Unable to determine the release version

  org.apache.maven.archetypes:maven-archetype-ear:jar:RELEASE



[INFO] 


Re: Question about release plugin on pom archtype

2006-04-06 Thread Todd Nine
OK, I have modified my parent pom to be in the directory immediately above
my parent pom.

I.E.

pom.xml
proj1/pom.xml
proj2/pom.xml

Now when I run release:prepare it updates all of my dependencies from
1.0.0-SNAPSHOT to 1.0.0.  Then it returns an error that is cannot tag since
the pom has uncommitted changes!  Shouldn't the release 1.0.0 pom be
committed on the parent and all child projects before the tag is executed?

Todd

On 4/5/06, dan tran [EMAIL PROTECTED] wrote:

 yes it is a bug

 http://jira.codehaus.org/browse/MRELEASE-6

 -D


 On 4/5/06, Todd Nine [EMAIL PROTECTED] wrote:
 
  I'm having some trouble with the prepare target of the release plug
 in.  I
  have a pom artifact type, and I have several child modules like the
  example
  below.  I'm using the eclipse flat directory structure
 
  modules
module../module1/module
module../module2/module
  /modules
 
 
  when I perform mvn release:prepare I'm prompted for the version of the
  parent pom as well as all child poms.  However when maven should tag the
  source, it never tags the child poms and as a result, the
  release.propertiesall have HEAD as the tag to check out for a build.
  It does correctly update
  all the poms and check in the new development version, but doesn't tag
 the
  source.  Is this a bug?
 
  Todd
 
 




Re: M2 native plugin

2006-04-06 Thread Marcell Manfrin Barbacena
I just tought it was already release because the native plugin is not
in the mojo sandbox...

Anyway, i will try that.

[]'s

On 4/6/06, dan tran [EMAIL PROTECTED] wrote:
 Marcell,

 2 options:

   - build the plugin first

   - set the plugin version to 1.0-alpha-1-SNAPSHOT in the example.

 -D


 On 4/6/06, Marcell Manfrin Barbacena [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I'm trying to run the svn example of native plugin but aparently the
  plugin isn't deployed to ibiblio. The msg that I get is:
 
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'eclipse'.
  [INFO] org.apache.maven.plugins: checking for updates from central
  [INFO] org.codehaus.mojo: checking for updates from central
  [INFO] artifact org.codehaus.mojo:native-maven-plugin: checking for
  updates from
  central
  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  
  [INFO] The plugin 'org.codehaus.mojo:native-maven-plugin' does not exist
  or no v
  alid version could be found
  [INFO]
  
  [INFO] For more information, run Maven with the -e switch
  [INFO]
  
  [INFO] Total time: 15 seconds
  [INFO] Finished at: Thu Apr 06 11:05:44 GMT-03:00 2006
  [INFO] Final Memory: 1M/2M
  [INFO]
  
 
  Tnx.
 
  --
  Nobody knows who i really am
  I never felt this empty before
  And if I never need someone to come along
  Who's gonna comfort me and keep me strong?
  --
  Marcell Manfrin Barbacena
  [EMAIL PROTECTED]
  MSN Messenger: [EMAIL PROTECTED]
  ICQ UIN: 63671762
  Skype: callto://marcell84bruk
  +55 (83) 8808-8555 (Oi)
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




--
Nobody knows who i really am
 I never felt this empty before
 And if I never need someone to come along
 Who's gonna comfort me and keep me strong?
--
Marcell Manfrin Barbacena
[EMAIL PROTECTED]
MSN Messenger: [EMAIL PROTECTED]
ICQ UIN: 63671762
Skype: callto://marcell84bruk
+55 (83) 8808-8555 (Oi)

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



Re: Archetypes

2006-04-06 Thread Kathryn Huxtable
So if I used a later archetype plugin I would get this behavior? -K


On 4/6/06 8:46 AM, Eric Redmond [EMAIL PROTECTED] wrote:

 Oddly enough:
 http://jira.codehaus.org/browse/ARCHETYPE-22#action_62607
 
 
 On 4/6/06, Kathryn Huxtable [EMAIL PROTECTED] wrote:
 
 It would be nice in designing archetypes if you could make use of package
 structure under the java directories, e.g. Having something like
 foo/bar/baz.java and specifying a package of a.b.c would yield the file
 a/b/c/foo/bar/baz.java instead of foo/bar/a/b/c/baz.java.
 
 --
 Kathryn Huxtable
 Middleware Architect
 Core Middleware
 Information Technology, a division of Information Services
 The University of Kansas
 
 
 On 4/6/06 4:13 AM, Christopher Cudennec [EMAIL PROTECTED] wrote:
 
 Hey,
 
 thanks for the answer. I got to it by thinking and reading the
 documentation in the meantime as well ;). Archetypes are not what I was
 really looking for to tell the truth. I prefer copying my pom.xml in my
 existing projects. It's really poor that you need to define any kind of
 file for a folder to be created. Just giving a folder name for source
 does nothing... Using allowPartial didn't work out as well, so I'm
 quite annoyed by the archetype. The main stuff (packaging, ...) worked
 fine nevertheless...
 
 Thanks,
 Christopher
 
 Napoleon Esmundo Ramirez schrieb:
 Hello,
 
 The archetype plugin gives you a kick to start on projects
 immediately.  It
 creates the template of your project as far as sources and resources
 are
 concerned.  The target is defined in the project's pom.xml and it
 doesn't
 need to be in the archetype as it frequently gets cleaned in the file
 system. :)
 
 Cheers!
 Nap
 
 On 4/5/06, Christopher Cudennec [EMAIL PROTECTED] wrote:
 
 Hello everyone,
 
 I try to get to know what I can do by the archetype plugin. The guide
 to
 creating archetypes is alright for the basics but I would like to know
 how to set more variables by the archetype.xml. The documentation
 talks
 about setting the source and test-source-directory. But what about the
 target directory? In order to be able to adjust my own archetype to my
 existing project structure I would like to be able to set this one as
 well. I would appreciate any comments or a DTD ;).
 
 Thanks,
 
 Christopher
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.385 / Virus Database: 268.3.5/302 - Release Date:
 05.04.2006
 
 
 
 -
 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]
 
 

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas


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



Re: maven-jetty6-plugin

2006-04-06 Thread Jan Bartel

Rolf,

FYI.

I have added your instructions for running the jetty plugin
under the eclipse debugger as a FAQ entry on the jetty6 
site at:  
http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse


I've credited your name.

regards
Jan

Rolf Strijdhorst wrote:

yes, there is just start maven with:
jetty6:run
but have in the environment tap of externaltools
a variable MAVEN_OPTS with content: -Xdebug -Xnoagent
-Djava.compiler=NONE-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=4000

next run debug on port 4000 or the same portnumber as the address property
on the line above
if you also specify that the debugger is able to terminate the jvm then you
can reuse the debug session the next time you start jetty.

Rolf

On 12/26/05, Koen Maes [EMAIL PROTECTED] wrote:


maven jetty plugin works great but i would like to debug my webapp via
eclipse
is there any option - like tomcat : catalina.sh jpda start - to tell jetty
that it should open up a JPDA port so I can connect with eclipse remote
debugger ?


-
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: Setting up Ear Project

2006-04-06 Thread Wayne Fay
That archetype does not exist in ibiblio:
http://www.ibiblio.org/maven2/org/apache/maven/archetypes/

Nor does it exist on Apache CVS:
http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/archetypes/

I think you're probably looking for j2ee? But its only hosted on
Apache CVS, so you'll need to download the archetype code and install
it locally yourself if you want to use it.

Wayne


On 4/6/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 I am trying to create an initial ear project

 mvn archetype:create -DgroupId=com.mycompany -DartifactId=mycom
 -DarchetypeArtifactId=maven-archetype-ear

 but get the following error any ideas?

 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.

 GroupId: org.apache.maven.archetypes
 ArtifactId: maven-archetype-ear
 Version: RELEASE

 Reason: Unable to determine the release version

  org.apache.maven.archetypes:maven-archetype-ear:jar:RELEASE



 [INFO]
 



Re: m2 unable to build on linux with maven-compiler-plugin 2.0.1 version

2006-04-06 Thread Carlos Sanchez
It's fixed now. You need to delete the poms of that plexus-*
components from your local repo so they get downloaded again.

On 4/6/06, Gautham Pamu [EMAIL PROTECTED] wrote:
 Hi Carlos and Wayne,

 Do you still want me to open the bug report on
 http://jira.codehaus.org/browse or is it already opened. Carlos, can you
 tell me on which project I should open
 this bug.

 Thanks
 Gautham Pamu


 On 4/5/06, Carlos Sanchez [EMAIL PROTECTED] wrote:
 
  I'm fixing it
 
 
  On 4/5/06, Gautham Pamu [EMAIL PROTECTED] wrote:
   There seems to be some special character in the white spaces in pom.xml
   files for plexus-compiler-manager, plexus-compiler-javac,
   plexus-compiler-api for 1.5.2
   version. Could you please fix it as soon as possible and upload to the
  maven
   repository.
  
   Thanks
   Gautham Pamu
  
  
   On 4/5/06, Wayne Fay [EMAIL PROTECTED] wrote:
Sounds like a bug report. Try to find the bad character (or other root
cause) and post the issue on JIRA.
   
Wayne
   
   
On 4/5/06, Gautham Pamu [EMAIL PROTECTED]  wrote:
 Hi Everyone,

 There seems to be a problem in the pom.xml files of
   plexus-compiler-api:jar:
 1.5.2 and maven-compiler-plugin 2.0.1 is using this version.

 I have seem this sun.io.MalformedInputException error while compile
  java
 code if the code has special characters in comments.
 The code is not build on Linux platform as the jvm does not like
  these
   pom
 files, I think the pom.xml file has some special characters.

 When I changed to maven-compiler-plugin 2.0, it worked...

 [INFO] Using default encoding to copy filtered resources.
 [INFO]
  
  [ERROR]
 BUILD ERROR
 [INFO]

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


 Project ID: null:plexus-compiler-api:jar: 1.5.2

 Reason: Cannot find parent:
   org.codehaus.plexus:plexus-compiler for project:
 null:plexus-compiler-api:jar:1.5.2


 [INFO]

  
  [INFO]
 Trace
 org.apache.maven.lifecycle.LifecycleExecutionException:
   Unable to get
 dependency information: Unable to read the metadata file for
  artifact '
 org.codehaus.plexus:plexus-compiler-api:jar ': Cannot
   find parent:
 org.codehaus.plexus:plexus-compiler for project:
 null:plexus-compiler-api:jar:1.5.2
  org.codehaus.plexus:plexus-compiler-api:jar:1.5.2

 from the specified remote repositories:
  central (http://repo1.maven.org/maven2 ),
  apache.snapshots
   (http://svn.apache.org/maven-snapshot-repository ),
  snapshots (http://snapshots.maven.codehaus.org/maven2
   )
 Path to dependency:
1)
   org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1


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

  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
 (DefaultLifecycleExecutor.java:475)
at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
 DefaultLifecycleExecutor.java :454)
at

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

   org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
   (
 DefaultLifecycleExecutor.java:273)
at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
   (
 DefaultLifecycleExecutor.java:140)
at
   org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at
   org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at
   org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java :85)
at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:58)
at
   sun.reflect.DelegatingMethodAccessorImpl.invoke (
 DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at
   org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
 :315)
at org.codehaus.classworlds.Launcher.launch
   (Launcher.java:255)
at
   org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
 :430)
at
   org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by:
   org.apache.maven.artifact.resolver.ArtifactResolutionException
   :
 Unable to get dependency information: Unable to read the metadata
  file
   for
 

Re: Question about release plugin on pom archtype

2006-04-06 Thread dan tran
not sure why, but could you try the latest snaphost of release plugin?  I am
doing a daily release, and it
works fine

-D


On 4/6/06, Todd Nine [EMAIL PROTECTED] wrote:

 OK, I have modified my parent pom to be in the directory immediately above
 my parent pom.

 I.E.

 pom.xml
 proj1/pom.xml
 proj2/pom.xml

 Now when I run release:prepare it updates all of my dependencies from
 1.0.0-SNAPSHOT to 1.0.0.  Then it returns an error that is cannot tag
 since
 the pom has uncommitted changes!  Shouldn't the release 1.0.0 pom be
 committed on the parent and all child projects before the tag is executed?

 Todd

 On 4/5/06, dan tran [EMAIL PROTECTED] wrote:
 
  yes it is a bug
 
  http://jira.codehaus.org/browse/MRELEASE-6
 
  -D
 
 
  On 4/5/06, Todd Nine [EMAIL PROTECTED] wrote:
  
   I'm having some trouble with the prepare target of the release plug
  in.  I
   have a pom artifact type, and I have several child modules like the
   example
   below.  I'm using the eclipse flat directory structure
  
   modules
 module../module1/module
 module../module2/module
   /modules
  
  
   when I perform mvn release:prepare I'm prompted for the version of
 the
   parent pom as well as all child poms.  However when maven should tag
 the
   source, it never tags the child poms and as a result, the
   release.propertiesall have HEAD as the tag to check out for a build.
   It does correctly update
   all the poms and check in the new development version, but doesn't tag
  the
   source.  Is this a bug?
  
   Todd
  
  
 
 




Re: Maven 2 guide for ant users

2006-04-06 Thread Tom Joad
Hello,
Please see http://maven.apache.org/ant-tasks.html
it  is a bit thin but very helpful.
Tom.

2006/4/6, EJ Ciramella [EMAIL PROTECTED]:
 Is there anything like this?  I'm very used to typing ant -projecthelp
 and seeing a list of targets an descriptions.

 I'm trying to learn some maven stuffs (we may be switching soon).



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



RE: Maven 2 guide for ant users

2006-04-06 Thread EJ Ciramella
This isn't what I'm looking for.

What I'm looking for is something that has things like

Ant target = maven goal
Ant task = maven ??

Ant -projecthelp = mvn ??
 

-Original Message-
From: Tom Joad [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 12:48 PM
To: Maven Users List
Subject: Re: Maven 2 guide for ant users

Hello,
Please see http://maven.apache.org/ant-tasks.html
it  is a bit thin but very helpful.
Tom.

2006/4/6, EJ Ciramella [EMAIL PROTECTED]:
 Is there anything like this?  I'm very used to typing ant
-projecthelp
 and seeing a list of targets an descriptions.

 I'm trying to learn some maven stuffs (we may be switching soon).



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


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



Re: Maven Webstart Plugin

2006-04-06 Thread Jeff Louw

Tim, 

This may all simply be due to a lack of knowledge about how this should all
work, in which case I would appreciate some explanation. 

Here is the template.vm I am using:

## timestamp ??
?xml version=1.0 encoding=utf-8?
jnlp
#if( $config.spec )
spec=${config.spec}
#end
#if( $config.jnlp.version )
spec=${config.jnlp.version}
#end
#if( $config.jnlp.href )
spec=${config.jnlp.href}
#end
#if( $config.jnlp.codebase )
codebase=${config.jnlp.codebase}
#else
codebase=$$codebase
#end
href=$outputFile.name
##
## JNLP/INFORMATION
##
#foreach( $information in $config.jnlp.informations )
  information
title${information.title}/title
#if( $information.vendor )
vendor${information.vendor}/vendor
#end
#if( $information.homepage )
homepage href=${information.homepage}/
#end
#foreach( $description in $information.descriptions )
description #if( $description.kind
)kind=${description.kind}#end${description.text}/description
#end
#foreach( $icon in $information.icons )
##
## JNLP/INFORMATION/ICON
##
icon
#if( $icon.kind )
  kind=${icon.kind}
#end
#if( $icon.width )
  width=${icon.width}
#end
#if( $icon.height )
  height=${icon.height}
#end
#if( $icon.depth )
  depth=${icon.depth}
#end
#if( $icon.size )
  size=${icon.size}
#end
## REQUIRED
  href=images/${icon.fileName}/
#end
##
## END JNLP/INFORMATION/ICON
##
## --
##
#if( $config.jnlp.offlineAllowed )
offline-allowed/
#end
##NEED ASSOCIATIONS (FIXME)
#if( $information.association)
association mime-type=${information.association.mimetype}
extensions=${information.association.extensions}/
#end
##
##
## JNLP/INFORMATION/SHORTCUT FIXME
##
#if( $information.shortcut )
shortcut online=${information.shortcut.online}
#if($information.shortcut.desktop)
  desktop/
#end
#if($information.shortcut.menu)
  menu #if( $information.shortcut.submenu
)submenu=${information.shortcut.submenu}#end/
#end
/shortcut
#end
##
## END JNLP/INFORMATION/SHORTCUT
##
  /information
#end
##
## END JNLP/INFORMATION
##
## --
##
## JNLP/SECURITY
##
#if( $config.jnlp.isAllPermissions() )
  security
 all-permissions/
  /security
#end
#if( $config.jnlp.isJ2EEClientPermissions() )
  security
 j2ee-application-client-permissions/
  /security
#end
##
## END JNLP/SECURITY
##
## --
##
## JNLP/RESOURCES
##
  resources
##
## JNLP/RESOURCES/J2SE
##
#foreach($j2se in $config.jnlp.allResources.j2ses )
j2se version=${j2se.version}
#if($j2se.href)
 href=$j2se.jhref
#elseif($j2se.autodownload)
 href=http://java.sun.com/products/autodl/j2se;
#end
#if($j2se.javaVmArgs)
 java-vm-args=$j2se.javaVmArgs
#end
#if($j2se.initialHeapSize)
 initial-heap-size=$j2se.initialHeapSize
#end
#if($j2se.maxHeapSize)
 max-heap-size=$j2se.maxHeapSize
#end
 /
#end
##
## END JNLP/RESOURCES/J2SE
##
## --
##
## JNLP/RESOURCES/PROPERTIES FIXME
##
#foreach($property in $config.jnlp.allresources.properties )
property name=${property.name} value=${property.value}/
#end
##
## END JNLP/RESOURCES/PROPERTIES
##
## --
##
## JNLP/RESOURCES/JAR
##
#foreach($artifact in $config.packagedJnlpArtifacts)
#if($config.isArtifactWithMainClass($artifact))
jar href=${artifact.file.name} main=true/
#else
jar href=${artifact.file.name}/
#end
#end
##
  /resources
##
## END JNLP/RESOURCES/JAR
##
## --
## FIXME
#foreach($jar in $config.expandedNativeLibs)
  resources #if($jar.os) os=${jar.os} #end
nativelib href=${jar}/
  /resources
#end
##
## --
## JNLP/APPLICATION-DESC
#if ( $config.jnlp.arguments )
  application-desc main-class=${config.jnlp.mainClass}
#foreach($arg in $config.jnlp.arguments)
argument$arg/argument
#end
  /application-desc
#else
  application-desc main-class=${config.jnlp.mainClass}/
#end
## END JNLP/APPLICATION-DESC
##
#if($config.installermainclass)
  installer-desc main-class=${config.installermainclass}/
#end
/jnlp

Here is the resulting jnlp file:

?xml version=1.0 encoding=utf-8?
jnlp
codebase=$$codebase
href=$outputFile.name
  resources
  /resources
  application-desc main-class=${config.jnlp.mainClass}/
/jnlp

This is the sort of thing I would expect to see in a working jnlp file:

xml version=1.0 encoding=utf-8?
!-- JNLP File for my app --
jnlp spec=1.0+ codebase=http://updates.mysite.org/myapp; 
xhref=msss.jnlp
information
titleMy App/title
vendorMy Team/vendor
homepage xhref=myapp.html/
descriptionMy App/description
icon xhref=logo.jpg
offline-allowed/
/information
security
all-permissions/
/security
resources
j2se version1.5+/
jar xhref=myapp.jar/
jar xhref=spring.jar/
jar xhref=spring-rich.jar/
jar xhref=hibernate.jar/
jar xhref=jsuite.jar/
jar xhref=log4j.jar/
jar xhref=swingx.jar/
jar xhref=activation.jar/
jar xhref=mail.jar/
/resources
application-desc 

[m2]recalcitrant plugin when building offline

2006-04-06 Thread Xavier Toth
I have occasion to build at locations where I don't have internet access but
I do have access to a cvs repository where I have added
my local maven repository. So I build a local repository with a check out
from cvs and then I build my project with 'mvn -o clean install'.
However I get the following error:
[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-site-plugin' does not
exist or no valid version could be found
[INFO]


but it's there!

 ls ~/.m2/repository/org/apache/maven/plugins/maven-site-plugin/2.0-beta-4/
CVS  maven-site-plugin-2.0-beta-4.jar  maven-site-plugin-2.0-beta-4.pom

While testing this build process I have internet access and if I remove
~/.m2/repository/org/apache/maven/plugins/maven-site-plugin/2.0-beta-4 and
build 'online' the same files (maven-site-plugin-2.0-beta-4.jar,
maven-site-plugin-2.0-beta-4.pom)
end up in the same place
(~/.m2/repository/org/apache/maven/plugins/maven-site-plugin/2.0-beta-4/)
and the build works. Can anyone help me understand why this happens and how
I can fix it?

Xavier


Re: Maven 2 guide for ant users

2006-04-06 Thread Tom Joad
Ok ,
Maven 2.0.x brings abstraction on building process compared to ant.
where ant deals with target maven does it with plugins.
For example resources to copy are explicitely copy for ant . maven
achieves it by plugin
resource.
If you are an experienced ant user , with a little practice of maven
you can make yourself
analogy between targets and some maven plugin:goals.
I don't know if it can help but that what i did.
Tom.




2006/4/6, EJ Ciramella [EMAIL PROTECTED]:
 This isn't what I'm looking for.

 What I'm looking for is something that has things like

 Ant target = maven goal
 Ant task = maven ??

 Ant -projecthelp = mvn ??


 -Original Message-
 From: Tom Joad [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 06, 2006 12:48 PM
 To: Maven Users List
 Subject: Re: Maven 2 guide for ant users

 Hello,
 Please see http://maven.apache.org/ant-tasks.html
 it  is a bit thin but very helpful.
 Tom.

 2006/4/6, EJ Ciramella [EMAIL PROTECTED]:
  Is there anything like this?  I'm very used to typing ant
 -projecthelp
  and seeing a list of targets an descriptions.
 
  I'm trying to learn some maven stuffs (we may be switching soon).
 
 

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


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



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



Re: [m2] 2.0.4 release

2006-04-06 Thread Wayne Fay
Here's the latest RC for 2.0.4:
http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-20060406.131501.tar.gz

You'll have to watch the dev@ list to see when it is released as
final. I don't believe there is any particular delivery date that is
defined at this point -- it will be released when its ready, voted on,
etc.

Wayne

On 4/6/06, Franz Fehringer [EMAIL PROTECTED] wrote:
 Hello,

 Is the (approximate) release date of 2.0.4  known already?
 Are there pending show stoppers (which)?

 Best regards

 Franz




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




Re: KEYSTORES in M2 : is it possible to create / use KEYSTORE in M2 ?

2006-04-06 Thread Wayne Fay
Keystore for... what exactly? What's the use case/what are you trying
to do exactly?

Wayne


On 4/6/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:
 Dear.
 Is it possible to create / use keystores in M2 ?
 Regards.
 - - - - - - - DISCLAIMER- - - - - - - -
 Unless indicated otherwise, the information contained in this message is
 privileged and confidential, and is intended only for the use of the
 addressee(s) named above and others who have been specifically authorized to
 receive it. If you are not the intended recipient, you are hereby notified
 that any dissemination, distribution or copying of this message and/or
 attachments is strictly prohibited. The company accepts no liability for any
 damage caused by any virus transmitted by this email. Furthermore, the
 company does not warrant a proper and complete transmission of this
 information, nor does it accept liability for any delays. If you have
 received this message in error, please contact the sender and delete the
 message. Thank you.




Re: Maven 2 guide for ant users

2006-04-06 Thread Tom Joad
I suggest to you to follow  maven getting started documentation for a
first and good approach
of maven .

Tom.

2006/4/6, EJ Ciramella [EMAIL PROTECTED]:
 This isn't what I'm looking for.

 What I'm looking for is something that has things like

 Ant target = maven goal
 Ant task = maven ??

 Ant -projecthelp = mvn ??


 -Original Message-
 From: Tom Joad [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 06, 2006 12:48 PM
 To: Maven Users List
 Subject: Re: Maven 2 guide for ant users

 Hello,
 Please see http://maven.apache.org/ant-tasks.html
 it  is a bit thin but very helpful.
 Tom.

 2006/4/6, EJ Ciramella [EMAIL PROTECTED]:
  Is there anything like this?  I'm very used to typing ant
 -projecthelp
  and seeing a list of targets an descriptions.
 
  I'm trying to learn some maven stuffs (we may be switching soon).
 
 

 -
 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: JDOM et java.lang.NoClassDefFoundError

2006-04-06 Thread Wayne Fay
You need to add this to your pom.xml for your project:
dependency
  groupIdjaxen/groupId
  artifactIdjaxen/artifactId
  version1.1-beta-8/version
  scopecompile/scope
/dependency

Scope test is quite literally:
scopetest/scope

Boris is simply saying, you can use test scope instead of compile
scope since you are using this dependency in your tests.

Wayne

On 4/6/06, Pierre Jacquot [EMAIL PROTECTED] wrote:
 what's scope test is ?

 2006/4/6, Boris Lenzinger [EMAIL PROTECTED]:
 
  You are probably missing a dependency (with scope test I guess) in your
  pom file. This dependency should be related to jaxen.
 
  Pierre Jacquot a écrit :
   When i use this javacode in a maven project :
   setXPathClass(Class.forName(className));
  
   where className=org.jdom.xpath.JaxenXPath
  
   i have this error :
   java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:141)
   at org.jdom.xpath.XPath.newInstance(XPath.java:128)
   at org.jdom.xpath.XPath.selectNodes(XPath.java:349)
   at
  org.jtestcase.core.digester.XQueryParserImpl_Jaxen.getElements
  (XQueryParserImpl_Jaxen.java:79)
  
   at
   org.jtestcase.core.digester.JTestCaseDigester.getTestCaseGlobalParams(
   JTestCaseDigester.java:828)
   at org.jtestcase.JTestCase.getGlobalParams(JTestCase.java:240)
   at org.jtestcase.JTestCase.getGlobalParamLocale(JTestCase.java
  :278)
   at org.jtestcase.JTestCase.init(JTestCase.java:155)
   at com.test_junit.app.CalculatorTest.init(CalculatorTest.java
  :53)
   at com.test_junit.app.CalculatorTest.suite(CalculatorTest.java
  :76)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
   NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
   DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
  org.apache.maven.surefire.battery.JUnitBattery.processTestClass(
   JUnitBattery.java:130)
   at org.apache.maven.surefire.battery.JUnitBattery.init(
   JUnitBattery.java:81)
   at org.apache.maven.surefire.SurefireUtils.instantiateBattery(
   SurefireUtils.java:63)
   at org.apache.maven.surefire.Surefire.instantiateBatteries(
   Surefire.java:262)
   at org.apache.maven.surefire.Surefire.run(Surefire.java:140)
   at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
   NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
   DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(
   SurefireBooter.java:313)
   at org.apache.maven.surefire.SurefireBooter.run(
  SurefireBooter.java:221)
  
   at org.apache.maven.test.SurefirePlugin.execute(
  SurefirePlugin.java:371)
  
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
   DefaultPluginManager.java:412)
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
   DefaultLifecycleExecutor.java:534)
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
   (DefaultLifecycleExecutor.java:475
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle
  (
   DefaultLifecycleExecutor.java:891)
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle
   (DefaultLifecycleExecutor.java:734)
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
   DefaultLifecycleExecutor.java:525)
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
   (DefaultLifecycleExecutor.java:475
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
   DefaultLifecycleExecutor.java:454)
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
   (DefaultLifecycleExecutor.java
   at
   org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
   DefaultLifecycleExecutor.java:273)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
   DefaultLifecycleExecutor.java:140)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
  :322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
   NativeMethodAccessorImpl.java:39)
   at 

RE: Maven 2 guide for ant users

2006-04-06 Thread Vincent Massol
 

 

 -Original Message-

 From: EJ Ciramella [mailto:[EMAIL PROTECTED]

 Sent: jeudi 6 avril 2006 18:50

 To: Maven Users List

 Subject: RE: Maven 2 guide for ant users

 

 This isn't what I'm looking for.

 

 What I'm looking for is something that has things like

 

 Ant target = maven goal

 Ant task = maven ??

 

Unfortunately you'll not find this. Ant is about tasks. Maven is about high
level build actions. It's the same as comparing language primitives vs
higher level libraries.

 

Maven2 is a whole different concept. I suggest that you start by reading the
documentation on the maven web site and then read the Maven2 book which will
be officially out in a few days.

 

I also have several presentations on http://massol.net/ (left menu).

 

 Ant -projecthelp = mvn ??

 

There's mvn help:describe -Dplugin=xxx

 

Hope it helps,

-Vincent

 

 -Original Message-

 From: Tom Joad [mailto:[EMAIL PROTECTED]

 Sent: Thursday, April 06, 2006 12:48 PM

 To: Maven Users List

 Subject: Re: Maven 2 guide for ant users

 

 Hello,

 Please see http://maven.apache.org/ant-tasks.html

 it  is a bit thin but very helpful.

 Tom.

 

 2006/4/6, EJ Ciramella [EMAIL PROTECTED]:

  Is there anything like this?  I'm very used to typing ant

 -projecthelp

  and seeing a list of targets an descriptions.

 

  I'm trying to learn some maven stuffs (we may be switching soon).

 

 

 

 -

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

2006-04-06 Thread Mick Knutson
Is this release going to fix my issues with site:site I have been posting 
about (but getting no responses)?



---
Thank You
Mick Knutson

BASE logic, inc.
(415) 648-1804 (San Francisco, CA)
http://www.BASELogic.com

http://www.djmick.com
---





From: Wayne Fay [EMAIL PROTECTED]
Reply-To: Maven Users List users@maven.apache.org
To: Maven Users List users@maven.apache.org
Subject: Re: [m2] 2.0.4 release
Date: Thu, 6 Apr 2006 12:03:22 -0500

Here's the latest RC for 2.0.4:
http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-20060406.131501.tar.gz

You'll have to watch the dev@ list to see when it is released as
final. I don't believe there is any particular delivery date that is
defined at this point -- it will be released when its ready, voted on,
etc.

Wayne

On 4/6/06, Franz Fehringer [EMAIL PROTECTED] wrote:
 Hello,

 Is the (approximate) release date of 2.0.4  known already?
 Are there pending show stoppers (which)?

 Best regards

 Franz




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



Maven 1.1 gold?

2006-04-06 Thread Shute, James
Are there any plans to turn Maven 1.1b2 into 1.1 final?

I'm personally quite happy to trust using a b2 version but being in a
commercial organisation eyebrows are always raised when you say you're
using a beta build of an open source project!

thanks

James

--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


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



  1   2   >