Re: Apply license to all java files?

2006-11-21 Thread Alexandre Russel
It is a checkstyle feature. It is probably possible to do it with this plugin
alex

On Tuesday 21 November 2006 12:16, Wim Deblauwe wrote:
 Hi,

 does anybody know of a Maven plugin (or some other tool) that makes sure
 the approperiate header for a certain license is present in every java
 file? I could ofcourse manually add the notice to every file, but this
 seems like such a common thing that somebody must have made something
 already.

 regards,

 Wim


pgptgIWPOtgTx.pgp
Description: PGP signature


Re: no classes, but lib?

2006-11-05 Thread Alexandre Russel
On Sunday 05 November 2006 11:12, jiangshachina wrote:
 Generally, in Web application project, the Java class files would be put
 into WEB-INF/classes folder.
 Now, I want the classes to be archived and putted into WEB-INF/lib folder.
 And the classes should be classified and putted into different
 sub-directories under WEB-INF/lib respectively.
 For example, WEB-INF/lib/data/(some jars related to Database operations),
 WEB-INF/lib/user/(some jars related to user management), etc.
then create a project for each lib and put them as dependencies of your war
alex


pgpUsnvFCQ3GZ.pgp
Description: PGP signature


Re: Multi-module site is not working

2006-11-01 Thread Alexandre Russel
On Wednesday 01 November 2006 20:57, Morgovsky, Alexander (US - Glen Mills) 
wrote:
 Hi, I define the following in the parent project.
 distributionManagement
   site
   idx/id
   urlx/url
   /site
 ...
 /distributionManagement
 modules
   modulea/module
   moduleb/module
 /modules

 When I run mvn site-deploy on the parent project, the site for the
 parent project gets generated.  The modules get listed,  but when I
 click on the modules' links, their sites are not present.  I tried
 appending ${project.artifactId} to the url, but that did not work
 either.  Each module declares the parent project as its parent.  Please
 help if you may.
In the module's pom, do you have a url in projecturlXXX/url ?
If you got one, try to delete it. 
Do you have any site created for the modules, even at the wrong place ?
alex


pgpDVjYaETBmd.pgp
Description: PGP signature


Re: Issues with calling mvn from Ant on Linux

2006-10-08 Thread Alexandre Russel
On Monday 09 October 2006 04:56, mraible wrote:
 I have the following macrodef in Ant to run mvn to create project files.
 It works fine on Windows XP and OS X, but on Linux it spits out [exec]
 Result: 1.  Any ideas on how to make this work on Linux?

 exec dir=@{dir} executable=mvn.sh os=Linux
Are you sure the executable is mvn.sh and not mvn ?
Alex


pgphHktLmpcKL.pgp
Description: PGP signature


Re: Maven requiring -source 5

2006-09-30 Thread Alexandre Russel
maven is using 1.3 by default, you can change it if you want:
http://maven.apache.org/plugins/maven-compiler-plugin/howto.html
(not sure java6 is supported yet but 5 is)
alex

On Saturday 30 September 2006 17:21, Los Morales wrote:
 Hi,

 I'm fairly new to Maven 2 and I've just begun to use Mevenide for NetBeans
 6 (Dev).  When I run my compile phase, maven is complaining about the
 source level for Java being at 1.3 instead of 6:  generics are not
 supported in -source 1.3

 I'm not sure why the source is set to 1.3 when all I have installed on my
 machine is Java 6 and there is no setting on NetBeans which is forcing 1.3
 compliance so I figured it must be a setting in Maven and/or mevenide.

 How can I force java 6 compliance with Maven compile?  thanks in advanced.

 -los

 _
 Express yourself - download free Windows Live Messenger themes!
 http://clk.atdmt.com/MSN/go/msnnkwme002001msn/direct/01/?href=http://im
agine-msn.com/themes/vibe/default.aspx?locale=en-ussource=hmtagline


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


pgpwHQ5n32xSP.pgp
Description: PGP signature


Re: Creating a Java application

2006-09-21 Thread Alexandre Russel
Do you know POMStrap ?
http://pomstrap.prefetch.com/en/index.xml

Commande Line Interface

POMStrap can work as an application bootstrap. It just requires a pom file 
(Maven 2 project file) and a class/method to fetch all required dependencies 
and launch the application using a command line syntax such as:

