Re: Behavior with multiple goals

2006-02-03 Thread Alex Boisvert

Yes, I understand the package goal is a superset of the compile;  I
mostly wanted to understand why I didn't see it happening.   Thanks for
your clarification.

Are you saying that if the build definitions were set on different
schedules the behavior would be different?

Let's say I have a goal package run every hour and a goal release
run every day.  Would release happen if it is run after package?  Or
should I set up two different projects for this?

alex



Emmanuel Venisse wrote:

 I don't understand why you set 2 build definitions for the same
 schedule. It will be more logic to delete the second (compile) because
 it's included in package phase.

 As you have 2 build definitions on the same schedule, continuum run
 them separatly. In your case it run compile definition first, and when
 it try to run package definition, scm update return no changes, so
 continuum doesn't do the build.

 Emmanuel

 Alex Boisvert a écrit :

 Hi,

 I'm using continuum 1.0.2 and I've defined two goals for a Maven2
 project:


   Build Definitions

 Goals Arguments POM File Profile Schedule
 From  package --batch-mode pom.xml DEFAULT
 DEFAULT_SCHEDULE Project Edit
 http://release.intalio.com:/continuum/servlet/continuum/target/BuildDefinition.vm/view/BuildDefinition/buildDefinitionId/11/id/11

 | Delete
 http://release.intalio.com:/continuum/servlet/continuum/target/DeleteBuildDefinition.vm/buildDefinitionId/11/id/11/executorId/maven2


 compile --batch-mode pom.xml DEFAULT
 DEFAULT_SCHEDULE Project Edit
 http://release.intalio.com:/continuum/servlet/continuum/target/BuildDefinition.vm/view/BuildDefinition/buildDefinitionId/51/id/11

 | Delete
 http://release.intalio.com:/continuum/servlet/continuum/target/DeleteBuildDefinition.vm/buildDefinitionId/51/id/11/executorId/maven2




 I've discovered today that only the second goal (compile) gets run every
 hour (DEFAULT_SCHEDULE).  The first goal (package; which is flagged as
 default) only executes if I trigger the build manually.

 Is this normal?

 alex






Re: How to make multi module work in continuum

2006-02-03 Thread raghurajan . x . gurunathan
Again Thanks for your reply,


If i remove the -N option i think i read somewhere its gonna do build all 
modules 2 times? is that right


in case of shell project  where do i give my pom url ? coz all its asking 
for project name,versin,scm url

so i gave it like this

Project Name : MyMavenPrj
Version : snapshot
 Scm Url: scm:clearcase|Myview|Myconfig_spec

then when i hit the build now

i'm getting the following error?? What am i doing wront, 

ognl.MethodFailedException: Method buildProject failed for object 
[EMAIL PROTECTED] 
[org.apache.maven.continuum.ContinuumException: Project (id=81 doens't 
have a default build definition.]
 at 
ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796)
 at 
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)
 at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
 at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
 at 
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
 at ognl.SimpleNode.getValue(SimpleNode.java:210)
 at ognl.Ognl.getValue(Ognl.java:333)
 at ognl.Ognl.getValue(Ognl.java:378)
 at ognl.Ognl.getValue(Ognl.java:357)
 at 
org.apache.maven.continuum.web.action.CallApplicationModel.execute(CallApplicationModel.java:72)
 at 
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)
 at 
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)
 at 
org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)
 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
 at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
 at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
 at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
 at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
 at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
 at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
 at 
org.mortbay.http.HttpServer.service(HttpServer.java:879)
 at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
 at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
 at 
org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
 at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
 at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
 at 
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
/-- Encapsulated exception \
org.apache.maven.continuum.ContinuumException: Project (id=81 doens't have 
a default build definition.
 at 
org.apache.maven.continuum.DefaultContinuum.buildProject(DefaultContinuum.java:396)
 at 
org.apache.maven.continuum.DefaultContinuum.buildProject(DefaultContinuum.java:381)
 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 ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)
 at 
ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:785)
 at 
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)
 at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
 at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
 at 
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
 at ognl.SimpleNode.getValue(SimpleNode.java:210)
 at ognl.Ognl.getValue(Ognl.java:333)
 at ognl.Ognl.getValue(Ognl.java:378)
 at ognl.Ognl.getValue(Ognl.java:357)
 at 
org.apache.maven.continuum.web.action.CallApplicationModel.execute(CallApplicationModel.java:72)
 at 
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)
 at 
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)
 at 
org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)
 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
 at 

Re: How to make multi module work in continuum

2006-02-03 Thread Emmanuel Venisse



[EMAIL PROTECTED] a écrit :

Can you please give me more details on your comment

You must add a build definition. With shell project, we can't add a 
default build definition


Open the project view in Continuum interface
Click on Add button in build definition part
set parameters



Is there any example(step-step) somewhere it shows how to add M2project as 
shell project??


Not yet.







Thanks,
Raghurajan G 






Emmanuel Venisse [EMAIL PROTECTED]
02/03/2006 11:19 AM
Please respond to continuum-users

 
To: continuum-users@maven.apache.org
cc: 
Subject:Re: How to make multi module work in continuum





[EMAIL PROTECTED] a écrit :


Again Thanks for your reply,


If i remove the -N option i think i read somewhere its gonna do build 


all 


modules 2 times? is that right



yes, but only on modules that have changes.




in case of shell project  where do i give my pom url ? coz all its 


asking 


for project name,versin,scm url

so i gave it like this

   Project Name : MyMavenPrj
   Version : snapshot
Scm Url: scm:clearcase|Myview|Myconfig_spec

then when i hit the build now

i'm getting the following error?? What am i doing wront, 



You must add a build definition. With shell project, we can't add a 
default build definition.




ognl.MethodFailedException: Method buildProject failed for object 
[EMAIL PROTECTED] 
[org.apache.maven.continuum.ContinuumException: Project (id=81 doens't 
have a default build definition.]
at 
ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796)
at 
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)

at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
at 
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)

at ognl.SimpleNode.getValue(SimpleNode.java:210)
at ognl.Ognl.getValue(Ognl.java:333)
at ognl.Ognl.getValue(Ognl.java:378)
at ognl.Ognl.getValue(Ognl.java:357)
at 



org.apache.maven.continuum.web.action.CallApplicationModel.execute(CallApplicationModel.java:72)

at 



org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)

at 



org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)

at 
org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
at 



org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)

at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at 



org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)

at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at 
org.mortbay.http.HttpServer.service(HttpServer.java:879)
at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
at 
org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
at 



org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)

at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
at 
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)

/-- Encapsulated exception \
org.apache.maven.continuum.ContinuumException: Project (id=81 doens't 


have 


a default build definition.
at 



org.apache.maven.continuum.DefaultContinuum.buildProject(DefaultContinuum.java:396)

at 



org.apache.maven.continuum.DefaultContinuum.buildProject(DefaultContinuum.java:381)

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 ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)
at 
ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:785)
at 
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)

at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
at ognl.ASTMethod.getValueBody(ASTMethod.java:75)

Re: Error in detecting changes

2006-02-03 Thread Punkin Head
The pom.xml is version 1.34.

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

[INFO] Building WRAT Parent
[INFO]task-segment: [clean, deploy]
[INFO]

[INFO] [clean:clean]
[INFO] [install:install]
[INFO] Installing c:\Program Files\Apache Software Foundation\continuum-
1.0.2\working-directory\108\pom.xml to C:\Documents and
Settings\continuum.MOBILVOX\.m2\repository\com\mobilvox\wrat\application-parent\1.1-SNAPSHOT\application-
parent-1.1-SNAPSHOT.pom
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from mv-repo
Uploading:
file:\\dc103\software\.m2\repository/com/mobilvox/wrat/application-parent/1.1-SNAPSHOT/application-
parent-1.1-20060202.212006-1.pom
5K uploaded
[INFO] Retrieving previous metadata from mv-repo
[INFO] Uploading repository metadata for: 'artifact
com.mobilvox.wrat:application-parent'
[INFO] Retrieving previous metadata from mv-repo
[INFO] Uploading repository metadata for: 'snapshot
com.mobilvox.wrat:application-parent:1.1-SNAPSHOT'
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Thu Feb 02 16:20:06 EST 2006
[INFO] Final Memory: 3M/6M
[INFO]


On 2/3/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:

 Is it your pom.xml that have this version?

 Can you send log traces of a build execution on this project.

 Emmanuel

 Punkin Head a écrit :
  The version in CVS is 1.34 (with an update by another individual) but,
 the
  Continuum build number is 25.  On CVS 1.25 I was the one who commited
 the
  changes and it is those comments that are on the Continuum build changes
  page, not the ones from CVS version 1.34.
 
  On 2/3/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 
 What do you mean? What is a CVS revision?
 
 When continuum does a new build, it run the following command 'cvs -f -q
 update -d'
 A build number is internal to Continuum and cvs doesn't know it.
 
 Emmanuel
 
 Punkin Head a écrit :
 
 When Continuum does a new build, it seems to detect the CVS revision
 
 that is
 
 equivalent to the build number.  For example, one of our modules is on
 
 build
 
 25 but CVS revision 34 and the comments for the changes on the build
 
 result
 
 page are from CVS revision 25.  Is there a way to match these so that
 we
 
 can
 
 see who did what?
 
 Thanks,
 
 Adam
 
 --
 www.punkinshred.net  // punkin'head official homepage
 
 www.myspace.com/punkinhead -- for true shred
 
 
 
 
 
  --
  www.punkinshred.net  // punkin'head official homepage
 
  www.myspace.com/punkinhead -- for true shred
 




--
www.punkinshred.net  // punkin'head official homepage

www.myspace.com/punkinhead -- for true shred


RE: [m2eclipse] Eclipse WebTools and Maven2 Publishing Failed

2006-02-03 Thread Domsch, Christian
Hello,

we do have the same problem (its not a M4 specific problem,
it also shows up on eclipse 3.1.2 with WTP 1.0). I would
really like to have a solution to that.

Btw, I scanned the eclipse wtp bug list and found something
on there. But they claim this has been solved since WTP 1.0M2
or something like that.
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=87474)

Greetings Christian.


 -Original Message-
 From: John Fallows [mailto:[EMAIL PROTECTED]
 Sent: Freitag, 3. Februar 2006 07:05
 To: Maven Users List
 Subject: [m2eclipse] Eclipse WebTools and Maven2 Publishing Failed
 
 
 I'm trying to use Eclipse 3.2M4, Eclipse WebTools 1.5M4, 
 Maven2 Eclipse
 Plugin 0.0.4 and Tomcat 4.1.
 
 I have a WebTools Dynamic Web Project that uses Maven2 to 
 resolve library
 dependencies.  When trying to Debug As - Debug on Server, 
 the following
 error occurs:
 
 Publishing failed
   Resource /M2_REPO/commons-logging/commons-logging/1.0/commons-
 logging-1.0.jar does not exist.
 
 It seems as though the M2_REPO variable is not being 
 resolved correctly
 when the WAR is being constructed for deployment to Tomcat.
 
 Presumably this should resolve to
   C:\Documents and
 Settings\john.fallows\.m2\repository/commons-logging/commons-l
 ogging/1.0/commons-
 logging-1.0.jar
 
 which does exist on the local filesystem.
 
 Note that I have already set the Maven2 Preferences to use 
 C:\Documents and
 Settings\john.fallows\.m2\repository as the Local Repository 
 Folder value,
 enabling compilation to succeed.
 
 Btw, this type of IDE integration is exactly the right 
 direction for Maven2
 to be taking.  Combined with automatic generation of all the 
 various flavors
 of IDE project files, we are getting very close to having a 
 single source of
 truth for both IDE development activities and continuous integration
 builds.  Great work!
 
 Kind Regards,
 John Fallows.
 --
 http://apress.com/book/bookDisplay.html?bID=10044
 Author: Pro JSF and Ajax: Building Rich Internet Components, Apress
 

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



Re: [m2eclipse] Eclipse WebTools and Maven2 Publishing Failed

2006-02-03 Thread John Fallows
On 2/3/06, Domsch, Christian [EMAIL PROTECTED] wrote:

 we do have the same problem (its not a M4 specific problem,
 it also shows up on eclipse 3.1.2 with WTP 1.0). I would
 really like to have a solution to that.

 Btw, I scanned the eclipse wtp bug list and found something
 on there. But they claim this has been solved since WTP 1.0M2
 or something like that.
 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=87474)


Thanks for the pointer, Christian.  This does indeed seem like the same bug,
however it looks to be broken in my environment for Eclipse 3.2M4 and WTP
1.5M4 and your environment for Eclipse 3.1.2 and WTP 1.0.

Anyone else having similar difficulties, or better yet, a solution?

Kind Regards,
John Fallows.

 -Original Message-
  From: John Fallows [mailto:[EMAIL PROTECTED]
  Sent: Freitag, 3. Februar 2006 07:05
  To: Maven Users List
  Subject: [m2eclipse] Eclipse WebTools and Maven2 Publishing Failed
 
 
  I'm trying to use Eclipse 3.2M4, Eclipse WebTools 1.5M4,
  Maven2 Eclipse
  Plugin 0.0.4 and Tomcat 4.1.
 
  I have a WebTools Dynamic Web Project that uses Maven2 to
  resolve library
  dependencies.  When trying to Debug As - Debug on Server,
  the following
  error occurs:
 
  Publishing failed
Resource /M2_REPO/commons-logging/commons-logging/1.0/commons-
  logging-1.0.jar does not exist.
 
  It seems as though the M2_REPO variable is not being
  resolved correctly
  when the WAR is being constructed for deployment to Tomcat.
 
  Presumably this should resolve to
C:\Documents and
  Settings\john.fallows\.m2\repository/commons-logging/commons-l
  ogging/1.0/commons-
  logging-1.0.jar
 
  which does exist on the local filesystem.
 
  Note that I have already set the Maven2 Preferences to use
  C:\Documents and
  Settings\john.fallows\.m2\repository as the Local Repository
  Folder value,
  enabling compilation to succeed.
 
  Btw, this type of IDE integration is exactly the right
  direction for Maven2
  to be taking.  Combined with automatic generation of all the
  various flavors
  of IDE project files, we are getting very close to having a
  single source of
  truth for both IDE development activities and continuous integration
  builds.  Great work!
 
  Kind Regards,
  John Fallows.
  --
  http://apress.com/book/bookDisplay.html?bID=10044
  Author: Pro JSF and Ajax: Building Rich Internet Components, Apress
 

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




--
http://apress.com/book/bookDisplay.html?bID=10044
Author: Pro JSF and Ajax: Building Rich Internet Components, Apress


Re: Incorporating Doxia from svn into m2

2006-02-03 Thread Emmanuel Venisse

It's seems to be partially fixed.
anchor rendering is fixed but not on section title. Please, file an issue.

You're right, you must put new version in maven/lib directory

Emmanuel

Julian Wood a écrit :

Hi,

There's a bug in doxia which is purportedly fixed, and I want to use  
the fix.


http://jira.codehaus.org/browse/DOXIA-29

It's not fixed in m2.0.2, AFAICT, but I'm not sure which version of  
doxia I am running (seems to be 1.0-alpha-7), so that in itself  doesn't 
make sense, since it is supposed to be fixed in 1.0-alpha-6.


In /usr/local/maven-2.0.2/lib I have doxia-sink-api-1.0-alpha-7.jar,  
but I'm not sure if that is the right artifact for the fix.


If I svn checkout doxia, and install all the artifacts into my local  
repository (does doxia work like plugins??):


mvn install -DupdateReleaseInfo=true

I still get the bug. I also tried replacing the built artifact doxia- 
sink-api-1.0-alpha-8-SNAPSHOT.jar in /usr/local/maven-2.0.2/lib, but  
still no go.


So what do I need to do? Or is this still a bug?

A couple more things, 'mvn site' on the svn version of doxia, then  load 
up format.html in target/site, click on 'document structure' and  the 
bug is still there. Of course that is using my mvn 2.0.2.


If I modify src/main/resources/test/test.apt in doxia-core to have an  
anchor and link in it, then run the tests, it looks like it works,  
except that there is no html output. It looks like it works in the  xml 
output, and the other files. I get an empty file for xhtml. So  I'm 
still trying to get a test-case up and going. What would normally  
produce test.html, as with using the site plugin? Does it go apt-xml- 
 html using some xsl somewhere?


Still digging,

J

PS. Should this be moved to one of the doxia lists?

--
Julian Wood [EMAIL PROTECTED]

Programmer/Analyst
University of Calgary

http://commons.ucalgary.ca


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







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



Re: Re : [m2] using xdoclet2 and maven2

2006-02-03 Thread Allan Ramirez

Do you have a proxy?
If none, use -U to update your plugins.

-allan

DJP JEAN-PROST Dominique wrote:


Hello,

To help you help me, here is what I get when I try the -X option.
Best regards for helping me.
Dominique



+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and 
Settings\djeanprost\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 
'C:\bin\maven-2.0\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] 

[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [package]
[INFO] 

[DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central
[DEBUG] Retrieving parent-POM from the repository for project: 
null:maven-resources-plugin:maven-plugin:2.1
[DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository central
[DEBUG] Retrieving parent-POM from the repository for project: 
null:maven-compiler-plugin:maven-plugin:2.0
[DEBUG] maven-surefire-plugin: resolved to version 2.1.2 from repository central
[DEBUG] Retrieving parent-POM from the repository for project: 
null:maven-surefire-plugin:maven-plugin:2.1.2
[DEBUG] maven-jar-plugin: resolved to version 2.0 from repository central
[DEBUG] Retrieving parent-POM from the repository for project: 
null:maven-jar-plugin:maven-plugin:2.0
[DEBUG] maven2-xdoclet2-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the latest 
version

 xdoclet:maven2-xdoclet2-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM xdoclet:maven2-xdoclet2-plugin:pom:LATEST
[DEBUG] maven2-xdoclet2-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the release 
version

 xdoclet:maven2-xdoclet2-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM 
xdoclet:maven2-xdoclet2-plugin:pom:RELEASE
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid 
version could be found
[INFO] 

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 
'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version could be 
found
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1247)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1182)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:950)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:450)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The 
plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version 
could be found
   at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
   at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
   at 
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:160)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1218)
   ... 17 more
[INFO] 


Re: Using cobertura with Maven 2

2006-02-03 Thread Rik Bosman
Jared,

I had the same problem and solved it with the following actions:

- Add the version to both the plugins: version2.0-SNAPSHOT/version
- Add the sandbox repository to the pom, see below.

Hope this helps,

Kindly revert for clarifications,

Rik

repositories
  repository
   idMaven Snapshots/id
   urlhttp://snapshots.maven.codehaus.org/maven2//url
   snapshots
enabledtrue/enabled
   /snapshots
   releases
