Re: What is Deployment Repository Directory in 1.0.3-SNAPSHOT ?
It's an internal snapshot repository, so you won't need an external snapshot repository Emmanuel Olivier Lamy a écrit : Hi, I would like to know what is this ? If I use a build definition with deploy, my distribution management will be override ? - Olivier This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. ** Ce message electronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci apres le message ), sont confidentiels et destines exclusivement a l'usage de la personne a laquelle ils sont adresses. Si vous avez recu ce message par erreur, merci de le renvoyer a son emetteur et de le detruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressement autorisees de ce message, sont interdites. **
Re: [m2] How to configure maven-antrun plugin without binding to a lifecycle phase
Dan, That's actually a great idea. Let me try that, but that could be what I was looking for ... Thanks Chris --- dan tran [EMAIL PROTECTED] wrote: Bind antrun:run to a phase but profile it http://maven.apache.org/guides/introduction/introduction-to-profiles.html -D On 3/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Doesn't really work, as it doesn't execute anything if you configure the antrun plugin according to the docs: plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks !-- Place any ant task here. You can add anything you can add between target and /target in a build.xml. -- /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin However, it looks as if we can do the plugin config outside the execution tag (e.g. create a global plugin config which is valid across various lifecycle phases). plugin artifactIdmaven-antrun-plugin/artifactId configuration tasks !-- Place any ant task here. You can add anything you can add between target and /target in a build.xml. -- /tasks /configuration goals goalrun/goal /goals /plugin This way we can simply invoke mvn antrun:run and it executes the specified ANT tasks. However, this causes a different problem. What if an engineer has to invoke different ANT targets (e.g. one to deploy an app on an app server, one to undeploy the app from the app server, one to restart the app server)? That's not possible as there is only a global config which always executes the same set of ANT tasks when executing mvn antrun:run. Perhaps that could be simply resolved by specifying the ANT task on the command-line (e.g. mvn -Dant.task=deploy antrun:run). Any ideas on whether that's possible? Thanks, Chris But that means it only works if you have a single ANT target --- dan tran [EMAIL PROTECTED] wrote: wonder it this would work maven antrun:run -D On 3/15/06, Chris Hagmann [EMAIL PROTECTED] wrote: We need to execute some ANT tasks (e.g. for redeploying a server configuration) which we only need to execute every so often, but which are not part of the regular build lifecycle. Hence we need to configure the plugin, but cannot bind it to any of the lifecycle phases of Maven 2. How can we do that? Thanks, Chris - 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: [m2] How to configure maven-antrun plugin without binding to a lifecycle phase
Just by specifying the configuration outside of an execution: build plugins plugin artifactIdmaven-antrun-plugin/artifactId configuration tasks !-- Place any ant task here. You can add anything you can add between target and /target in a build.xml. -- /tasks /configuration /plugin /plugins /build -Stephen On 3/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: We need to execute some ANT tasks (e.g. for redeploying a server configuration) which we only need to execute every so often, but which are not part of the regular build lifecycle. Hence we need to configure the plugin, but cannot bind it to any of the lifecycle phases of Maven 2. How can we do that? Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
M2 scope dependency
Hi , I have a question regarding a dependency which i require during compilation but when my war is to be created i dont want the jar to be bundled with the application in the WEB-INF\lib directory ..what scope should i use to define this dependency? regards, Javed
Re: M2 scope dependency
ok scope to be used = provided :P javed On 3/16/06, javed mandary [EMAIL PROTECTED] wrote: Hi , I have a question regarding a dependency which i require during compilation but when my war is to be created i dont want the jar to be bundled with the application in the WEB-INF\lib directory ..what scope should i use to define this dependency? regards, Javed
Re: [m2] How to configure maven-antrun plugin without binding to a lifecycle phase
Hi If you want to use some of the meta data from Mavens pom file you could always use the maven-ant tasks. I have used it for running Fit integration tests using a plain ant build.xml file which is including the Maven pom.xml file and thereby having the dependency path from Maven. A small snippet could look like: ?xml version=1.0 encoding=UTF-8? project name=test-integration basedir=. default=maven xmlns:artifact=urn:maven-artifact-ant typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpath pathelement location=lib/maven-artifact-ant-2.0.2-dep.jar / /classpath /typedef target name=maven_userregister artifact:dependencies pathid=mavendependencies artifact:pom file=pom.xml / /artifact:dependencies property name=maven.dependencies refid=mavendependencies / !--echo ${maven.dependencies} /echo-- java classname=fit.FileRunner failonerror=true arg value=src/test/java/org/grouter/integrationtest.html/ arg value=results_userregister.html/ classpath pathelement location=lib/fit.jar / pathelement location=target/classes/ / pathelement location=target/test-classes/ / pathelement path=${maven.dependencies}/ /classpath /java /target /project Kind regards Georges Polyzois - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : using classes from another web project
Hi, Do you have set the dependency in project B to project A (type war). I think but not really sure ( ;-) ) this will be included in the next war plugin version [1] (try the snapshot). But for the version 2.0-beta-2, it doesn't work [2]. But for the moment if it's a share component just add a new module (type jar) with dependency to this in project A and B ? - Olivier [1] http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-war-plugin/s rc/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java?rev=385799 view=markup method buildWebapp() [2] http://svn.apache.org/viewcvs.cgi/maven/components/tags/maven-war-plugin -2.0-beta-2/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.ja va?rev=321457view=markup method buildWebapp() -Message d'origine- De : Christian Mouttet [mailto:[EMAIL PROTECTED] Envoyé : jeudi 16 mars 2006 09:44 À : Maven Users List Objet : Re: using classes from another web project any ideas? Am Mittwoch, 15. März 2006 16:23 schrieb Christian Mouttet: Hi all, I have two web applications that share code. An implementation of javax.servlet.Filter in Project A should be used by Project B. With Maven-1 I built a project-a-x.y.jar and defined a dependency to it. The generated project-a.war could be deployed on the application server. In the pom.xml (Maven-2) I have configured packagingwar/packaging and only the .war file is generated (installed or deployed to central repository). How is it possible to build .jar AND .war files of this type of projects? Regards, -chris ** Diese E-Mail wurde auf Viren ueberprueft. [EMAIL PROTECTED] ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] quickfix for findbugs and javancss reports
To All, Both the findbugs and javancss plugins are not working correctly. A quickfix for these plugins is adding the following dependency to the pom in your local repo: dependency groupIdjaxen/groupId artifactIdjaxen/artifactId version1.1-beta-7/version /dependency Jira issue http://jira.codehaus.org/browse/MEV-359 is created to solve this dependency problem. Rik
surefire plugin and TestNG plugin
Hello all, i have recently used the testng plugin for Maven2, and i think i have found a bug :( here's my pom project modelVersion4.0.0/modelVersion groupIdroot/groupId artifactIdejbs/artifactId packagingjar/packaging version1.0/version nameenterprise java beans/name parent groupIdroot/groupId artifactIdproject/artifactId version1.0/version /parent dependencies dependency groupIdroot/groupId artifactIdshared/artifactId /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId scopeprovided/scope /dependency dependency groupIdjboss/groupId artifactIdjboss-ejb3x/artifactId version4.0.4/version scopesystem/scope systemPath${basedir}\lib\jboss-ejb3x-4.0.4.jar/systemPath /dependency dependency groupIdjboss/groupId artifactIdejb3-persistence/artifactId version4.0.4/version scopesystem/scope systemPath${basedir}\lib\ejb3-persistence-4.0.4.jar/systemPath /dependency dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version4.6.1/version scopetest/scope classifierjdk15/classifier /dependency /dependencies build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration encodingiso-8859-1/encoding /configuration /plugin plugin artifactIdmaven-surefire-plugin/artifactId configuration suiteXmlFilessuiteXmlFiletestng.xml /suiteXmlFile/suiteXmlFiles /configuration /plugin /plugins /build /project Although the testng.xml has this content !DOCTYPE suite SYSTEM http://beust.com/testng/testng-1.0.dtd; suite name=Example test name=Simple example !--classes class name=example1.Test1 / class name=example1.EJB3Container / /classes-- groups run include name=integration.ejb3/ /run /groups packages package name=example1/ /packages /test /suite This test (the only one present so far) does not belong to the group configured in testng package example1; import org.testng.annotations.Configuration; import org.testng.annotations.ExpectedExceptions; import org.testng.annotations.Test; /** * This class * * @author Cedric Beust, Apr 26, 2004 * */ @Test(groups = { functest }, enabled = true ) public class Test1 { @Configuration(beforeTestClass = true) public static void setupClass() { ppp(SETTING UP THE CLASS); }... anyone could help/have a look? i would do it myself but i have never debugged a maven plugin... regards marco
Problem ejbdoclet and ejb:install
Hello, I'm using ejbdoclet to generate the EJB Classes for a project, that are put in the directory target/xdoclet/ejbdoclet of my project.. When I launche ejb:install, these classes are not included in my ejb-jar. What have I got to do for this ? Thanks in advance. ___ _ _ _ bgOnline
Re: using classes from another web project
Olivier, thanks for your response. It seems to me that the new-module alternative is the only solution. I imagine that dependencies to type-war projects can't correctly be loaded by the classloader. Just want to be sure that there isn't an official resolution for such kind of project dependencies. That's a pity since I have to refactor all my maven-1 web projects. :-( -chris Am Donnerstag, 16. März 2006 09:54 schrieb Olivier Lamy: Hi, Do you have set the dependency in project B to project A (type war). I think but not really sure ( ;-) ) this will be included in the next war plugin version [1] (try the snapshot). But for the version 2.0-beta-2, it doesn't work [2]. But for the moment if it's a share component just add a new module (type jar) with dependency to this in project A and B ? - Olivier [1] http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-war-plugin/s rc/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java?rev=385799 view=markup method buildWebapp() [2] http://svn.apache.org/viewcvs.cgi/maven/components/tags/maven-war-plugin -2.0-beta-2/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.ja va?rev=321457view=markup method buildWebapp() -Message d'origine- De : Christian Mouttet [mailto:[EMAIL PROTECTED] Envoyé : jeudi 16 mars 2006 09:44 À : Maven Users List Objet : Re: using classes from another web project any ideas? Am Mittwoch, 15. März 2006 16:23 schrieb Christian Mouttet: Hi all, I have two web applications that share code. An implementation of javax.servlet.Filter in Project A should be used by Project B. With Maven-1 I built a project-a-x.y.jar and defined a dependency to it. The generated project-a.war could be deployed on the application server. In the pom.xml (Maven-2) I have configured packagingwar/packaging and only the .war file is generated (installed or deployed to central repository). How is it possible to build .jar AND .war files of this type of projects? Regards, -chris ** Diese E-Mail wurde auf Viren ueberprueft. [EMAIL PROTECTED] ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. --- --- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. --- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- IT2media GmbH Co. KG Geschäftsstelle München Kontakt: Fürstenrieder Straße 265, 81377 München Postfach 70 08 40, 81308 München Telefon:+49/(0)89/74126-399 Telefax:+49/(0)89/74126-201 mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
acces to http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-core/ 403 Forbidden
Hi, Trying http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-core/. I have the following response : An Exception Has Occurred Access to maven/components/trunk/maven-core is forbidden. HTTP Response Status 403 Forbidden Python Traceback Traceback (most recent call last): File /usr/local/viewcvs-1.0-dev/lib/viewcvs.py, line 3351, in main request.run_viewcvs() File /usr/local/viewcvs-1.0-dev/lib/viewcvs.py, line 228, in run_viewcvs % self.where, '403 Forbidden') ViewCVSException: 403 Forbidden: Access to maven/components/trunk/maven-core is forbidden. Why ? - Olivier This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. ** Ce message electronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci apres le message ), sont confidentiels et destines exclusivement a l'usage de la personne a laquelle ils sont adresses. Si vous avez recu ce message par erreur, merci de le renvoyer a son emetteur et de le detruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressement autorisees de ce message, sont interdites. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: [m2] JVM BUG AND FIX: Getting an exception on windows whe n fi ring up an RMI Service in surefire unit tests
Hi Todd, Can you copy in the stack trace and detail? -e -X switches. Will have a gander and see if I can offer any suggestions. Chris _ From: Todd Nine [mailto:[EMAIL PROTECTED] Sent: 15 March 2006 18:33 To: Stevenson, Chris Subject: Re: FW: [m2] JVM BUG AND FIX: Getting an exception on windows when fi ring up an RMI Service in surefire unit tests Hi Chris, I currently have my maven installed in the directory C:\maven-2.0.2 so I don't have any spaces. Is there a limitation on the path length of the project as well? I'm using windows 2000 and the path to my project is quite long C:\appdev\proj\dev\20050101\app\profile\eventgateway\lpsload. Where did you find the documentation on these problems? Thanks, Todd On 3/15/06, Stevenson, Chris [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Todd, See below, perhaps this may help. Oddly I have been doing the same thing today...:-) Chris -Original Message- From: Stevenson, Chris [mailto: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Sent: 15 March 2006 17:34 To: 'Maven Users List' Subject: [m2] JVM BUG AND FIX: Getting an exception on windows when firing up an RMI Service in surefire unit tests Dear All, Should anybody be in the scenario that I've been in today, trying vainly for hours to get an rmi service and proxy running in surefire to no avail, and they are getting the exception something like that included below, then I have hope. This is a JVM error which is manifested when you try and invoke an RMI service inside a directory in windows which has spaces in the path. The way to get around this problem is to move your maven install dir to a directory (ex c:\maven\m2.0.2) which contains no spaces. You also need to repoint your M2_HOME variable to this dir. It would seem that the RMI server that is being created is invoked from the m2_HOME/bin directory and if you have spaces you get this error. Rather poorly this bug seems to have been in the JVM since 1.2 I hope this is useful to someone other than me. [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4496398 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4496398 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4496398 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4496398 Chris java.net.MalformedURLException: no protocol: Files/Apache java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.net.MalformedURLException: no protocol: Files/Apache at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at java.rmi.Naming.lookup (Naming.java:84) at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(RmiClientIn terceptor.java:156) at org.springframework.remoting.rmi.RmiClientInterceptor.prepare(RmiClientInter ceptor.java :125) at org.springframework.remoting.rmi.RmiClientInterceptor.afterPropertiesSet(Rmi ClientInterceptor.java:110) at org.springframework.remoting.rmi.RmiProxyFactoryBean.afterPropertiesSet(RmiP roxyFactoryBean.java :66) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .createBean(AbstractAutowireCapableBeanFactory.java:363) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra ctBeanFactory.java:226) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (Abstra ctBeanFactory.java:147) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst antiateSingletons(DefaultListableBeanFactory.java:269) at org.springframework.context.support.AbstractApplicationContext.refresh (Abstr actApplicationContext.java:320) at org.springframework.context.support.ClassPathXmlApplicationContext.init(Cl assPathXmlApplicationContext.java:87) at org.springframework.context.support.ClassPathXmlApplicationContext .init(Cl assPathXmlApplicationContext.java:72) at org.springframework.context.support.ClassPathXmlApplicationContext.init(Cl assPathXmlApplicationContext.java:63) at com.drkw.cpds.proxy.config.SpringEnvironmentApplicationContext.getSpringAppC ontext(SpringEnvironmentApplicationContext.java:52) at com.drkw.cpds.proxy.config.SpringEnvironmentApplicationContext.getAppContext (SpringEnvironmentApplicationContext.java:27) at com.drkw.cpds.impl.proxy.authorisation.AuthorisationProxyFactory.constructPr oxy(AuthorisationProxyFactory.java:68) at com.drkw.cpds.impl.proxy.authorisation.AuthorisationProxyFactory.getProxyIns tance(AuthorisationProxyFactory.java:26) at com.drkw.cpds.it.authorisation.TestCasePing.testPing (TestCasePing.java:20) 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
RE : using classes from another web project
New module is great because it will be published as an artifact. Then you can share this with other applications. But I'm not sure of this but I think a war is added to the classpath. Just try ;-) - Olivier -Message d'origine- De : Christian Mouttet [mailto:[EMAIL PROTECTED] Envoyé : jeudi 16 mars 2006 10:38 À : Maven Users List Objet : Re: using classes from another web project Olivier, thanks for your response. It seems to me that the new-module alternative is the only solution. I imagine that dependencies to type-war projects can't correctly be loaded by the classloader. Just want to be sure that there isn't an official resolution for such kind of project dependencies. That's a pity since I have to refactor all my maven-1 web projects. :-( -chris Am Donnerstag, 16. März 2006 09:54 schrieb Olivier Lamy: Hi, Do you have set the dependency in project B to project A (type war). I think but not really sure ( ;-) ) this will be included in the next war plugin version [1] (try the snapshot). But for the version 2.0-beta-2, it doesn't work [2]. But for the moment if it's a share component just add a new module (type jar) with dependency to this in project A and B ? - Olivier [1] http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-war-plugin /s rc/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java?rev=385799 view=markup method buildWebapp() [2] http://svn.apache.org/viewcvs.cgi/maven/components/tags/maven-war-plug in -2.0-beta-2/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.ja va?rev=321457view=markup method buildWebapp() -Message d'origine- De : Christian Mouttet [mailto:[EMAIL PROTECTED] Envoyé : jeudi 16 mars 2006 09:44 À : Maven Users List Objet : Re: using classes from another web project any ideas? Am Mittwoch, 15. März 2006 16:23 schrieb Christian Mouttet: Hi all, I have two web applications that share code. An implementation of javax.servlet.Filter in Project A should be used by Project B. With Maven-1 I built a project-a-x.y.jar and defined a dependency to it. The generated project-a.war could be deployed on the application server. In the pom.xml (Maven-2) I have configured packagingwar/packaging and only the .war file is generated (installed or deployed to central repository). How is it possible to build .jar AND .war files of this type of projects? Regards, -chris ** Diese E-Mail wurde auf Viren ueberprueft. [EMAIL PROTECTED] ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. --- --- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. --- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- IT2media GmbH Co. KG Geschäftsstelle München Kontakt: Fürstenrieder Straße 265, 81377 München Postfach 70 08 40, 81308 München Telefon:+49/(0)89/74126-399 Telefax:+49/(0)89/74126-201 mailto:[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: using classes from another web project
merci! Am Donnerstag, 16. März 2006 11:04 schrieb Olivier Lamy: New module is great because it will be published as an artifact. Then you can share this with other applications. But I'm not sure of this but I think a war is added to the classpath. Just try ;-) - Olivier ** Diese E-Mail wurde auf Viren ueberprueft. [EMAIL PROTECTED] ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
plugin:addPluginArtifactMetadata how do I use it?
Hi, how do I use the mojo/hoal plugin:addPluginArtifactMetadata? Can it be used to manually put additional files into the plugin? Andreas Ebbert-Karroum Software Design Engineer - Nokia Networks Services / Middleware phone: +49-211-94123928, fax: +49-211-94123838 Heltorfer Straße 1, 40472 Düsseldorf, Germany This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nokia.com/
Re: Developing an Ant Maven plugin
Why just don't use antrun plugin? http://maven.apache.org/plugins/maven-antrun-plugin/ On 3/16/06, A. Alonso Dominguez [EMAIL PROTECTED] wrote: Hi there, I'm newbie on Maven 2.x I'm migrating a Maven 1.x application to Maven 2.x and I new a plugin that uses some Ant tasks. I decided to develop my own version of that plugin. This plugin needs to reference some artifacts from the dependencies/dependencies section of its pom. This is my question: What variable I must use in the x.build.xml and x.mojos.xml files to obtain a reference to the plugin's dependencies? Regards, Alonso -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error while downloading m2 plugin
hello all, today in running maven on my project i got followign error [INFO] Using default encoding to copy filtered resources. Downloading: http://cvs.apache.org/maven-snapshot-repository/org/codehaus/plexus /plexus-components/1.1.5/plexus-components-1.1.5.pom [WARNING] Unable to get resource from repository apache.snapshots ( http://cvs.ap ache.org/maven-snapshot-repository) Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components /1.1.5/plexus-components-1.1.5.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Failed to resolve artifact. GroupId: org.codehaus.plexus ArtifactId: plexus-components Version: 1.1.5 Reason: Unable to download the artifact from any repository org.codehaus.plexus:plexus-components:pom:1.1.5 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://cvs.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) anyone knows why? are there any worarounds? i m running maven with surefire plugin... thanks and regards marco
Re: error while downloading m2 plugin
this pom will be available in next synchronisation Emmanuel Marco Mistroni a écrit : hello all, today in running maven on my project i got followign error [INFO] Using default encoding to copy filtered resources. Downloading: http://cvs.apache.org/maven-snapshot-repository/org/codehaus/plexus /plexus-components/1.1.5/plexus-components-1.1.5.pom [WARNING] Unable to get resource from repository apache.snapshots ( http://cvs.ap ache.org/maven-snapshot-repository) Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components /1.1.5/plexus-components-1.1.5.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Failed to resolve artifact. GroupId: org.codehaus.plexus ArtifactId: plexus-components Version: 1.1.5 Reason: Unable to download the artifact from any repository org.codehaus.plexus:plexus-components:pom:1.1.5 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://cvs.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) anyone knows why? are there any worarounds? i m running maven with surefire plugin... thanks and regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Site generation and info from xxx-mojos.xml
Hi However the maven-plugin-plugin overwrites the index.apt file that I had!!! Can't one have both? Hermod -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Thursday, March 16, 2006 8:40 AM To: Maven Users List Subject: Re: [m2] Site generation and info from xxx-mojos.xml take a look at the pom file of http://mojo.codehaus.org/changes-maven-plugin/announcement-mail-mojo.html and perhaps its parents to see how it is configure. -D On 3/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi That is what I have been running, but the thing is that is does not generate anything as far as documenting the properties etc of the mojo's. Thats the reason I asked if there is any special property (configuration) that is need for having the site plugin do that. I do not like the idea of having to maintain the documentation two places (on a page in the site and in the xxx-mojos.xml file). Hermod -Original Message- From: John Tolentino [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 10:15 AM To: Maven Users List Subject: Re: [m2] Site generation and info from xxx-mojos.xml Hi Hermond, Yes. It's maven-site-plugin. Try: mvn site:site http://maven.apache.org/plugins/maven-site-plugin/ http://maven.apache.org/guides/mini/guide-site.html Regards, John [EMAIL PROTECTED] wrote: Hi Is there any setting or plugin that will document the mojo for building the site, i.e the paramaters etc? I am thinking of having it generate something like this : http://mojo.codehaus.org/changes-maven-plugin/announcement-mail-mojo.html Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: surefire plugin and TestNG plugin
the suite xml overrides all other settings in the plugin, so since you have the classes element commented out, nothing is run. - Brett On 3/16/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello all, i have recently used the testng plugin for Maven2, and i think i have found a bug :( here's my pom project modelVersion4.0.0/modelVersion groupIdroot/groupId artifactIdejbs/artifactId packagingjar/packaging version1.0/version nameenterprise java beans/name parent groupIdroot/groupId artifactIdproject/artifactId version1.0/version /parent dependencies dependency groupIdroot/groupId artifactIdshared/artifactId /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId scopeprovided/scope /dependency dependency groupIdjboss/groupId artifactIdjboss-ejb3x/artifactId version4.0.4/version scopesystem/scope systemPath${basedir}\lib\jboss-ejb3x-4.0.4.jar/systemPath /dependency dependency groupIdjboss/groupId artifactIdejb3-persistence/artifactId version4.0.4/version scopesystem/scope systemPath${basedir}\lib\ejb3-persistence-4.0.4.jar/systemPath /dependency dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version4.6.1/version scopetest/scope classifierjdk15/classifier /dependency /dependencies build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration encodingiso-8859-1/encoding /configuration /plugin plugin artifactIdmaven-surefire-plugin/artifactId configuration suiteXmlFilessuiteXmlFiletestng.xml /suiteXmlFile/suiteXmlFiles /configuration /plugin /plugins /build /project Although the testng.xml has this content !DOCTYPE suite SYSTEM http://beust.com/testng/testng-1.0.dtd; suite name=Example test name=Simple example !--classes class name=example1.Test1 / class name=example1.EJB3Container / /classes-- groups run include name=integration.ejb3/ /run /groups packages package name=example1/ /packages /test /suite This test (the only one present so far) does not belong to the group configured in testng package example1; import org.testng.annotations.Configuration; import org.testng.annotations.ExpectedExceptions; import org.testng.annotations.Test; /** * This class * * @author Cedric Beust, Apr 26, 2004 * */ @Test(groups = { functest }, enabled = true ) public class Test1 { @Configuration(beforeTestClass = true) public static void setupClass() { ppp(SETTING UP THE CLASS); }... anyone could help/have a look? i would do it myself but i have never debugged a maven plugin... regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Variables in pom?
Hi, where are the variables documented, that I can use inside the POM? I guess there's something available like ${artifactId} and alike, but I couldn't find a place, where they're all listed and described. Andreas Ebbert-Karroum Software Design Engineer - Nokia Networks Services / Middleware phone: +49-211-94123928, fax: +49-211-94123838 Heltorfer Straße 1, 40472 Düsseldorf, Germany This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nokia.com/
[m2] where to find the sources for maven-release-plugin
Hi, i've trouble with 2.0-beta-3 and a newer version may be better?! Thanks Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] where to find the sources for maven-release-plugin
2006/3/16, Fredy [EMAIL PROTECTED]: Hi, i've trouble with 2.0-beta-3 and a newer version may be better?! @see https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-release-plugin Thanks Fredy Jacek -- Jacek Laskowski http://www.laskowski.org.pl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fix for MEJB-6. How can we get this incorporated?
Tim Kettler and I constructed patches for maven-ejb-plugin to allow it to handle EJB3 packages (mine was a refinement of his). We would very much like it applied, but the JIRA ticket created for it, http:// jira.codehaus.org/browse/MEJB-6, is currently marked trivial and has no developer assigned. Given that two people have seen enough urgency to create two patch variations for this bug, it seems the trivial designation is probably not right, and we fear it will not gain the attention it deserves. This patch is required to properly package an EJB3 jar file. Since EJB3 is vastly easier to code and test than EJB2.1, I am starting to see lots of people using EJB3. In particular, the availability of simple-to-use microcontainers makes unit testing feasible with Maven2. How can we get someone's attention to apply the patch we created? Dan R. Greening, Ph.D., CEO BigTribe Corporation, http:// dan.greening.name/contact.htm
Re: surefire plugin and TestNG plugin
Hello Brett, thanx, but the problem that i have is actually the opposite all tests run, even the ones that belong to a different group. could you pls help a gain? thanks and regards marco On 3/16/06, Brett Porter [EMAIL PROTECTED] wrote: the suite xml overrides all other settings in the plugin, so since you have the classes element commented out, nothing is run. - Brett On 3/16/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello all, i have recently used the testng plugin for Maven2, and i think i have found a bug :( here's my pom project modelVersion4.0.0/modelVersion groupIdroot/groupId artifactIdejbs/artifactId packagingjar/packaging version1.0/version nameenterprise java beans/name parent groupIdroot/groupId artifactIdproject/artifactId version1.0/version /parent dependencies dependency groupIdroot/groupId artifactIdshared/artifactId /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId scopeprovided/scope /dependency dependency groupIdjboss/groupId artifactIdjboss-ejb3x/artifactId version4.0.4/version scopesystem/scope systemPath${basedir}\lib\jboss-ejb3x-4.0.4.jar/systemPath /dependency dependency groupIdjboss/groupId artifactIdejb3-persistence/artifactId version4.0.4/version scopesystem/scope systemPath${basedir}\lib\ejb3-persistence-4.0.4.jar /systemPath /dependency dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version4.6.1/version scopetest/scope classifierjdk15/classifier /dependency /dependencies build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration encodingiso-8859-1/encoding /configuration /plugin plugin artifactIdmaven-surefire-plugin/artifactId configuration suiteXmlFilessuiteXmlFiletestng.xml /suiteXmlFile/suiteXmlFiles /configuration /plugin /plugins /build /project Although the testng.xml has this content !DOCTYPE suite SYSTEM http://beust.com/testng/testng-1.0.dtd; suite name=Example test name=Simple example !--classes class name=example1.Test1 / class name=example1.EJB3Container / /classes-- groups run include name=integration.ejb3/ /run /groups packages package name=example1/ /packages /test /suite This test (the only one present so far) does not belong to the group configured in testng package example1; import org.testng.annotations.Configuration; import org.testng.annotations.ExpectedExceptions; import org.testng.annotations.Test; /** * This class * * @author Cedric Beust, Apr 26, 2004 * */ @Test(groups = { functest }, enabled = true ) public class Test1 { @Configuration(beforeTestClass = true) public static void setupClass() { ppp(SETTING UP THE CLASS); }... anyone could help/have a look? i would do it myself but i have never debugged a maven plugin... regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: surefire plugin and TestNG plugin
In that case, I'm not sure. Does it work if you run the suite from the command line with testng? If so, please file a bug against the surefire plugin. - Brett On 3/16/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Brett, thanx, but the problem that i have is actually the opposite all tests run, even the ones that belong to a different group. could you pls help a gain? thanks and regards marco On 3/16/06, Brett Porter [EMAIL PROTECTED] wrote: the suite xml overrides all other settings in the plugin, so since you have the classes element commented out, nothing is run. - Brett On 3/16/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello all, i have recently used the testng plugin for Maven2, and i think i have found a bug :( here's my pom project modelVersion4.0.0/modelVersion groupIdroot/groupId artifactIdejbs/artifactId packagingjar/packaging version1.0/version nameenterprise java beans/name parent groupIdroot/groupId artifactIdproject/artifactId version1.0/version /parent dependencies dependency groupIdroot/groupId artifactIdshared/artifactId /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId scopeprovided/scope /dependency dependency groupIdjboss/groupId artifactIdjboss-ejb3x/artifactId version4.0.4/version scopesystem/scope systemPath${basedir}\lib\jboss-ejb3x-4.0.4.jar/systemPath /dependency dependency groupIdjboss/groupId artifactIdejb3-persistence/artifactId version4.0.4/version scopesystem/scope systemPath${basedir}\lib\ejb3-persistence-4.0.4.jar /systemPath /dependency dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version4.6.1/version scopetest/scope classifierjdk15/classifier /dependency /dependencies build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration encodingiso-8859-1/encoding /configuration /plugin plugin artifactIdmaven-surefire-plugin/artifactId configuration suiteXmlFilessuiteXmlFiletestng.xml /suiteXmlFile/suiteXmlFiles /configuration /plugin /plugins /build /project Although the testng.xml has this content !DOCTYPE suite SYSTEM http://beust.com/testng/testng-1.0.dtd; suite name=Example test name=Simple example !--classes class name=example1.Test1 / class name=example1.EJB3Container / /classes-- groups run include name=integration.ejb3/ /run /groups packages package name=example1/ /packages /test /suite This test (the only one present so far) does not belong to the group configured in testng package example1; import org.testng.annotations.Configuration; import org.testng.annotations.ExpectedExceptions; import org.testng.annotations.Test; /** * This class * * @author Cedric Beust, Apr 26, 2004 * */ @Test(groups = { functest }, enabled = true ) public class Test1 { @Configuration(beforeTestClass = true) public static void setupClass() { ppp(SETTING UP THE CLASS); }... anyone could help/have a look? i would do it myself but i have never debugged a maven plugin... regards marco - 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: surefire plugin and TestNG plugin
hello, i m afraid i have tested it only within maven. with maven1.1 plugin worked fine. i'll try to test it via commandline and let you know out come thanks and regards marco On 3/16/06, Brett Porter [EMAIL PROTECTED] wrote: In that case, I'm not sure. Does it work if you run the suite from the command line with testng? If so, please file a bug against the surefire plugin. - Brett On 3/16/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Brett, thanx, but the problem that i have is actually the opposite all tests run, even the ones that belong to a different group. could you pls help a gain? thanks and regards marco On 3/16/06, Brett Porter [EMAIL PROTECTED] wrote: the suite xml overrides all other settings in the plugin, so since you have the classes element commented out, nothing is run. - Brett On 3/16/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello all, i have recently used the testng plugin for Maven2, and i think i have found a bug :( here's my pom project modelVersion4.0.0/modelVersion groupIdroot/groupId artifactIdejbs/artifactId packagingjar/packaging version1.0/version nameenterprise java beans/name parent groupIdroot/groupId artifactIdproject/artifactId version1.0/version /parent dependencies dependency groupIdroot/groupId artifactIdshared/artifactId /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId scopeprovided/scope /dependency dependency groupIdjboss/groupId artifactIdjboss-ejb3x/artifactId version4.0.4/version scopesystem/scope systemPath${basedir}\lib\jboss-ejb3x-4.0.4.jar /systemPath /dependency dependency groupIdjboss/groupId artifactIdejb3-persistence/artifactId version4.0.4/version scopesystem/scope systemPath${basedir}\lib\ejb3-persistence-4.0.4.jar /systemPath /dependency dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version4.6.1/version scopetest/scope classifierjdk15/classifier /dependency /dependencies build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration encodingiso-8859-1/encoding /configuration /plugin plugin artifactIdmaven-surefire-plugin/artifactId configuration suiteXmlFilessuiteXmlFiletestng.xml /suiteXmlFile/suiteXmlFiles /configuration /plugin /plugins /build /project Although the testng.xml has this content !DOCTYPE suite SYSTEM http://beust.com/testng/testng-1.0.dtd; suite name=Example test name=Simple example !--classes class name=example1.Test1 / class name=example1.EJB3Container / /classes-- groups run include name=integration.ejb3/ /run /groups packages package name=example1/ /packages /test /suite This test (the only one present so far) does not belong to the group configured in testng package example1; import org.testng.annotations.Configuration; import org.testng.annotations.ExpectedExceptions; import org.testng.annotations.Test; /** * This class * * @author Cedric Beust, Apr 26, 2004 * */ @Test(groups = { functest }, enabled = true ) public class Test1 { @Configuration(beforeTestClass = true) public static void setupClass() { ppp(SETTING UP THE CLASS); }... anyone could help/have a look? i would do it myself but i have never debugged a maven plugin... regards marco - 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: Variables in pom?
all properties are ${pom.*} with * equals to a tag in pom like ${pom.artifactId} for artifactId or ${pom.scm.connection} for scm connection url Emmanuel [EMAIL PROTECTED] a écrit : Hi, where are the variables documented, that I can use inside the POM? I guess there's something available like ${artifactId} and alike, but I couldn't find a place, where they're all listed and described. Andreas Ebbert-Karroum Software Design Engineer - Nokia Networks Services / Middleware phone: +49-211-94123928, fax: +49-211-94123838 Heltorfer Straße 1, 40472 Düsseldorf, Germany This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nokia.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] JAVAWUG BOF XVI / Friday 3rd March 2006 @ 19:00 / Oracle Ci ty of London
Dear All I would like to formally announce that JAVAWUG (Java Web User Group) is holding the sixteenth Birds-of-Feather (Meet up XVI) at the Oracle City of London offices on Friday, 17th March 2006. The meeting will take place in a room with Audio/Visual facilities between 7-9:30 pm. There will be a series of presentations, Quickies, inspired by the JavaPolis short presentation format. The confirmed speakers are: Phil Zoio ``Struts Java 5 Extension Framework'' (special guest speaker) Emmanuel Okeyere ``Spring into RIFE Framework Continued'' Peter Pilgrim ``WebWork Quickie Experiences'' There will be probably be one additional speaking slot by Duncan Mills * S TO P P R E S S * After providing the key note and presentations at JAVA UK 06 in London. Craig McClanahan plans to attend on Friday night. Afterwards members can retire to the nearby the ``All Bar One'' pub/restaurant for more in depth discussion dinner, food and drink ... The address is: Oracle City Of London One South Place London, England EC2M 2RB. If you would like to attend Join the http://groups.google.com/group/javawug JAVAWUG at Google Groups and ``Send a mail to the list you are attending'' Send mail to myself at peter dot pilgrim at credit-suisse.com and duncan dot mills at oracle.com Here is some relevant travel information: By Underground: - Moorgate: Take the Moorgate East exit, turn right, one block to South Place. Bank: Take the Northern line to Moorgate. Liverpool Street: Take the Broadgate exit, turn right onto South Place Map: http://www.oracle.com/global/uk/corporate/locations/citymap.html The venue has graciously been organised by Duncan Mills of Oracle Corp. We all appreciate this generous gift. http://www.javawug.com/ http://jroller.com/page/peter_pilgrim PS: The presentations will be recorded and I hope to upload them all Google Video Site. search against JAVAWUG for the last video uploads. -- Peter Pilgrim :: J2EE Software Development Architecture Operations/IT - Credit Suisse Group - One Bank, Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom Tel: +44-(0)207-883-4497 peter dot pilgrim at credit-suisse.com == Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Variables in pom?
How can the properties in the parent pom, for a multi project situation, be referenced in child poms?
avoid generation of TEST*.xml files
Hi, anybody knows a way to suppress generation of TEST*.xml files? Or at least to reduce their verbose content? I have hundreds of test classes, each one of them causes the generation of a TEST*.xml file that is at least 60 KB == can this be reduced or avoided somehow? Thanks MM
RE: speed up test execution
Note that if your code depends on static initializers being called on each invocation, setting forkMode to once will break your tests. This is true whether the tests are running in M2 or Maven 1.1 Ian It's better to be hated for who you are than loved for who you are not Ian D. Stewart Appl Dev Analyst-Advisory, DCS Automation JPMorganChase Global Technology Infrastructure Phone: (614) 244-2564 Pager: (888) 260-0078 Jeff Jensen [EMAIL PROTECTED]To: 'Maven Users List' users@maven.apache.org nology.com cc: Subject: RE: speed up test execution 03/15/2006 05:27 PM Please respond to Maven Users List With m1.1, setting fork to once speeds the execution over always because it forks to one JVM for all tests, vs a new JVM for each test. What is your setting? But I do see Maven running tests slower than inside Eclipse as well. -Original Message- From: Manlio Malaidini [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 4:22 PM To: Maven Users List Subject: Re: speed up test execution Thanks for your feedback. This is an option, of course. Is there somewhere any migration guide from maven 1 to maven 2? Or something like that? MM On 3/15/06, Alexandre Poitras [EMAIL PROTECTED] wrote: I don't have a lot of experience with Maven 1 but I know it is quite slow compare to Maven 2. Maybe you should consider upgrading if you have performance issues. On 3/15/06, Manlio Malaidini [EMAIL PROTECTED] wrote: Hello everybody, maybe this is a kind of newbie question, but I'm really trying to speed up test execution without meaningful result, therefore I'd like to get your feedback. Setup: I'm currently using maven 1.1-beta-1 and eclipse 3.1.0 I have many tests that while run inside eclipse take 1/3 of execution time compared to maven, sometimes even less. I'm talking about strict unit testing, typically without DB or network interactions. I've tried to not forking, but without any meaningful difference. If I suppress printsummary I don't gain anything at all. I was thinking about skipping TEST*.xml file generation but that doesn't seem to be possible: any test file that I execute a new 60 KB file is generated with environment info, but I really don't want it. Ideally I'd like to have just a yes/no information for each test, with more report only in case of failure. I've tried googling around without any major result. Documentations doesn't say a lot about this, either. I'd really appreciate your feedback. MM -- Alexandre Poitras Québec, Canada - 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: updating of dependency pom's
Unfortunately, yes, it is a common occurance. Here is why: For every thirdparty used in my project I require the pom to have: 1) a description 2) a project url 3) a license description 4) a url to the license I then wrote a plugin which validates this information and also retrieves the license for each dependency. Getting this information for thirdparty items is very important to us, the strong dependnecy support is one of our main reasons for a maven migration. What is the problem with items in the public repo? http://www.ibiblio.org/maven2/xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.pom http://www.ibiblio.org/maven2/wutka/dtdparser/1.21/dtdparser-1.21.pom I guess the fix is as you suggest, to make sure each dependency in my internal repo is a unique groupID/artifactId pairing. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wed 3/15/2006 8:26 PM To: Maven Users List Subject: Re: updating of dependency pom's As you've pointed out, updating POMs is a bad idea for reproducibility. We'd like to make it possible to track the revisions in a pom to allow fixing them while retaining compatibility, but at this point it is assumed that they don't change once deployed. My suggestion, if you need to customise something, is to deploy the POM and the original or modified artifact under your own group ID in the repository. So maybe something like: org.jboss.ports.commons-foo : commons-foo : 1.0 This would be much clearer and more reliable, I believe. Is this something that is a common occurrence? - Brett On 3/16/06, Ruel Loehr [EMAIL PROTECTED] wrote: Once a pom for a dependency has been copied to the local repo, it is never updated. For those of you who maintain a company internal repo, do you ever have the situation where a dependency pom in your internal repo differs from the corresponding pom in the public repo? (e.g. you want to record additional info such as license information, or the public pom is not correctly defined). The problem I see is that it is difficult to ensure that a user is using the correct pom. For example, if a user downloads maven, builds something with it, his local repo gets populated. Then, if the user tries to build my app, and I have defined a thirdparty pom in my own internal repo that differs from the public one, the original public version will be used (even if my app includes a maven distro and a settings.xml specifying my own repo). Any ideas on how to work around this? I feel like I need control over the repo, but cannot ensure that the user hits my repo first. Appropriate jira issue is here: http://jira.codehaus.org/browse/MNG-1954 Ruel Loehr JBoss QA - 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] dependencies-libraries that are not hosted - best practice
Hi, What is the best practice in case of dependencies that are not hosted anywhere? Should jars land in project's 'lib' dir? A mojo should install jar into user's local repository? I assume that maven methodology requires me to create corporate / team wide repository with those specific jars... Thanks, Szczepan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Variables in pom?
have you tried ${pom.parent.PROPERTY} ? I don't know if it works... Raphaël 2006/3/16, Rik Bosman [EMAIL PROTECTED]: How can the properties in the parent pom, for a multi project situation, be referenced in child poms?
Re: [M2] dependencies-libraries that are not hosted - best practice
Szczepan, I would not install them into a local repository. Consider your local repository nothing more than a local cache, but not the master repository for jars. Any jars you have that are not hosted on ibiblio or another public repository, host in your own internal corporate repository. In fact, I'd recommend setting up maven-proxy, so that all dependencies from the user's view are coming from your internal corporate repository. Brad On Mar 16, 2006, at 7:51 AM, Szczepan Faber wrote: Hi, What is the best practice in case of dependencies that are not hosted anywhere? Should jars land in project's 'lib' dir? A mojo should install jar into user's local repository? I assume that maven methodology requires me to create corporate / team wide repository with those specific jars... Thanks, Szczepan - 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] dependencies-libraries that are not hosted - best practice
I think the MAVEN best practice is to set up a corporate repository with the specific jars and then add that repo to your project pom. If you're just trying to make it work, and don't mind checking Jars into your code versioning system, then you could perhaps use the scopesystem/scope and systemPath settings to make those jars available to the project without the trouble of setting up your own Maven repo. dependency groupIdaaa/groupId artifactIdbbb/artifactId version1.0.1/version scopesystem/scope systemPath${basedir}\lib\aaa-bbb-1.0.1.jar/systemPath /dependency Wayne On 3/16/06, Szczepan Faber [EMAIL PROTECTED] wrote: Hi, What is the best practice in case of dependencies that are not hosted anywhere? Should jars land in project's 'lib' dir? A mojo should install jar into user's local repository? I assume that maven methodology requires me to create corporate / team wide repository with those specific jars... Thanks, Szczepan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: avoid generation of TEST*.xml files
Hi Manilo, Taking a look at the configuration documentation at: http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html it looks like there are two options that may be of interest: reportFormat (Optional) Selects the formatting for the test report to be generated. Can be set as brief, plain, or xml. and useFile (Optional) Option to generate a file test report or just output the test report to the console. HTH, Ian It's better to be hated for who you are than loved for who you are not Ian D. Stewart Appl Dev Analyst-Advisory, DCS Automation JPMorganChase Global Technology Infrastructure Phone: (614) 244-2564 Pager: (888) 260-0078 Manlio Malaidini To: Maven Users List users@maven.apache.org [EMAIL PROTECTED]cc: .comSubject: avoid generation of TEST*.xml files 03/16/2006 09:18 AM Please respond to Maven Users List Hi, anybody knows a way to suppress generation of TEST*.xml files? Or at least to reduce their verbose content? I have hundreds of test classes, each one of them causes the generation of a TEST*.xml file that is at least 60 KB == can this be reduced or avoided somehow? Thanks MM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fix for MEJB-6. How can we get this incorporated?
The best thing you can do is send an email to the users list and ask us to vote on your issue, so it raises in importance and then hopefully someone will notice and apply the patch. I voted on your issue and added a comment as well. Hopefully this patch will be applied soon. Wayne On 3/16/06, Dan Greening [EMAIL PROTECTED] wrote: Tim Kettler and I constructed patches for maven-ejb-plugin to allow it to handle EJB3 packages (mine was a refinement of his). We would very much like it applied, but the JIRA ticket created for it, http:// jira.codehaus.org/browse/MEJB-6, is currently marked trivial and has no developer assigned. Given that two people have seen enough urgency to create two patch variations for this bug, it seems the trivial designation is probably not right, and we fear it will not gain the attention it deserves. This patch is required to properly package an EJB3 jar file. Since EJB3 is vastly easier to code and test than EJB2.1, I am starting to see lots of people using EJB3. In particular, the availability of simple-to-use microcontainers makes unit testing feasible with Maven2. How can we get someone's attention to apply the patch we created? Dan R. Greening, Ph.D., CEO BigTribe Corporation, http:// dan.greening.name/contact.htm
Re: acces to http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-core/ 403 Forbidden
Probably just a misconfiguration. File a bug report in JIRA and a dev should take a look at it. Wayne On 3/16/06, Olivier Lamy [EMAIL PROTECTED] wrote: Hi, Trying http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-core/. I have the following response : An Exception Has Occurred Access to maven/components/trunk/maven-core is forbidden. HTTP Response Status 403 Forbidden Python Traceback Traceback (most recent call last): File /usr/local/viewcvs-1.0-dev/lib/viewcvs.py, line 3351, in main request.run_viewcvs() File /usr/local/viewcvs-1.0-dev/lib/viewcvs.py, line 228, in run_viewcvs % self.where, '403 Forbidden') ViewCVSException: 403 Forbidden: Access to maven/components/trunk/maven-core is forbidden. Why ? - Olivier This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. ** Ce message electronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci apres le message ), sont confidentiels et destines exclusivement a l'usage de la personne a laquelle ils sont adresses. Si vous avez recu ce message par erreur, merci de le renvoyer a son emetteur et de le detruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressement autorisees de ce message, sont interdites. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: updating of dependency pom's
What's wrong with items in the public repo is it was decided at some point a little while ago by the Maven dev team that getting various artifacts (like xercesImpl) into the Maven2 repo was a high importance item, and so a little program was written to generate essentially empty poms for these items, just to facilitate the rapid construction of the M2 repo. This practice has been abandoned and so any new projects etc going into the repo will have proper poms. So now there are a bunch of older poms in the M2 repo that are not in the best of shape. You can help identify and fix these poms by posting bugs in the Jira MEV project. I'm sure the Maven dev group would be very appreciative of your assistance in fixing up some of these empty poms. Wayne On 3/16/06, Ruel Loehr [EMAIL PROTECTED] wrote: Unfortunately, yes, it is a common occurance. Here is why: For every thirdparty used in my project I require the pom to have: 1) a description 2) a project url 3) a license description 4) a url to the license I then wrote a plugin which validates this information and also retrieves the license for each dependency. Getting this information for thirdparty items is very important to us, the strong dependnecy support is one of our main reasons for a maven migration. What is the problem with items in the public repo? http://www.ibiblio.org/maven2/xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.pom http://www.ibiblio.org/maven2/wutka/dtdparser/1.21/dtdparser-1.21.pom I guess the fix is as you suggest, to make sure each dependency in my internal repo is a unique groupID/artifactId pairing. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wed 3/15/2006 8:26 PM To: Maven Users List Subject: Re: updating of dependency pom's As you've pointed out, updating POMs is a bad idea for reproducibility. We'd like to make it possible to track the revisions in a pom to allow fixing them while retaining compatibility, but at this point it is assumed that they don't change once deployed. My suggestion, if you need to customise something, is to deploy the POM and the original or modified artifact under your own group ID in the repository. So maybe something like: org.jboss.ports.commons-foo : commons-foo : 1.0 This would be much clearer and more reliable, I believe. Is this something that is a common occurrence? - Brett On 3/16/06, Ruel Loehr [EMAIL PROTECTED] wrote: Once a pom for a dependency has been copied to the local repo, it is never updated. For those of you who maintain a company internal repo, do you ever have the situation where a dependency pom in your internal repo differs from the corresponding pom in the public repo? (e.g. you want to record additional info such as license information, or the public pom is not correctly defined). The problem I see is that it is difficult to ensure that a user is using the correct pom. For example, if a user downloads maven, builds something with it, his local repo gets populated. Then, if the user tries to build my app, and I have defined a thirdparty pom in my own internal repo that differs from the public one, the original public version will be used (even if my app includes a maven distro and a settings.xml specifying my own repo). Any ideas on how to work around this? I feel like I need control over the repo, but cannot ensure that the user hits my repo first. Appropriate jira issue is here: http://jira.codehaus.org/browse/MNG-1954 Ruel Loehr JBoss QA - 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: updating of dependency pom's
Ah, I think the tone of my email was incorrect. What's the problem with the stuff in the repo?, was meant to be rhetorical. I should have said, My problem with using the public repo is that certain pom's are incorrect such as: But, I do agree with everything you said. Ruel Loehr JBoss QA -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Thursday, March 16, 2006 10:15 AM To: Maven Users List Subject: Re: updating of dependency pom's What's wrong with items in the public repo is it was decided at some point a little while ago by the Maven dev team that getting various artifacts (like xercesImpl) into the Maven2 repo was a high importance item, and so a little program was written to generate essentially empty poms for these items, just to facilitate the rapid construction of the M2 repo. This practice has been abandoned and so any new projects etc going into the repo will have proper poms. So now there are a bunch of older poms in the M2 repo that are not in the best of shape. You can help identify and fix these poms by posting bugs in the Jira MEV project. I'm sure the Maven dev group would be very appreciative of your assistance in fixing up some of these empty poms. Wayne On 3/16/06, Ruel Loehr [EMAIL PROTECTED] wrote: Unfortunately, yes, it is a common occurance. Here is why: For every thirdparty used in my project I require the pom to have: 1) a description 2) a project url 3) a license description 4) a url to the license I then wrote a plugin which validates this information and also retrieves the license for each dependency. Getting this information for thirdparty items is very important to us, the strong dependnecy support is one of our main reasons for a maven migration. What is the problem with items in the public repo? http://www.ibiblio.org/maven2/xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.p om http://www.ibiblio.org/maven2/wutka/dtdparser/1.21/dtdparser-1.21.pom I guess the fix is as you suggest, to make sure each dependency in my internal repo is a unique groupID/artifactId pairing. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wed 3/15/2006 8:26 PM To: Maven Users List Subject: Re: updating of dependency pom's As you've pointed out, updating POMs is a bad idea for reproducibility. We'd like to make it possible to track the revisions in a pom to allow fixing them while retaining compatibility, but at this point it is assumed that they don't change once deployed. My suggestion, if you need to customise something, is to deploy the POM and the original or modified artifact under your own group ID in the repository. So maybe something like: org.jboss.ports.commons-foo : commons-foo : 1.0 This would be much clearer and more reliable, I believe. Is this something that is a common occurrence? - Brett On 3/16/06, Ruel Loehr [EMAIL PROTECTED] wrote: Once a pom for a dependency has been copied to the local repo, it is never updated. For those of you who maintain a company internal repo, do you ever have the situation where a dependency pom in your internal repo differs from the corresponding pom in the public repo? (e.g. you want to record additional info such as license information, or the public pom is not correctly defined). The problem I see is that it is difficult to ensure that a user is using the correct pom. For example, if a user downloads maven, builds something with it, his local repo gets populated. Then, if the user tries to build my app, and I have defined a thirdparty pom in my own internal repo that differs from the public one, the original public version will be used (even if my app includes a maven distro and a settings.xml specifying my own repo). Any ideas on how to work around this? I feel like I need control over the repo, but cannot ensure that the user hits my repo first. Appropriate jira issue is here: http://jira.codehaus.org/browse/MNG-1954 Ruel Loehr JBoss QA - 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: avoid generation of TEST*.xml files
On 3/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Manilo, Taking a look at the configuration documentation at: Thanks, but the problem is that I'm using 1.1-beta-1, not maven 2, therefore I'm using just the standard test plugin, not surefire. http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html it looks like there are two options that may be of interest: reportFormat (Optional) Selects the formatting for the test report to be generated. Can be set as brief, plain, or xml. and useFile (Optional) Option to generate a file test report or just output the test report to the console. Anyway it seems that I have the same options in test plugin as well: http://maven.apache.org/maven-1.x/plugins/test/properties.html I've already tried tweaking the values but: *) brief format is already default and too much for my use *) saying printSummary=false just avoids printing test details for each test in a suite (basically 2 lines for each test file) == there is no gain in speed execution *) I've tried saying usefile=false, but that doesn't affect xml file creation at all, simply you don't have the txt file anymore, but you do have the output in console What I'm looking for is a way to reduce those 60 KB generated for each xml report. Thanks anyway. MM
Re: speed up test execution
On 3/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Note that if your code depends on static initializers being called on each invocation, setting forkMode to once will break your tests. This is true whether the tests are running in M2 or Maven 1.1 Very true! Anyway the problem lies in thread interactions. MM
Re: updating of dependency pom's
Irrespective of the tone of your email, I thought I should explain the situation as far as I know it. I think everyone agrees that these poms are not really acceptable in the long term and will need to be addressed at some point. But it is tough for someone to randomly pick a project, grab the pom, and without digging through code or knowing something about the project, figure out the dependencies and other attributes of the pom. It is really best if we can convince the original project development team to adopt Maven2 and contribute their own poms. ;-) I'd encourage you and other users to post JIRA MEV tasks so these poms can be addressed. Wayne On 3/16/06, Ruel Loehr [EMAIL PROTECTED] wrote: Ah, I think the tone of my email was incorrect. What's the problem with the stuff in the repo?, was meant to be rhetorical. I should have said, My problem with using the public repo is that certain pom's are incorrect such as: But, I do agree with everything you said. Ruel Loehr JBoss QA -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Thursday, March 16, 2006 10:15 AM To: Maven Users List Subject: Re: updating of dependency pom's What's wrong with items in the public repo is it was decided at some point a little while ago by the Maven dev team that getting various artifacts (like xercesImpl) into the Maven2 repo was a high importance item, and so a little program was written to generate essentially empty poms for these items, just to facilitate the rapid construction of the M2 repo. This practice has been abandoned and so any new projects etc going into the repo will have proper poms. So now there are a bunch of older poms in the M2 repo that are not in the best of shape. You can help identify and fix these poms by posting bugs in the Jira MEV project. I'm sure the Maven dev group would be very appreciative of your assistance in fixing up some of these empty poms. Wayne On 3/16/06, Ruel Loehr [EMAIL PROTECTED] wrote: Unfortunately, yes, it is a common occurance. Here is why: For every thirdparty used in my project I require the pom to have: 1) a description 2) a project url 3) a license description 4) a url to the license I then wrote a plugin which validates this information and also retrieves the license for each dependency. Getting this information for thirdparty items is very important to us, the strong dependnecy support is one of our main reasons for a maven migration. What is the problem with items in the public repo? http://www.ibiblio.org/maven2/xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.p om http://www.ibiblio.org/maven2/wutka/dtdparser/1.21/dtdparser-1.21.pom I guess the fix is as you suggest, to make sure each dependency in my internal repo is a unique groupID/artifactId pairing. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wed 3/15/2006 8:26 PM To: Maven Users List Subject: Re: updating of dependency pom's As you've pointed out, updating POMs is a bad idea for reproducibility. We'd like to make it possible to track the revisions in a pom to allow fixing them while retaining compatibility, but at this point it is assumed that they don't change once deployed. My suggestion, if you need to customise something, is to deploy the POM and the original or modified artifact under your own group ID in the repository. So maybe something like: org.jboss.ports.commons-foo : commons-foo : 1.0 This would be much clearer and more reliable, I believe. Is this something that is a common occurrence? - Brett On 3/16/06, Ruel Loehr [EMAIL PROTECTED] wrote: Once a pom for a dependency has been copied to the local repo, it is never updated. For those of you who maintain a company internal repo, do you ever have the situation where a dependency pom in your internal repo differs from the corresponding pom in the public repo? (e.g. you want to record additional info such as license information, or the public pom is not correctly defined). The problem I see is that it is difficult to ensure that a user is using the correct pom. For example, if a user downloads maven, builds something with it, his local repo gets populated. Then, if the user tries to build my app, and I have defined a thirdparty pom in my own internal repo that differs from the public one, the original public version will be used (even if my app includes a maven distro and a settings.xml specifying my own repo). Any ideas on how to work around this? I feel like I need control over the repo, but cannot ensure that the user hits my repo first. Appropriate jira issue is here: http://jira.codehaus.org/browse/MNG-1954 Ruel Loehr JBoss QA - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: avoid generation of TEST*.xml files
Add an antrun task and attach to Test.PostGoal to delete the TEST*.xml files... ;-) Wayne On 3/16/06, Manlio Malaidini [EMAIL PROTECTED] wrote: On 3/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Manilo, Taking a look at the configuration documentation at: Thanks, but the problem is that I'm using 1.1-beta-1, not maven 2, therefore I'm using just the standard test plugin, not surefire. http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html it looks like there are two options that may be of interest: reportFormat (Optional) Selects the formatting for the test report to be generated. Can be set as brief, plain, or xml. and useFile (Optional) Option to generate a file test report or just output the test report to the console. Anyway it seems that I have the same options in test plugin as well: http://maven.apache.org/maven-1.x/plugins/test/properties.html I've already tried tweaking the values but: *) brief format is already default and too much for my use *) saying printSummary=false just avoids printing test details for each test in a suite (basically 2 lines for each test file) == there is no gain in speed execution *) I've tried saying usefile=false, but that doesn't affect xml file creation at all, simply you don't have the txt file anymore, but you do have the output in console What I'm looking for is a way to reduce those 60 KB generated for each xml report. Thanks anyway. MM
Re: Help a newbie maven user
Thanks very much for the help. I copied old-1.0-sources.jar and old-1.0-javadoc.jar and refreshed the Eclipse filesystem view and the Maven plugin found the source. It didn't find the javadoc, though. I don't know if that's a limitation in the plugin or if that's not the right name. For now, at least, this is adequate since all the packages I really want linked docs for I also have sources for. - Chris Wayne Fay wrote: PS- When I grow up, I want to be a Principal Scientist! ;-) ;-) -- -- A. Chris Long [EMAIL PROTECTED] Principal Scientist 703-652-1600 x207 Global InfoTek, Inc.www.globalinfotek.com --
Maven - ANT failonerror equivalent
Hello: I am trying to deploy to weblogic using the weblogic-maven-plugin. Currently, weblogic doesn't support 'force' deploy meaning undeploy with failonerror=false then deploy. Is there a way to suppress an execution exception similar to ANT failonerror? Cheers, Christiaan DISCLAIMER The information contained in this e-mail and attachments, if any, is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not use, copy, distribute or disclose the e-mail and its attachment, or any part of its content or take any action in reliance of it. If you have received this e-mail in error, please e-mail the message back to the sender by replying and then deleting it. We cannot accept responsibility for loss or damage arising from the use of this e-mail or attachments, and recommend that you subject these to your virus checking procedures prior to use - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] downloading and installing a plugin
Hello there. I know I should know how to do this, but I seem hopelessly inept at it. How do I download a plugin and then use it? Here is the plugin I am looking for, torque 3.2-rc1: http://www.ibiblio.org/maven2/torque/maven-torque-plugin/3.2-rc2/ What are the steps I take to download that plugin and then install it into the registry of plugins? Then use it too. Do I just put it in my pom.xml? Is there a certain command line to download and install plugins? Thanks for the help. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Checkstyle plugin
I have noticed on a few different Maven built sites that the report page for the Checkstyle plugin sometimes has the line numbers linked to the Source XRef pages, and some times it does not. For instance, this site does not: http://displaytag.sourceforge.net/11/displaytag-portlet/checkstyle.html This site does: http://maven.apache.org/maven-1.x/plugins/struts/checkstyle-report.html When I generate the Checkstyle report for my site it does not have the links, but I would like it to. Does anyone know how to make this happen? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Copying Hibernate *.hbm.xml files after compile?
Hi guys, How do I make Maven 2 copy '**/*.hbm.xml Hibernate files from src/main/java/** to target/classes on running 'mvn compile'? Thanks! Serge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checkstyle plugin
Well you're supposed to be able to use linkXreftrue/linkXref but it does not seem to work. I just ran into this but wasn't sure if it was really a bug or something wrong on my end. If we decide this is a bug, we should post a JIRA bug report. Anyone else using Checkstyle and not getting the linkXref?? Or even better, if you ARE getting the xref?? Wayne On 3/16/06, Aaron Freeman [EMAIL PROTECTED] wrote: I have noticed on a few different Maven built sites that the report page for the Checkstyle plugin sometimes has the line numbers linked to the Source XRef pages, and some times it does not. For instance, this site does not: http://displaytag.sourceforge.net/11/displaytag-portlet/checkstyle.html This site does: http://maven.apache.org/maven-1.x/plugins/struts/checkstyle-report.html When I generate the Checkstyle report for my site it does not have the links, but I would like it to. Does anyone know how to make this happen? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Copying Hibernate *.hbm.xml files after compile?
Put them in src/main/resources instead of src/main/java. Wayne On 3/16/06, Sergei Dubov [EMAIL PROTECTED] wrote: Hi guys, How do I make Maven 2 copy '**/*.hbm.xml Hibernate files from src/main/java/** to target/classes on running 'mvn compile'? Thanks! Serge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checkstyle plugin
I'm not getting the xref, and the three images are also not shown in the report.
Re: [M2] downloading and installing a plugin
First off, if you haven't already, you should probably review the Getting Started With Maven guide on the Maven site. http://maven.apache.org/guides/getting-started/index.html Every plugin has its own configuration etc. So you will need to look at the Torque plugin documentation to find out what settings to use etc. There should also be an example of how to use the plugin on the Torque plugin page. Assuming this is a build-time plugin, you will need to add the plugin to your buildplugins section of your pom.xml, and it will be automatically downloaded the next time you run mvn Wayne On 3/16/06, Charles Harvey III [EMAIL PROTECTED] wrote: Hello there. I know I should know how to do this, but I seem hopelessly inept at it. How do I download a plugin and then use it? Here is the plugin I am looking for, torque 3.2-rc1: http://www.ibiblio.org/maven2/torque/maven-torque-plugin/3.2-rc2/ What are the steps I take to download that plugin and then install it into the registry of plugins? Then use it too. Do I just put it in my pom.xml? Is there a certain command line to download and install plugins? Thanks for the help. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Copying Hibernate *.hbm.xml files after compile?
Thanks, Wayne. Too bad that the directory structure will have to be duplicated as well. But I am going to push ahead. :-) Also, is there a simple way to show on the console why your test fails as opposed to seeing just FAILURE -Serge Wayne Fay wrote: Put them in src/main/resources instead of src/main/java. Wayne On 3/16/06, Sergei Dubov [EMAIL PROTECTED] wrote: Hi guys, How do I make Maven 2 copy '**/*.hbm.xml Hibernate files from src/main/java/** to target/classes on running 'mvn compile'? Thanks! Serge - 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: avoid generation of TEST*.xml files
Oh, come on! The problem is that it takes time to generate them... :) MM On 3/16/06, Wayne Fay [EMAIL PROTECTED] wrote: Add an antrun task and attach to Test.PostGoal to delete the TEST*.xml files... ;-) Wayne On 3/16/06, Manlio Malaidini [EMAIL PROTECTED] wrote: On 3/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Manilo, Taking a look at the configuration documentation at: Thanks, but the problem is that I'm using 1.1-beta-1, not maven 2, therefore I'm using just the standard test plugin, not surefire. http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html it looks like there are two options that may be of interest: reportFormat (Optional) Selects the formatting for the test report to be generated. Can be set as brief, plain, or xml. and useFile (Optional) Option to generate a file test report or just output the test report to the console. Anyway it seems that I have the same options in test plugin as well: http://maven.apache.org/maven-1.x/plugins/test/properties.html I've already tried tweaking the values but: *) brief format is already default and too much for my use *) saying printSummary=false just avoids printing test details for each test in a suite (basically 2 lines for each test file) == there is no gain in speed execution *) I've tried saying usefile=false, but that doesn't affect xml file creation at all, simply you don't have the txt file anymore, but you do have the output in console What I'm looking for is a way to reduce those 60 KB generated for each xml report. Thanks anyway. MM
Re: problem using archetypes
Can you give more details please like the error stack trace :) On 3/15/06, Devraj Brahmachari [EMAIL PROTECTED] wrote: hi the quickstart archetype that maven downloaded yesterday doesnt work today...in fact the entire file content of meta-central.xml file changes once i issue the mvn archetype:create command i have to physiaclly delete the file from my local repository download again for it to work can anybody pls explain this phenomenon. DEVRAJ BRAHMACHARI Center of Excellence - SOA South Block LT Infotech Powai Mumbai __ -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checkstyle plugin
The second site was generated with maven 1. The m1 checkstyle plugin automatically generates links if the jxr plugin is activated. For the m2 version, there seems to be a problem: http://jira.codehaus.org/browse/MCHECKSTYLE-34 HTH, -Lukas Aaron Freeman wrote: I have noticed on a few different Maven built sites that the report page for the Checkstyle plugin sometimes has the line numbers linked to the Source XRef pages, and some times it does not. For instance, this site does not: http://displaytag.sourceforge.net/11/displaytag-portlet/checkstyle.html This site does: http://maven.apache.org/maven-1.x/plugins/struts/checkstyle-report.html When I generate the Checkstyle report for my site it does not have the links, but I would like it to. Does anyone know how to make this happen? - 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: Copying Hibernate *.hbm.xml files after compile?
If you really need to not duplicate it , you can point your resources directory on your java directory. Unless you really need to (because of some tools), I suggest you to go the standard way and duplicate your directory structure, it will make your life easier :) On 3/16/06, Sergei Dubov [EMAIL PROTECTED] wrote: Thanks, Wayne. Too bad that the directory structure will have to be duplicated as well. But I am going to push ahead. :-) Also, is there a simple way to show on the console why your test fails as opposed to seeing just FAILURE -Serge Wayne Fay wrote: Put them in src/main/resources instead of src/main/java. Wayne On 3/16/06, Sergei Dubov [EMAIL PROTECTED] wrote: Hi guys, How do I make Maven 2 copy '**/*.hbm.xml Hibernate files from src/main/java/** to target/classes on running 'mvn compile'? Thanks! Serge - 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] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: avoid generation of TEST*.xml files
MM What I'm looking for is a way to reduce those 60 KB MM generated for each xml report. I don't know... that's not what you said originally... ;-) Wayne On 3/16/06, Manlio Malaidini [EMAIL PROTECTED] wrote: Oh, come on! The problem is that it takes time to generate them... :) MM On 3/16/06, Wayne Fay [EMAIL PROTECTED] wrote: Add an antrun task and attach to Test.PostGoal to delete the TEST*.xml files... ;-) Wayne
Re: Copying Hibernate *.hbm.xml files after compile?
No, there is no real reason. After some thinking, I actually like the Maven way. How about seeing the reason why the test failed as opposed to just FAILURE -S. Alexandre Poitras wrote: If you really need to not duplicate it , you can point your resources directory on your java directory. Unless you really need to (because of some tools), I suggest you to go the standard way and duplicate your directory structure, it will make your life easier :) On 3/16/06, Sergei Dubov [EMAIL PROTECTED] wrote: Thanks, Wayne. Too bad that the directory structure will have to be duplicated as well. But I am going to push ahead. :-) Also, is there a simple way to show on the console why your test fails as opposed to seeing just FAILURE -Serge Wayne Fay wrote: Put them in src/main/resources instead of src/main/java. Wayne On 3/16/06, Sergei Dubov [EMAIL PROTECTED] wrote: Hi guys, How do I make Maven 2 copy '**/*.hbm.xml Hibernate files from src/main/java/** to target/classes on running 'mvn compile'? Thanks! Serge - 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] -- Alexandre Poitras Québec, Canada - 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]
Maven2 and WAS
Hi, How do we configure Maven2 to generate artifacts specific for Web Sphere ? like using rmic and wrd commands. wrd is for annotated beans. What exactly is this WAS plug-in for Maven. Does this takes care of it ? Thanks -Jagan
Re: [M2] downloading and installing a plugin
How 'bout this: pom.xml: ## project build plugins plugin groupIdtorque/groupId artifactIdmaven-torque-plugin/artifactId version3.2-rc1/version /plugin /plugins /build /project ## command line and error: ## C:\projects\myprojectmvn -e torque:sql + Error stacktraces are turned on. [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/torque/maven-torque-plugin/3.2-rc1/maven-torque-plugin-3.2-rc1.pom 11K downloaded Downloading: http://repo1.maven.org/maven2/torque/maven-torque-plugin/3.2-rc1/maven-torque-plugin-3.2-rc1.jar 13K downloaded [INFO] Searching repository for plugin with prefix: 'torque'. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] 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.verifyPlugin(DefaultPluginManager.java:163) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1095) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1305) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java :376) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132) 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: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: 1 second [INFO] Finished at: Thu Mar 16 14:35:30 EST 2006 [INFO] Final Memory: 1M/2M [INFO] C:\projects\myproject ## Any thoughts? What does that error mean? Its not exactly telling me what's wrong. Thanks again. Charlie Wayne Fay said the following on 3/16/2006 2:00 PM: First off, if you haven't already, you should probably review the Getting Started With Maven guide on the Maven site. http://maven.apache.org/guides/getting-started/index.html Every plugin has its own configuration etc. So you will need to look at the Torque plugin documentation to find out what settings to use etc. There should also be an example of how to use the plugin on the Torque plugin page. Assuming this is a build-time plugin, you will need to add the plugin to your buildplugins section of your pom.xml, and it will be automatically downloaded the next time you run mvn Wayne On 3/16/06, Charles Harvey III [EMAIL PROTECTED] wrote: Hello there. I know I should know how to do this, but I seem hopelessly inept at it. How do I download a plugin and then use it? Here is the plugin I am looking for, torque 3.2-rc1: http://www.ibiblio.org/maven2/torque/maven-torque-plugin/3.2-rc2/ What are the steps I take to download that plugin and then install it into the registry of plugins? Then use it too. Do I just put it in my pom.xml? Is there a certain command line to download and install plugins? Thanks for the help. Charlie - 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] downloading and installing a plugin
I'd suspect either: 1. this is a m1 plugin and possibly not going to work in m2 without some code changes -- are you sure this will work in m2? 2. you are missing some configuration/settings Looking at the torque plugin webpage, there seems to be a variety of configuration options etc, and it looks like you're not using any of them. This works ok for reporting plugins, and less ok for build plugins. I'd suspect that you need to include at least one executions with proper config, so the plugin is executed at the right phase etc during your build. Wayne On 3/16/06, Charles Harvey III [EMAIL PROTECTED] wrote: How 'bout this: pom.xml: ## project build plugins plugin groupIdtorque/groupId artifactIdmaven-torque-plugin/artifactId version3.2-rc1/version /plugin /plugins /build /project ## command line and error: ## C:\projects\myprojectmvn -e torque:sql + Error stacktraces are turned on. [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/torque/maven-torque-plugin/3.2-rc1/maven-torque-plugin-3.2-rc1.pom 11K downloaded Downloading: http://repo1.maven.org/maven2/torque/maven-torque-plugin/3.2-rc1/maven-torque-plugin-3.2-rc1.jar 13K downloaded [INFO] Searching repository for plugin with prefix: 'torque'. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] 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.verifyPlugin(DefaultPluginManager.java:163) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1095) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1305) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java :376) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132) 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: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: 1 second [INFO] Finished at: Thu Mar 16 14:35:30 EST 2006 [INFO] Final Memory: 1M/2M [INFO] C:\projects\myproject ## Any thoughts? What does that error mean? Its not exactly telling me what's wrong. Thanks again. Charlie Wayne Fay said the following on 3/16/2006 2:00 PM: First off, if you haven't already, you should probably review the Getting Started With Maven guide on the Maven site. http://maven.apache.org/guides/getting-started/index.html Every plugin has its own configuration etc. So you will need to look at the Torque plugin documentation to find out what settings to use etc. There should also be an example of how to use the plugin on the Torque plugin page. Assuming this is a build-time plugin, you will need to add the plugin to your buildplugins section of your pom.xml, and it will be automatically downloaded the next time you run mvn Wayne On 3/16/06, Charles Harvey III [EMAIL PROTECTED] wrote: Hello there. I know I should know how to do this, but I seem hopelessly inept at it. How do I download a plugin and then use it? Here is the plugin I am looking for, torque 3.2-rc1:
Re: [M2] downloading and installing a plugin
As I suspected... At the moment, only Maven 1 is supported by the Torque Maven plugin. The recommended version is Maven 1.0.2. http://db.apache.org/torque/releases/torque-3.2/maven-plugin/index.html Wayne On 3/16/06, Wayne Fay [EMAIL PROTECTED] wrote: I'd suspect either: 1. this is a m1 plugin and possibly not going to work in m2 without some code changes -- are you sure this will work in m2? 2. you are missing some configuration/settings Looking at the torque plugin webpage, there seems to be a variety of configuration options etc, and it looks like you're not using any of them. This works ok for reporting plugins, and less ok for build plugins. I'd suspect that you need to include at least one executions with proper config, so the plugin is executed at the right phase etc during your build. Wayne On 3/16/06, Charles Harvey III [EMAIL PROTECTED] wrote: How 'bout this: pom.xml: ## project build plugins plugin groupIdtorque/groupId artifactIdmaven-torque-plugin/artifactId version3.2-rc1/version /plugin /plugins /build /project ## command line and error: ## C:\projects\myprojectmvn -e torque:sql + Error stacktraces are turned on. [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/torque/maven-torque-plugin/3.2-rc1/maven-torque-plugin-3.2-rc1.pom 11K downloaded Downloading: http://repo1.maven.org/maven2/torque/maven-torque-plugin/3.2-rc1/maven-torque-plugin-3.2-rc1.jar 13K downloaded [INFO] Searching repository for plugin with prefix: 'torque'. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] 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.verifyPlugin(DefaultPluginManager.java:163) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1095) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1305) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java :376) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132) 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: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: 1 second [INFO] Finished at: Thu Mar 16 14:35:30 EST 2006 [INFO] Final Memory: 1M/2M [INFO] C:\projects\myproject ## Any thoughts? What does that error mean? Its not exactly telling me what's wrong. Thanks again. Charlie Wayne Fay said the following on 3/16/2006 2:00 PM: First off, if you haven't already, you should probably review the Getting Started With Maven guide on the Maven site. http://maven.apache.org/guides/getting-started/index.html Every plugin has its own configuration etc. So you will need to look at the Torque plugin documentation to find out what settings to use etc. There should also be an example of how to use the plugin on the Torque plugin page. Assuming this is a build-time plugin, you will need to add the plugin to your buildplugins section of your pom.xml, and it will be
Re: [M2] downloading and installing a plugin
There is a good chance that the plugin does not work correctly. But, at least the pom.xml for 3.2-rc1 is 4.0.0 and not 3. So, in theory, it could work. As far as adding settings, I am getting really confused by the documentation as to where I put these settings. Here are torque properties that I used to have in project.properties: - torque.project = yourproject torque.database = mysql torque.database.createUrl = jdbc:mysql://localhost:3306/ torque.database.buildUrl = jdbc:mysql://localhost:3306/yourprojectdb torque.database.url = jdbc:mysql://localhost:3306/yourprojectdb torque.database.driver = org.gjt.mm.mysql.Driver torque.database.user = user torque.database.password = password torque.database.host = localhost - Now I'm not sure where to put them. Thing is, the documentation is pretty light in the configuration area. Like on this page: http://maven.apache.org/ref/2.0.3-SNAPSHOT/maven-model/maven.html It doesn't exist. This is what it says for configuration every time: |Configuration| No description. Which, is not helpful at all. Can I point to a file like this? project build plugins plugin groupIdtorque/groupId artifactIdmaven-torque-plugin/artifactId version3.2-rc1/version executions execution phasevalidate/phase configuration file${project.output.directory}/torque.properties/file /configuration /execution /executions /plugin /plugins /build /project I really have no idea. If you could give me the smallest example of how to pass properties to a plugin I would be extremely greatful. Thanks again for all the help. Charlie Wayne Fay said the following on 3/16/2006 2:49 PM: I'd suspect either: 1. this is a m1 plugin and possibly not going to work in m2 without some code changes -- are you sure this will work in m2? 2. you are missing some configuration/settings Looking at the torque plugin webpage, there seems to be a variety of configuration options etc, and it looks like you're not using any of them. This works ok for reporting plugins, and less ok for build plugins. I'd suspect that you need to include at least one executions with proper config, so the plugin is executed at the right phase etc during your build. Wayne On 3/16/06, Charles Harvey III [EMAIL PROTECTED] wrote: How 'bout this: pom.xml: ## project build plugins plugin groupIdtorque/groupId artifactIdmaven-torque-plugin/artifactId version3.2-rc1/version /plugin /plugins /build /project ## command line and error: ## C:\projects\myprojectmvn -e torque:sql + Error stacktraces are turned on. [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/torque/maven-torque-plugin/3.2-rc1/maven-torque-plugin-3.2-rc1.pom 11K downloaded Downloading: http://repo1.maven.org/maven2/torque/maven-torque-plugin/3.2-rc1/maven-torque-plugin-3.2-rc1.jar 13K downloaded [INFO] Searching repository for plugin with prefix: 'torque'. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] 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.verifyPlugin(DefaultPluginManager.java:163) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1095) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1305) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java :376) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132) 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
FW: Maven2 and WAS
And also, Is there a WAS plug-in for Maven 2 ??? -Original Message- From: Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco) Sent: Thursday, March 16, 2006 11:25 AM To: Maven Users List Subject: Maven2 and WAS Hi, How do we configure Maven2 to generate artifacts specific for Web Sphere ? like using rmic and wrd commands. wrd is for annotated beans. What exactly is this WAS plug-in for Maven. Does this takes care of it ? Thanks -Jagan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to retrieve from repository
Thanks for pointing me to that thread. Your -X option helped me see the http 401 error which allowed to further test. The thread made mention of the proxy configuration. I commented out the proxies element.I did this because I repointed to an internal maven server, thus eliminating the need for the proxy. Thanks for the help. -- View this message in context: http://www.nabble.com/Unable-to-retrieve-from-repository-t1288173.html#a3444543 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Passing properties to a plugin
Hello again. I am trying to write my own plugin (for Torque) and I would like to know how to pass either a properties file or a list of properties to my plugin. The page about creating your own plugin shows how you can pass parameters in the command line, but I'd like to do it from a file. Thanks. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use Environment variables
Yes it's working but you need at least maven 2.0.1. My pom look like this : ... plugin artifactIdmaven-antrun-plugin/artifactId version1.0/version executions execution phaseintegration-test/phase goals goalrun/goal /goals configuration tasks copyfile dest=${env.JBOSS_HOME}/server/all/deploy/my-ear.ear src=${basedir}/target/my-ear-1.0-SNAPSHOT.ear / /tasks /configuration /execution /executions /plugin ... Yan. --- Tom Joad [EMAIL PROTECTED] a écrit : Are you sure it works? For me it doesn't. 2006/3/14, langlois yan [EMAIL PROTECTED]: Hello, If you want to use environment variable you do not need a project.properties file. Juste use : ${env.JBOSS_HOME}. You need at least maven 2.0.1. Yan. --- Blaise Gosselin [EMAIL PROTECTED] a écrit : Hello, Is it possible to use environment variables as a reference in the project.properties file ? In fact, I'd like to make a reference to my environment variable JBOSS_HOME as ${JBOSS_HOME}. Is it possible ? Thanks in advance... ___ _ _ _ bgOnline ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.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] ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Continuum 1.0.3 RC require some tester
Hi, I think it's time to release Continuum 1.0.3. This release will incorporate 65 issues, including some critical fixes. The full listing of fixes can be found here: http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10540styleName=Htmlversion=12330 If you're interested, you can take the current release candidate for a test drive. The RC tarball is at: http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/continuum-20060316.173001.tar.gz Cheers, Emmanuel
Re: Continuum 1.0.3 RC require some tester
Sweet! Thanks to the Continuum team for all the hard work. _Mang Lau Emmanuel Venisse [EMAIL PROTECTED] 03/16/2006 04:33 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Continuum 1.0.3 RC require some tester Hi, I think it's time to release Continuum 1.0.3. This release will incorporate 65 issues, including some critical fixes. The full listing of fixes can be found here: http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10540styleName=Htmlversion=12330 If you're interested, you can take the current release candidate for a test drive. The RC tarball is at: http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/continuum-20060316.173001.tar.gz Cheers, Emmanuel
Re: Newbie Local Repository Question
localRepository does refer to a single user's local cache of artifacts. You can also configure Maven to use any other repository over a variety of protocols. If this is a repository on your intranet, that's fine too. You can access the repository via http, scp, sftp, and some others that may not be as fully tested, but I'm not sure of the status of each. See http://maven.apache.org/guides/getting-started/index.html##How%20do%20I%20deploy%20my%20jar%20in%20my%20remote%20repository? and http://maven.apache.org/guides/mini/guide-multiple-repositories.html to start. -Stephen On 3/16/06, Bruno Patini Furtado [EMAIL PROTECTED] wrote: Hi folks, I´m starting to use maven now (never used version 1.x.x) and have some doubts about Maven´s repositories. How could I set a local intranet Maven repository to our company´s projects components? How does maven lives with the Internet repositories and local ones? Where I can find documentation on how to install artifacts to a specific local repo and not the other ones. I had this first idea that settings.xml´s local Repository element referred to a simple single user cache of the JARs used. But I´m starting to think that´s not the case. Any page describing this concepts? Any help will be most appreciated! Regards. -- Minds are like parachutes, they work best when open. Bruno Patini Furtado Software Developer webpage: www.bpfurtado.net software development blog: http://bpfurtado.livejournal.com -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compiling generated sources
Hello, I have made my first maven2.0 plugin which is supposed to generate sources from a descriptor. Everything works ok as far as generation is concerned and I followed http://maven.apache.org/guides/mini/guide-generating-sources.html as closely as possible. BTW, I was very pleased with the ease with which I created and inserted my plugin into the lifecycle : compared with the pain and hassle of maven1.X jelly scripts and byzantine project layout, it is direct leap from walking to ferrari driving ! The (very small !) problem is : nothing gets compiled if I put the relative path which is by default ${project.build.directory}/generated-sources/fidl. I had to write : project.addCompileSourceRoot(outputDir.getAbsolutePath()); instead of project.addCompileSourceRoot(outputDir.getPath()); Is this a feature, am I missing something ? I would think that the expression would produce a correct relative path. thx for info, -- 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]
Re: avoid generation of TEST*.xml files
-DuseFile = false turns the xml and txt off. If you'd like to just turn off xml, please file a feature request. - Brett On 3/17/06, Wayne Fay [EMAIL PROTECTED] wrote: MM What I'm looking for is a way to reduce those 60 KB MM generated for each xml report. I don't know... that's not what you said originally... ;-) Wayne On 3/16/06, Manlio Malaidini [EMAIL PROTECTED] wrote: Oh, come on! The problem is that it takes time to generate them... :) MM On 3/16/06, Wayne Fay [EMAIL PROTECTED] wrote: Add an antrun task and attach to Test.PostGoal to delete the TEST*.xml files... ;-) Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: avoid generation of TEST*.xml files
On 3/16/06, Brett Porter [EMAIL PROTECTED] wrote: -DuseFile = false turns the xml and txt off. No, maven.junit.usefile=false doesn't turn xml off, only txt (and you have the txt output on console, so you are not gaining anything at all). And passing -Dmaven.junit.usefile=false on the command line has of course the same effect. If you'd like to just turn off xml, please file a feature request. My feature request would be: turn off xml and txt, that is to say avoid console as well. Thanks anyway. MM
Re: avoid generation of TEST*.xml files
You can formally file this request in the Maven JIRA. I guess the Surefire-plugin project is the right place... http://jira.codehaus.org/browse/MSUREFIRE Wayne On 3/16/06, Manlio Malaidini [EMAIL PROTECTED] wrote: On 3/16/06, Brett Porter [EMAIL PROTECTED] wrote: -DuseFile = false turns the xml and txt off. No, maven.junit.usefile=false doesn't turn xml off, only txt (and you have the txt output on console, so you are not gaining anything at all). And passing -Dmaven.junit.usefile=false on the command line has of course the same effect. If you'd like to just turn off xml, please file a feature request. My feature request would be: turn off xml and txt, that is to say avoid console as well. Thanks anyway. MM
Re: maven jar plugin: Manifest Entries?
build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest manifestFile/path/to/MANIFEST.MF/manifestFile /manifest /archive /configuration /plugin /plugins /build According to the documentation, this should work. Is it what you have in your pom.xml file? On 3/16/06, Sachin Patel [EMAIL PROTECTED] wrote: Adding the following manifestFile element failed to work for me as I get the following error.. [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT Cause: Cannot find setter nor field in org.apache.maven.archiver.ManifestConfiguration for 'manifestFile' Is this element no longer supported? If not, then how can I accomplish merging an existing manifest in my project with the maven generated one? I'm looking for a replacement for the m1 manifest override property. thx - sachin On Dec 30, 2005, at 10:32 PM, Alexandre Poitras wrote: And I think to add custom entries, you need to write them in a base manifest file wich you specify to be added to the generated manifest file. You just need to add this line to your plugin configuration : manifest manifestFile/path/to/MANIFEST.MF/manifestFile /manifest On 12/30/05, Alexandre Poitras [EMAIL PROTECTED] wrote: From your example, I am guessing you are looking for a way to specify the classpath. If that the case, you work too hard. Maven is all about laziness and of course it can generate the class path for you : plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin /plugins Voilà, everything is always in sync with your dependencies. I like the magic of Maven :) I hope it help! On 12/30/05, Jochen Wiedmann [EMAIL PROTECTED] wrote: Hi, how do I add manifest entries to the generated Jar file? I have tried various things in the style of plugin artifactIdmaven-jar-plugin/artifactId configuration archive manifest manifestEntries manifestEntry keyName/key valueorg/apache/xmlrpc//value /manifestEntry /manifestEntries /manifest /archive /configuration /plugin none of which seem to be working? Regards, Jochen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada -- Alexandre Poitras Québec, Canada - 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] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FW: Maven2 and WAS
There's no open source maven 2 plugin for WAS at this moment. I know Mergere company (www.mergere.com) has one. On 3/17/06, Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco) [EMAIL PROTECTED] wrote: And also, Is there a WAS plug-in for Maven 2 ??? -Original Message- From: Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco) Sent: Thursday, March 16, 2006 11:25 AM To: Maven Users List Subject: Maven2 and WAS Hi, How do we configure Maven2 to generate artifacts specific for Web Sphere ? like using rmic and wrd commands. wrd is for annotated beans. What exactly is this WAS plug-in for Maven. Does this takes care of it ? Thanks -Jagan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven jar plugin: Manifest Entries?
Yes, this is exactly what I have. I took a quick peak at the plugin code and I didn't see any reference to specifying a manifestFile either. ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest manifestFileMETA-INF/MANIFEST.MF/manifestFile /manifest /archive /configuration /plugin - sachin On Mar 16, 2006, at 6:13 PM, Alexandre Poitras wrote: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest manifestFile/path/to/MANIFEST.MF/manifestFile /manifest /archive /configuration /plugin /plugins /build According to the documentation, this should work. Is it what you have in your pom.xml file? On 3/16/06, Sachin Patel [EMAIL PROTECTED] wrote: Adding the following manifestFile element failed to work for me as I get the following error.. [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT Cause: Cannot find setter nor field in org.apache.maven.archiver.ManifestConfiguration for 'manifestFile' Is this element no longer supported? If not, then how can I accomplish merging an existing manifest in my project with the maven generated one? I'm looking for a replacement for the m1 manifest override property. thx - sachin On Dec 30, 2005, at 10:32 PM, Alexandre Poitras wrote: And I think to add custom entries, you need to write them in a base manifest file wich you specify to be added to the generated manifest file. You just need to add this line to your plugin configuration : manifest manifestFile/path/to/MANIFEST.MF/manifestFile /manifest On 12/30/05, Alexandre Poitras [EMAIL PROTECTED] wrote: From your example, I am guessing you are looking for a way to specify the classpath. If that the case, you work too hard. Maven is all about laziness and of course it can generate the class path for you : plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin /plugins Voilà, everything is always in sync with your dependencies. I like the magic of Maven :) I hope it help! On 12/30/05, Jochen Wiedmann [EMAIL PROTECTED] wrote: Hi, how do I add manifest entries to the generated Jar file? I have tried various things in the style of plugin artifactIdmaven-jar-plugin/artifactId configuration archive manifest manifestEntries manifestEntry keyName/key valueorg/apache/xmlrpc//value /manifestEntry /manifestEntries /manifest /archive /configuration /plugin none of which seem to be working? Regards, Jochen -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada -- Alexandre Poitras Québec, Canada - 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] -- Alexandre Poitras Québec, Canada - 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]
Package Naming In A Custom Maven 2 Archetype
Greetings - I'm currently developing a custom Maven 2 archetype. I'm running into a not very important, but somewhat annoying, problem in that I cannot seem to get package naming down. I've got several source code .java files in the src/main/resources/archetype-resources/src/main/java folder, and I would like to set it up so that, when I use the archetype to generate a skeleton directory structure, a few of these source objects go in a ${packageName}.dao package, a few others go in a ${packageName}.service package, and the rest go in a ${packageName}.domain package. The ${packageName} parameter will be specified from the command-line when executing the archetype:create command. For example, let's say I install my archetype and execute archetype:create using my custom archetype to generate a project. I'll add a command-line parameter like -DpackageName=org.blar.proj when I do this. I would like this to create a project with three packages within the src/main/java folder...one called org.blar.proj.dao, one called org.blar.proj.service, and one called org.blar.proj.domain (replace the periods with slashes to get the directory structure I would like to see), with the appropriate source files in each package folder. I have a package declaration as the first line of each source file in the custom archetype, and I've been experimenting to see if I could get this to work. I've tried doing something like package ${packageName}.dao; as the first line in my dao files, but this just causes the created directory structure to have everything in a directory tree that corresponds to the packageName parameter (under src/main/java, of course), without creating the final dao folder (the same occurs for the files I would like to put into service and domain packages). I've also tried placing the source files in the custom archetype in the src/main/resources/archetype-resources/src/main/java folder within subdirectories called dao, service, and domain, but this just causes the generated projects to have a structure such as dao/org/blar/proj (using the example packageName from above) under src/main/java, which is not the desired effect. The package names within the actual source files are resolving properly, it's just I can't seem to get the generated directory structure to reflect the packages properly. Does anyone have any idea how this can be done? Thanks, Brian Reath [EMAIL PROTECTED]