java -jar pomstrap-1.0.4.jar groupId:artifact:version classname[:method] 
[method args]

for example:

java -jar pomstrap-1.0.4.jar pomstrap:testApp:1.0 
com.prefetch.pomstrap.App:run

If no method is provided it will try to start the classical java static main 
method.
On Thursday 21 September 2006 10:44, [EMAIL PROTECTED] wrote:
 10x Martin.

 The assembly plugin just bundles binaries and (optionally) sources.
 What I'd like is something that I can open and execute.
 For example, uberjar bundles the java application, along with all its
 dependencies into one executable jar (you need only to specify in your
 project properties what is the main class). When you execute the jar -
 the application opens.

 As I understood from the assembly plugin site, it is not built to do
 such things.

 Please inform me if I missed something.



 -Original Message-
 From: Martin Gilday [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 21, 2006 11:32 AM
 To: Maven Users List
 Subject: Re: Creating a Java application


 I think you need the Assembly plugin
 http://maven.apache.org/plugins/maven-assembly-plugin/introduction.html

 HTH,
 Martin.

 - Original message -
 From: [EMAIL PROTECTED]
 To: users@maven.apache.org
 Date: Thu, 21 Sep 2006 04:22:57 -0400
 Subject: Creating a Java application

 I know of two plugins for the purpose of creating a Java application
 (i.e. something that packages an application along with it's
 dependencies):



 1.  uberjar
 2.  javaapp



 However, both of them look like history.



 Does anyone know of such a plugin that works with Maven2 ?





 Thanks ...


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


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


pgp2vAMb5HTB4.pgp
Description: PGP signature


Re: How to build JEE 5 EJB-JARs?

2006-09-07 Thread Alexandre Russel

  According to BetterBuildsWithMaven.pdf I switched from
  packagingejb/packaging to packagingejb3/packaging. Unfortunately
 
  change it to jar.
  Alex

 You mean there is no difference between ejb3 and jar? For what is ejb3
 good then?
no, I mean the packaging is the same. It is just a jar with a persistence.xml 
file. the Ejb3 extension/packaging comes from an early draft of the spec. 
That didn't make to the final draft.
The packaging and what ejb3 are good for are unrelated :-)
alex


pgpw6Jzc1WfHU.pgp
Description: PGP signature


Re: How to build JEE 5 EJB-JARs?

2006-09-06 Thread Alexandre Russel

 According to BetterBuildsWithMaven.pdf I switched from
 packagingejb/packaging to packagingejb3/packaging. Unfortunately
change it to jar.
Alex


pgpp7eq4UoGJr.pgp
Description: PGP signature


Re: executing after being built with Maven2

2006-08-31 Thread Alexandre Russel

 After a package I would like to: java -jar SNAPSHOT.jar and have it work.
If it is for testing, I just use Run inside eclipse. The maven 2 plugin set 
the classpath properly so eclipse can launch my app.


pgpq9RHhrhvmG.pgp
Description: PGP signature


Re: How to know/specify version of plugin?

2006-08-29 Thread Alexandre Russel
On Tuesday 29 August 2006 05:25, Dave Hoffer wrote:
 I seem to notice that plugin versions are typically not specified in the
 project's pom, is this correct?  How do you know what version it will
 look for if the version is not specified? 
It will use the latest.
 Is the version dependent on 
 the specified pluginRepositories?
just add a version element if you want a specific version.
For more on plugin have a look at chapter 2.7 of the maven book.
alex


pgpCys3dWnowh.pgp
Description: PGP signature


Re: Cargo Goal

2006-08-29 Thread Alexandre Russel
On Wednesday 30 August 2006 00:51, Douglas Ferguson wrote:
 Cargo was working for me and suddenly it just stopped working and
 starting giving this error:

http://cargo.codehaus.org/Mailing+Lists
The cargo mailing list is more appropriate for cargo related issue.
Alex


pgpEm6nnhR85t.pgp
Description: PGP signature


Re: Use different database for test and package phase