enabledfalse/enabled
   /releases
  /repository
 /repositories
 pluginRepositories
  pluginRepository
   idMaven Snapshots/id
   urlhttp://snapshots.maven.codehaus.org/maven2//url
   snapshots
enabledtrue/enabled
   /snapshots
   releases
enabledfalse/enabled
   /releases
  /pluginRepository
 /pluginRepositories



2006/2/3, javed mandary [EMAIL PROTECTED]:

 Hi Guys,
 i'd like to know some information about the cobertura plugin
 in
 general:

 1. On which repo is the cobertura-maven-plugin hosted ?
 2. How to configure it in your POM ?

 I tried the following 2 configurations in my POM:
 ---EXTRACT OF MY POM
 --
 build
 
   plugins
 plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
executions
  execution
goals
  goalclean/goal
/goals
  /execution
/executions
 /plugin

 plugins
 ...
 reporting
  plugins
   plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
  /plugin
/plugins
/reporting
 /build

 -END-

 I get the following error:

 ---
 [ERROR] BUILD ERROR
 [INFO]
 -
 ---
 [INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not
 exist
 or n
 o 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: Fri Feb 03 11:34:19 GST 2006
 [INFO] Final Memory: 2M/4M
 [INFO] --
 ---

 Is there any other configurations that is required ? I am using Maven
 2.0.2.

 kind regards,
  Javed




RE: [M2] Need help on configuring maven.username ?

2006-02-03 Thread fabrice . belingard




Have you tried passing the argument in the command line?  mvn
-Dmaven.username=MyName ...

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  [EMAIL PROTECTED]


   
 Malcolm Wong Ho   
 [EMAIL PROTECTED]  
 m   Pour
   users@maven.apache.org  
 03/02/2006 10:21   cc
   
 Objet
 Veuillez  [M2] Need help on configuring   
répondre à maven.username ?
 Maven Users List  
 [EMAIL PROTECTED]  
 che.org  
   
   
   





Where can i change the value/property for maven.username ?


DISCLAIMER:
This message may contain information which is confidential, private or
privileged in nature. If you are not the intended recipient, you may not
peruse, use, disseminate, distribute or copy this message or file which is
attached to this message. If you have received this message in error,
please notify the sender immediately by e-mail, facsimile or telephone and
thereafter return and/or destroy the original message.

Any views of this communication are those of the sender except where the
sender specifically states them to be those of Faritec (Holdings)  Limited
(Faritec) and/or  any of its subsidiaries including (but not limited to)
Faritec Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT
Services (Proprietary) Limited, Faritec Contracting (Proprietary) Limited,
Ebis and/or any of its subsidiaries.

Please note that the recipient must scan this e-mail and any attached files
for viruses and the like. While we do everything possible to protect
information from viruses, Faritec accepts no liability of whatever nature
for any loss, liability, damage or expense resulting directly or indirectly
from the access and/or downloading of any files which are attached to this
e-mail message.



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



Problem trying to do a checkin

2006-02-03 Thread Malcolm Wong Ho
Title: Problem trying to do a checkin







I'm having a problem performing a checkin, it seems like it is executing the checkout goal instead.

INFO] [scm:checkin]
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Cannot run checkout command :

Embedded error: Exception while executing SCM command.
Missing parameter: 'message'.
[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot run checkout command :
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455)



DISCLAIMER:This message may contain information which is confidential, private or privileged in nature. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message or file which is attached to this message. If you have received this message in error, please notify the sender immediately by e-mail, facsimile or telephone and thereafter return and/or destroy the original message.Any views of this communication are those of the sender except where the sender specifically states them to be those of Faritec (Holdings)  Limited (Faritec) and/or any of its subsidiaries including (but not limited to) Faritec Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT Services (Proprietary) Limited, Faritec Contracting (Proprietary) Limited, Ebis and/or any of its subsidiaries.Please note that the recipient must scan this e-mail and any attached files for viruses and the like. While we do everything possible to protect information from viruses, Faritec accepts no liability of whatever nature for any loss, liability, damage or expense resulting directly or indirectly from the access and/or downloading of any files which are attached to this e-mail message.


RE: [M2] Need help on configuring maven.username ?

2006-02-03 Thread Malcolm Wong Ho

is there no way of setting it in a properties file ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Fri 2/3/2006 12:39 PM
To: Maven Users List
Subject: RE: [M2] Need help on configuring maven.username ?
 




Have you tried passing the argument in the command line?  mvn
-Dmaven.username=MyName ...

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  [EMAIL PROTECTED]


   
 Malcolm Wong Ho   
 [EMAIL PROTECTED]  
 m   Pour 
   users@maven.apache.org  
 03/02/2006 10:21   cc 
   
 Objet 
 Veuillez  [M2] Need help on configuring   
répondre à maven.username ?
 Maven Users List  
 [EMAIL PROTECTED]  
 che.org  
   
   
   





Where can i change the value/property for maven.username ?


DISCLAIMER:
This message may contain information which is confidential, private or
privileged in nature. If you are not the intended recipient, you may not
peruse, use, disseminate, distribute or copy this message or file which is
attached to this message. If you have received this message in error,
please notify the sender immediately by e-mail, facsimile or telephone and
thereafter return and/or destroy the original message.

Any views of this communication are those of the sender except where the
sender specifically states them to be those of Faritec (Holdings)  Limited
(Faritec) and/or  any of its subsidiaries including (but not limited to)
Faritec Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT
Services (Proprietary) Limited, Faritec Contracting (Proprietary) Limited,
Ebis and/or any of its subsidiaries.

Please note that the recipient must scan this e-mail and any attached files
for viruses and the like. While we do everything possible to protect
information from viruses, Faritec accepts no liability of whatever nature
for any loss, liability, damage or expense resulting directly or indirectly
from the access and/or downloading of any files which are attached to this
e-mail message.



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




DISCLAIMER:
This message may contain information which is confidential, private or 
privileged in nature. If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or copy this message or file which is 
attached to this message. If you have received this message in error, please 
notify the sender immediately by e-mail, facsimile or telephone and thereafter 
return and/or destroy the original message. 

Any views of this communication are those of the sender except where the sender 
specifically states them to be those of Faritec (Holdings)  Limited (Faritec) 
and/or  any of its subsidiaries including (but not limited to) Faritec 
Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT Services 
(Proprietary) Limited, Faritec Contracting (Proprietary) Limited, Ebis and/or 
any of its subsidiaries.

Please note that the recipient must scan this e-mail and any attached files for 
viruses and the like. While we do everything possible to protect information 
from viruses, Faritec accepts no liability of whatever nature for any loss, 
liability, damage or expense resulting directly or indirectly from the access 
and/or downloading of any files which are attached to this e-mail message.

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

RE : How to force download of internal snapshots ?

2006-02-03 Thread Olivier Lamy
Probably look at : mvn -h (parameter -U)

-Message d'origine-
De : LECAN Damien [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 3 février 2006 11:52
À : users@maven.apache.org
Objet : How to force download of internal snapshots ?


Hello,

I work with maven 2.0.2 in a corporate environment with a maven-proxy
for ibibli and co. and for our internal repository of releases and
snapshots. Everything work fine with external artifacts and internal
released artifacts. But for internal snapshots, maven refuses to
download them. It always looks for them in each local developer
repositories.

How to force maven to download snapshots ?

Thanks

Damien Lecan

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



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


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



RE: [M2] How to only delete .class files ?

2006-02-03 Thread Max Cooper
I am not using WSAD currently (so I can't check to see how we did it),
but I am pretty sure there is a way to change the output directory in
the Project Properties. I am almost certain we did that in a previous
project using WSAD 5.1x that had an ejbModule component.

-Max

On Thu, 2006-02-02 at 13:14 +0200, Malcolm Wong Ho wrote:
 Due to WSAD project directory structure, eg an ejb project has an ejbModule 
 that is both the sourceDirectory and outputDirectory.
 
 -Original Message-
 From: jerome lacoste [mailto:[EMAIL PROTECTED]
 Sent: Thu 2/2/2006 12:54 PM
 To: Maven Users List
 Subject: Re: [M2] How to only delete .class files ?
  
 On 2/2/06, Malcolm Wong Ho [EMAIL PROTECTED] wrote:
  How do i remove .class files if the sourceDirectory and outputDirectory are 
  the same ?
 
 Using maven, I don't know... It's not a standard practise. Stick with
 the standard.
 
 What do you gain at using the same directory for source and output?
 
 
 (
 On Linux you could do
find src/main/java -name *.class | xargs rm
 but I guess you're not on Linux...
 )
 
 Jerome
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 DISCLAIMER:
 This message may contain information which is confidential, private or 
 privileged in nature. If you are not the intended recipient, you may not 
 peruse, use, disseminate, distribute or copy this message or file which is 
 attached to this message. If you have received this message in error, please 
 notify the sender immediately by e-mail, facsimile or telephone and 
 thereafter return and/or destroy the original message. 
 
 Any views of this communication are those of the sender except where the 
 sender specifically states them to be those of Faritec (Holdings)  Limited 
 (Faritec) and/or  any of its subsidiaries including (but not limited to) 
 Faritec Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT 
 Services (Proprietary) Limited, Faritec Contracting (Proprietary) Limited, 
 Ebis and/or any of its subsidiaries.
 
 Please note that the recipient must scan this e-mail and any attached files 
 for viruses and the like. While we do everything possible to protect 
 information from viruses, Faritec accepts no liability of whatever nature for 
 any loss, liability, damage or expense resulting directly or indirectly from 
 the access and/or downloading of any files which are attached to this e-mail 
 message.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Problem trying to do a checkin

2006-02-03 Thread Emmanuel Venisse

I guess you run it like this:
mvn scm:checkin Message

it isn't the command line i wrote in my previous mail

Emmanuel

Malcolm Wong Ho a écrit :

I'm getting this error now :

[ERROR] BUILD FAILURE
[INFO] 

[INFO] Invalid task 'Message': you must specify a valid lifecycle phase, or a 
goal in the format plugin:goal or 
pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] 




-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Fri 2/3/2006 12:57 PM
To: scm-users@maven.apache.org
Subject: Re: Problem trying to do a checkin
 
you must provide a message


mvn scm:checkin -Dmessage=your commit message

Emmanuel

Malcolm Wong Ho a écrit :

I'm having a problem performing a checkin, it seems like it is executing 
the checkout goal instead.


INFO] [scm:checkin]
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Cannot run checkout command :

Embedded error: Exception while executing SCM command.
Missing parameter: 'message'.
[INFO] 


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot run 
checkout command :
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455)







DISCLAIMER:
This message may contain information which is confidential, private or privileged in nature. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message or file which is attached to this message. If you have received this message in error, please notify the sender immediately by e-mail, facsimile or telephone and thereafter return and/or destroy the original message. 


Any views of this communication are those of the sender except where the sender 
specifically states them to be those of Faritec (Holdings)  Limited (Faritec) 
and/or  any of its subsidiaries including (but not limited to) Faritec 
Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT Services 
(Proprietary) Limited, Faritec Contracting (Proprietary) Limited, Ebis and/or 
any of its subsidiaries.

Please note that the recipient must scan this e-mail and any attached files for 
viruses and the like. While we do everything possible to protect information 
from viruses, Faritec accepts no liability of whatever nature for any loss, 
liability, damage or expense resulting directly or indirectly from the access 
and/or downloading of any files which are attached to this e-mail message.




site.xml descriptor

2006-02-03 Thread Guilherme Silveira
I can't find the descriptor for site.xml...

I simply wanted to add sourceforge's logo to the bottom of the
navigation menu but i couldnt find it looking at the docs... i
believe it must be a simple tag to add a menu image link...

Anyone?

Thanks

Guilherme
--
Guilherme Silveira
--
[EMAIL PROTECTED]
Caelum - Ensino e Solucoes em Java
www.caelum.com.br

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



[M2] release plugin using CVS with sourceforge

2006-02-03 Thread Paul Rule
Hi,

Has anyone been using the Maven2 release plugin with
CVS  sourceforge?

I'm having a hard time trying to get it going - it may
not be a maven problem but an SSH or some other set up
problem.

It gets as far as trying to check in pom.xml after
it's updated the version - then it freezes which I
think is because it needs the password - but there is
no prompt.

[DEBUG]   (f) resume = true
[DEBUG]   (f) settings =
[EMAIL PROTECTED]
[DEBUG]   (f) tagBase = ../tags
[DEBUG]   (f) urlScm =
scm:cvs:ext:[EMAIL PROTECTED]:/cvsroot/seleniumas
sist:SeleniumAssist
[DEBUG] -- end configuration --
[INFO] [release:prepare]
[INFO] What tag name should be used?
v042
[INFO] Verifying there are no local modifications ...
[INFO] Checking lineage for snapshots ...
[INFO] Checking dependencies for snapshots ...
[INFO] Checking plugins for snapshots ...
[INFO] What is the release version for
'net.sf.seleniumassist:seleniumassist'? [0.4.2]

[INFO] Checking in modified POMs

Can anyone point me in the right direction??

Thanks.

http://softwarepr.wikispaces.com/
http://toolinstaller.sourceforge.net/
http://seleniumassist.sourceforge.net/



 
Do you Yahoo!? 
Yahoo! News: Get the latest news via video today! 
http://au.news.yahoo.com/video/

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



Re: Using cobertura with Maven 2

2006-02-03 Thread javed mandary
Hi Rik,

 I did as you told me , I was able to download part of the cobertura jars
however was unable to download all required artifacts please see log:

Downloading:
http://snapshots.maven.codehaus.org/maven2//org/codehaus/mojo/cober
tura-maven-plugin/2.0-SNAPSHOT/cobertura-
maven-plugin-2.0-20060130.214008-3.pom
3K downloaded
[INFO] snapshot org.codehaus.mojo:mojo-sandbox:2-SNAPSHOT: checking for
updates
from Maven Snapshots
[INFO] snapshot org.codehaus.mojo:mojo-sandbox:2-SNAPSHOT: checking for
updates
from repo-ibiblio-mirror
[INFO] snapshot org.codehaus.mojo:mojo-sandbox:2-SNAPSHOT: checking for
updates
from repo-displaytag
[INFO] snapshot org.codehaus.mojo:mojo-sandbox:2-SNAPSHOT: checking for
updates
from repo-local
Downloading:
http://snapshots.maven.codehaus.org/maven2//org/codehaus/mojo/mojo-
sandbox/2-SNAPSHOT/mojo-sandbox-2-20060116.044847-1.pom
2K downloaded
Downloading:
http://snapshots.maven.codehaus.org/maven2//org/codehaus/mojo/cober
tura-maven-plugin/2.0-SNAPSHOT/cobertura-
maven-plugin-2.0-20060130.214008-3.jar
26K downloaded
[INFO] artifact org.codehaus.mojo:cobertura-maven-plugin: checking for
updates f
rom central
[INFO]
-
---
[ERROR] BUILD ERROR
[INFO]
-
---
[INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist
or n
o valid version could be found
[INFO]
-
---
[INFO] For more information, run Maven with the -e switch
[INFO]
-
---
[INFO] Total time: 24 seconds
[INFO] Finished at: Fri Feb 03 16:06:03 GST 2006
[INFO] Final Memory: 7M/14M

Do you have an idea of what could be causing that?

thanks,
Javed

On 2/3/06, Rik Bosman [EMAIL PROTECTED] wrote:

 Jared,

 I had the same problem and solved it with the following actions:

 - Add the version to both the plugins: version2.0-SNAPSHOT/version
 - Add the sandbox repository to the pom, see below.

 Hope this helps,

 Kindly revert for clarifications,

 Rik

 repositories
   repository
idMaven Snapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2//url
snapshots
 enabledtrue/enabled
/snapshots
releases
 enabledfalse/enabled
/releases
   /repository
 /repositories
 pluginRepositories
   pluginRepository
idMaven Snapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2//url
snapshots
 enabledtrue/enabled
/snapshots
releases
 enabledfalse/enabled
/releases
   /pluginRepository
 /pluginRepositories



 2006/2/3, javed mandary [EMAIL PROTECTED]:
 
  Hi Guys,
  i'd like to know some information about the cobertura plugin
  in
  general:
 
  1. On which repo is the cobertura-maven-plugin hosted ?
  2. How to configure it in your POM ?
 
  I tried the following 2 configurations in my POM:
  ---EXTRACT OF MY POM
  --
  build
  
plugins
  plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdcobertura-maven-plugin/artifactId
 executions
   execution
 goals
   goalclean/goal
 /goals
   /execution
 /executions
  /plugin
 
  plugins
  ...
  reporting
   plugins
plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdcobertura-maven-plugin/artifactId
   /plugin
 /plugins
 /reporting
  /build
 
 
 -END-
 
  I get the following error:
 
  ---
  [ERROR] BUILD ERROR
  [INFO]
 
 -
  ---
  [INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not
  exist
  or n
  o 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: Fri Feb 03 11:34:19 GST 2006
  [INFO] Final Memory: 2M/4M
  [INFO] --
  ---
 
  Is there any other configurations that is required ? I am using Maven
  2.0.2.
 
  kind regards,
   Javed
 
 




Multiple project and Site plugin

2006-02-03 Thread javed mandary
Hi ppl,
  I have a project with many modules each having its own POM , what
I would like to do is that when I generate my SITE in the parent directory ,
the child POMs are referenced in the generated index.html file.

Is there some dashboard plugin or multiple project plugin to achieved this
for Maven 2 ?

kind regards,
Javed


server currently don't allows an url

2006-02-03 Thread Mark Struberg
As seen recently, the usage of the server tag in
settings.xml is not used consistently. Some plugins do
use it, others don't. And many devs don't even know it
exists or may be used for other things than scm.

So i have a few questions and thoughts on how to
handle it in the future:

1.) Should the server section, in best-practice
serve, as an central point for the most common server
spezifica?

2.) Should it only be a storage for username/password,
or for all (most) server common attributes, like
url, protocol,timeout, etc?

.) Should it at least be extended by url?

.) Should it be possibly to set username, password,
url, etc in the pom.xml, and should the values be
overwritten by settings.xml? Or should the
settings.xml be the only place?

I don't know what u think about, but to me it may be a
bit more consistent over all plugins.

txs in advance,
strubreg






___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

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



Re: Multiple project and Site plugin

2006-02-03 Thread Arik Kfir
Hi,

In your site.xml file, add a ${modules} element. This will generate
a list with all submodules in the project. If you don't have a
site.xml, create one at src/site of the parent project.

Here's an example:
?xml version=1.0 encoding=UTF-8?
project name=Corleon
  bannerLeft
name/name
src.../src
href.../href
  /bannerLeft
  bannerRight

  body
links
  item name=Apache href=http://www.apache.org//
  item name=Maven href=http://maven.apache.org//
/links

menu name=my custom menu
  item name=Introduction href=index.html/
/menu

!-- this will generate a list of sub modules in the menu --
${modules}

!-- add this if you want your reports in the menu as well --
${reports}

  /body

  skin
groupIdorg.apache.maven.skins/groupId
artifactIdmaven-stylus-skin/artifactId
version1.0-SNAPSHOT/version
  /skin

/project

NOTE: this works for me on the latest sources from SVN. I'm not sure
if this works in the released version yet (of the site plugin).

Another NOTE: this will only work when you deploy the site. When you
view the site from your 'target' directory, the links will NOT work,
as the site is not yet aggregated. When you deploy the site though, it
will work (because the plugin aggregates all the sites together and
then the links are valid again).

HTH,
  Arik.


On 2/3/06, javed mandary [EMAIL PROTECTED] wrote:
 Hi ppl,
   I have a project with many modules each having its own POM , what
 I would like to do is that when I generate my SITE in the parent directory ,
 the child POMs are referenced in the generated index.html file.

 Is there some dashboard plugin or multiple project plugin to achieved this
 for Maven 2 ?

 kind regards,
 Javed




--
Regards,
_
Arik Kfir[EMAIL PROTECTED]


Re: site.xml descriptor

2006-02-03 Thread Guilherme Silveira
Hmm... your logo is at the right side this is easy...
bannerRight just like bannerLeft...

I want to add a new banner after the 'Powered by Maven'

(At the top there is already the project and group logos)

Thanks anyway

Guilherme

2006/2/3, Scokart Gilles [EMAIL PROTECTED]:
 Here is a sample project doing exactly what you want to do:

 project name=nextMock
   bannerLeft
 namenextMock/name
 srcimages/nextmock_banner.png/src
 hrefhttp://nextmock.sourceforge.net//href
   /bannerLeft
   bannerRight
 nameHosted by sourceforge/name
 hrefhttp://sourceforge.net/href
 srchttp://sourceforge.net/sflogo.php?group_id=142555amp;type=1/src
   /bannerRight
   body
 links
   item name=jMock href=http://www.jmock.org/
   item name=about mock objects href=http://www.mockobjects.com//
 /links

 menu name=nextMock
   item name=Introduction href=index.html/
   item name=Download href=download.html/
   item name=Road Map href=roadmap.html /
 /menu

 menu name=Documentation
 item name=Expectation APIs href=api.html/
 item name=Ant Task href=ant.html/
 item name=Maven Plug-in href=maven.html/
 item name=Configuration href=config_file.html/
 !-- item name=Open Questions
 href=open_questions.html/ --
 /menu

 menu name=Project Info
 item name=Mailing List href=mail-lists.html/
 item name=Dependencies href=dependencies.html/

 item name=Project Team href=team-list.html/
 item name=License href=license.html/
 /menu

   /body
 /project



  -Original Message-
  From: Guilherme Silveira [mailto:[EMAIL PROTECTED]
  Sent: 03 February 2006 12:39
  To: Maven Users List
  Subject: site.xml descriptor
 
  I can't find the descriptor for site.xml...
 
  I simply wanted to add sourceforge's logo to the bottom of the
  navigation menu but i couldnt find it looking at the docs... i
  believe it must be a simple tag to add a menu image link...
 
  Anyone?
 
  Thanks
 
  Guilherme
  --
  Guilherme Silveira
  --
  [EMAIL PROTECTED]
  Caelum - Ensino e Solucoes em Java
  www.caelum.com.br
 
  -
  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]




--
Guilherme Silveira
--
[EMAIL PROTECTED]
Caelum - Ensino e Solucoes em Java
www.caelum.com.br

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



Specifying a New Packaging / Creating a Custom Artifact Handler

2006-02-03 Thread Olivier Lamy
Hi all,
I need to Specifying a New Packaging (I have read the section called
Specifying a New Packaging [1]).
This part is ok.
But I have a trouble with the section called Creating a Custom Artifact
Handler.
I use this : addedToClasspathtrue/addedToClasspath

But when I try javadoc:javadoc on an module with this new packaging.
Mvn says :
Not executing Javadoc as the project is not a Java classpath-capable
package.

I have try my own implementation of ArtifactHandler which simply extends
org.apache.maven.artifact.handler.DefaultArtifactHandler.
But the same result.

Note , I use the following hack (if not my file =
artifactId-${version}-{packaging}) :
this.getProject().getArtifact().setArtifactHandler( new my own
implementation of ArtifactHandler );
getProject().getArtifact().setFile( artifactFile );
My own implementation of ArtifactHandler override : 
- getPackaging()
- getExtension()
- getType()
- isAddedToClasspath() with return true.

What's wrong ?? (an already existing issue ?)

Thanks in advance,
- Olivier

[1]
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl
e.html



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 : site.xml descriptor

2006-02-03 Thread Olivier Lamy
Hi,
I think this will be possible with skins with creating my own velocity
template : site.vm.
I have tested with maven-site-plugin svn trunk or snapshots from
codehaus repository and it works fine.
Look at : http://docs.codehaus.org/display/MAVEN/Sites+and+Inheritence
- Olivier


-Message d'origine-
De : Guilherme Silveira [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 3 février 2006 13:47
À : Maven Users List
Objet : Re: site.xml descriptor


Hmm... your logo is at the right side this is easy...
bannerRight just like bannerLeft...

I want to add a new banner after the 'Powered by Maven'

(At the top there is already the project and group logos)

Thanks anyway

Guilherme

2006/2/3, Scokart Gilles [EMAIL PROTECTED]:
 Here is a sample project doing exactly what you want to do:

 project name=nextMock
   bannerLeft
 namenextMock/name
 srcimages/nextmock_banner.png/src
 hrefhttp://nextmock.sourceforge.net//href
   /bannerLeft
   bannerRight
 nameHosted by sourceforge/name
 hrefhttp://sourceforge.net/href

srchttp://sourceforge.net/sflogo.php?group_id=142555amp;type=1/src
   /bannerRight
   body
 links
   item name=jMock href=http://www.jmock.org/
   item name=about mock objects
href=http://www.mockobjects.com//
 /links

 menu name=nextMock
   item name=Introduction href=index.html/
   item name=Download href=download.html/
   item name=Road Map href=roadmap.html /
 /menu

 menu name=Documentation
 item name=Expectation APIs href=api.html/
 item name=Ant Task href=ant.html/
 item name=Maven Plug-in href=maven.html/
 item name=Configuration href=config_file.html/
 !-- item name=Open Questions 
 href=open_questions.html/ --
 /menu

 menu name=Project Info
 item name=Mailing List href=mail-lists.html/
 item name=Dependencies href=dependencies.html/

 item name=Project Team href=team-list.html/
 item name=License href=license.html/
 /menu

   /body
 /project



  -Original Message-
  From: Guilherme Silveira [mailto:[EMAIL PROTECTED]
  Sent: 03 February 2006 12:39
  To: Maven Users List
  Subject: site.xml descriptor
 
  I can't find the descriptor for site.xml...
 
  I simply wanted to add sourceforge's logo to the bottom of the 
  navigation menu but i couldnt find it looking at the docs... i 
  believe it must be a simple tag to add a menu image link...
 
  Anyone?
 
  Thanks
 
  Guilherme
  --
  Guilherme Silveira
  --
  [EMAIL PROTECTED]
  Caelum - Ensino e Solucoes em Java
  www.caelum.com.br
 
  
  -
  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]




--
Guilherme Silveira
--
[EMAIL PROTECTED]
Caelum - Ensino e Solucoes em Java
www.caelum.com.br

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



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


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



Re: [M2] release plugin using CVS with sourceforge

2006-02-03 Thread Emmanuel Venisse

Do you use public/private keys for your connection to sourceforge cvs?
If you have a passphrase, you must start a ssh agent so password won't be 
necessary.
But i'm not sure it's the pb because you don't have a message in log.

Emmanuel

Paul Rule a écrit :

Hi,

Has anyone been using the Maven2 release plugin with
CVS  sourceforge?

I'm having a hard time trying to get it going - it may
not be a maven problem but an SSH or some other set up
problem.

It gets as far as trying to check in pom.xml after
it's updated the version - then it freezes which I
think is because it needs the password - but there is
no prompt.

[DEBUG]   (f) resume = true
[DEBUG]   (f) settings =
[EMAIL PROTECTED]
[DEBUG]   (f) tagBase = ../tags
[DEBUG]   (f) urlScm =
scm:cvs:ext:[EMAIL PROTECTED]:/cvsroot/seleniumas
sist:SeleniumAssist
[DEBUG] -- end configuration --
[INFO] [release:prepare]
[INFO] What tag name should be used?
v042
[INFO] Verifying there are no local modifications ...
[INFO] Checking lineage for snapshots ...
[INFO] Checking dependencies for snapshots ...
[INFO] Checking plugins for snapshots ...
[INFO] What is the release version for
'net.sf.seleniumassist:seleniumassist'? [0.4.2]

[INFO] Checking in modified POMs

Can anyone point me in the right direction??

Thanks.

http://softwarepr.wikispaces.com/
http://toolinstaller.sourceforge.net/
http://seleniumassist.sourceforge.net/



 
Do you Yahoo!? 
Yahoo! News: Get the latest news via video today! 
http://au.news.yahoo.com/video/


-
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: [m202] Cobertura plugin

2006-02-03 Thread David Sag

As far as I can tell the latest snapshot
version (2.0) still does not work properly. it will instrument okay
but when generating the a site with cobertura as a report it generates
0 byte class files and the surefire tests break.

brett porter claims it does work and
offered up https://svn.apache.org/repos/asf/maven/repository-manager/trunk
as an example of it in use, but a quick look over 
https://svn.apache.org/repos/asf/maven/repository-manager/trunk/pom.xml
shows that there is no mention of cobertura there, so brett is clearly
mistaken.

I am still hopefull that this could
be fixed so have commented out the cobertura stuff for now and am persevering
with maven 2.

Kind regards,
Dave Sag 




 

Konstantin Polyzois [EMAIL PROTECTED] wrote
on 03-02-2006 08:03:52:

 I checked it out ant built it myself did not find a working release
of it.
 
 /Konstantin
 
 2006/2/1, Arnaud Bailly [EMAIL PROTECTED]:
  Hello,
  What is the status of the cobertura plugin for m2 ? I had problems
  trying to include it in the pom through central and there
  was some discussion on the list some days ago, but I didn't find
  how to get the latest and greatest version.
 
  Thanks,
 
  --
  Arnaud Bailly, Dr. - Ingénieur de Recherche
  NORSYS
  1, rue de la Cense des Raines
  ZAC du Moulin
  59710 ENNEVELIN
  Tel : (33) 3 28 76 56 76
  Mob : (33) 6 17 12 19 78
  Fax : (33) 3 28 76 57 00
  Web : http://www.norsys.fr
 
 
  -
  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] parent pom

2006-02-03 Thread Frank Russo
Does anyone know if this is possible? Just checking in case it was
missed...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Frank Russo 
Sent: Tuesday, January 31, 2006 12:05 PM
To: Maven Users List
Subject: RE: [m2] parent pom

Does anyone know if the following is doable? I have a project where I
build two different artifacts off the same project base. One is a war
file, which we use to deploy to a tomcat server. The other is a jar
file, which is just an api snapshot of our code for other internal
projects to share. The way I'm doing it now, is as follows.

+- project-root
| +- pom.xml
| +- pom_war.xml
| +- pom_jar.xml
| +- src
...

The pom.xml is my parent, which defines all of the shared definitions
(includes repositories, dependencies, profiles, etc.) The other two
reference the parent and build the appropriate artifacts. What I have
been doing is build the parent, build child one, and then build child
two. 

As noted in prior emails, there is a way to do one build and generate
all artifacts, however, the examples in the docs referenced below, do
not handle my scenario. 

My questions is, is what I want possible to do? If so, how do I
configure the modules/ element in the parent? If not, is there a
workaround for what I want to do, besides writing a script? A script may
not be such a bad option, but it just adds something that I'll need to
maintain if we want to add artifacts...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Richard Allen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 9:54 AM
To: Maven Users List
Subject: Re: [m2] parent pom

See How do I build more than one project at once? here:
http://maven.apache.org/guides/getting-started/index.html

If you are using Eclipse, this can be useful:
http://maven.apache.org/guides/mini/guide-ide-eclipse.html

Otherwise, search the mail:
http://www.nabble.com/Maven---Users-f178.html


Richard Allen


Frank Russo wrote:

Do you or anyone else know where (if it exists) the documention is for 
this? The pom descriptor only shows modules/.

If anyone knows how to use this, please pass along. 

Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Richard Allen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 8:57 AM
To: Maven Users List
Subject: Re: [m2] parent pom

If your parent project POM lists modules, then those projects will be

built when the parent is built.

Richard Allen



Frank Russo wrote:

  

I have a question in regards to this. Is there a way to build the 
projects as a whole, as you say? As of now, I have to run maven on 
each



  

individual child, and I'm not sure if there is one way to call maven 
to



  

run the parent and all children at once.