2006-08-22 Thread Alexandre Russel
On Tuesday 22 August 2006 16:15, fagfa wrote:
I had the same problem testing ejb. The unit test where using toplink but 
package needed to use jboss. 
You could use mvn test, and then instead of using -Ddb=mysql, use the antrun 
plugin to copy mysq.properties into /META-INF and maybe delete the hsql file.
 Hi, I have a database specific resource file which needs to copy to
 classes/META-INF and as a result, package into the jar file, for example,
 hsql.properties, mysql.properties, etc. I specify this database property in
 POM, and default value is hsql.

 The problem is that I only use hsql for my unit test. So if I just do mvn
 test, it works perfectly. But if I do mvn -Ddb=mysql package, I got a
 problem, apparently. mysql.properties is copied to class/META-INF and
 broke my unit tests, which are executed before package phase and using
 hsql database.

 Any suggestions? Thanks,


pgpqcrj5ZLXib.pgp
Description: PGP signature


Re: Use different database for test and package phase

2006-08-22 Thread Alexandre Russel
On Tuesday 22 August 2006 19:48, fagfa wrote:
 Thanks. But I do want to use -D to pass database variable since I also
 package for other databases, such as oracle, db2, psql, etc.
Then using the antrun plugin you could copy the file ${myname}.properties to 
META-INF and use the -D to give a value to myname.

 Alexandre Russel-2 wrote:
  On Tuesday 22 August 2006 16:15, fagfa wrote:
  I had the same problem testing ejb. The unit test where using toplink but
  package needed to use jboss.
  You could use mvn test, and then instead of using -Ddb=mysql, use the
  antrun
  plugin to copy mysq.properties into /META-INF and maybe delete the hsql
  file.
 
  Hi, I have a database specific resource file which needs to copy to
  classes/META-INF and as a result, package into the jar file, for
  example,
  hsql.properties, mysql.properties, etc. I specify this database property
  in
  POM, and default value is hsql.
 
  The problem is that I only use hsql for my unit test. So if I just do
  mvn
  test, it works perfectly. But if I do mvn -Ddb=mysql package, I got a
  problem, apparently. mysql.properties is copied to class/META-INF and
  broke my unit tests, which are executed before package phase and using
  hsql database.
 
  Any suggestions? Thanks,


pgpkcNDqETfEK.pgp
Description: PGP signature


Re: How to copy directory to WEB-INF/lib directory fir war file

2006-08-22 Thread Alexandre Russel
On Tuesday 22 August 2006 23:29, Gautham Pamu wrote:
 I want to package a directory in the WEB-INF/lib directory for war file. Is
 it possible to copy directories to
 lib using maven war plugin.
you can create a module for the directory then create a dependency to that 
module in the war module. The module created will then be added to your 
WEB-INF/lib directory.
Alex


pgp3lbl7knuNP.pgp
Description: PGP signature


Re: EJB Unit tests with Maven 2

2006-01-27 Thread Alexandre Russel

hi,
as far as I know the discussion still goes on on how to set up the test 
in maven2:

http://docs.codehaus.org/display/MAVEN/best+practices+-+testing+strategies

waiting for it to finish, I am using a very cheap hack to test my ejb(I 
plan to write a real cactus/cargo plugin for maven2 but want to be sure 
how to set up the directories structure first):



   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
 version2.0/version
   /plugin
   plugin
 artifactIdmaven-antrun-plugin/artifactId
 version1.0/version
 executions
   execution
 idloadJar/id
 phasetest-compile/phase
 configuration
   tasks
 !-- Creating and deploying the ejb-jar --
 echo message=${basedir}/${project.build.Directory}/
 echo message=${project.name}/
 mkdir dir=${project.build.Directory}/tmp /
 jar jarfile=target/tmp/vega.jar basedir=target/classes/
 copy toDir=${testServer} file=target/tmp/vega.jar/
 sleep seconds=6/
   !-- Creating and deploying the cactus-web-jar --
   war destFile=target/tmp/vega.war 
webxml=src/test/resources/web.xml

 classes dir=target/test-classes /
 classes file=src/test/resources/cactus.properties /
   /war
   copy 
toDir=/usr/local/jboss-4.0.2/server/default/deploy 
file=target/tmp/vega.war /

   sleep seconds=4/
   /tasks
 /configuration
 goals
   goalrun/goal
 /goals
   /execution
   execution
 idunloadJar/id
 phasetest/phase
 configuration
   tasks
 delete dir=target/tmp /
 !-- delete 
file=/usr/local/jboss-4.0.2/server/default/deploy/vega.jar/ --
 !-- delete 
file=/usr/local/jboss-4.0.2/server/default/deploy/vega.war/ --

   /tasks
 /configuration
 goals
   goalrun/goal
 /goals
   /execution
 /executions
   /plugin


Hi Alan,

Thanks for your reply. I think this discussion applies to Maven 1 since
Cactus is mentioned. I'm reasonably sure there is no Cactus plugin for Maven
2 as yet. 


The whole area is indeed a bit of smoke and mirrors, looks like nobody
develops EJBs with Maven 2 (?!).

Anyway, I think Maven 2 is a bit fresh and I am currently in a process of
downgrading to Maven 1 to see what happens. At least I should be able to run
Cactus cases.

The whole process would do just fine with a bit of howto (not that I am
volunteering, but who knows :-))

Regards,

Maciej


 


-Original Message-
From: Allan Ramirez [mailto:[EMAIL PROTECTED]
Sent: Friday, 27 January 2006 4:06 PM
To: Maven Users List
Subject: Re: EJB Unit tests with Maven 2

Hi there,

Try this link
http://www.nabble.com/what-phase-for-ejb-unit-test--t878443.html#a2276847
It might help :)

-allan

Maciej Mastalarczuk wrote:

   


Hi Everybody,



I am a recent convert from Ant to Maven and as suggested on Maven's
 


website
   


I started from using Maven 2. Does anybody have any good pattern for
unit-testing EJBs?



Sorry if this is a FAQ, but I really could not find any answer anywhere.
Tried to use Cargo to do the deployments from within JUnit, but it does
 


not
   


seem to support JBoss 3 (???). I am also aware that I could use ant
 


scripts

from within Maven, but it kinda defeats the purpose of using Maven in the
   


first place, doesn't it?



Thanks in advance and regards



Maciej








No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.23/242 - Release Date:
 


1/26/2006
   

 






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


 




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



Re: Maven JBoss EJB3 Embeddable

2006-01-23 Thread Alexandre Russel

maybe system dependencies can help you
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
alex
Marco Mistroni a écrit :


hello all,
 i am trying to run some unit tests for my ejb3 using jboss ejb3 embeddable
contianer.
In order to successfully have the jboss embeddable runninng for my tests, i
need to include
in my classpath couple of things from jboss embeddable distribution

-  a lib directory, which contains all the needed jars
- a configuration directory that contains some jboss config stuff

now, i can get away with latter by placingn everything in my testdir/conf,
but
for the former i want to avoid to list all possible jar dependencies and
just put
a directory in the classpath

is it possible to do that using Maven?

thanks in advance and regards
marco

 




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



Re: [m202] Ant based maven plugin problem

2006-01-23 Thread Alexandre Russel

Hi john,
I had the same problem and running the -U flag didn't help.
I think the problem was solved on version 2.1.SNAPSHOT(version 329948):
http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugin-tools/maven-plugin-tools-api
but the most recent available is 2.0.2:
http://www.ibiblio.org/maven2/org/apache/maven/maven-plugin-tools-api/

John Casey a écrit :

Looks like you need to get the latest maven-plugin-plugin version. You 
can do this by issuing the following on your plugin project:


mvn -U package

The -U flag will force an update check for the plugin-plugin.

HTH,

john

Guo, Jiaqi wrote:

I used to work on a maven project with several java goals and ant 
goals. It worked fine on maven 2.0.1 and maven 2.0.2-SNAPSHOT which I 
checked out from svn maven-2.0.x and manually built before 2.0.2 was 
released. After I switch the maven to 2.0.2 released version, it 
throws exception on mvn package or mvn compile. I pasted the 
trace stack in the end of this mail.


What I did is following 
http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html 
and changing the version of two dependencies from 2.0.1 to 2.0.2. 
(Same exception occurs without this version change). If I take out 
the maven-plugin-tools-ant dependency from 
build/plugins/plugin/maven-plugin-plugin the error is gone, of course 
the ant goals are gone as well.


Has anyone seen the similar problem in 2.0.2? Should I do anything 
different than the ant plugin development guide? Is there any 
existing working ant based maven plugin that I can refer to? Thanks 
in advance.




Regards

Jiaqi Guo
http://www.cyclopsgroup.com






..
[INFO] [plugin:descriptor]
[INFO] 
- 


---
[ERROR] FATAL ERROR
[INFO] 
- 


---
[INFO] 
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExt 

ractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descriptor 


/PluginDescriptor;)Ljava/util/List;
[INFO] 
- 


---
[INFO] Trace
java.lang.AbstractMethodError: 
org.apache.maven.tools.plugin.extractor.AbstractS
criptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache 


/maven/plugin/descriptor/PluginDescriptor;)Ljava/util/List;
   at 
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescripto

rExtractor.execute(AbstractScriptedMojoDescriptorExtractor.java:32)
   at 
org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePlug

inDescriptor(DefaultMojoScanner.java:69)
   at 
org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(Abstract

GeneratorMojo.java:99)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:415)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:531)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi

fecycle(DefaultLifecycleExecutor.java:472)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

ltLifecycleExecutor.java:451)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

dleFailures(DefaultLifecycleExecutor.java:303)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

ts(DefaultLifecycleExecutor.java:270)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.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(DelegatingMethodAcces

sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

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


   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 
- 


---
[INFO] Total time: 17 seconds
[INFO] Finished at: Sat Jan 21 11:56:56 CST 2006
[INFO] Final Memory: 3M/7M
[INFO] 
- 


---

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




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

[m2]Guide to Developing Ant Plugins error

2006-01-20 Thread Alexandre Russel

Hi,
I am following the Guide to Developing Ant Plugins, first example hello 
world plugin:
here is the error and at the end of the mail the exact file I 
used(cut/paste from the guide):



mvn install
[INFO] Scanning for projects...
[INFO] 


[INFO] Building Hello Plugin
[INFO]task-segment: [install]
[INFO] 


[WARNING]
   Artifact org.apache.maven:maven-plugin-descriptor:jar:2.0-beta-3 
retains local scope 'runtime' overriding broader scope 'compile'
   given by a dependency. If this is not intended, modify or remove 
the local scope.


[WARNING]
   Artifact 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7 retains 
local scope 'runtime' overriding broader scope 'compile'
   given by a dependency. If this is not intended, modify or remove 
the local scope.


[WARNING]
   Artifact org.apache.maven:maven-plugin-tools-api:jar:2.0-beta-3 
retains local scope 'runtime' overriding broader scope 'compile'
   given by a dependency. If this is not intended, modify or remove 
the local scope.


[INFO] [plugin:descriptor]
[INFO] 


[ERROR] FATAL ERROR
[INFO] 

[INFO] 
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descriptor/PluginDescriptor;)Ljava/util/List;
[INFO] 


[INFO] Trace
java.lang.AbstractMethodError: 
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descriptor/PluginDescriptor;)Ljava/util/List;
   at 
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.execute(AbstractScriptedMojoDescriptorExtractor.java:34)
   at 
org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:69)
   at 
org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:95)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
   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)
[INFO] 