Does anyone know if this is doable?

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Maria Odea Ching [mailto:[EMAIL PROTECTED]
Sent: Monday, January 30, 2006 10:17 PM
To: Maven Users List
Subject: Re: [m2] parent pom

Hi Fredy,

The concept of parent poms can be applied to multi-module projects 
wherein it provides you the priviledge of building your modules 
individually or as a whole (project).
You need to define your parent pom in your project's root directory


(ex.
  

C:\Project\pom.xml ) and the children pom in each module's root 
directory (ex. C:\Project\module-1\pom.xml).

Please take a look below at the sample parent and child poms.

Parent POM:
project
 modelVersion4.0.0/modelVersion
 groupIdsample.project/groupId
 artifactIdsample/artifactId
 packagingpom/packaging
 nameSample Project/name
 version1.0-SNAPSHOT/version
 descriptionThis is a sample project/description  modules
   modulemodule-1/module
   modulemodule-2/module
   modulemodule-3/module
 /modules
 dependencies
   dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
 scopetest/scope
   /dependency
 /dependencies
 dependencyManagement
   dependencies
 dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-model/artifactId
   version2.0/version
 /dependency
   /dependencies
 /dependencyManagement
/project


Module-1 Child POM:
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;
 parent
   groupIdsample.project/groupId
   artifactIdsample/artifactId
   version1.0-SNAPSHOT/version
 /parent
 modelVersion4.0.0/modelVersion
 artifactIdmodule-1/artifactId
 nameSample Project Module 1/name
 dependencies
   dependency
 groupIdorg.apache.maven/groupId
 artifactIdmaven-model/artifactId
   /dependency
 /dependencies
/project

Thanks,
Odea


Fredy wrote:

 



hi,
i've read something about the parent pom at multiple places, but have
   

  

not found an explanation about it.
 



Is there a doc about parent 

Re: Using cobertura with Maven 2

2006-02-03 Thread David Sag

you will need to enable snapshots to
get the cobertura plugin as it has not actually ever been released.

then try

 plugins
   plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
   
version2.0-SNAPSHOT/version
executions
 execution
   
  phaseprocess-classes/phase
  goals
  
goalinstrument/goal
  /goals
 /execution
/executions
   /plugin

 plugins

the 2.0 snapshot breaks in reporting
however as it tries to instrument the classes again and this time it generates
0 byte class files.

Kind regards,
Dave Sag 




 





javed mandary [EMAIL PROTECTED]

03-02-2006 08:31



Please respond to
Maven Users List users@maven.apache.org





To
Maven Users List users@maven.apache.org


cc



Subject
Using cobertura with Maven 2








Hi Guys,
   i'd like to know some information
about the cobertura plugin in
general:

1. On which repo is the cobertura-maven-plugin hosted ?
2. How to configure it in your POM ?

I tried the following 2 configurations in my POM:
---EXTRACT OF MY POM
--
build
 
  plugins
   plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
executions
 execution
  goals
  
goalclean/goal
  /goals
 /execution
/executions
   /plugin

 plugins
...
reporting
   plugins
  plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdcobertura-maven-plugin/artifactId
   /plugin
/plugins
  /reporting
/build
-END-

I get the following error:

---
[ERROR] BUILD ERROR
[INFO]
-
---
[INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist
or n
o 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: Fri Feb 03 11:34:19 GST 2006
[INFO] Final Memory: 2M/4M
[INFO] --
---

Is there any other configurations that is required ? I am using Maven 2.0.2.

kind regards,
 Javed



Re: Using cobertura with Maven 2

2006-02-03 Thread David Sag

Hi Rik,

So you have actually been able to get
the 2.0-SNAPSHOT to work? I'd love to see how. I have been trying
all week to get the cobertura reports to work but since iupping to maven
2.0.2 have not been successful due to the problem of it generating 0 byte
instrumented class files during the reporting phase that overwrite the
originally instrumented class files.

Kind regards,
Dave Sag 




 

Rik Bosman [EMAIL PROTECTED] wrote on 03-02-2006
10:29:45:

 Jared,
 
 I had the same problem and solved it with the following actions:
 
 - Add the version to both the plugins: version2.0-SNAPSHOT/version
 - Add the sandbox repository to the pom, see below.
 
 Hope this helps,
 
 Kindly revert for clarifications,
 
 Rik
 
 repositories
  repository
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2//url
  snapshots
   enabledtrue/enabled
  /snapshots
  releases
   enabledfalse/enabled
  /releases
  /repository
 /repositories
 pluginRepositories
  pluginRepository
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2//url
  snapshots
   enabledtrue/enabled
  /snapshots
  releases
   enabledfalse/enabled
  /releases
  /pluginRepository
 /pluginRepositories
 
 
 
 2006/2/3, javed mandary [EMAIL PROTECTED]:
 
  Hi Guys,
i'd like to know some
information about the cobertura plugin
  in
  general:
 
  1. On which repo is the cobertura-maven-plugin hosted ?
  2. How to configure it in your POM ?
 
  I tried the following 2 configurations in my POM:
  ---EXTRACT OF MY POM
  --
  build
  
   plugins
plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdcobertura-maven-plugin/artifactId
 executions
  execution
  
goals
  
 goalclean/goal
  
/goals
  /execution
 /executions
/plugin
 
  plugins
  ...
  reporting
plugins
   plugin
  
groupIdorg.codehaus.mojo/groupId
  
artifactIdcobertura-maven-plugin/artifactId
/plugin
 /plugins
   /reporting
  /build
 
  -
 END-
 
  I get the following error:
 
  ---
  [ERROR] BUILD ERROR
  [INFO]
  -
  ---
  [INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin'
does not
  exist
  or n
  o 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: Fri Feb 03 11:34:19 GST 2006
  [INFO] Final Memory: 2M/4M
  [INFO] --
  ---
 
  Is there any other configurations that is required ? I am using
Maven
  2.0.2.
 
  kind regards,
  Javed
 
 


RE: [M2] Need help on configuring maven.username ?

2006-02-03 Thread fabrice . belingard




Well, I don't know... Maybe Maven devs can tell you a bit more about that.
And if you don't want to add -Dmaven.username=MyName each time you launch
Maven, you still have a workaround: you can add it manually in your
mvn.bat/mvn file. But of course, if you do that, the user name will be
fixed for everyone who will use this executable... (if you're working on
your own workstation, this is fine)

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  [EMAIL PROTECTED]


   
 Malcolm Wong Ho   
 [EMAIL PROTECTED]  
 m   Pour
   Maven Users List
 03/02/2006 11:47  users@maven.apache.org
cc
   
 VeuillezObjet
répondre à RE: [M2] Need help on configuring
 Maven Users List  maven.username ?
 [EMAIL PROTECTED]  
 che.org  
   
   
   
   





is there no way of setting it in a properties file ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Fri 2/3/2006 12:39 PM
To: Maven Users List
Subject: RE: [M2] Need help on configuring maven.username ?





Have you tried passing the argument in the command line?  mvn
-Dmaven.username=MyName ...

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  [EMAIL PROTECTED]



 Malcolm Wong Ho
 [EMAIL PROTECTED]
 m   Pour
   users@maven.apache.org
 03/02/2006 10:21   cc

 Objet
 Veuillez  [M2] Need help on configuring
répondre à maven.username ?
 Maven Users List
 [EMAIL PROTECTED]
 che.org








Where can i change the value/property for maven.username ?


DISCLAIMER:
This message may contain information which is confidential, private or
privileged in nature. If you are not the intended recipient, you may not
peruse, use, disseminate, distribute or copy this message or file which is
attached to this message. If you have received this message in error,
please notify the sender immediately by e-mail, facsimile or telephone and
thereafter return and/or destroy the original message.

Any views of this communication are those of the sender except where the
sender specifically states them to be those of Faritec (Holdings)  Limited
(Faritec) and/or  any of its subsidiaries including (but not limited to)
Faritec Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT
Services (Proprietary) Limited, Faritec Contracting (Proprietary) Limited,
Ebis and/or any of its subsidiaries.

Please note that the recipient must scan this e-mail and any attached files
for viruses and the like. While we do everything possible to protect
information from viruses, Faritec accepts no liability of whatever nature
for any loss, liability, damage or expense resulting directly or indirectly
from the access and/or downloading of any files which are attached to this
e-mail message.



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




DISCLAIMER:
This message may contain information which is confidential, private or
privileged in nature. If you are not the intended recipient, you may not
peruse, use, disseminate, distribute or copy this message or file which is
attached to this message. If you have received this message in error,
please notify the sender immediately by e-mail, facsimile or telephone and
thereafter return and/or destroy the original message.

Any views of this communication are those of the sender except where the
sender specifically states them to be those of Faritec (Holdings)  Limited
(Faritec) and/or  any of its subsidiaries including (but not limited to)
Faritec Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT
Services (Proprietary) 

[m2.0.2] the skin does not exist: unable to determine the release version.

2006-02-03 Thread David Sag

Today I got a new error when building
the site for my project.

the skin does not exist: unable to determine
the release version.

WTF? I've never seen this error
before.

Is it just me, or does the new found
brittle nature of builds scare anyone else? It's truly scary to go
home leaving a project that builds fine, and come in in the morning to
discover that now it doesn't.

Kind regards,
Dave Sag 




 

RE : [m2] parent pom

2006-02-03 Thread Olivier Lamy
If api is one api to share try this :
project-root
  pom.xml
  module-api
pom.xml
  module-webapp
pom.xml
root pom declares the two modules.
Sub modules declares parent.
pom.xml in webapp has a dependency to the api.
With this you can easily share the api.

- Olivier

-Message d'origine-
De : Frank Russo [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 3 février 2006 14:07
À : Maven Users List
Objet : RE: [m2] parent pom


Does anyone know if this is possible? Just checking in case it was
missed...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Frank Russo 
Sent: Tuesday, January 31, 2006 12:05 PM
To: Maven Users List
Subject: RE: [m2] parent pom

Does anyone know if the following is doable? I have a project where I
build two different artifacts off the same project base. One is a war
file, which we use to deploy to a tomcat server. The other is a jar
file, which is just an api snapshot of our code for other internal
projects to share. The way I'm doing it now, is as follows.

+- project-root
| +- pom.xml
| +- pom_war.xml
| +- pom_jar.xml
| +- src
...

The pom.xml is my parent, which defines all of the shared definitions
(includes repositories, dependencies, profiles, etc.) The other two
reference the parent and build the appropriate artifacts. What I have
been doing is build the parent, build child one, and then build child
two. 

As noted in prior emails, there is a way to do one build and generate
all artifacts, however, the examples in the docs referenced below, do
not handle my scenario. 

My questions is, is what I want possible to do? If so, how do I
configure the modules/ element in the parent? If not, is there a
workaround for what I want to do, besides writing a script? A script may
not be such a bad option, but it just adds something that I'll need to
maintain if we want to add artifacts...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Richard Allen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 9:54 AM
To: Maven Users List
Subject: Re: [m2] parent pom

See How do I build more than one project at once? here:
http://maven.apache.org/guides/getting-started/index.html

If you are using Eclipse, this can be useful:
http://maven.apache.org/guides/mini/guide-ide-eclipse.html

Otherwise, search the mail:
http://www.nabble.com/Maven---Users-f178.html


Richard Allen


Frank Russo wrote:

Do you or anyone else know where (if it exists) the documention is for
this? The pom descriptor only shows modules/.

If anyone knows how to use this, please pass along.

Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Richard Allen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 8:57 AM
To: Maven Users List
Subject: Re: [m2] parent pom

If your parent project POM lists modules, then those projects will be

built when the parent is built.

Richard Allen



Frank Russo wrote:

  

I have a question in regards to this. Is there a way to build the
projects as a whole, as you say? As of now, I have to run maven on 
each



  

individual child, and I'm not sure if there is one way to call maven
to



  

run the parent and all children at once.

Does anyone know if this is doable?

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Maria Odea Ching [mailto:[EMAIL PROTECTED]
Sent: Monday, January 30, 2006 10:17 PM
To: Maven Users List
Subject: Re: [m2] parent pom

Hi Fredy,

The concept of parent poms can be applied to multi-module projects
wherein it provides you the priviledge of building your modules 
individually or as a whole (project).
You need to define your parent pom in your project's root directory


(ex.
  

C:\Project\pom.xml ) and the children pom in each module's root
directory (ex. C:\Project\module-1\pom.xml).

Please take a look below at the sample parent and child poms.

Parent POM:
project
 modelVersion4.0.0/modelVersion
 groupIdsample.project/groupId  artifactIdsample/artifactId
 packagingpom/packaging
 nameSample Project/name
 version1.0-SNAPSHOT/version
 descriptionThis is a sample project/description  modules
   modulemodule-1/module
   modulemodule-2/module
   modulemodule-3/module
 /modules
 dependencies
   dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
 scopetest/scope
   /dependency
 /dependencies
 dependencyManagement
   dependencies
 dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-model/artifactId
   version2.0/version
 /dependency
   /dependencies
 /dependencyManagement
/project


Module-1 Child POM:
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;
 parent
   groupIdsample.project/groupId
   artifactIdsample/artifactId
   version1.0-SNAPSHOT/version
 /parent
 

Re: [m2] parent pom

2006-02-03 Thread Emmanuel Venisse

Why do you not create 3 projects like this :

root
  - pom.xml
  - jar_project
 -pom.xml
  - war_project
 -pom.xml

In your war project, you add a dependency to your jar.
Your other internal projects will use the project_jar as dependency.

Emmanuel

Frank Russo a écrit :

Does anyone know if this is possible? Just checking in case it was
missed...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Frank Russo 
Sent: Tuesday, January 31, 2006 12:05 PM

To: Maven Users List
Subject: RE: [m2] parent pom

Does anyone know if the following is doable? I have a project where I
build two different artifacts off the same project base. One is a war
file, which we use to deploy to a tomcat server. The other is a jar
file, which is just an api snapshot of our code for other internal
projects to share. The way I'm doing it now, is as follows.

+- project-root
| +- pom.xml
| +- pom_war.xml
| +- pom_jar.xml
| +- src
...

The pom.xml is my parent, which defines all of the shared definitions
(includes repositories, dependencies, profiles, etc.) The other two
reference the parent and build the appropriate artifacts. What I have
been doing is build the parent, build child one, and then build child
two. 


As noted in prior emails, there is a way to do one build and generate
all artifacts, however, the examples in the docs referenced below, do
not handle my scenario. 


My questions is, is what I want possible to do? If so, how do I
configure the modules/ element in the parent? If not, is there a
workaround for what I want to do, besides writing a script? A script may
not be such a bad option, but it just adds something that I'll need to
maintain if we want to add artifacts...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Richard Allen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 9:54 AM
To: Maven Users List
Subject: Re: [m2] parent pom

See How do I build more than one project at once? here:
http://maven.apache.org/guides/getting-started/index.html

If you are using Eclipse, this can be useful:
http://maven.apache.org/guides/mini/guide-ide-eclipse.html

Otherwise, search the mail:
http://www.nabble.com/Maven---Users-f178.html


Richard Allen


Frank Russo wrote:


Do you or anyone else know where (if it exists) the documention is for 
this? The pom descriptor only shows modules/.


If anyone knows how to use this, please pass along. 


Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Richard Allen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 8:57 AM
To: Maven Users List
Subject: Re: [m2] parent pom

If your parent project POM lists modules, then those projects will be




built when the parent is built.

Richard Allen



Frank Russo wrote:




I have a question in regards to this. Is there a way to build the 
projects as a whole, as you say? As of now, I have to run maven on 
each
  






individual child, and I'm not sure if there is one way to call maven 
to
  







run the parent and all children at once.

Does anyone know if this is doable?

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Maria Odea Ching [mailto:[EMAIL PROTECTED]
Sent: Monday, January 30, 2006 10:17 PM
To: Maven Users List
Subject: Re: [m2] parent pom

Hi Fredy,

The concept of parent poms can be applied to multi-module projects 
wherein it provides you the priviledge of building your modules 
individually or as a whole (project).

You need to define your parent pom in your project's root directory
  



(ex.



C:\Project\pom.xml ) and the children pom in each module's root 
directory (ex. C:\Project\module-1\pom.xml).


Please take a look below at the sample parent and child poms.

Parent POM:
project
modelVersion4.0.0/modelVersion
groupIdsample.project/groupId
artifactIdsample/artifactId
packagingpom/packaging
nameSample Project/name
version1.0-SNAPSHOT/version
descriptionThis is a sample project/description  modules
 modulemodule-1/module
 modulemodule-2/module
 modulemodule-3/module
/modules
dependencies
 dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
   scopetest/scope
 /dependency
/dependencies
dependencyManagement
 dependencies
   dependency
 groupIdorg.apache.maven/groupId
 artifactIdmaven-model/artifactId
 version2.0/version
   /dependency
 /dependencies
/dependencyManagement
/project


Module-1 Child POM:
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;
parent
 groupIdsample.project/groupId
 artifactIdsample/artifactId
 version1.0-SNAPSHOT/version
/parent
modelVersion4.0.0/modelVersion
artifactIdmodule-1/artifactId
nameSample Project Module 1/name
dependencies
 dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-model/artifactId
 /dependency

Re: [m2.0.2] the skin does not exist: unable to determine the release version.

2006-02-03 Thread Emmanuel Venisse

You use the snapshot version of site plugin, right?

Add this in your pom :
  repositories
repository
  releases
enabledfalse/enabled
  /releases
  idapache.snapshots/id
  nameApache Development Repository/name
  urlhttp://cvs.apache.org/maven-snapshot-repository/url
/repository
  /repositories

Emmanuel

David Sag a écrit :


Today I got a new error when building the site for my project.

the skin does not exist: unable to determine the release version.

WTF?  I've never seen this error before.

Is it just me, or does the new found brittle nature of builds scare 
anyone else?  It's truly scary to go home leaving a project that builds 
fine, and come in in the morning to discover that now it doesn't.


Kind regards,
Dave Sag




 



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



Re: [m2.0.2] the skin does not exist: unable to determine the release version.

2006-02-03 Thread Arik Kfir
Hi David,

You should remember that although Maven itself was released, some of
the plugins (e.g. the site plugin) have not been released yet. You are
currently using either a SNAPSHOT, or one of the BETA releases - all
of which are subject to change as they are still being written and
implemented.

As for your problem - if the above solution does not work, try adding
this (in addition to what Emmanuel specified above) to your site.xml
file:

skin
groupIdorg.apache.maven.skins/groupId
artifactIdmaven-stylus-skin/artifactId
version1.0-SNAPSHOT/version
  /skin

Best regards (and good luck :P)
  Arik.


On 2/3/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 You use the snapshot version of site plugin, right?

 Add this in your pom :
repositories
  repository
releases
  enabledfalse/enabled
/releases
idapache.snapshots/id
nameApache Development Repository/name
urlhttp://cvs.apache.org/maven-snapshot-repository/url
  /repository
/repositories

 Emmanuel

 David Sag a écrit :
 
  Today I got a new error when building the site for my project.
 
  the skin does not exist: unable to determine the release version.
 
  WTF?  I've never seen this error before.
 
  Is it just me, or does the new found brittle nature of builds scare
  anyone else?  It's truly scary to go home leaving a project that builds
  fine, and come in in the morning to discover that now it doesn't.
 
  Kind regards,
  Dave Sag
 
 
 
 
 


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




--
Regards,
_
Arik Kfir[EMAIL PROTECTED]


Re: [m2.0.2] the skin does not exist: unable to determine the release version.

2006-02-03 Thread David Sag

Hi Arik

your suggestion, in combination with
emanuelle's suggestion fixed the problem (for today at least).

I only enabled snapshots as part of
a general attempt to get cobertura working. since that is pretty
mucha lost cause for now, tell me, if i disable snapshots, will the presence
of the skin tags in my site.xml break anything?

Kind regards,
Dave Sag 




 

Arik Kfir [EMAIL PROTECTED] wrote on 03-02-2006
14:31:15:

 Hi David,
 
 You should remember that although Maven itself was released, some
of
 the plugins (e.g. the site plugin) have not been released yet. You
are
 currently using either a SNAPSHOT, or one of the BETA releases - all
 of which are subject to change as they are still being written and
 implemented.
 
 As for your problem - if the above solution does not work, try adding
 this (in addition to what Emmanuel specified above) to your site.xml
 file:
 
 skin
   groupIdorg.apache.maven.skins/groupId
   artifactIdmaven-stylus-skin/artifactId
   version1.0-SNAPSHOT/version
  /skin
 
 Best regards (and good luck :P)
  Arik.
 
 
 On 2/3/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
  You use the snapshot version of site plugin, right?
 
  Add this in your pom :
   repositories
repository
 releases
  enabledfalse/enabled
 /releases
 idapache.snapshots/id
 nameApache Development Repository/name
 urlhttp://cvs.apache.org/maven-snapshot-repository/url
/repository
   /repositories
 
  Emmanuel
 
  David Sag a écrit :
  
   Today I got a new error when building the site for my project.
  
   the skin does not exist: unable to determine the release
version.
  
   WTF? I've never seen this error before.
  
   Is it just me, or does the new found brittle nature of builds
scare
   anyone else? It's truly scary to go home leaving a
project that builds
   fine, and come in in the morning to discover that now it
doesn't.
  
   Kind regards,
   Dave Sag
  
  
  
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 --
 Regards,
   _
   Arik Kfir  
   [EMAIL PROTECTED]


Integrating Junit Testreport into the maven site

2006-02-03 Thread Pleines, Karsten \(I B 3\)
Hi,
I've started to generate a maven site and it succeeds. The problem is, I
don't know how to integrate the Junit report into the site. 
Can somebody help me?

Thank you 
Karsten

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



could not able to include application.xml

2006-02-03 Thread Saravanakumar . B
Hi , 

I'm using maven1.x  ,Getting the following exception while generating a 
EAR ,

Warning: selected ear files include a META-INF/application.xml which will 
be ignored (please use appxml attribute to ear task)

Can somebody help me? 


Regards
Saravana

RE: [m2] parent pom

2006-02-03 Thread Frank Russo
I guess I don't have a choice, but the issue is that there are other 
requirements to share smaller parts of the api to other projects. For instance, 
there are some projects that need a jar of a specific package from my project. 
For me to make that a separate module, I'd have to separate that package out, 
which would then split the code base. So I'd rather not do that. 

It just seems to me that the maven builders made a special case to run a build 
from a pom that is not named pom.xml, eg pom_jar.xml, by passing it with a -f 
option, then why can't the multi project setup be automated by doing something 
like this in the parent:

modules
   module
   pomFilepom_jar.xml/pomFile
   /module
   ...
/modules

Personally, I think this should be allowed...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 03, 2006 8:19 AM
To: Maven Users List
Subject: Re: [m2] parent pom

Why do you not create 3 projects like this :

root
   - pom.xml
   - jar_project
  -pom.xml
   - war_project
  -pom.xml

In your war project, you add a dependency to your jar.
Your other internal projects will use the project_jar as dependency.

Emmanuel

Frank Russo a écrit :
 Does anyone know if this is possible? Just checking in case it was 
 missed...
 
 Frank Russo
 Senior Developer
 FX Alliance, LLC
 
 
 -Original Message-
 From: Frank Russo
 Sent: Tuesday, January 31, 2006 12:05 PM
 To: Maven Users List
 Subject: RE: [m2] parent pom
 
 Does anyone know if the following is doable? I have a project where I 
 build two different artifacts off the same project base. One is a war 
 file, which we use to deploy to a tomcat server. The other is a jar 
 file, which is just an api snapshot of our code for other internal 
 projects to share. The way I'm doing it now, is as follows.
 
 +- project-root
 | +- pom.xml
 | +- pom_war.xml
 | +- pom_jar.xml
 | +- src
 ...
 
 The pom.xml is my parent, which defines all of the shared definitions 
 (includes repositories, dependencies, profiles, etc.) The other two 
 reference the parent and build the appropriate artifacts. What I have 
 been doing is build the parent, build child one, and then build child 
 two.
 
 As noted in prior emails, there is a way to do one build and generate 
 all artifacts, however, the examples in the docs referenced below, do 
 not handle my scenario.
 
 My questions is, is what I want possible to do? If so, how do I 
 configure the modules/ element in the parent? If not, is there a 
 workaround for what I want to do, besides writing a script? A script 
 may not be such a bad option, but it just adds something that I'll 
 need to maintain if we want to add artifacts...
 
 Frank Russo
 Senior Developer
 FX Alliance, LLC
 
 
 -Original Message-
 From: Richard Allen [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 31, 2006 9:54 AM
 To: Maven Users List
 Subject: Re: [m2] parent pom
 
 See How do I build more than one project at once? here:
 http://maven.apache.org/guides/getting-started/index.html
 
 If you are using Eclipse, this can be useful:
 http://maven.apache.org/guides/mini/guide-ide-eclipse.html
 
 Otherwise, search the mail:
 http://www.nabble.com/Maven---Users-f178.html
 
 
 Richard Allen
 
 
 Frank Russo wrote:
 
 
Do you or anyone else know where (if it exists) the documention is for 
this? The pom descriptor only shows modules/.

If anyone knows how to use this, please pass along. 

Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Richard Allen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 8:57 AM
To: Maven Users List
Subject: Re: [m2] parent pom

If your parent project POM lists modules, then those projects will 
be
 
 
built when the parent is built.

Richard Allen



Frank Russo wrote:

 


I have a question in regards to this. Is there a way to build the 
projects as a whole, as you say? As of now, I have to run maven on 
each
   


 


individual child, and I'm not sure if there is one way to call maven 
to
   


 


run the parent and all children at once.

Does anyone know if this is doable?

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Maria Odea Ching [mailto:[EMAIL PROTECTED]
Sent: Monday, January 30, 2006 10:17 PM
To: Maven Users List
Subject: Re: [m2] parent pom

Hi Fredy,

The concept of parent poms can be applied to multi-module projects 
wherein it provides you the priviledge of building your modules 
individually or as a whole (project).
You need to define your parent pom in your project's root directory
   


(ex.
 


C:\Project\pom.xml ) and the children pom in each module's root 
directory (ex. C:\Project\module-1\pom.xml).

Please take a look below at the sample parent and child poms.

Parent POM:
project
modelVersion4.0.0/modelVersion
groupIdsample.project/groupId
artifactIdsample/artifactId

Re: Continuum Maven 2 not using settings.xml

2006-02-03 Thread Christian Mouttet
Hi Brian,

thank's. I've already tried this. The paths for global settings.xml and user 
settings.xml are plotted into the log file. But neither global nor user 
settings are used. I'm quite confused.

Am Donnerstag, 2. Februar 2006 23:52 schrieb Brian E. Fox:
 Copy your settings.xml to \bin\linux\conf

 -Original Message-
 Subject: Continuum  Maven 2 not using settings.xml
 Date: Montag, 30. Januar 2006 10:46
 From: Christian Mouttet
 To: users@maven.apache.org

 Hello everybody,

 on my Linux machine I have jdk-1.5, maven-2.0.1 and continuum-1.0.2 
 installed. With adding any M2-Project I run into trouble: The configuration
  file settings.xml isn't used by Maven when called by Continuum. I have
 tried  quite a lot with help of Emmanuel - thank's for that again. At last
 he wrote  that all settings loading is done by maven api
 (http://jira.codehaus.org/browse/CONTINUUM-488).

 Here is my scenario:

 - user for Continuum

 - ~continuum/.profile:
   export ANT_HOME=/opt/ant
   export MAVEN_HOME=/opt/maven-1.0
   export M2_HOME=/opt/maven-2.0.1
   export JAVA_HOME=/opt/jdk1.5.0_02
   export PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:\
  
 /bin:$ANT_HOME/bin:$MAVEN_HOME/bin:$M2_HOME/bin:$JAVA_HOME/bin

 - ~:
   12290 [Thread-1] INFO  org.apache.maven.scm.manager.ScmManager  -
  Executing: cvs -f -q update -d
   12291 [Thread-1] INFO  org.apache.maven.scm.manager.ScmManager  - Working
   directory: /opt/continuum-1.0.2/bin/linux/../../apps/continuum/
   working-directory/7
   12291 [Thread-1] DEBUG org.apache.maven.scm.manager.ScmManager  - Working
   directory: /opt/continuum-1.0.2/bin/linux/../../apps/continuum/
   working-directory/7
   ...
   12291 [Thread-1] DEBUG org.apache.maven.scm.manager.ScmManager  - Command
   line: cvs -f -q update -d
   13004 [Thread-1] INFO
   org.apache.maven.continuum.execution.ContinuumBuildExecutor:ant  -
 Resolved the executable 'ant' to '/opt/ant/bin/ant'.
   13011 [Thread-1] INFO
   org.apache.maven.continuum.execution.ContinuumBuildExecutor:maven-1  -
   Resolved the executable 'maven' to '/opt/maven-1.0/bin/maven'.
   13202 [Thread-1] DEBUG org.apache.maven.settings.MavenSettingsBuilder  -
   Building Maven global-level settings from:
   '/opt/maven-2.0.1/conf/settings.xml'
   13202 [Thread-1] DEBUG org.apache.maven.settings.MavenSettingsBuilder  -
   Building Maven user-level settings from:
 '/home/continuum/.m2/settings.xml' 13451 [Thread-1] ERROR
   org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelper  -
 Cannot build maven project from

 
 /opt/continuum-1.0.2/bin/linux/../../apps/continuum/working-directory/7/pom
. xml. ...
   from the specified remote repositories:
 central (http://repo1.maven.org/maven2)
   ...
   Caused by: java.net.UnknownHostException: repo1.maven.org

 - DNS for the internet is done by our proxy server.
   This server is configured correctly in settings.xml. Starting mvn from
   command line works properly.


 Any other ideas?

 Regards
 -chris


**
Diese E-Mail wurde auf Viren ueberprueft.
[EMAIL PROTECTED]
**

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



Re: Integrating Junit Testreport into the maven site

2006-02-03 Thread Jurgen De Landsheer

Pleines, Karsten (I B 3) wrote:


Hi,
I've started to generate a maven site and it succeeds. The problem is, I
don't know how to integrate the Junit report into the site. 
Can somebody help me?


Thank you 
Karsten


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

 



if you get a numberformatexception build version 2.0-beta-2 from the 
sources in subversion codehaus



all config settings are the defaults
except testFailureIgnoretrue/testFailureIgnore because if you do not set 
this to true,
you well never see failed tests in the site report because you wont have a site 
(junit failure
makes site generation stop)


...
   reporting

plugins
plugin
groupIdorg.codehaus.mojo/groupId

artifactIdsurefire-report-maven-plugin/artifactId
configuration
!-- The base directory of the project being tested. 
This can be obtained in your unit test by System.getProperty(basedir). --
basedir${basedir}/basedir
!-- The directory containing generated 
classes of the project being tested. --
classesDirectory
${project.build.outputDirectory}
/classesDirectory
!-- List of patterns (separated by 
commas) used to specify the tests that should be excluded in testing. When not 
specified and whent the test parameter is not specified, the default excludes will be 
**/Abstract*Test.java **/Abstract*TestCase.java --
!--excludesList/excludes--
!-- List of patterns (separated by 
commas) used to specify the tests that should be included in testing. When not 
specified and whent the test parameter is not specified, the default includes will be 
**/Test*.java **/*Test.java **/*TestCase.java --
!--includesList/includes--
!-- ArtifactRepository of the localRepository. To 
obtain the directory of localRepository in unit tests use System.setProperty( 
localRepository). --
LocalRepository
${localRepository}
/LocalRepository
!-- List of of Plugin Artifacts. --
pluginArtifacts
${plugin.artifacts}
/pluginArtifacts
!-- Option to print summary of test 
suites or just print the test cases that has errors. --
printSummarytrue/printSummary
!-- Selects the formatting for the test 
report to be generated. Can be set as brief, plain, or xml. --
reportFormatbrief/reportFormat
!-- Base directory where all reports are 
written to. --
reportsDirectory

${project.build.directory}/surefire-reports
/reportsDirectory
!-- Set this to 'true' to bypass unit 
tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion. --
skip${maven.test.skip}/skip
!-- List of System properties to pass to 
the JUnit tests. --

!--systemPropertiesProperties/systemProperties--
!-- Specify this parameter if you want to 
use the test regex notation to select tests to run. The regular expression will be 
used to create an include pattern formatted like **/${test}.java When used, the 
includes and excludes patterns parameters are ignored --
test${test}/test
!-- The directory containing generated 
test classes of the project being tested. --
testClassesDirectory

${project.build.testOutputDirectory}
/testClassesDirectory
!-- Set this to true to ignore a failure 
during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion. --

testFailureIgnoretrue/testFailureIgnore
  

Re: [m2.0.2] the skin does not exist: unable to determine the release version.

2006-02-03 Thread Arik Kfir
I think it will, because the skins (which are a standalone project on their
own) were not released yet, and therefor are not present on the ibiblio
repository.

On 2/3/06, David Sag [EMAIL PROTECTED] wrote:


 Hi Arik

 your suggestion, in combination with emanuelle's suggestion fixed the
 problem (for today at least).

 I only enabled snapshots as part of a general attempt to get cobertura
 working.  since that is pretty mucha lost cause for now, tell me, if i
 disable snapshots, will the presence of the skin tags in my site.xmlbreak 
 anything?

 Kind regards,
 Dave Sag






 Arik Kfir [EMAIL PROTECTED] wrote on 03-02-2006 14:31:15:

  Hi David,
 
  You should remember that although Maven itself was released, some of
  the plugins (e.g. the site plugin) have not been released yet. You are
  currently using either a SNAPSHOT, or one of the BETA releases - all
  of which are subject to change as they are still being written and
  implemented.
 
  As for your problem - if the above solution does not work, try adding
  this (in addition to what Emmanuel specified above) to your site.xml
  file:
 
  skin
  groupIdorg.apache.maven.skins/groupId
  artifactIdmaven-stylus-skin/artifactId
  version1.0-SNAPSHOT/version
/skin
 
  Best regards (and good luck :P)
Arik.
 
 
  On 2/3/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
   You use the snapshot version of site plugin, right?
  
   Add this in your pom :
  repositories
repository
  releases
enabledfalse/enabled
  /releases
  idapache.snapshots/id
  nameApache Development Repository/name
  urlhttp://cvs.apache.org/maven-snapshot-repository/url
/repository
  /repositories
  
   Emmanuel
  
   David Sag a écrit :
   
Today I got a new error when building the site for my project.
   
the skin does not exist: unable to determine the release version.
   
WTF?  I've never seen this error before.
   
Is it just me, or does the new found brittle nature of builds scare
anyone else?  It's truly scary to go home leaving a project that
 builds
fine, and come in in the morning to discover that now it doesn't.
   
Kind regards,
Dave Sag
   
   
   
   
   
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Regards,
  _
  Arik Kfir[EMAIL PROTECTED]




--
Regards,
_
Arik Kfir[EMAIL PROTECTED]


Re: [m202] Cobertura plugin

2006-02-03 Thread John Allen
I've also given up on cobertura for now due to problems trying to get it to 
work as part of my 'standards confirmance' build that uses cobertura:check and 
the site build (fails in site build complaining of trying to write to a read 
only testClasspath or alike). Clover works fine in this regard (check and site) 
but when i tried to compare the various plexus configs for them I got 
thoroughly confused and gave up. I have since removed cobertura and am running 
on clover - which is only a temp fix as theres no way im buying a clover 
license. If i get time i will raise a JIRA and provide an example project(s) 
that demonstrates the issues.

John
  - Original Message - 
  From: David Sag 
  To: Maven Users List 
  Sent: Friday, February 03, 2006 1:02 PM
  Subject: Re: [m202] Cobertura plugin



  As far as I can tell the latest snapshot version (2.0) still does not work 
properly.  it will instrument okay but when generating the a site with 
cobertura as a report it generates 0 byte class files and the surefire tests 
break. 

  brett porter claims it does work and offered up 
https://svn.apache.org/repos/asf/maven/repository-manager/trunk as an example 
of it in use, but a quick look over 
  https://svn.apache.org/repos/asf/maven/repository-manager/trunk/pom.xml shows 
that there is no mention of cobertura there, so brett is clearly mistaken. 

  I am still hopefull that this could be fixed so have commented out the 
cobertura stuff for now and am persevering with maven 2.

  Kind regards,
  Dave Sag 






  Konstantin Polyzois [EMAIL PROTECTED] wrote on 03-02-2006 08:03:52:

   I checked it out ant built it myself did not find a working release of it.
   
   /Konstantin
   
   2006/2/1, Arnaud Bailly [EMAIL PROTECTED]:
Hello,
What is the status of the cobertura plugin for m2 ? I had problems
trying to include it in the pom through central and there
was some discussion on the list some days ago, but I didn't find
how to get the latest and greatest version.
   
Thanks,
   
--
Arnaud Bailly, Dr. - Ingénieur de Recherche
NORSYS
1, rue de la Cense des Raines
ZAC du Moulin
59710 ENNEVELIN
Tel : (33) 3 28 76 56 76
Mob : (33) 6 17 12 19 78
Fax : (33) 3 28 76 57 00
Web : http://www.norsys.fr
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   


Re: How to install sources

2006-02-03 Thread Darryl L. Pierce
Erick Dovale wrote:

 Hi there,
 can any one tell how can I install the sources jar of the artifacts in
 the local repository??

Do you mean the source files for your dependencies or the source files for
what you're producing?

-- 
Darryl L. Pierce [EMAIL PROTECTED]
Homepage: http://mcpierce.multiply.com/
McVeigh's lawyer got him the death penalty, which, quite frankly, 
I could have done. - Jon Stewart


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



Re: Launch an application from the commandline

2006-02-03 Thread Darryl L. Pierce
jerome lacoste wrote:

 On 2/2/06, Darryl L. Pierce [EMAIL PROTECTED] wrote:
 I would like to be able to run an application from the commandline using
 Maven. The ideal thing would be for Maven to create the command line,
 especially the classpath, given that it knows my dependencies. Is such a
 thing possible and, if so, how? Thanks.
 
 The Execute plugin was created for that. You will find it in mojo-sandbox.
 
 http://mojo.codehaus.org/exec-maven-plugin/introduction.html

How do I set the dependency in my pom.xml file? I don't see an example of
that anywhere and when I incorporate your example, Maven complains that it
can't find it.

[INFO] Scanning for projects...
[INFO] artifact org.codehau.mojo:exec-maven-plugin: checking for updates
from ibiblio
[INFO] artifact org.codehau.mojo:exec-maven-plugin: checking for updates
from central
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.codehau.mojo:exec-maven-plugin' does not exist or no
valid version could be found


-- 
Darryl L. Pierce [EMAIL PROTECTED]
Homepage: http://mcpierce.multiply.com/
McVeigh's lawyer got him the death penalty, which, quite frankly, 
I could have done. - Jon Stewart


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



Re: Launch an application from the commandline

2006-02-03 Thread Wendy Smoak
On 2/3/06, Darryl L. Pierce [EMAIL PROTECTED] wrote:
 jerome lacoste wrote:

 How do I set the dependency in my pom.xml file? I don't see an example of
 that anywhere and when I incorporate your example, Maven complains that it
 can't find it.

 [INFO] Scanning for projects...
 [INFO] artifact org.codehau.mojo:exec-maven-plugin: checking for updates

Looks like you're missing the 's' in codehaus.

--
Wendy

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



Re: Launch an application from the commandline

2006-02-03 Thread Darryl L. Pierce
Wendy Smoak wrote:

 On 2/3/06, Darryl L. Pierce [EMAIL PROTECTED] wrote:
 jerome lacoste wrote:
 
 How do I set the dependency in my pom.xml file? I don't see an example of
 that anywhere and when I incorporate your example, Maven complains that
 it can't find it.

 [INFO] Scanning for projects...
 [INFO] artifact org.codehau.mojo:exec-maven-plugin: checking for updates
 
 Looks like you're missing the 's' in codehaus.

True. However, even with the 's' in place it's still not working because
Maven doesn't know about that plugin. What's the dependency snippet I need
to install it?

-- 
Darryl L. Pierce [EMAIL PROTECTED]
Homepage: http://mcpierce.multiply.com/
McVeigh's lawyer got him the death penalty, which, quite frankly, 
I could have done. - Jon Stewart


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



Re: Error in detecting changes

2006-02-03 Thread Emmanuel Venisse

Is it your pom.xml that have this version?

Can you send log traces of a build execution on this project.

Emmanuel

Punkin Head a écrit :

The version in CVS is 1.34 (with an update by another individual) but, the
Continuum build number is 25.  On CVS 1.25 I was the one who commited the
changes and it is those comments that are on the Continuum build changes
page, not the ones from CVS version 1.34.

On 2/3/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:


What do you mean? What is a CVS revision?

When continuum does a new build, it run the following command 'cvs -f -q
update -d'
A build number is internal to Continuum and cvs doesn't know it.

Emmanuel

Punkin Head a écrit :


When Continuum does a new build, it seems to detect the CVS revision


that is


equivalent to the build number.  For example, one of our modules is on


build


25 but CVS revision 34 and the comments for the changes on the build


result


page are from CVS revision 25.  Is there a way to match these so that we


can


see who did what?

Thanks,

Adam

--
www.punkinshred.net  // punkin'head official homepage

www.myspace.com/punkinhead -- for true shred







--
www.punkinshred.net  // punkin'head official homepage

www.myspace.com/punkinhead -- for true shred





Behavior with multiple goals

2006-02-03 Thread Alex Boisvert
Hi,

I'm using continuum 1.0.2 and I've defined two goals for a Maven2 project:


  Build Definitions

Goals   Arguments   POM FileProfile ScheduleFrom
 
package --batch-modepom.xml DEFAULT 
DEFAULT_SCHEDULEProject Edit
http://release.intalio.com:/continuum/servlet/continuum/target/BuildDefinition.vm/view/BuildDefinition/buildDefinitionId/11/id/11
| Delete
http://release.intalio.com:/continuum/servlet/continuum/target/DeleteBuildDefinition.vm/buildDefinitionId/11/id/11/executorId/maven2

compile --batch-modepom.xml DEFAULT 
DEFAULT_SCHEDULEProject Edit
http://release.intalio.com:/continuum/servlet/continuum/target/BuildDefinition.vm/view/BuildDefinition/buildDefinitionId/51/id/11
| Delete
http://release.intalio.com:/continuum/servlet/continuum/target/DeleteBuildDefinition.vm/buildDefinitionId/51/id/11/executorId/maven2



I've discovered today that only the second goal (compile) gets run every
hour (DEFAULT_SCHEDULE).  The first goal (package; which is flagged as
default) only executes if I trigger the build manually.

Is this normal?

alex



Re: Using cobertura with Maven 2

2006-02-03 Thread Rik Bosman
David,

I do run into (the same you had I think )
net.sourceforge.cobertura.instrument.Main - Unable to instrument file.
Do you know a solution?

I'm using mvn 2.02.

regards,

Rik


2006/2/3, David Sag [EMAIL PROTECTED]:


 Hi Rik,

 So you have actually been able to get the 2.0-SNAPSHOT to work?  I'd love
 to see how. I have been trying all week to get the cobertura reports to work
 but since iupping to maven 2.0.2 have not been successful due to the
 problem of it generating 0 byte instrumented class files during the
 reporting phase that overwrite the originally instrumented class files.

 Kind regards,
 Dave Sag






 Rik Bosman [EMAIL PROTECTED] wrote on 03-02-2006 10:29:45:

  Jared,
 
  I had the same problem and solved it with the following actions:
 
  - Add the version to both the plugins: version2.0-SNAPSHOT/version
  - Add the sandbox repository to the pom, see below.
 
  Hope this helps,
 
  Kindly revert for clarifications,
 
  Rik
 
  repositories
repository
 idMaven Snapshots/id
 urlhttp://snapshots.maven.codehaus.org/maven2//url
 snapshots
  enabledtrue/enabled
 /snapshots
 releases
  enabledfalse/enabled
 /releases
/repository
   /repositories
   pluginRepositories
pluginRepository
 idMaven Snapshots/id
 urlhttp://snapshots.maven.codehaus.org/maven2//url
 snapshots
  enabledtrue/enabled
 /snapshots
 releases
  enabledfalse/enabled
 /releases
/pluginRepository
   /pluginRepositories
 
 
 
  2006/2/3, javed mandary [EMAIL PROTECTED]:
  
   Hi Guys,
   i'd like to know some information about the cobertura
 plugin
   in
   general:
  
   1. On which repo is the cobertura-maven-plugin hosted ?
   2. How to configure it in your POM ?
  
   I tried the following 2 configurations in my POM:
   ---EXTRACT OF MY POM
   --
   build
   
 plugins
   plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdcobertura-maven-plugin/artifactId
  executions
execution
  goals
goalclean/goal
  /goals
/execution
  /executions
   /plugin
  
   plugins
   ...
   reporting
plugins
 plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdcobertura-maven-plugin/artifactId
/plugin
  /plugins
  /reporting
   /build
  
   -
  END-
  
   I get the following error:
  
   ---
   [ERROR] BUILD ERROR
   [INFO]
  
 -
   ---
   [INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not
   exist
   or n
   o 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: Fri Feb 03 11:34:19 GST 2006
   [INFO] Final Memory: 2M/4M
   [INFO] --
   ---
  
   Is there any other configurations that is required ? I am using Maven
   2.0.2.
  
   kind regards,
Javed
  
  



Re: Using cobertura with Maven 2

2006-02-03 Thread David Sag

The only solution i know right now is
not to include cobertura repoorts and hope whoever is working on the plugin
fixes whatever it is they did to break it between maven 2.0 and 2.0.2

I had a big presentation on maven today
and was luckily able to skirt around the cobertura issue with some quick
sleight of hand. so i have bought myself a week i think.

Kind regards,
Dave Sag 




 

Rik Bosman [EMAIL PROTECTED] wrote on 03-02-2006
16:33:39:

 David,
 
 I do run into (the same you had I think )
 net.sourceforge.cobertura.instrument.Main - Unable to instrument file.
 Do you know a solution?
 
 I'm using mvn 2.02.
 
 regards,
 
 Rik
 
 
 2006/2/3, David Sag [EMAIL PROTECTED]:
 
 
  Hi Rik,
 
  So you have actually been able to get the 2.0-SNAPSHOT to work?
I'd love
  to see how. I have been trying all week to get the cobertura
reports to work
  but since iupping to maven 2.0.2 have not been successful due
to the
  problem of it generating 0 byte instrumented class files during
the
  reporting phase that overwrite the originally instrumented class
files.
 
  Kind regards,
  Dave Sag
 
 
 
 
 
 
  Rik Bosman [EMAIL PROTECTED] wrote on 03-02-2006 10:29:45:
 
   Jared,
  
   I had the same problem and solved it with the following
actions:
  
   - Add the version to both the plugins: version2.0-SNAPSHOT/version
   - Add the sandbox repository to the pom, see below.
  
   Hope this helps,
  
   Kindly revert for clarifications,
  
   Rik
  
   repositories
repository
idMaven Snapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2//url
snapshots
 enabledtrue/enabled
/snapshots
releases
 enabledfalse/enabled
/releases
/repository
   /repositories
   pluginRepositories
pluginRepository
idMaven Snapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2//url
snapshots
 enabledtrue/enabled
/snapshots
releases
 enabledfalse/enabled
/releases
/pluginRepository
   /pluginRepositories
  
  
  
   2006/2/3, javed mandary [EMAIL PROTECTED]:
   
Hi Guys,
  i'd like
to know some information about the cobertura
  plugin
in
general:
   
1. On which repo is the cobertura-maven-plugin hosted
?
2. How to configure it in your POM ?
   
I tried the following 2 configurations in my POM:
---EXTRACT OF MY POM
--
build

 plugins
  plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdcobertura-maven-plugin/artifactId
   executions
   
execution
   
 goals
   
  goalclean/goal
   
 /goals
   
/execution
   /executions
  /plugin
   
plugins
...
reporting
  plugins
 plugin
   
 groupIdorg.codehaus.mojo/groupId
   
 artifactIdcobertura-maven-plugin/artifactId
  /plugin
   /plugins
 /reporting
/build
   
-
   END-
   
I get the following error:
   
---
[ERROR] BUILD ERROR
[INFO]
   
  -
---
[INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin'
does not
exist
or n
o 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: Fri Feb 03 11:34:19 GST 2006
[INFO] Final Memory: 2M/4M
[INFO] --
---
   
Is there any other configurations that is required
? I am using Maven
2.0.2.
   
kind regards,
Javed
   
   
 


Re: Launch an application from the commandline

2006-02-03 Thread Wendy Smoak
On 2/3/06, Darryl L. Pierce [EMAIL PROTECTED] wrote:

 True. However, even with the 's' in place it's still not working because
 Maven doesn't know about that plugin. What's the dependency snippet I need
 to install it?

Found it, I think:
http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/exec-maven-plugin/0.4-SNAPSHOT/

However, I didn't have any luck convincing Maven to download it from
there.  I tried adding:
  repositories
repository
  idcodehaus-snapshot/id
  nameCodehaus Snapshot Repository/name
  urlhttp://snapshots.maven.codehaus.org/maven2//url
/repository
  /repositories

Maybe someone else can fill in the missing details.

--
Wendy

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



RE: [m2] ignore known hosts

2006-02-03 Thread Luca Gmail
In ither words:
where wagon-ssh look for known_hosts file?

tnx

-Original Message-
From: Rasconi Luca (u.e.) [mailto:[EMAIL PROTECTED] 
Sent: venerdì 3 febbraio 2006 14.38
To: Maven Users List
Subject: [m2] ignore known hosts

During the artifacts deploy I use scp to copy it to my repository.

Is there a way to skip the authenticity of the repository's host?

 

Tnx,

Luca

 

This is the ant task I use:

target name=test-deploy depends=initTaskDefs 

artifact:install-provider artifactId=wagon-ssh
version=1.0-alpha-5/

  

artifact:deploy file=jar/${jar.name}

remoteRepository
url=scp://myhost.myhost.it/sw/alive/instance/jetty/docroot/repository

authentication username= /

/remoteRepository

pom refid=maven.project/

/artifact:deploy

/target

 

 

Thisi is the response:

 

[artifact:install-provider] Installing provider:
org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5

[artifact:deploy] Deploying to
scp://192.168.25.217/sw/alive/instance/jetty/docroot/repository

[artifact:deploy] The authenticity of host '192.168.25.217' can't be
established.

[artifact:deploy] RSA key fingerprint is
4e:be:74:ba:77:79:a0:70:4e:a4:ec:55:20:02:02:54.

[artifact:deploy] Are you sure you want to continue connecting?
(yes/no):



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



How to include ant-based project

2006-02-03 Thread Dixit, Sandeep (ProSource Solutions)
I have a project for webSphere admin tasks. Is there a way I can include
it as a plugin rather than as a parent in my ear project's pom?

Thanks,
Sandeep

---
***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.
===

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



[m202] eclipse plugin not running install correctly on multiproject?

2006-02-03 Thread Thomas_Perry





hello to all,

I'm running eclipse 3.1.1, maven 2.0.2 and the eclipse maven2 plugin 0.0.4
the plugin from Mergere Inc.

when I run the install goal against an eclipse multiproject, the only
action
that happens is the pom of the parent project is installed to my local
repo.

none of the subprojects are discovered, no compiles or jar goals are run.

when I run install against a simple project, non-multiproject, it compiles
and
installs the project jar.

the above goals were defined and run from Maven2 M2 External Tools
in eclipse.

if I define an External Tool in eclipse that runs install from Maven2 on my
desktop,
the install runs as expected, the subprojects are discovered and compiled
and
subproject jars are installed to my local repo.

if I run mvn install from the commandline from my workspace/project it also
runs as expected.

so the problem seems to be the eclipse maven2 plugin, running install on a
multiproject.

I searched google and jira and found no hits. Has anyone else seen this
behavior?
Can someone point me to a solution or workaround?

Thanks in advance for your help.
Tom



 
This message is intended for the recipient only and is not meant to be 
forwarded or distributed in any other format. This communication is for 
informational purposes only.  It is not intended as an offer or solicitation 
for the purchase or sale of any financial instrument, or security, or as an 
official confirmation of any transaction.  Putnam does not accept purchase or 
redemptions of securities, instructions, or authorizations that are sent via 
e-mail.   All market prices, data and other information are not warranted as to 
completeness or accuracy and are subject to change without notice.  Any 
comments or statements made herein do not necessarily reflect those of Putnam, 
LLC (DBA Putnam Investments) and its subsidiaries and affiliates.  If you are 
not the intended recipient of this e-mail, please delete the e-mail.

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



RE: Best practice for choosing a groupId?

2006-02-03 Thread Mike Perham
The old naming practices are used for compatability with existing POMs.
I think your suggestion is an excellent one if we were to import the
commons jars now.

For instance, new versions of spring and hibernate are going in
org.springframework and org.hibernate respectively.

If your module is going to be publically published I would suggest using
your domain name, just like you do with packages.


-Original Message-
From: KC Baltz [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 03, 2006 10:50 AM
To: users@maven.apache.org
Subject: Best practice for choosing a groupId? 

Are there any guidelines for choosing a groupId for a project?  It seems
like there are several techniques on ibiblio and I think some of it has
historical motivation.  
 
For example, the Jakarta Commons projects all seem to use a groupId that
matches artifactId.  So you end up with commons-util/commons-util. I
would have thought the groupId would have been org.apache.jakarta with
artifactId commons-util. 
 
The other question is: does the choice of groupId really matter?  Does
it affect anything beyond helping people locate a dependency in the
repository?  
 
K.C. 


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



RE: Releasing: a nightmare

2006-02-03 Thread Shukla, Sanjay
Mike,
Could you share your settings.xml and sftp url inorder to make
the site sftp work.

Thanks.

Sanjay Shukla,
HPI Product Engineering, 2 Penn Plaza, NY.
212 904 3629 Office
732 692 4419 Cell
 
-Original Message-
From: Mike Perham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 04, 2006 7:08 PM
To: Maven Users List
Subject: RE: Releasing: a nightmare

Awesome!

sftp appears to work reliably (at least on both my desktop and laptop)
and its just as trivial to configure as scp.  Thanks for the tip Brian.

mike

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 04, 2006 4:15 PM
To: Maven Users List
Subject: RE: Releasing: a nightmare

Never used it, but that's where I would start. Unfortunately the wagon
site: http://maven.apache.org/wagon/ is pretty barren. 

-Original Message-
From: Mike Perham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 04, 2006 5:13 PM
To: Maven Users List
Subject: RE: Releasing: a nightmare

Brian, what's the magic required to use sftp?  Just sftp://...; in the
url? 

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 04, 2006 4:07 PM
To: Maven Users List
Subject: RE: Releasing: a nightmare

Scp is broken too. I hear sftp works ok. We happen to just use ftp since
it's either internal or over vpn. 

-Original Message-
From: Mike Perham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 04, 2006 4:56 PM
To: Maven Users List
Subject: Releasing: a nightmare

We are currently using snapshot builds for all our modules so changes
propogate with each build.  We'd like to move to a release-based
development process but I cannot find a wagon transport which is stable.

scp = session is down
scpexe/plink = a 50k transfer takes minutes

All our dev boxes are Windows so we need something which works on
windows.  What are people using with Windows?  The only thing I can
think to try next is cygwin's scp.exe instead of plink.  Anyone have
that working?

mike

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




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



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




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



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

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



RE: Releasing: a nightmare

2006-02-03 Thread Mike Perham
SCP now works for me with the 2.0.2 release so we continue to us that.

settings
  servers
server
  idwebify/id
  usernamemperham/username
  privateKeyc:\documents and
settings\mperham.WEBIFY\.ssh\id_rsa/privateKey
/server
  /servers
/settings 

distributionManagement
repository
idwebify/id
nameWebify Maven2 Repo/name
urlscp://wsfteam01.webify.local/var/www/html/maven2/url
/repository
/distributionManagement

The only challenge is setting up the SSH server to allow your private
key.  There are numerous howtos on the net explaining how to do this.

-Original Message-
From: Shukla, Sanjay [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 03, 2006 11:06 AM
To: Maven Users List
Subject: RE: Releasing: a nightmare

Mike,
Could you share your settings.xml and sftp url inorder to make
the site sftp work.

Thanks.

Sanjay Shukla,
HPI Product Engineering, 2 Penn Plaza, NY.
212 904 3629 Office
732 692 4419 Cell
 
-Original Message-
From: Mike Perham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 04, 2006 7:08 PM
To: Maven Users List
Subject: RE: Releasing: a nightmare

Awesome!

sftp appears to work reliably (at least on both my desktop and laptop)
and its just as trivial to configure as scp.  Thanks for the tip Brian.

mike

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 04, 2006 4:15 PM
To: Maven Users List
Subject: RE: Releasing: a nightmare

Never used it, but that's where I would start. Unfortunately the wagon
site: http://maven.apache.org/wagon/ is pretty barren. 

-Original Message-
From: Mike Perham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 04, 2006 5:13 PM
To: Maven Users List
Subject: RE: Releasing: a nightmare

Brian, what's the magic required to use sftp?  Just sftp://...; in the
url? 

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 04, 2006 4:07 PM
To: Maven Users List
Subject: RE: Releasing: a nightmare

Scp is broken too. I hear sftp works ok. We happen to just use ftp since
it's either internal or over vpn. 

-Original Message-
From: Mike Perham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 04, 2006 4:56 PM
To: Maven Users List
Subject: Releasing: a nightmare

We are currently using snapshot builds for all our modules so changes
propogate with each build.  We'd like to move to a release-based
development process but I cannot find a wagon transport which is stable.

scp = session is down
scpexe/plink = a 50k transfer takes minutes

All our dev boxes are Windows so we need something which works on
windows.  What are people using with Windows?  The only thing I can
think to try next is cygwin's scp.exe instead of plink.  Anyone have
that working?

mike

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




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



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




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



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

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



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



Re: How to make multi module work in continuum

2006-02-03 Thread Emmanuel Venisse



[EMAIL PROTECTED] a écrit :

Again Thanks for your reply,


If i remove the -N option i think i read somewhere its gonna do build all 
modules 2 times? is that right


yes, but only on modules that have changes.




in case of shell project  where do i give my pom url ? coz all its asking 
for project name,versin,scm url


so i gave it like this

Project Name : MyMavenPrj
Version : snapshot
 Scm Url: scm:clearcase|Myview|Myconfig_spec

then when i hit the build now

i'm getting the following error?? What am i doing wront, 


You must add a build definition. With shell project, we can't add a default 
build definition.




ognl.MethodFailedException: Method buildProject failed for object 
[EMAIL PROTECTED] 
[org.apache.maven.continuum.ContinuumException: Project (id=81 doens't 
have a default build definition.]
 at 
ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796)
 at 
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)

 at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
 at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
 at 
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)

 at ognl.SimpleNode.getValue(SimpleNode.java:210)
 at ognl.Ognl.getValue(Ognl.java:333)
 at ognl.Ognl.getValue(Ognl.java:378)
 at ognl.Ognl.getValue(Ognl.java:357)
 at 
org.apache.maven.continuum.web.action.CallApplicationModel.execute(CallApplicationModel.java:72)
 at 
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)
 at 
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)
 at 
org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)
 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
 at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
 at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
 at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
 at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
 at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
 at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
 at 
org.mortbay.http.HttpServer.service(HttpServer.java:879)
 at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
 at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
 at 
org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
 at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
 at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
 at 
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)

/-- Encapsulated exception \
org.apache.maven.continuum.ContinuumException: Project (id=81 doens't have 
a default build definition.
 at 
org.apache.maven.continuum.DefaultContinuum.buildProject(DefaultContinuum.java:396)
 at 
org.apache.maven.continuum.DefaultContinuum.buildProject(DefaultContinuum.java:381)
 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 ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)
 at 
ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:785)
 at 
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)

 at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
 at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
 at 
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)

 at ognl.SimpleNode.getValue(SimpleNode.java:210)
 at ognl.Ognl.getValue(Ognl.java:333)
 at ognl.Ognl.getValue(Ognl.java:378)
 at ognl.Ognl.getValue(Ognl.java:357)
 at 
org.apache.maven.continuum.web.action.CallApplicationModel.execute(CallApplicationModel.java:72)
 at 
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)
 at 
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)
 at 

Re: Behavior with multiple goals

2006-02-03 Thread Emmanuel Venisse



Alex Boisvert a écrit :

Yes, I understand the package goal is a superset of the compile;  I
mostly wanted to understand why I didn't see it happening.   Thanks for
your clarification.

Are you saying that if the build definitions were set on different
schedules the behavior would be different?


yes.
Actually, a changes check is done between two build, so if you don't have changes between two 
schedules, the second won't be run. We'll fix it in 1.0.3, We'll check if projects has been modified 
since the latest execution of current build definition.




Let's say I have a goal package run every hour and a goal release
run every day.  Would release happen if it is run after package?  Or
should I set up two different projects for this?


release will be run if you have changes in your scm since latest build of 
package.

Emmanuel



alex



Emmanuel Venisse wrote:



I don't understand why you set 2 build definitions for the same
schedule. It will be more logic to delete the second (compile) because
it's included in package phase.

As you have 2 build definitions on the same schedule, continuum run
them separatly. In your case it run compile definition first, and when
it try to run package definition, scm update return no changes, so
continuum doesn't do the build.

Emmanuel

Alex Boisvert a écrit :



Hi,

I'm using continuum 1.0.2 and I've defined two goals for a Maven2
project:


 Build Definitions

Goals Arguments POM File Profile Schedule
From  package --batch-mode pom.xml DEFAULT
DEFAULT_SCHEDULE Project Edit

http://release.intalio.com:/continuum/servlet/continuum/target/BuildDefinition.vm/view/BuildDefinition/buildDefinitionId/11/id/11

| Delete
http://release.intalio.com:/continuum/servlet/continuum/target/DeleteBuildDefinition.vm/buildDefinitionId/11/id/11/executorId/maven2


compile --batch-mode pom.xml DEFAULT
DEFAULT_SCHEDULE Project Edit

http://release.intalio.com:/continuum/servlet/continuum/target/BuildDefinition.vm/view/BuildDefinition/buildDefinitionId/51/id/11

| Delete
http://release.intalio.com:/continuum/servlet/continuum/target/DeleteBuildDefinition.vm/buildDefinitionId/51/id/11/executorId/maven2




I've discovered today that only the second goal (compile) gets run every
hour (DEFAULT_SCHEDULE).  The first goal (package; which is flagged as
default) only executes if I trigger the build manually.

Is this normal?

alex













Re: [m2eclipse] Eclipse WebTools and Maven2 Publishing Failed

2006-02-03 Thread Lee Meador
There was a bug that showed up when you had spaces in the repository
location you told the maven2 eclipse plugin. You should try using the short
name for documents and settings that you can get doing a dir /x in a dos
box. The short name, on my machine, is DOCUME~1 for that folder. It lets you
get rid of the spaces.

The maven2 eclipse plugin 0.0.4 does not work with the proxy that you set in
settings.xml. This leads to some issues if you need a proxy to let you
through to the remote repository.

Maybe that could help.

On 2/3/06, John Fallows [EMAIL PROTECTED] wrote:

 On 2/3/06, Domsch, Christian [EMAIL PROTECTED] wrote:
 
  we do have the same problem (its not a M4 specific problem,
  it also shows up on eclipse 3.1.2 with WTP 1.0). I would
  really like to have a solution to that.
 
  Btw, I scanned the eclipse wtp bug list and found something
  on there. But they claim this has been solved since WTP 1.0M2
  or something like that.
  (https://bugs.eclipse.org/bugs/show_bug.cgi?id=87474)


 Thanks for the pointer, Christian.  This does indeed seem like the same
 bug,
 however it looks to be broken in my environment for Eclipse 3.2M4 and WTP
 1.5M4 and your environment for Eclipse 3.1.2 and WTP 1.0.

 Anyone else having similar difficulties, or better yet, a solution?

 Kind Regards,
 John Fallows.

  -Original Message-
   From: John Fallows [mailto:[EMAIL PROTECTED]
   Sent: Freitag, 3. Februar 2006 07:05
   To: Maven Users List
   Subject: [m2eclipse] Eclipse WebTools and Maven2 Publishing Failed
  
  
   I'm trying to use Eclipse 3.2M4, Eclipse WebTools 1.5M4,
   Maven2 Eclipse
   Plugin 0.0.4 and Tomcat 4.1.
  
   I have a WebTools Dynamic Web Project that uses Maven2 to
   resolve library
   dependencies.  When trying to Debug As - Debug on Server,
   the following
   error occurs:
  
   Publishing failed
 Resource /M2_REPO/commons-logging/commons-logging/1.0/commons-
   logging-1.0.jar does not exist.
  
   It seems as though the M2_REPO variable is not being
   resolved correctly
   when the WAR is being constructed for deployment to Tomcat.
  
   Presumably this should resolve to
 C:\Documents and
   Settings\john.fallows\.m2\repository/commons-logging/commons-l
   ogging/1.0/commons-
   logging-1.0.jar
  
   which does exist on the local filesystem.
  
   Note that I have already set the Maven2 Preferences to use
   C:\Documents and
   Settings\john.fallows\.m2\repository as the Local Repository
   Folder value,
   enabling compilation to succeed.
  
   Btw, this type of IDE integration is exactly the right
   direction for Maven2
   to be taking.  Combined with automatic generation of all the
   various flavors
   of IDE project files, we are getting very close to having a
   single source of
   truth for both IDE development activities and continuous integration
   builds.  Great work!
  
   Kind Regards,
   John Fallows.
   --
   http://apress.com/book/bookDisplay.html?bID=10044
   Author: Pro JSF and Ajax: Building Rich Internet Components, Apress
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 http://apress.com/book/bookDisplay.html?bID=10044
 Author: Pro JSF and Ajax: Building Rich Internet Components, Apress




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


[m2] processing more than one module without binding the subs to a parent pom!

2006-02-03 Thread Fredy
Hi all,
I have asked the same question in Thread [m2] parent pom, but nobody has 
answered, so usually it was going under ;-) 
I cannot belive, that I am the only one who's missing something like that!

The multi Project mechanismus is ok for real submodules, that never used in 
another context. Because the submodules must have a 
reference to the parent. 

I miss a possibility to define processGroups. (Using submodules without ONE 
parent.)

Example: 
module A depends on module D 
module B depends on module D 
module D depends on module C 

So if i develop module A and A,B,C are SNAPSHOT'S I want to call compile, 
package, install... on a process/develop Group: 

processGroup 
  dependency 
  groupIdmyGroup/groupId 
  artifactIdmoduleA/artifactId 
  version1.o-SNAPSHOT/version 
  scopecompile/scope 
/dependency 
  dependency 
  groupIdmyGroup/groupId 
  artifactIdmoduleB/artifactId 
  version1.o-SNAPSHOT/version 
  scopecompile/scope 
/dependency 
  dependency 
  groupIdmyGroup/groupId 
  artifactIdmoduleD/artifactId 
  version1.o-SNAPSHOT/version 
  scopecompile/scope 
/dependency 
/processGroup 

This is a small Example, the dependencies could be much more complex ;-) 
So a thing like a processGroup may be a very great way to save me time. 
Ok. i can write an shell or ant script doing that, but it would be nice if 
maven can do something like that. 
Do you understand me? 

Fredy 

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



Re: How to install sources

2006-02-03 Thread Lee Meador
There is no information on how to use the maven-source-plugin at the link
given. It just shows the name and the config properties.

There is no mention of the word performRelease at the POM document whose
link is given.

Does someone know of a place that documents these things?

On 2/2/06, Paolo Perrucci [EMAIL PROTECTED] wrote:

 Hi Erick.

 you can use the maven-source-plugin

 http://maven.apache.org/plugins/maven-source-plugin/

 or use the performRelease property that activate the release-profile
 profile defined in the super POM

 http://maven.apache.org/guides/introduction/introduction-to-the-pom.html

 mvn -DperformRelease deploy will install your artifact jar with source
 and javadoc jars.

 Bye
 Paolo



 Erick Dovale ha scritto:

  Hi there,
  can any one tell how can I install the sources jar of the artifacts in
  the local repository??
 
  thanks..
 
  edovale
 
  -
  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]




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


Re: [m2] processing more than one module without binding the subs to a parent pom!

2006-02-03 Thread Lee Meador
just make a parent POM that has packagingpom/packaging and add entries
to tthe modules element defining as children POMs the things you want to
build. They don't have to be related in any way but if they are, they will
be built in the right order. (For example, a jar that is used in two real
applications.)

If you don't ever change the version in the dummy parent, you don't ever
have to mess with the children's parent element.

As a side effect, you can have some common settings in the parent if you
want to define things like what version of junit you are using or the
organization name if it is common to all your projects.

If you only want to build one of the children just run mvn from that folder.
Only that child will be built and the other children will be ignored.

Thanks.

-- Lee

On 2/3/06, Fredy [EMAIL PROTECTED] wrote:

 Hi all,
 I have asked the same question in Thread [m2] parent pom, but nobody has
 answered, so usually it was going under ;-)
 I cannot belive, that I am the only one who's missing something like that!

 The multi Project mechanismus is ok for real submodules, that never used
 in another context. Because the submodules must have a
 reference to the parent.

 I miss a possibility to define processGroups. (Using submodules without
 ONE parent.)

 Example:
 module A depends on module D
 module B depends on module D
 module D depends on module C

 So if i develop module A and A,B,C are SNAPSHOT'S I want to call compile,
 package, install... on a process/develop Group:

 processGroup
   dependency
   groupIdmyGroup/groupId
   artifactIdmoduleA/artifactId
   version1.o-SNAPSHOT/version
   scopecompile/scope
 /dependency
   dependency
   groupIdmyGroup/groupId
   artifactIdmoduleB/artifactId
   version1.o-SNAPSHOT/version
   scopecompile/scope
 /dependency
   dependency
   groupIdmyGroup/groupId
   artifactIdmoduleD/artifactId
   version1.o-SNAPSHOT/version
   scopecompile/scope
 /dependency
 /processGroup

 This is a small Example, the dependencies could be much more complex ;-)
 So a thing like a processGroup may be a very great way to save me time.
 Ok. i can write an shell or ant script doing that, but it would be nice if
 maven can do something like that.
 Do you understand me?

 Fredy

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




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


Re: How to make multi module work in continuum

2006-02-03 Thread raghurajan . x . gurunathan
Can you please give me more details on your comment

You must add a build definition. With shell project, we can't add a 
default build definition

Is there any example(step-step) somewhere it shows how to add M2project as 
shell project??





Thanks,
Raghurajan G 





Emmanuel Venisse [EMAIL PROTECTED]
02/03/2006 11:19 AM
Please respond to continuum-users

 
To: continuum-users@maven.apache.org
cc: 
Subject:Re: How to make multi module work in continuum




[EMAIL PROTECTED] a écrit :
 Again Thanks for your reply,
 
 
 If i remove the -N option i think i read somewhere its gonna do build 
all 
 modules 2 times? is that right

yes, but only on modules that have changes.

 
 
 in case of shell project  where do i give my pom url ? coz all its 
asking 
 for project name,versin,scm url
 
 so i gave it like this
 
 Project Name : MyMavenPrj
 Version : snapshot
  Scm Url: scm:clearcase|Myview|Myconfig_spec
 
 then when i hit the build now
 
 i'm getting the following error?? What am i doing wront, 

You must add a build definition. With shell project, we can't add a 
default build definition.


 
 ognl.MethodFailedException: Method buildProject failed for object 
 [EMAIL PROTECTED] 
 [org.apache.maven.continuum.ContinuumException: Project (id=81 doens't 
 have a default build definition.]
  at 
 ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796)
  at 
 ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)
  at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
  at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
  at 
 ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
  at ognl.SimpleNode.getValue(SimpleNode.java:210)
  at ognl.Ognl.getValue(Ognl.java:333)
  at ognl.Ognl.getValue(Ognl.java:378)
  at ognl.Ognl.getValue(Ognl.java:357)
  at 
 
org.apache.maven.continuum.web.action.CallApplicationModel.execute(CallApplicationModel.java:72)
  at 
 
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)
  at 
 
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)
  at 
 org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)
  at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
  at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
  at 
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
  at 
 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
  at 
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
  at 
 org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
  at 
 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
  at 
 org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
  at 
 org.mortbay.http.HttpServer.service(HttpServer.java:879)
  at 
 org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
  at 
 org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
  at 
 org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
  at 
 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
  at 
 org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
  at 
 org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
 /-- Encapsulated exception \
 org.apache.maven.continuum.ContinuumException: Project (id=81 doens't 
have 
 a default build definition.
  at 
 
org.apache.maven.continuum.DefaultContinuum.buildProject(DefaultContinuum.java:396)
  at 
 
org.apache.maven.continuum.DefaultContinuum.buildProject(DefaultContinuum.java:381)
  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 ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)
  at 
 ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:785)
  at 
 ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)
  at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
  at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
  at 
 

Adding Source path for test-compile

2006-02-03 Thread Paige, Gary
Currently I have a step that generates new sources during the
generate-test-sources
I need to add that directory to the source path during test-compile - 
I have tried several ways :

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
 configuration
testIncludes
include
implementation=java.lang.Stringtarget/test-generated/include
/testIncludes
source1.5/source
target1.5/target
/configuration
 /plugin