[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Jan 20 10:43:32 CET 2006
[INFO] Final Memory: 4M/8M
[INFO] 


/hello-plugin$ tree
.
|-- pom.xml
|-- pom.xml~
`-- src
   `-- main
   `-- script
   |-- hello.build.xml
   `-- hello.mojos.xml

3 directories, 4 files
/hello-plugin$ cat pom.xml
project
 modelVersion4.0.0/modelVersion

 groupIdtest/groupId
 artifactIdhello-plugin/artifactId
 version1.0-SNAPSHOT/version

 packagingmaven-plugin/packaging

 nameHello Plugin/name

 dependencies
   dependency
 groupIdorg.apache.maven/groupId
 artifactIdmaven-script-ant/artifactId
 version2.0.1/version
   /dependency
 /dependencies

 build
   plugins
 plugin
   !-- NOTE: We don't need groupId if the plugin's groupId is
org.apache.maven.plugins OR org.codehaus.mojo.
We also don't have to specify a version, since Maven can
automatically resolve the newest one.
   

maven-surefire-pluging doesn't pick home-made test suite

2006-01-19 Thread Alexandre Russel

Hi,
I have 3 files, one(SpiderSiteTest.java) with the main method calling a 
test suite Object. The test suite is SpiderPageSuite, the only thing it 
does is an empty addTest and create one Test object and run it. The test 
Obect (SpiderPageTest) implements run(TestResult result), not doing 
anything inside.
When I run manually the main method of SpiderSiteTest, as expected, the 
result is:

Time: 0,003

OK (1 test)

But when I do mvn test the result is:
---
T E S T S
---
There are no test to run.

Results :
[surefire] Tests run: 0, Failures: 0, Errors: 0

How can I tell surefire that a testSuite is waiting for it?
my files are at the end of the mail.
thanks for any help,
alex
---
public class SpiderPageTest implements Test {

   private final String fName;
   public SpiderPageTest(String name) {
   fName= name;
   }
   public int countTestCases() {
   return 1;
   }


   public void run(TestResult result) {
   result.startTest(this); 
   try {

   //do nothing
   }
   catch (AssertionFailedError e) { //1
   result.addFailure(this, e);
   }
   catch (Throwable e) { // 2
   result.addError(this, e);
   }
   }
}

public class SpiderSiteTest {

   public SpiderSiteTest() {
   super();
   }

   public static Test suite() throws MalformedURLException, 
IOException,SAXException {

   SpiderPageSuite spiderSuite = new SpiderPageSuite();
   TestSuite suite = new TestSuite();
   suite.addTest(spiderSuite);
   return suite;
   }
   public static void main(String[] args) throws 
MalformedURLException,IOException, SAXException {

   TestRunner.run(suite());
   }
}
---
public class SpiderPageSuite implements Test {
   public final int countTestCases() {
   return 1;
   }
   public void run(TestResult result) {
   SpiderPageTest pageTest = new SpiderPageTest(my test);
   pageTest.run(result);
   }
   public void addTest(Test test) {
   }
}

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



Re: adding local repository info to build process

2006-01-18 Thread Alexandre Russel

use the -o option to mvn(type mvn --help for more info).
alex


 Hi ,
  
 Am new to Maven.I want my build process to use the local repository rather than download the jars everytime.
  
 Where should this information be added.
  
 Can someone help??
  
 thanks




-
Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.
 




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



Re: Regarding maven2.0

2006-01-18 Thread Alexandre Russel

krishna a écrit :

Hi 
can i excludes some *.java files while compiling.please do mail me.
 


http://maven.apache.org/plugins/maven-compiler-plugin/howto.html


Thanking you.
Regards,
krishna.




Mail Disclaimer: This e-mail and any files transmitted with it are confidential and the views expressed in the same are not necessarily the views of Synechron, and its Directors, Management or Employees. This communication represents the originator's personal views and opinions. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail by error, and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. You shall be under obligation to keep the contents of this e-mail, strictly confidential and shall not disclose, disseminate or divulge the same to any Person, Company, Firm or Entity. Even though Synechron uses up-to-date virus checking software to scan it's emails please ensure you have adequate virus protection before you open or detach any documents from this transmission. Synechron does not accept any liability for viruses 
or vulnerabilities. The rights to monitor all e-mail communication through our network are reserved with us.


-
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: Having trouble with site

2006-01-18 Thread Alexandre Russel

Helck, Christopher a écrit :


I'm just converting over to m2. When I build the site I get a fatal
error. My POM has an empty reporting section. I am using a legacy
internal repo as well as ibiblio. Can someone help?
 


did you had a look at:  ebs:marketdata:1.0.7 ?


[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org/apache/velocity/runtime/defaults/velocity.properties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any resource loader.
[INFO] Velocimacro : error using  VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
be  global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [site:site]
[INFO] Generate Continuous Integration report.
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2
got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
[INFO] Generate Dependencies report.
[INFO]


[ERROR] FATAL ERROR
[INFO]


[INFO] Can't find a valid Maven project in the repository for the
artifact [ebs:marketdata:1.0.7].
[INFO]


[INFO] Trace
java.lang.IllegalArgumentException: Can't find a valid Maven project in
the repository for the artifact [ebs:marketdata:1.0.7].
   at
org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRende
rer.renderBody(DependenciesReport.java:246)
   at
org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMa
venReportRenderer.java:65)
   at
org.apache.maven.report.projectinfo.DependenciesReport.executeReport(Dep
endenciesReport.java:157)
   at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenRep
ort.java:98)
   at
org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.jav
a:802)
   at
org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
   at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:415)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:531)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:472)at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:451)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:303)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:270)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.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.jav
a:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at

Re: M2: Having trouble with site

2006-01-18 Thread Alexandre Russel

Helck, Christopher a écrit :