The above is my last attempt - I have also tried adding execution blocks


Any help would be appreciated.



Re: [m202] eclipse plugin not running install correctly on multiproject?

2006-02-03 Thread Mark Hewett
On 2/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
snip
 I searched google and jira and found no hits. Has anyone else seen this
 behavior?

This has come up on the [EMAIL PROTECTED] list.  Probably
worth creating a Jira entry for it, although I'm not sure if this is
caused by the m2eclipse plugin or the Maven Embedder.  I think the
work around for now is to use an External Tool, as you have already
discovered.

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



Re: [m202] eclipse plugin not running install correctly on multiproject?

2006-02-03 Thread Thomas_Perry






Thanks for the response.

I have filed an issue on jira,
http://jira.codehaus.org/browse/MNGECLIPSE-71




   
 Mark Hewett   
 [EMAIL PROTECTED] 
 l.com To 
   Maven Users List
 02/03/2006 01:44  users@maven.apache.org
 PM cc 
   
   Subject 
 Please respond to Re: [m202] eclipse plugin not   
   Maven Usersrunning install correctly on
   List   multiproject?   
 [EMAIL PROTECTED] 
  he.org  
   
   
   
   




On 2/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
snip
 I searched google and jira and found no hits. Has anyone else seen this
 behavior?