Yes, or at least I think so. With my browser I can go to 
http://jaws.bp.ebsdr.com/maven/ebs/poms/marketdata-1.0.7.pom (there is also a 
md5 file too). The file is clearly a maven1 pom.


then you should maybe try to transform it to maven2 pom:
http://maven.apache.org/guides/mini/guide-m1-m2.html
probably if you have the source of marketdata, the easiest would be to 
do a mvn install inside it just to check.



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



[m2]m2eclipse plugin

2006-01-16 Thread Alexandre Russel

Hi,

I tried to subscribe to the eclipse plugin mailing list but got an 
error. What is the address to subscribe? (I tried 
[EMAIL PROTECTED])


I installed the plugin and can do what is shown on the flash demo. Is 
there any way to launch m2 command (ie: mvn install ) from within 
eclipse with this plugin?



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



Re: [m2] build and copy

2006-01-16 Thread Alexandre Russel

maven antrun plugin would do that, don't know if it is the easiest way.
alex



Is there a way to copy the generated war of a build process in a 
directory (not in the repository).





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



[m2] jxr plugin: wrong link to javadoc

2006-01-11 Thread Alexandre Russel

Hi all,
I installed the jxr-plugin. It create the report well, but in the report 
the link to view javadoc is wrong. Are they any other setting  to put 
than the one on the web:

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

any help welcome, thanks in advance.
Alexandre.

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



[m2] maven-tasklist-plugin

2006-01-10 Thread Alexandre Russel

Hi all,

When  I add the maven-tasklist-plugin to  my pom.xml in the reporting 
section I got an error. Did anyone got the tasklist working on maven2?

thanks in advance.

pom.xml:
  plugin
groupIdmaven/groupId
artifactIdmaven-tasklist-plugin/artifactId
version2.3/version
   /plugin
   /plugins
 /reporting

error with -e -X arg:

[DEBUG] -- end configuration --
[INFO] 


[ERROR] FATAL ERROR
[INFO] 


[INFO] null
[INFO] 


[DEBUG] Trace
java.lang.NullPointerException
   at 
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292)
   at 
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:198)
   at 
org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultPluginManager.java:474)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(DefaultLifecycleExecutor.java:1135)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:642)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:622)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:501)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:482)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:452)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)

   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(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)
[INFO] 




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



Re: [m2] maven-tasklist-plugin

2006-01-10 Thread Alexandre Russel

Allan Ramirez a écrit :


Hi there,

I believe that the maven-tasklist-plugin is now taglist-maven-plugin. 
It is hosted in the mojo codehaus

http://mojo.codehaus.org/taglist-maven-plugin/


it works, thanks a lot :-)


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



what phase for ejb unit test?

2006-01-09 Thread Alexandre Russel

Hi,
what Build Lifecycle Phase are you using for the unit test of EJB. I 
think test is the best but it is said in the doc:
run tests using a suitable unit testing framework. These tests should 
not require the code be packaged or deployed.
The other possibility is integration test but my integration test are 
testing more than 1 ejb or an all application so it doesn't seems very 
logic.

I was wandering where other people put their test(in my case cactus test).
alexandre.

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



ejb3 plugin

2005-12-22 Thread Alexandre Russel

Hi,
I downloaded and built the maven-ejb3-plugin. Trying to make a simple 
ejb3 I got the following error.

What should I change for it to work?
thanks.


+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] 


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

[ERROR] Nonexistent component: 
org.apache.maven.lifecycle.mapping.LifecycleMappingejb3
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Cannot find lifecycle mapping for packaging: 'ejb3'.
Component descriptor cannot be found in the component repository: 
org.apache.maven.lifecycle.mapping.LifecycleMappingejb3.
[INFO] 


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot find 
lifecycle mapping for packaging: 'ejb3'.
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findMappingsForLifecycle(DefaultLifecycleExecutor.java:945)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:879)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:862)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:447)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)

   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(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.codehaus.plexus.component.repository.exception.ComponentLookupException: 
Component descriptor cannot be found in the component repository: 
org.apache.maven.lifecycle.mapping.LifecycleMappingejb3.
   at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:319)
   at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:436)
   at 
org.apache.maven.execution.MavenSession.lookup(MavenSession.java:120)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findMappingsForLifecycle(DefaultLifecycleExecutor.java:938)

   ... 17 more
[INFO] 


[INFO] Total time:  1 second
[INFO] Finished at: Thu Dec 22 13:11:48 CET 2005
[INFO] Final Memory: 1M/2M
[INFO] 




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



Re: Including Libraries Maven 2

2005-12-22 Thread Alexandre Russel


You could try to add jar.bundletrue/jar.bundle in the properties of 
your dependencies.

Alex


Hi, guys, im using maven 2, but i have a little problem...

Im working with a java project, not web enabled, just a java
project, but i cant do that maven include the external libraries
that my project needs...i try with bundleDir, bundleFileName...
Here is the structure of my project..like you see, i have a
lib directory, with 2 .jar that i need to be delivered with
the jar generated by maven.

my_project
  src
 com
net
   Service.java   
  conf

  service.xml

Local libraries
usr
   local
lib
   commons.jar
   connector.jar

But when i run 
  mvn package 


Maven generate the my_project.jar but doesnt include the
lib directory...i want that maven include /usr/local/lib/commons.jar and
/usr/local/lib/connector.jar


Well, i hope some body help me...

Thanks

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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


 




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



Re: ejb3 plugin

2005-12-22 Thread Alexandre Russel

answering my own question:
add extensionstrue/extensions .
for more info: 
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html



Hi,
I downloaded and built the maven-ejb3-plugin. Trying to make a simple 
ejb3 I got the following error.

What should I change for it to work?
thanks.


+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] 
 


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

[ERROR] Nonexistent component: 
org.apache.maven.lifecycle.mapping.LifecycleMappingejb3
[INFO] 
 


[ERROR] BUILD ERROR
[INFO] 
 


[INFO] Cannot find lifecycle mapping for packaging: 'ejb3'.
Component descriptor cannot be found in the component repository: 
org.apache.maven.lifecycle.mapping.LifecycleMappingejb3.
[INFO] 
 


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot find 
lifecycle mapping for packaging: 'ejb3'.
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findMappingsForLifecycle(DefaultLifecycleExecutor.java:945) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:879) 

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:862) 

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

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

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

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


   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(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.codehaus.plexus.component.repository.exception.ComponentLookupException: 
Component descriptor cannot be found in the component repository: 
org.apache.maven.lifecycle.mapping.LifecycleMappingejb3.
   at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:319) 

   at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:436) 

   at 
org.apache.maven.execution.MavenSession.lookup(MavenSession.java:120)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findMappingsForLifecycle(DefaultLifecycleExecutor.java:938) 


   ... 17 more
[INFO] 
 


[INFO] Total time:  1 second
[INFO] Finished at: Thu Dec 22 13:11:48 CET 2005
[INFO] Final Memory: 1M/2M
[INFO] 
 




-
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] Surefire and Cobertura reports empty

2005-11-24 Thread Alexandre Russel

Rubén Barroso a écrit :

Anyone knows why are my site surefire and cobertura reports empty? 


do you have xml file in the sufire-report directory?
Alex

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



Re: [mvn] using cactus with maven2

2005-11-21 Thread Alexandre Russel

Vincent Massol a écrit :


The recommendation right now (while waiting for a proper cactus m2 plugin)
is to use Cargo to all container manipulations (http://cargo.codehaus.org).
 


thanks for your answer. I am trying to use cargo.
My pom.xml is:

 build
   plugins
 plugin
   artifactIdcargo-maven2-plugin/artifactId
   groupIdorg.codehaus.cargo.maven2/groupId
   version0.7-SNAPSHOT/version
   configuration
 container
 containerIdjboss/containerId
 home/usr/local/jboss-4.0.2/home
 /container
   /configuration
 /plugin

trying mvn cargo:start I got:

Downloading: 
http://cargo.codehaus.org/dist2/geronimo-spec/geronimo-spec-j2ee-deployment/1.1-rc4/geronimo-spec-j2ee-deployment-1.1-rc4.pom
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


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


Project ID: geronimo-spec:geronimo-spec-j2ee-deployment

Reason: Error getting POM for 
'geronimo-spec:geronimo-spec-j2ee-deployment' from the repository: Error 
transferring file

 geronimo-spec:geronimo-spec-j2ee-deployment:1.1-rc4:pom

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 cargo repository (http://cargo.codehaus.org/dist2),
 snapshots (http://snapshots.maven.codehaus.org/maven2)

thanks
Alex


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