This has come up on the [EMAIL PROTECTED] list.  Probably
worth creating a Jira entry for it, although I'm not sure if this is
caused by the m2eclipse plugin or the Maven Embedder.  I think the
work around for now is to use an External Tool, as you have already
discovered.

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





 
This message is intended for the recipient only and is not meant to be 
forwarded or distributed in any other format. This communication is for 
informational purposes only.  It is not intended as an offer or solicitation 
for the purchase or sale of any financial instrument, or security, or as an 
official confirmation of any transaction.  Putnam does not accept purchase or 
redemptions of securities, instructions, or authorizations that are sent via 
e-mail.   All market prices, data and other information are not warranted as to 
completeness or accuracy and are subject to change without notice.  Any 
comments or statements made herein do not necessarily reflect those of Putnam, 
LLC (DBA Putnam Investments) and its subsidiaries and affiliates.  If you are 
not the intended recipient of this e-mail, please delete the e-mail.

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



Re: Error in detecting changes

2006-02-03 Thread Emmanuel Venisse

Strange.

I wanted log of continuum.

Probably a bug. File an issue, I'll at it.

Emmanuel

Punkin Head a écrit :

The pom.xml is version 1.34.

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

[INFO] Building WRAT Parent
[INFO]task-segment: [clean, deploy]
[INFO]

[INFO] [clean:clean]
[INFO] [install:install]
[INFO] Installing c:\Program Files\Apache Software Foundation\continuum-
1.0.2\working-directory\108\pom.xml to C:\Documents and
Settings\continuum.MOBILVOX\.m2\repository\com\mobilvox\wrat\application-parent\1.1-SNAPSHOT\application-
parent-1.1-SNAPSHOT.pom
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from mv-repo
Uploading:
file:\\dc103\software\.m2\repository/com/mobilvox/wrat/application-parent/1.1-SNAPSHOT/application-
parent-1.1-20060202.212006-1.pom
5K uploaded
[INFO] Retrieving previous metadata from mv-repo
[INFO] Uploading repository metadata for: 'artifact
com.mobilvox.wrat:application-parent'
[INFO] Retrieving previous metadata from mv-repo
[INFO] Uploading repository metadata for: 'snapshot
com.mobilvox.wrat:application-parent:1.1-SNAPSHOT'
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Thu Feb 02 16:20:06 EST 2006
[INFO] Final Memory: 3M/6M
[INFO]


On 2/3/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:


Is it your pom.xml that have this version?

Can you send log traces of a build execution on this project.

Emmanuel

Punkin Head a écrit :


The version in CVS is 1.34 (with an update by another individual) but,


the


Continuum build number is 25.  On CVS 1.25 I was the one who commited


the


changes and it is those comments that are on the Continuum build changes
page, not the ones from CVS version 1.34.

On 2/3/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:



What do you mean? What is a CVS revision?

When continuum does a new build, it run the following command 'cvs -f -q
update -d'
A build number is internal to Continuum and cvs doesn't know it.

Emmanuel

Punkin Head a écrit :



When Continuum does a new build, it seems to detect the CVS revision


that is



equivalent to the build number.  For example, one of our modules is on


build



25 but CVS revision 34 and the comments for the changes on the build


result



page are from CVS revision 25.  Is there a way to match these so that


we


can



see who did what?

Thanks,

Adam

--
www.punkinshred.net  // punkin'head official homepage

www.myspace.com/punkinhead -- for true shred






--
www.punkinshred.net  // punkin'head official homepage

www.myspace.com/punkinhead -- for true shred







--
www.punkinshred.net  // punkin'head official homepage

www.myspace.com/punkinhead -- for true shred





Re: maven 1.1 and inherited properties

2006-02-03 Thread Arnaud HERITIER
Thanks Nicolas
I'll test it ASAP
Arnaud

On 2/1/06, Nicolas De Loof [EMAIL PROTECTED] wrote:

 Copy paste error : please read [http://jira.codehaus.org/browse/MAVEN-1741]

 Nicolas De Loof a écrit :

  I was first thinking about org.apache.commons.attributes.enable not
  beeing correctly set, but I've was wrong.
 
  I've created http://jira.codehaus.org/browse/MAVEN-1691
  I've attached a minimalist multiproject to demonstrate the bug.
 
  (war) maven war:install generates the attributes classes
  (jar) maven jar:install generates the attributes classes
  (head) maven multiproject:install generates the attributes classes
  ONLY for jar project.
 
  Arnaud HERITIER a écrit :
 
  Hi Nicolas,
 
   Why do you talk about inherited properties ?
   can it be related to  http://jira.codehaus.org/browse/MAVEN-1691 ?
 
  Arnaud
 
  On 1/31/06, Nicolas De Loof [EMAIL PROTECTED] wrote:
 
 
  Hello,
 
  I'm trying to upgrade to maven 1.1-beta2.
  My project uses commons-attributes and it's maven plugin
 
  When I run a maven war:install on my web sub-project, attributes
  classes are generated by plugin.
  When I run a multiproject:install, everything SEEMS good, but
  attributes classes are not generated. Plugin doesn't run at all.
 
  Same plugin runs as expected in a simple jar
 
  Is this a known bug ? (it works fine under maven 1.0.2)
 
  Nico.
 
  This message contains information that may be privileged or
  confidential and is the property of the Capgemini Group. It is
  intended only for the person to whom it is addressed. If you are not
  the intended recipient,  you are not authorized to read, print,
  retain, copy, disseminate,  distribute, or use this message or any
  part thereof. If you receive this  message in error, please notify
  the sender immediately and delete all  copies of this message.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

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


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



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



What scope is like 'provided' and 'test' together?

2006-02-03 Thread Lee Meador
I have a jar (webservices.jar) that I need for these things:

1) Compile main source.
2) Run tests in projects that are dependant on this one.

But not for running the main source since that will run in the ejb
container.

scopeprovided/scope doesn't work because the jar isn't available for the
tests in the dependent projects which need to instantiate a class from the
jar but not to call it.
scopecompile/scope doesn't work because the jar ends up inside the ear
scopetest/scope doesn't work because the main code doesn't compile.

Am I looking at this wrong somehow?

The one solution I have found is to put it as provided in this project and
put it as 'test in another project that runs tests that need classes. (I
use the term project to mean a think with a POM of its own.) The problems
with this are:

1) I can't run any such tests in the same project. (I can live with this.)
2) I have to put the dependency in the other project even though it is only
needed when running the test that references this project. That seems
wrong in some way.

Any ideas?

-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


Re: Maven 1.1b Junit tests - Threads close down

2006-02-03 Thread Arnaud HERITIER
No idea.
You wait for the others threads ?
If you are using m1.1 beta, did you try maven.junit.fork=once ?
Anyone else ?

Arnaud

On 2/1/06, Ashley Hurkoo [EMAIL PROTECTED] wrote:
 Hi, I have a Junit test class, mytest and I am executing maven test. In
 mytest, I am executing multiple threads, when I execute maven test, the
 threads starts and close down automatically. I have set
 maven.junit.fork=true(in maven-test-plugin) but I still have the same
 problem. I believe this is a maven issue as when I run the junit test
 without maven, they work fine.

 Can anyone help?

 Thanks
 Ashley



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



[m2] How to specify the context.xml for a generated war

2006-02-03 Thread Kris Nuttycombe
Hi, all,

I've been trying to convert a Maven 1.0 webapp project to use Maven 2.0,
and I've been having trouble figuring out how to specify a context.xml
file to be included in the META-INF directory of the generated war. It's
easy enough to do it with the web.xml, but if I try specifying the
context.xml file as a resource in the build section, it ends up in
WEB-INF/classes/META-INF instead of META_INF.

Any ideas?

Kris

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

Re: [m2] How to specify the context.xml for a generated war

2006-02-03 Thread Milos Kleint
src/main/webapp/META-INF ?
at least tha't where I let the netbeans support to generate it and
it's then able to deploy somehow..

Milos


On 2/3/06, Kris Nuttycombe [EMAIL PROTECTED] wrote:
 Hi, all,

 I've been trying to convert a Maven 1.0 webapp project to use Maven 2.0,
 and I've been having trouble figuring out how to specify a context.xml
 file to be included in the META-INF directory of the generated war. It's
 easy enough to do it with the web.xml, but if I try specifying the
 context.xml file as a resource in the build section, it ends up in
 WEB-INF/classes/META-INF instead of META_INF.

 Any ideas?

 Kris



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



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



Re: [m2] How to specify the context.xml for a generated war

2006-02-03 Thread Kris Nuttycombe
Right, but I need to swap out the context.xml file at packaging time
because (a) it has database configuration stuff that shouldn't go into
the source repository and (b) this configuration is different depending
upon what host I'm building the war for.

Thanks,

Kris

Milos Kleint wrote:
 src/main/webapp/META-INF ?
 at least tha't where I let the netbeans support to generate it and
 it's then able to deploy somehow..

 Milos


 On 2/3/06, Kris Nuttycombe [EMAIL PROTECTED] wrote:
   
 Hi, all,

 I've been trying to convert a Maven 1.0 webapp project to use Maven 2.0,
 and I've been having trouble figuring out how to specify a context.xml
 file to be included in the META-INF directory of the generated war. It's
 easy enough to do it with the web.xml, but if I try specifying the
 context.xml file as a resource in the build section, it ends up in
 WEB-INF/classes/META-INF instead of META_INF.

 Any ideas?

 Kris



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


 

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


   

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

dependency typewar/type not working

2006-02-03 Thread Jason Chaffee
If I try to add a dependency of type war to my pom, I get the following
error:
 
[ERROR] FATAL ERROR
[INFO]

-
---
[INFO] Error building POM (may not be this project's POM).
 
 
Project ID: com.tvworks.tva.packager:packager-webapp
POM Location: C:\workspace\packager\packager\webapp\pom.xml
Validation Messages:
 
[0]  'dependencies.dependency.version' is missing for
metatv-common-assets:m
etatv-common-assets
 
 
Reason: Failed to validate POM
 
 
[INFO]

-
---
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Failed to validate POM
at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.InvalidProjectModelException: Failed
to vali
date POM
at
org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLog
ic(DefaultMavenProjectBuilder.java:781)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
nProjectBuilder.java:631)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
le(DefaultMavenProjectBuilder.java:303)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
nProjectBuilder.java:274)
at
org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)
at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
... 11 more
 


M2 release plugin using CVS with sourceforge

2006-02-03 Thread Paul Rule
Has anyone been using the Maven2 release plugin with
CVS  sourceforge?

I'm having a hard time trying to get it going - it may
not be a maven problem but an SSH or some other set up
problem.

It gets as far as trying to check in pom.xml after
it's updated the version - then it freezes which I
think is because it needs the password - but there is
no prompt.

[DEBUG]   (f) resume = true
[DEBUG]   (f) settings =
[EMAIL PROTECTED]
[DEBUG]   (f) tagBase = ../tags
[DEBUG]   (f) urlScm =
scm:cvs:ext:[EMAIL PROTECTED]:/cvsroot/seleniumas
sist:SeleniumAssist
[DEBUG] -- end configuration --
[INFO] [release:prepare]
[INFO] What tag name should be used?
v042
[INFO] Verifying there are no local modifications ...
[INFO] Checking lineage for snapshots ...
[INFO] Checking dependencies for snapshots ...
[INFO] Checking plugins for snapshots ...
[INFO] What is the release version for
'net.sf.seleniumassist:seleniumassist'? [0.4.2]

[INFO] Checking in modified POMs

Can anyone point me in the right direction??

Thanks.


http://softwarepr.wikispaces.com/
http://toolinstaller.sourceforge.net/
http://seleniumassist.sourceforge.net/



 
Do you Yahoo!? 
Take your Mail with you - get Yahoo! Mail on your mobile 
http://au.mobile.yahoo.com/mweb/index.html

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



Is it possible to build 2 jars in a single project?

2006-02-03 Thread Brad O'Hearne
I have a single project which I would like the build to result in 2 jars 
(actually one jar and one sar). Is it possible to have a project build 
two jars? Or do I have to break this project into two projects?  The 
reason that I ask is that these two jars essentially come from the same 
codebase -- they aren't really comprised of different source code -- 
mostly just different packaging (for JBoss).


How would you recommend tackling this situation?

Thanks for your help.

Brad

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



surefire-report:report runs all the unit tests?

2006-02-03 Thread brian . a . yoffe
I am using clover and I want to generate both clover and surefire reports. 
 When I execute mvn site with the following in my pom I see that all unit 
tests are executed twice.   Is there a way to prevent this from happening? 
   Am I using the plugins as intended?

Further, when I execute mvn surefire-report:report (which I thought was 
supposed to basically parse XML and create HTML reports) it causes all 
unit tests to reexecute.Clover already is executing all the unit tests 
- I basically want the surefire-report-maven-plugin to harvest the XML in 
the clover directory.

  plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-clover-plugin/artifactId
configuration
  licenseFilec:\dev\clover.license/licenseFile
/configuration
  /plugin 
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdsurefire-report-maven-plugin/artifactId 
configuration
 
reportsDirectory${project.build.directory}/clover/surefire-reports/reportsDirectory
/configuration 
  /plugin
/plugins

Thanks,
Brian Yoffe

This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase  Co., its subsidiaries 
and affiliates



Re: I can't get cobertura to work with maven 2.0.2

2006-02-03 Thread Brett Porter
On 2/1/06, David Sag [EMAIL PROTECTED] wrote:
 yes that's exactly what is happening.  the second (redundent)
 instrumentation generates 0 length classes.
 I am not sure what AIOOBE means.

I wonder if this is related to Mike Perham's recent comments about the
changes. AIOOBE was ArrayIndexOutOfBoundsException.

 shame it broke eh.

It didn't work for me before, now it does. The setup is the right
direction, but it appears there are still problems.

 I see no reference at all to cobertura in
 https://svn.apache.org/repos/asf/maven/repository-manager/trunk/pom.xml

  reporting
plugins
  !-- TODO: should be omitted when there are no tests to run --
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
  /plugin

- Brett

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



Re: [m202] Cobertura plugin

2006-02-03 Thread Brett Porter
It's the first one in the reporting section on the link you gave. Unless
I'm clearly mistaken :)

The cobertura plugin will be worked on to completion in the next two weeks.
We're working through the issues at the mojo project.

- Brett

On 2/4/06, David Sag [EMAIL PROTECTED] wrote:


 As far as I can tell the latest snapshot version (2.0) still does not work
 properly.  it will instrument okay but when generating the a site with
 cobertura as a report it generates 0 byte class files and the surefire tests
 break.

 brett porter claims it does work and offered up
 https://svn.apache.org/repos/asf/maven/repository-manager/trunk as an
 example of it in use, but a quick look over
 https://svn.apache.org/repos/asf/maven/repository-manager/trunk/pom.xmlshows 
 that there is no mention of cobertura there, so brett is clearly
 mistaken.

 I am still hopefull that this could be fixed so have commented out the
 cobertura stuff for now and am persevering with maven 2.

 Kind regards,
 Dave Sag






 Konstantin Polyzois [EMAIL PROTECTED] wrote on 03-02-2006 08:03:52:

  I checked it out ant built it myself did not find a working release of
 it.
 
  /Konstantin
 
  2006/2/1, Arnaud Bailly [EMAIL PROTECTED]:
   Hello,
   What is the status of the cobertura plugin for m2 ? I had problems
   trying to include it in the pom through central and there
   was some discussion on the list some days ago, but I didn't find
   how to get the latest and greatest version.
  
   Thanks,
  
   --
   Arnaud Bailly, Dr. - Ingénieur de Recherche
   NORSYS
   1, rue de la Cense des Raines
   ZAC du Moulin
   59710 ENNEVELIN
   Tel : (33) 3 28 76 56 76
   Mob : (33) 6 17 12 19 78
   Fax : (33) 3 28 76 57 00
   Web : http://www.norsys.fr
  
  
   -
   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] ignore known hosts

2006-02-03 Thread Brett Porter
It's not currently configurable to ignore unknown hosts (-B can be
used to avoid the question, but the build will just fail instead).

The known hosts file is read from ${user.home}/.ssh/known_hosts

On 2/4/06, Luca Gmail [EMAIL PROTECTED] wrote:
 In ither words:
 where wagon-ssh look for known_hosts file?

 tnx

 -Original Message-
 From: Rasconi Luca (u.e.) [mailto:[EMAIL PROTECTED]
 Sent: venerdì 3 febbraio 2006 14.38
 To: Maven Users List
 Subject: [m2] ignore known hosts

 During the artifacts deploy I use scp to copy it to my repository.

 Is there a way to skip the authenticity of the repository's host?



 Tnx,

 Luca



 This is the ant task I use:

 target name=test-deploy depends=initTaskDefs 

 artifact:install-provider artifactId=wagon-ssh
 version=1.0-alpha-5/



 artifact:deploy file=jar/${jar.name}

 remoteRepository
 url=scp://myhost.myhost.it/sw/alive/instance/jetty/docroot/repository

 authentication username= /

 /remoteRepository

 pom refid=maven.project/

 /artifact:deploy

 /target





 Thisi is the response:



 [artifact:install-provider] Installing provider:
 org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5

 [artifact:deploy] Deploying to
 scp://192.168.25.217/sw/alive/instance/jetty/docroot/repository

 [artifact:deploy] The authenticity of host '192.168.25.217' can't be
 established.

 [artifact:deploy] RSA key fingerprint is
 4e:be:74:ba:77:79:a0:70:4e:a4:ec:55:20:02:02:54.

 [artifact:deploy] Are you sure you want to continue connecting?
 (yes/no):



 -
 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] Possible bug?

2006-02-03 Thread Brett Porter
sounds like a bug. Please file it under the MRESOURCES section in JIRA.

- Brett

On 2/3/06, Rubén Barroso [EMAIL PROTECTED] wrote:
 I forgot to mention that @ char is in a comment.

 2006/2/2, Rubén Barroso [EMAIL PROTECTED]:
 
  Hi all!
 
  I've got a resource (a Spring XML contexty file) that needs to be filtered
  before being deployed. I use profiles to filter plenty of properties present
  on it. I've an at character (@) in the middle of the file, and I've found
  out that properties after that comment aren't filtered (properties before
  that comment are). Any ideas?
 
  rb
 



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



Re: [M2] site.xml schema

2006-02-03 Thread Brett Porter
It will be available in the final version of the site plugin (2.0).

- Brett

On 2/2/06, Vincent Siveton [EMAIL PROTECTED] wrote:
 AFAIK not yet

 Cheers,

 Vincent

 2006/2/1, Thomas Van de Velde [EMAIL PROTECTED]:
  Hi,
 
  I am having an error in the generation of my site.
 
  [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
  [ERROR] RHS of #set statement is null. Context will not be modified.
  org/apache/
  maven/plugins/site/maven-site.vm [line 2, column 1]
  [ERROR] Method calculateLink threw exception for reference $PathTool in
  template
   org/apache/maven/plugins/site/maven-site.vm at  [3,29]
  [INFO]
  -
  ---
  [ERROR] BUILD ERROR
 
  Is there any schema I can use to validate my site.xml?
 
  Thomas
 
 

 -
 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: [m2eclipse] Eclipse WebTools and Maven2 Publishing Failed

2006-02-03 Thread John Fallows
Thanks Lee,

I'm trying this from home, so no proxy at the moment, although
settings.xmlintegration will become more important later. :-)

I tried your suggestion, but it did not seem to help.  Just in case Eclipse
or the Maven2 Eclipse plugin was being too smart and converting the
short-name path to a canoncial path with spaces, I even relocated the
localRepository to C:\m2repos, eliminating all spaces, but still no joy.
;-(

The .settings/.component file does have all the relevant entries for each
deployed JAR in the webapp, for example:

dependent-module deploy-path=/WEB-INF/lib
handle=module:/classpath/var/M2_REPO/commons-logging/commons-logging/1.0/commons-
logging-1.0.jar
  dependency-typeuses/dependency-type
/dependent-module

...but I still get the following error message:

Publishing failed
  Resource /M2_REPO/commons-logging/commons-logging/1.0/commons-
logging-1.0.jar does not exist.

Is it possible that M2_REPO is really not defined during WTP deployment?
Or could this be a more general problem with any classpath variable?

Any pointers would be greatly appreciated. :-)

Kind Regards,
John Fallows.

On 2/3/06, Lee Meador [EMAIL PROTECTED] wrote:

 There was a bug that showed up when you had spaces in the repository
 location you told the maven2 eclipse plugin. You should try using the
 short
 name for documents and settings that you can get doing a dir /x in a
 dos
 box. The short name, on my machine, is DOCUME~1 for that folder. It lets
 you
 get rid of the spaces.

 The maven2 eclipse plugin 0.0.4 does not work with the proxy that you set
 in
 settings.xml. This leads to some issues if you need a proxy to let you
 through to the remote repository.

 Maybe that could help.

 On 2/3/06, John Fallows [EMAIL PROTECTED] wrote:
 
  On 2/3/06, Domsch, Christian [EMAIL PROTECTED] wrote:
  
   we do have the same problem (its not a M4 specific problem,
   it also shows up on eclipse 3.1.2 with WTP 1.0). I would
   really like to have a solution to that.
  
   Btw, I scanned the eclipse wtp bug list and found something
   on there. But they claim this has been solved since WTP 1.0M2
   or something like that.
   (https://bugs.eclipse.org/bugs/show_bug.cgi?id=87474)
 
 
  Thanks for the pointer, Christian.  This does indeed seem like the same
  bug,
  however it looks to be broken in my environment for Eclipse 3.2M4 and
 WTP
  1.5M4 and your environment for Eclipse 3.1.2 and WTP 1.0.
 
  Anyone else having similar difficulties, or better yet, a solution?
 
  Kind Regards,
  John Fallows.
 
   -Original Message-
From: John Fallows [mailto:[EMAIL PROTECTED]
Sent: Freitag, 3. Februar 2006 07:05
To: Maven Users List
Subject: [m2eclipse] Eclipse WebTools and Maven2 Publishing Failed
   
   
I'm trying to use Eclipse 3.2M4, Eclipse WebTools 1.5M4,
Maven2 Eclipse
Plugin 0.0.4 and Tomcat 4.1.
   
I have a WebTools Dynamic Web Project that uses Maven2 to
resolve library
dependencies.  When trying to Debug As - Debug on Server,
the following
error occurs:
   
Publishing failed
  Resource /M2_REPO/commons-logging/commons-logging/1.0/commons-
logging-1.0.jar does not exist.
   
It seems as though the M2_REPO variable is not being
resolved correctly
when the WAR is being constructed for deployment to Tomcat.
   
Presumably this should resolve to
  C:\Documents and
Settings\john.fallows\.m2\repository/commons-logging/commons-l
ogging/1.0/commons-
logging-1.0.jar
   
which does exist on the local filesystem.
   
Note that I have already set the Maven2 Preferences to use
C:\Documents and
Settings\john.fallows\.m2\repository as the Local Repository
Folder value,
enabling compilation to succeed.
   
Btw, this type of IDE integration is exactly the right
direction for Maven2
to be taking.  Combined with automatic generation of all the
various flavors
of IDE project files, we are getting very close to having a
single source of
truth for both IDE development activities and continuous integration
builds.  Great work!
   
Kind Regards,
John Fallows.
--
http://apress.com/book/bookDisplay.html?bID=10044
Author: Pro JSF and Ajax: Building Rich Internet Components, Apress
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  http://apress.com/book/bookDisplay.html?bID=10044
  Author: Pro JSF and Ajax: Building Rich Internet Components, Apress
 
 


 --
 -- Lee Meador
 Sent from gmail. My real email address is [EMAIL PROTECTED]




--
http://apress.com/book/bookDisplay.html?bID=10044
Author: Pro JSF and Ajax: Building Rich Internet Components, Apress


Re: Is it possible to build 2 jars in a single project?

2006-02-03 Thread Dave Maung
use maven-compiler-plugin. see
http://maven.apache.org/guides/mini/guide-using-one-source-directory.html

On 2/3/06, Brad O'Hearne [EMAIL PROTECTED] wrote:

 I have a single project which I would like the build to result in 2 jars
 (actually one jar and one sar). Is it possible to have a project build
 two jars? Or do I have to break this project into two projects?  The
 reason that I ask is that these two jars essentially come from the same
 codebase -- they aren't really comprised of different source code --
 mostly just different packaging (for JBoss).

 How would you recommend tackling this situation?

 Thanks for your help.

 Brad

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