List of dependencies
hi, I know there is a param to enable that maven shows you the list of your dependencies and their dependencies, I used it already. But... I forgot and the mvn -help doesn't tell to much on that. thx, matthias -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven basedir
we are going to change our cvs, splitting our project into modules and for this reason project.xml, build.properties and project.properties are moved to a directory. We are still using Maven 1.Old structure:project |_ build.properties |_ project.properties |_ project.xml |_ src |_ tools |_ New structure: |_ conf |_build.properties |_project.properties |_project.xml |_ src |_ tools |_ ...So files - usually corresponding to ${basedir} - are no longer in the top level directory and goals like scm:update for example working recursive start in directory conf and miss all modifications done in src and tools.My question is, where do I set ${basedir}, so that I can use all files from conf dir, but let basedir=./project -- View this message in context: http://www.nabble.com/maven-basedir-tf2963988s177.html#a8292774 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-jar-plugin(?): customized classpath
Hi! I would like to create a project with the following structure of the final build baseDir +- conf/ | +- my confg .xml and .properties files +- lib/ | +- dep1.jar, dep2.jar +- myAp.jar executable I would like myApp to be able to access the configuration files, which can be manually achieved by putting Class-Path: conf/ lib/dep1.jar lib/dep2.jar into myApp.jar's manifest. I have tried putting plugin artifactIdmaven-jar-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath classpathPrefixlib/classpathPrefix mainClass${mainclass}/mainClass /manifest /archive /configuration /plugin into pom.xml but it only generates the lib/dep1.jar lib/dep2.jar part. Adding manifestFilemerge/MANITEST.MF/manifestFile after the manifest element, where the merge/MANIFEST.MF file contains only single line Class-Path: conf/ caused the whole classpath section to be replaced in the resulting manifest (i.e. there were no dependencies). Is there a way how to achieve the desired result using Maven so I do not need to manually add the conf/ to the jar's manifest after every build? Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: List of dependencies
mvn -X will show it in an ugly indented text format. Or you can generate the site with mvn site and then take a look at the generated Project Information - Dependencies page. Wayne On 1/12/07, Matthias Wessendorf [EMAIL PROTECTED] wrote: hi, I know there is a param to enable that maven shows you the list of your dependencies and their dependencies, I used it already. But... I forgot and the mvn -help doesn't tell to much on that. thx, matthias -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m 1.1] UMLGraph: Not generating files into target/docs/apidocs
Thanks for the hint, but that would be a bit over the top, since we've got about 200 projects. We use one central installation of Maven instead and if anyone doesn't get the newest version of some plugin automatically, simply deleting $HOME/.maven/cache usually fixes that. -Gisbert Arnaud HERITIER wrote: No problem. Don't forget that if you want to share it with several developers, you can add it in your project as a dependency. You'll be sure that every developer use this version of the javadoc plugin, even if it is not installed locally Arnaud On 1/11/07, Gisbert Amm [EMAIL PROTECTED] wrote: Silly me! You were right. It's all working well with version 1.8. Thanks a lot. -Gisbert Arnaud HERITIER wrote: Your problem is certainly related to MPJAVADOC-56 which is fixed in the version 1.8 Can you try to update this plugin ? Arnaud On 1/10/07, Gisbert Amm [EMAIL PROTECTED] wrote: I'm using maven-javadoc-plugin-1.7 -Gisbert Arnaud HERITIER wrote: Which version of the javadoc plugin are you using ? Arnaud On 1/10/07, Gisbert Amm [EMAIL PROTECTED] wrote: I'm trying to run UMLGraph with Maven 1.1 and it does work, BUT: The generated files are always written into the root directory of the project instead of target/docs/apidocs. This is my commandline: maven site:generate -Dmaven.build.dir=report_target -Dmaven.javadoc.doclet=gr.spinellis.umlgraph.doclet.UmlGraphDoc - Dmaven.javadoc.docletpath=/home/jbuild/.maven/repository/gr.spinellis/jars/UmlGraph-4.4.jar ... (left out the additional params for the sake of clarity) I've already tried setting maven.javadoc.usestandardparameters=true and even maven.javadoc.destdir=report_target/docs/apidocs, but both doesn't help. I found the description for Maven 2 on http://wiki.wsmoak.net/cgi-bin/wiki.pl?UMLGraph, but there is obviously nothing equivalent for Maven 1. Does anybody use UMLGraph successfully with Maven 1.1 and can give me some advice? Is my problem probably connnected with http://jira.codehaus.org/browse/MPJAVADOC-56? Thanks in advance for your help. -Gisbert -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8258632 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8262479 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8274262 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8293163 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parameterized versioning
Hello, Had a query regarding parameterized pom.xml versioning: I would like to keep the version numbers out of the pom.xml file completely, Currently I'm using the following syntax: version${module_version}/version And running Maven with: mvn -Dmodule_version=1.0-beta-3 deploy This is working fine, except that the deployed pom which gets installed into my repository doesn't resolve this variable. It does get installed into the correct directory structure, however the pom.xml still contains ${module_version} instead of 1.0-beta-3. I've been getting around this temporarily by manually correcting the poms...but shouldn't this be handled in the deploy plugin? Or is there any other approach other than making use of the release plugin ? Thanks, Amit Chhajed Senior Developer GBM | Royal Bank Of Scotland *** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our websites at: www.rbs.com www.rbsgc.com www.rbsmarkets.com *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: List of dependencies
thx! On 1/12/07, Wayne Fay [EMAIL PROTECTED] wrote: mvn -X will show it in an ugly indented text format. Or you can generate the site with mvn site and then take a look at the generated Project Information - Dependencies page. Wayne On 1/12/07, Matthias Wessendorf [EMAIL PROTECTED] wrote: hi, I know there is a param to enable that maven shows you the list of your dependencies and their dependencies, I used it already. But... I forgot and the mvn -help doesn't tell to much on that. thx, matthias -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-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] -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multi project Feature
Thx a lot for your reply. The example that you sent me suppose we have a global container projet for all modules : Lunar (eclipse project) ….. ear ….. ejb ….. web What i need is : Lunar-ear (eclipse project + pom.xml) Lunar-ejb (eclipse project + pom.xml) Lunar-web (eclipse Project + pom.xml) Lunar-workspace : eclipse project + the globale pom.xml (containes modules : lunar-ear, lunar-ejb, lunar-web) Thanks in advance De : Petr Ferschmann [mailto:[EMAIL PROTECTED] Envoyé : mercredi 10 janvier 2007 16:19 À : Maven Users List Cc : Marouane Amraoui Objet : RE: Multi project Feature In attachment you can see simple (very similar to yours) project structure that uses JBoss Seam (just ignore some parts of pom.xml). I hope it helps and it can go thru maven list. Marouane Amraoui píše v St 10. 01. 2007 v 13:16 +: Thx, So how can i do that with maven2 ??? -- Petr Ferschmann SoftEU s.r.o. --- Sady Petatricatniku 31 301 00 Plzen Czech Republic --- Phone: +420 373 729 300 Fax: +420 373 729 301 Cell: +420 775 638 008 E-mail: [EMAIL PROTECTED]
gwt maven 2
I have a gwt project and I am trying to buil dit with maven 2. I checked out maven-googlewebtoolkit2-plugin from |http://gw-maven.googlecode.com/svn/trunk/ |and built it and installed it and dependencies to .m2 local repository. I have added this plugin in the pom as follows: build plugins plugin groupIdcom.totsp.gwt.maven/groupId artifactIdmaven-googlewebtoolkit2-plugin/artifactId configuration googleWebToolkitOutputDirectory${basedir}/target/webapp/googleWebToolkitOutputDirectory googleWebToolkitCompileTargetcom.mycompany.myapp.customer.Hello/googleWebToolkitCompileTarget googleWebToolkitHomeC:\gwt/googleWebToolkitHome sourceDirectories param${basedir}/src/main/java//param /sourceDirectories /configuration dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev-windows/artifactId version1.3/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version1.3/version /dependency /dependencies /plugin /plugins /build I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath is as follows in the eclipse: classpath classpathentry kind=src path=src/main/java/ classpathentry kind=src path=src/main/resources/ classpathentry kind=src path=src/test/java output=target/test-classes/ classpathentry kind=output path=target/classes/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ /classpath When I try to run it as gwt project it cannot find com.mycompany.myapp.customer.Hello.gwt.xml. I am not sure how to set directory structure. Currently I have orginized directory structure as maven 2 directory structure. Hello.gwt.xml is located at: ${basedir}/src/main/java/com/mycompany/myapp/customer/ Did anyone use maven 2 to compile and deploy a gwt project? If you someone can provide more information or sample on this I 'd really appreceate it. I couldn't find much information on the web about this. Many Thanks, Maruf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: gwt maven 2
i think you have not included the .xml file the jar or war project use tag include*.xml /include in your pom By the way maven 1.0.2 plugin is quite god and powerfull (we are using gwt plugin in maven 1.0.2 Regards Neeraj On 1/12/07, Maruf Aytekin [EMAIL PROTECTED] wrote: I have a gwt project and I am trying to buil dit with maven 2. I checked out maven-googlewebtoolkit2-plugin from |http://gw-maven.googlecode.com/svn/trunk/ |and built it and installed it and dependencies to .m2 local repository. I have added this plugin in the pom as follows: build plugins plugin groupIdcom.totsp.gwt.maven/groupId artifactIdmaven-googlewebtoolkit2-plugin/artifactId configuration googleWebToolkitOutputDirectory${basedir}/target/webapp/googleWebToolkitOutputDirectory googleWebToolkitCompileTargetcom.mycompany.myapp.customer.Hello /googleWebToolkitCompileTarget googleWebToolkitHomeC:\gwt/googleWebToolkitHome sourceDirectories param${basedir}/src/main/java//param /sourceDirectories /configuration dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev-windows/artifactId version1.3/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version1.3/version /dependency /dependencies /plugin /plugins /build I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath is as follows in the eclipse: classpath classpathentry kind=src path=src/main/java/ classpathentry kind=src path=src/main/resources/ classpathentry kind=src path=src/test/java output=target/test-classes/ classpathentry kind=output path=target/classes/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ /classpath When I try to run it as gwt project it cannot find com.mycompany.myapp.customer.Hello.gwt.xml. I am not sure how to set directory structure. Currently I have orginized directory structure as maven 2 directory structure. Hello.gwt.xml is located at: ${basedir}/src/main/java/com/mycompany/myapp/customer/ Did anyone use maven 2 to compile and deploy a gwt project? If you someone can provide more information or sample on this I 'd really appreceate it. I couldn't find much information on the web about this. Many Thanks, Maruf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Plugin dependencies are not redefined
Hi. In my project, I am using the maven-jaxb1-plugin to compile XML Schemas into schema-derived classes. I would like to use this plugin in two modules but with different sets of plugin dependencies. For instance, in module A the maven-jaxb1-plugin needs no additional artifacts, schemas may be compiled as is. In module B I use some JAXB plugins, this requires some artifacts to be added into plugin dependencies. When I build modules A and B separately, everything works fine. However, when I execute the build of the parent project and B is built after A, module B fails since JAXB can't find the required dependencies. It seems that after the plugin was initialized in the A module, its dependencies are not overridden for B. Therefore in B JAXB lacks the required classes. Is there a possibility to handle the situation? Currently I have to exclude B from the modules of the parent POM, otherwise the build fails. Thanks. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multi project Feature
Hello, Actually you can do that too. But you need just one more project: root pom.xml ….. ear pom.xml ….. ejb pom.xml web pom.xml workspace pom.xml in ear, ejb, web you mark workspace as your parent. in root pom.xml you just add all modules to modules/ section. Than you run mvn eclipse:eclipse and it will generate you 3 (or 4, depending on what you put in workspace pom.xml) eclipse projects. The parent/ section defines from which pom.xml you want to derive. Not the module in upper directory. Does it help? Marouane Amraoui píše v Pá 12. 01. 2007 v 08:58 +: Thx a lot for your reply. The example that you sent me suppose we have a global container projet for all modules : Lunar (eclipse project) ….. ear ….. ejb ….. web What i need is : Lunar-ear (eclipse project + pom.xml) Lunar-ejb (eclipse project + pom.xml) Lunar-web (eclipse Project + pom.xml) Lunar-workspace : eclipse project + the globale pom.xml (containes modules : lunar-ear, lunar-ejb, lunar-web) Thanks in advance __ De : Petr Ferschmann [mailto:[EMAIL PROTECTED] Envoyé : mercredi 10 janvier 2007 16:19 À : Maven Users List Cc : Marouane Amraoui Objet : RE: Multi project Feature In attachment you can see simple (very similar to yours) project structure that uses JBoss Seam (just ignore some parts of pom.xml). I hope it helps and it can go thru maven list. Marouane Amraoui píše v St 10. 01. 2007 v 13:16 +: Thx, So how can i do that with maven2 ??? -- Petr Ferschmann SoftEU s.r.o. --- Sady Petatricatniku 31 301 00 Plzen Czech Republic --- Phone: +420 373 729 300 Fax: +420 373 729 301 Cell: +420 775 638 008 E-mail: [EMAIL PROTECTED] -- Petr Ferschmann SoftEU s.r.o. --- Sady Petatricatniku 31 301 00 Plzen Czech Republic --- Phone: +420 373 729 300 Fax: +420 373 729 301 Cell: +420 775 638 008 E-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature
Re: gwt maven 2
hey buddy, the following works for me like a charm, using gwt-maven-plugin ( http://codehaus.org/~shinobu/gwt-maven-plugin/index.html) ... plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId configuration className${className}/className /configuration executions execution idgwt-compile/id phasecompile/phase goals goalcompile/goal /goals /execution /executions dependencies dependency groupIdgwt-widgets/groupId artifactIdgwt-widgets/artifactId version0.1.2/version /dependency /dependencies /plugin ... where the ${classname} is your module's entry point. all you have to do is to checkout, compile and install the plugin. enjoy! /iulian On 1/12/07, Neeraj Bisht [EMAIL PROTECTED] wrote: i think you have not included the .xml file the jar or war project use tag include*.xml /include in your pom By the way maven 1.0.2 plugin is quite god and powerfull (we are using gwt plugin in maven 1.0.2 Regards Neeraj On 1/12/07, Maruf Aytekin [EMAIL PROTECTED] wrote: I have a gwt project and I am trying to buil dit with maven 2. I checked out maven-googlewebtoolkit2-plugin from |http://gw-maven.googlecode.com/svn/trunk/ |and built it and installed it and dependencies to .m2 local repository. I have added this plugin in the pom as follows: build plugins plugin groupIdcom.totsp.gwt.maven/groupId artifactIdmaven-googlewebtoolkit2-plugin/artifactId configuration googleWebToolkitOutputDirectory${basedir}/target/webapp/googleWebToolkitOutputDirectory googleWebToolkitCompileTargetcom.mycompany.myapp.customer.Hello /googleWebToolkitCompileTarget googleWebToolkitHomeC:\gwt/googleWebToolkitHome sourceDirectories param${basedir}/src/main/java//param /sourceDirectories /configuration dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev-windows/artifactId version1.3/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version1.3/version /dependency /dependencies /plugin /plugins /build I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath is as follows in the eclipse: classpath classpathentry kind=src path=src/main/java/ classpathentry kind=src path=src/main/resources/ classpathentry kind=src path=src/test/java output=target/test-classes/ classpathentry kind=output path=target/classes/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ /classpath When I try to run it as gwt project it cannot find com.mycompany.myapp.customer.Hello.gwt.xml. I am not sure how to set directory structure. Currently I have orginized directory structure as maven 2 directory structure. Hello.gwt.xml is located at: ${basedir}/src/main/java/com/mycompany/myapp/customer/ Did anyone use maven 2 to compile and deploy a gwt project? If you someone can provide more information or sample on this I 'd really appreceate it. I couldn't find much information on the web about this. Many Thanks, Maruf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multi project Feature
Okay, I will test and give you a feedback soon . Thx a lot. De : Petr Ferschmann [mailto:[EMAIL PROTECTED] Envoyé : vendredi 12 janvier 2007 10:16 À : Marouane Amraoui Cc : Maven Users List Objet : RE: Multi project Feature Hello, Actually you can do that too. But you need just one more project: root pom.xml ….. ear pom.xml ….. ejb pom.xml web pom.xml workspace pom.xml in ear, ejb, web you mark workspace as your parent. in root pom.xml you just add all modules to modules/ section. Than you run mvn eclipse:eclipse and it will generate you 3 (or 4, depending on what you put in workspace pom.xml) eclipse projects. The parent/ section defines from which pom.xml you want to derive. Not the module in upper directory. Does it help? Marouane Amraoui píše v Pá 12. 01. 2007 v 08:58 +: Thx a lot for your reply. The example that you sent me suppose we have a global container projet for all modules : Lunar (eclipse project) ….. ear ….. ejb ….. web What i need is : Lunar-ear (eclipse project + pom.xml) Lunar-ejb (eclipse project + pom.xml) Lunar-web (eclipse Project + pom.xml) Lunar-workspace : eclipse project + the globale pom.xml (containes modules : lunar-ear, lunar-ejb, lunar-web) Thanks in advance De : Petr Ferschmann [mailto:[EMAIL PROTECTED] Envoyé : mercredi 10 janvier 2007 16:19 À : Maven Users List Cc : Marouane Amraoui Objet : RE: Multi project Feature In attachment you can see simple (very similar to yours) project structure that uses JBoss Seam (just ignore some parts of pom.xml). I hope it helps and it can go thru maven list. Marouane Amraoui píše v St 10. 01. 2007 v 13:16 +: Thx, So how can i do that with maven2 ??? -- Petr Ferschmann SoftEU s.r.o. --- Sady Petatricatniku 31 301 00 Plzen Czech Republic --- Phone: +420 373 729 300 Fax: +420 373 729 301 Cell: +420 775 638 008 E-mail: [EMAIL PROTECTED] -- Petr Ferschmann SoftEU s.r.o. --- Sady Petatricatniku 31 301 00 Plzen Czech Republic --- Phone: +420 373 729 300 Fax: +420 373 729 301 Cell: +420 775 638 008 E-mail: [EMAIL PROTECTED]
Howto deploy source jars to local repository maven2
Hi, we have the problem that we want to deploy source jar files with maven2 to our local repository. I cannot found any documentation about the deployment of source jar's to a repository (I have also not found a goal or plugin which helps). Any hints or tipps are very welcome. Many thanks in advance, - Thomas Wabner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javadoc plugin not java5 compatible?
Hi! I've declared my parent pom as follows: artifactIdmaven-javadoc-plugin/artifactId version2.2-SNAPSHOT/version !-- also tried latest release -- configuration encoding${encoding.default}/encoding source${jdk.level}/source /configuration jdk.level is 1.5 But still this fails during site generation with the following errors: INFO] Generate JavaDocs report. Loading source file Loading source file 3 errors 1 warning [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error during page generation Embedded error: Error rendering Maven report: Exit code: 1 - generics are not supported in -source 1.3 (try -source 1.5 to enable generics) public Map send( Map parameters ) ^ generics are not supported in -source 1.3 (try -source 1.5 to enable generics) public Map send( Map parameters ) ^ for-each loops are not supported in -source 1.3 (try -source 1.5 to enable for-each loops) for ( Map.Entry entrySet : parameters.entrySet() ) ^ warning: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier (try -source 1.4 or higher to use 'assert' as a keyword) assert( stringTokenizer.countTokens() % 2 == 0 ); Some pathnames are left out here on puropose. -- David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: gwt maven 2
Thank you Julian, I have one more quetsion: How do you orginize directory structure? as maven 2 directory structure or you leave it as gwt directory structure that gwt project creaton tool is creating? Many Thanks, Maruf Iulian Costan wrote: hey buddy, the following works for me like a charm, using gwt-maven-plugin ( http://codehaus.org/~shinobu/gwt-maven-plugin/index.html) ... plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId configuration className${className}/className /configuration executions execution idgwt-compile/id phasecompile/phase goals goalcompile/goal /goals /execution /executions dependencies dependency groupIdgwt-widgets/groupId artifactIdgwt-widgets/artifactId version0.1.2/version /dependency /dependencies /plugin ... where the ${classname} is your module's entry point. all you have to do is to checkout, compile and install the plugin. enjoy! /iulian On 1/12/07, Neeraj Bisht [EMAIL PROTECTED] wrote: i think you have not included the .xml file the jar or war project use tag include*.xml /include in your pom By the way maven 1.0.2 plugin is quite god and powerfull (we are using gwt plugin in maven 1.0.2 Regards Neeraj On 1/12/07, Maruf Aytekin [EMAIL PROTECTED] wrote: I have a gwt project and I am trying to buil dit with maven 2. I checked out maven-googlewebtoolkit2-plugin from |http://gw-maven.googlecode.com/svn/trunk/ |and built it and installed it and dependencies to .m2 local repository. I have added this plugin in the pom as follows: build plugins plugin groupIdcom.totsp.gwt.maven/groupId artifactIdmaven-googlewebtoolkit2-plugin/artifactId configuration googleWebToolkitOutputDirectory${basedir}/target/webapp/googleWebToolkitOutputDirectory googleWebToolkitCompileTargetcom.mycompany.myapp.customer.Hello /googleWebToolkitCompileTarget googleWebToolkitHomeC:\gwt/googleWebToolkitHome sourceDirectories param${basedir}/src/main/java//param /sourceDirectories /configuration dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev-windows/artifactId version1.3/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version1.3/version /dependency /dependencies /plugin /plugins /build I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath is as follows in the eclipse: classpath classpathentry kind=src path=src/main/java/ classpathentry kind=src path=src/main/resources/ classpathentry kind=src path=src/test/java output=target/test-classes/ classpathentry kind=output path=target/classes/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ /classpath When I try to run it as gwt project it cannot find com.mycompany.myapp.customer.Hello.gwt.xml. I am not sure how to set directory structure. Currently I have orginized directory structure as maven 2 directory structure. Hello.gwt.xml is located at: ${basedir}/src/main/java/com/mycompany/myapp/customer/ Did anyone use maven 2 to compile and deploy a gwt project? If you someone can provide more information or sample on this I 'd really appreceate it. I couldn't find much information on the web about this. Many Thanks, Maruf - 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: passing custom parameters to a custom compiler-plugin
Hi all, @Jörg I tried your suggestion, but it didn't work. As I understood the documentation the expression-syntax is for properties and not for parameters. @Franz During compile phase, my compiler is definitely used. I can see the output and the execution of the goal in maven's output. The only problem is the parameter passing. In the meantime I found a workaround. But I would like to know the proper way to implement such a plugin. As workaround I did following: .) Disable the compiler in the components.xml. So no compile tag is defined for role-hintjar/role-hint .) Call the plugin in the pom.xml like this: plugin groupIdmygroup/groupId artifactIdcustomCompile/artifactId version1.0-SNAPSHOT/version executions execution idcustom-compilation/id phasecompile/phase configuration testParamtestValue/testParam /configuration goals goalcompile/goal /goals /execution /executions /plugin Regards, Martin --On Donnerstag, Januar 11, 2007 23:04:40 -0800 franz see [EMAIL PROTECTED] wrote: Good day, Actually, using @parameter only should be sufficient for it to be configured via the pom. The @expression is used for setting the parameter via commandline. Anyway, Martin M., try specifying in your plugin tag the groupId and version as well. It might still be trying to configure org.apache.maven.plugins:maven-compiler-plugin:RELEASE instead of your custom compiler plugin. Cheers, Franz Jörg Schaible wrote: Hi Martin, there's no automation. You need to provide the expression for the parameter to initialize: [snip] /** * @parameter expression=${testParam} **/ private String testParam [snip] Within the expression you can also address other parts of the POM ... another typical parameter is: /** * The directory for the generated file. * * @parameter expression=${project.build.directory} * @required */ private String outputDirectory; - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/passing-custom-parameters-to-a-custom-compiler-plug in-tf2958426s177.html#a8292757 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Martin Moser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javadoc plugin not java5 compatible?
Have you got your compiler plugin set to 1.5 as well? - Original message - From: David J. M. Karlsen [EMAIL PROTECTED] To: users@maven.apache.org Date: Fri, 12 Jan 2007 12:14:18 +0100 Subject: javadoc plugin not java5 compatible? Hi! I've declared my parent pom as follows: artifactIdmaven-javadoc-plugin/artifactId version2.2-SNAPSHOT/version !-- also tried latest release -- configuration encoding${encoding.default}/encoding source${jdk.level}/source /configuration jdk.level is 1.5 But still this fails during site generation with the following errors: INFO] Generate JavaDocs report. Loading source file Loading source file 3 errors 1 warning [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error during page generation Embedded error: Error rendering Maven report: Exit code: 1 - generics are not supported in -source 1.3 (try -source 1.5 to enable generics) public Map send( Map parameters ) ^ generics are not supported in -source 1.3 (try -source 1.5 to enable generics) public Map send( Map parameters ) ^ for-each loops are not supported in -source 1.3 (try -source 1.5 to enable for-each loops) for ( Map.Entry entrySet : parameters.entrySet() ) ^ warning: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier (try -source 1.4 or higher to use 'assert' as a keyword) assert( stringTokenizer.countTokens() % 2 == 0 ); Some pathnames are left out here on puropose. -- David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.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]
JavaDoc to xdoc plugin?
Hi Folks, I could use a JavaDoc to xdoc plugin, is there one around? either for m1 or m2? I'd like to splice my javadoc into a xdoc page and then publish it as part of the site generated by maven. Thanks, -- Toby
Re: JavaDoc to xdoc plugin?
you don't need to convert javadoc to xdoc. The javadoc plugin generate the javadoc and it will be part of the generate site. Emmanuel Toby Weston a écrit : Hi Folks, I could use a JavaDoc to xdoc plugin, is there one around? either for m1 or m2? I'd like to splice my javadoc into a xdoc page and then publish it as part of the site generated by maven. Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't access ibiblio with amven anymore, with browser it works
And even if I try wget, I get 403: Forbidden [EMAIL PROTECTED]:~/releasemanagement/systemone/core/systemone-core-configuration$ wget http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom --13:53:58-- http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom = `commons-configuration-1.3.pom' Resolving repo1.maven.org... 63.246.7.148 Connecting to repo1.maven.org[63.246.7.148]:80... connected. HTTP request sent, awaiting response... 403 Forbidden 13:53:58 ERROR 403: Forbidden. thank you roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't access ibiblio with amven anymore, with browser it works
On 1/12/07, Roland Kofler [EMAIL PROTECTED] wrote: And even if I try wget, I get 403: Forbidden [EMAIL PROTECTED]:~/releasemanagement/systemone/core/systemone-core-configuration$ wget http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom --13:53:58-- http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom = `commons-configuration-1.3.pom' Resolving repo1.maven.org... 63.246.7.148 Connecting to repo1.maven.org[63.246.7.148]:80... connected. HTTP request sent, awaiting response... 403 Forbidden 13:53:58 ERROR 403: Forbidden. It should work for maven (or for download using regular browser). wget (and some other mass-download tools I think) are 'disabled' at server side because users were trying to download whole repository using them and this causes high traffic (and cost) for maven.org maintaners. So - add dependency to your pom.xml and maven2 will download files for you. HTH, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't access ibiblio with amven anymore, with browser it works
funny but Downloading: http://development1:/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar [WARNING] Unable to get resource from repository systemone-snapshots (http://development1:/repository) Downloading: http://development1:/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. but the given path commons-beanutils-1.6.jar its right. Where can i see more on whats going on? -X didn't reveal anything further. Thanks Roland Tomasz Pik wrote: On 1/12/07, Roland Kofler [EMAIL PROTECTED] wrote: And even if I try wget, I get 403: Forbidden [EMAIL PROTECTED]:~/releasemanagement/systemone/core/systemone-core-configuration$ wget http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom --13:53:58-- http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom = `commons-configuration-1.3.pom' Resolving repo1.maven.org... 63.246.7.148 Connecting to repo1.maven.org[63.246.7.148]:80... connected. HTTP request sent, awaiting response... 403 Forbidden 13:53:58 ERROR 403: Forbidden. It should work for maven (or for download using regular browser). wget (and some other mass-download tools I think) are 'disabled' at server side because users were trying to download whole repository using them and this causes high traffic (and cost) for maven.org maintaners. So - add dependency to your pom.xml and maven2 will download files for you. HTH, Tomek - 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: Can't access ibiblio with amven anymore, with browser it works
http://development1: ??? Is it a mirror? Emmanuel Roland Kofler a écrit : funny but Downloading: http://development1:/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar [WARNING] Unable to get resource from repository systemone-snapshots (http://development1:/repository) Downloading: http://development1:/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. but the given path commons-beanutils-1.6.jar its right. Where can i see more on whats going on? -X didn't reveal anything further. Thanks Roland Tomasz Pik wrote: On 1/12/07, Roland Kofler [EMAIL PROTECTED] wrote: And even if I try wget, I get 403: Forbidden [EMAIL PROTECTED]:~/releasemanagement/systemone/core/systemone-core-configuration$ wget http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom --13:53:58-- http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom = `commons-configuration-1.3.pom' Resolving repo1.maven.org... 63.246.7.148 Connecting to repo1.maven.org[63.246.7.148]:80... connected. HTTP request sent, awaiting response... 403 Forbidden 13:53:58 ERROR 403: Forbidden. It should work for maven (or for download using regular browser). wget (and some other mass-download tools I think) are 'disabled' at server side because users were trying to download whole repository using them and this causes high traffic (and cost) for maven.org maintaners. So - add dependency to your pom.xml and maven2 will download files for you. HTH, Tomek - 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: Can't access ibiblio with amven anymore, with browser it works
Our corporate repository and maven proxy roland Emmanuel Venisse wrote: http://development1: ??? Is it a mirror? Emmanuel Roland Kofler a écrit : funny but Downloading: http://development1:/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar [WARNING] Unable to get resource from repository systemone-snapshots (http://development1:/repository) Downloading: http://development1:/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. but the given path commons-beanutils-1.6.jar its right. Where can i see more on whats going on? -X didn't reveal anything further. Thanks Roland Tomasz Pik wrote: On 1/12/07, Roland Kofler [EMAIL PROTECTED] wrote: And even if I try wget, I get 403: Forbidden [EMAIL PROTECTED]:~/releasemanagement/systemone/core/systemone-core-configuration$ wget http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom --13:53:58-- http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom = `commons-configuration-1.3.pom' Resolving repo1.maven.org... 63.246.7.148 Connecting to repo1.maven.org[63.246.7.148]:80... connected. HTTP request sent, awaiting response... 403 Forbidden 13:53:58 ERROR 403: Forbidden. It should work for maven (or for download using regular browser). wget (and some other mass-download tools I think) are 'disabled' at server side because users were trying to download whole repository using them and this causes high traffic (and cost) for maven.org maintaners. So - add dependency to your pom.xml and maven2 will download files for you. HTH, Tomek - 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: Can't access ibiblio with amven anymore, with browser it works
It's probably your maven proxy that isn't well configured, but the central repo works fine Emmanuel Roland Kofler a écrit : Our corporate repository and maven proxy roland Emmanuel Venisse wrote: http://development1: ??? Is it a mirror? Emmanuel Roland Kofler a écrit : funny but Downloading: http://development1:/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar [WARNING] Unable to get resource from repository systemone-snapshots (http://development1:/repository) Downloading: http://development1:/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. but the given path commons-beanutils-1.6.jar its right. Where can i see more on whats going on? -X didn't reveal anything further. Thanks Roland Tomasz Pik wrote: On 1/12/07, Roland Kofler [EMAIL PROTECTED] wrote: And even if I try wget, I get 403: Forbidden [EMAIL PROTECTED]:~/releasemanagement/systemone/core/systemone-core-configuration$ wget http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom --13:53:58-- http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom = `commons-configuration-1.3.pom' Resolving repo1.maven.org... 63.246.7.148 Connecting to repo1.maven.org[63.246.7.148]:80... connected. HTTP request sent, awaiting response... 403 Forbidden 13:53:58 ERROR 403: Forbidden. It should work for maven (or for download using regular browser). wget (and some other mass-download tools I think) are 'disabled' at server side because users were trying to download whole repository using them and this causes high traffic (and cost) for maven.org maintaners. So - add dependency to your pom.xml and maven2 will download files for you. HTH, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't access ibiblio with amven anymore, with browser it works
Check out the announcement on the maven 1 page http://maven.apache.org/maven-1.x/ On 1/12/07, Roland Kofler [EMAIL PROTECTED] wrote: And even if I try wget, I get 403: Forbidden [EMAIL PROTECTED] :~/releasemanagement/systemone/core/systemone-core-configuration$ wget http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom --13:53:58-- http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom = `commons-configuration-1.3.pom' Resolving repo1.maven.org... 63.246.7.148 Connecting to repo1.maven.org[63.246.7.148]:80... connected. HTTP request sent, awaiting response... 403 Forbidden 13:53:58 ERROR 403: Forbidden. thank you roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't access ibiblio with amven anymore, with browser it works
Yes, connecting directly to ibiblo works, so I have to figure out whats going on with maven-proxy (didn't change it for years) thanks roland Emmanuel Venisse wrote: It's probably your maven proxy that isn't well configured, but the central repo works fine Emmanuel Roland Kofler a écrit : Our corporate repository and maven proxy roland Emmanuel Venisse wrote: http://development1: ??? Is it a mirror? Emmanuel Roland Kofler a écrit : funny but Downloading: http://development1:/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar [WARNING] Unable to get resource from repository systemone-snapshots (http://development1:/repository) Downloading: http://development1:/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. but the given path commons-beanutils-1.6.jar its right. Where can i see more on whats going on? -X didn't reveal anything further. Thanks Roland Tomasz Pik wrote: On 1/12/07, Roland Kofler [EMAIL PROTECTED] wrote: And even if I try wget, I get 403: Forbidden [EMAIL PROTECTED]:~/releasemanagement/systemone/core/systemone-core-configuration$ wget http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom --13:53:58-- http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom = `commons-configuration-1.3.pom' Resolving repo1.maven.org... 63.246.7.148 Connecting to repo1.maven.org[63.246.7.148]:80... connected. HTTP request sent, awaiting response... 403 Forbidden 13:53:58 ERROR 403: Forbidden. It should work for maven (or for download using regular browser). wget (and some other mass-download tools I think) are 'disabled' at server side because users were trying to download whole repository using them and this causes high traffic (and cost) for maven.org maintaners. So - add dependency to your pom.xml and maven2 will download files for you. HTH, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Scoping inconsistency with multi-module build
I've noticed the following problem: module a depends on commons-lang (scope compile) module b depends on commons-lang (scope provided) module c depends on module a (scope test) module c depends on module b (scope provided) If I run mvn on the top level pom (with a module set) the compile of module c fails because the test scope wins (meaning that source code in src/main/java does not have commons-lang in the classpath). If I run mvn on module c only, the provided scope wins, and everything works fine. Changing module a to depend on commons-lang (scope provided) resolved this issue, but the inconsistency is there nonetheless. The inconsistency seems to be that in a reactor build, module dependencies are provided by MavenProject instances, whereas when the individual module is built, the module dependency is processed like any other from the pom in the repository. So I think the bug is in how module dependencies are processed. Should I open an issue in JIRA? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Correlation between tagging and versioning
What is this dependency ? Can't you use a timestamped version like 2.0-20050406.035304-1 or something ? - Yann 2007/1/11, moraleslos [EMAIL PROTECTED]: I'm reading the maven release:prepare and noticed that it will not build because of SNAPSHOT dependencies. In my multiproject, I'm using a dependency that is currently in SNAPSHOT release and won't be upgraded for a while.Is there a way to bypass this since this 3rd party dependency's release version is out of my control? -los Yann Le Du-4 wrote: Hi Los, maven-release-plugin is your friend : http://maven.apache.org/plugins/maven-release-plugin/ Tag version and POM version must indeed match. - Yann 2007/1/11, moraleslos [EMAIL PROTECTED]: I'm about to tag my code in my repository to the maven-recommended x.x.x-y-z format-- probably at 1.0.0-alpha-1. I was wondering how this correlates to the version used in my POMs-- currently at 1.0-SNAPSHOT. Shouldn't they match, or are they suppose to be different? I'm new to the tagging/branching of code for release so if anyone has any suggestions, I would appreciate it. I just would like to know how maven2 can help facilitate in code releases since it has some project management functionality built in. Thanks in advance. -los -- View this message in context: http://www.nabble.com/Correlation-between-tagging-and-versioning-tf2957108s177.html#a8272307 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Correlation-between-tagging-and-versioning-tf2957108s177.html#a8286933 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Correlation between tagging and versioning
Most of the time when this happens and it is an open source project I check out the source and release it to our company repository with our companyname in the version. ie. project-1.1.1-name-1. Hth, Nick S. Yann Le Du wrote: What is this dependency ? Can't you use a timestamped version like 2.0-20050406.035304-1 or something ? - Yann 2007/1/11, moraleslos [EMAIL PROTECTED]: I'm reading the maven release:prepare and noticed that it will not build because of SNAPSHOT dependencies. In my multiproject, I'm using a dependency that is currently in SNAPSHOT release and won't be upgraded for a while.Is there a way to bypass this since this 3rd party dependency's release version is out of my control? -los Yann Le Du-4 wrote: Hi Los, maven-release-plugin is your friend : http://maven.apache.org/plugins/maven-release-plugin/ Tag version and POM version must indeed match. - Yann 2007/1/11, moraleslos [EMAIL PROTECTED]: I'm about to tag my code in my repository to the maven-recommended x.x.x-y-z format-- probably at 1.0.0-alpha-1. I was wondering how this correlates to the version used in my POMs-- currently at 1.0-SNAPSHOT. Shouldn't they match, or are they suppose to be different? I'm new to the tagging/branching of code for release so if anyone has any suggestions, I would appreciate it. I just would like to know how maven2 can help facilitate in code releases since it has some project management functionality built in. Thanks in advance. -los -- View this message in context: http://www.nabble.com/Correlation-between-tagging-and-versioning-tf2957108s177.html#a8272307 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Correlation-between-tagging-and-versioning-tf2957108s177.html#a8286933 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jar plugin and assembly plugin disagree on SNAPSHOT versions
So I have my jar plugin include the classpath in the manifest. That classpath specifies the version text as x.y-SNAPSHOT. The assembly plugin, on the other hand, packs the resolved snapshot name (x.y-date.sig-buildnr) of the jars into the assembly, causing the application to fail. Is there a way to tell the assembly plugin to not do that? -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto deploy source jars to local repository maven2
Hi Thomas, You can use the performRelease option : mvn install -DperformRelease=true It installs, along the usual JAR, a source JAR and a Javadoc JAR. - Yann 2007/1/12, Thomas Wabner [EMAIL PROTECTED]: Hi, we have the problem that we want to deploy source jar files with maven2 to our local repository. I cannot found any documentation about the deployment of source jar's to a repository (I have also not found a goal or plugin which helps). Any hints or tipps are very welcome. Many thanks in advance, - Thomas Wabner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Specify META-INF location for ejb project
How do I specify the lcoation of the META-INF directory for an ejb project that doesn't follow the standard maven project structure, similar to how I specify warSourceDirectory for the war plugin? Regards, Jeremy
Re: jar plugin and assembly plugin disagree on SNAPSHOT versions
If you use the 2.2-SNAPSHOT version of the assembly plugin, you can specify the outputFileNameMapping in the dependencySet to be something like the following descriptor has: assembly idbin/id formats formatdir/format /formats includeBaseDirectoryfalse/includeBaseDirectory dependencySets dependencySet unpackfalse/unpack outputDirectorylib/outputDirectory outputFileNameMapping${artifactId}-${baseVersion}.${extension}/outputFileNameMapping /dependencySet /dependencySets /assembly -john On 1/12/07, Christian Goetze [EMAIL PROTECTED] wrote: So I have my jar plugin include the classpath in the manifest. That classpath specifies the version text as x.y-SNAPSHOT. The assembly plugin, on the other hand, packs the resolved snapshot name (x.y-date.sig-buildnr) of the jars into the assembly, causing the application to fail. Is there a way to tell the assembly plugin to not do that? -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[XML-RPC] using the api
Hi, I am working on the Netbeans integration of continuum and I have a trouble in getting developer list on the continuum.getProjects call. Indeed, for each project the developers list is empty. I have to call the continuum.getProject to get the real developers list. I am using the facade already developped by Milos (http://svn.apache.org/viewcvs.cgi/maven/continuum/tags/continuum-1.0.3/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/ProjectsReader.java?rev=395968view=markup) I do not think it is due to the Milos code. My question is : do you think it is Contnuum dev issue ? best regards. Laurent.
Re: jar plugin and assembly plugin disagree on SNAPSHOT versions
Christian Goetze wrote: So I have my jar plugin include the classpath in the manifest. That classpath specifies the version text as x.y-SNAPSHOT. The assembly plugin, on the other hand, packs the resolved snapshot name (x.y-date.sig-buildnr) of the jars into the assembly, causing the application to fail. Is there a way to tell the assembly plugin to not do that? You are experiencing MNG-2456. At the company where I work, we've worked around what appears to be a maven core bug by patching maven-archiver (MNG-2456-maxb.patch), then patching maven-jar-plugin to use the patched maven-archiver (just tweaked the dependency in the POM), and deploying both to our internal repository. -- Max Bowsher [EMAIL PROTECTED] http://www.mxtelecom.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-jar-plugin(?): customized classpath
I had to do this a while back so it might have changed in a more recent build, but when I had something like this, I just had to specify my own complete MANIFEST.MF file and tell Maven to use it instead of generating one. You either took the Maven-generated Manifest or built your own entirely (at the time). This sounds like something that could be useful (merging your own Manifest with the Maven-generated one) so I'd expect its already an RFE in JIRA and possibly has been implemented in a Snapshot build. Check JIRA and see what you can find. Wayne On 1/12/07, Ján Ďurovec [EMAIL PROTECTED] wrote: Hi! I would like to create a project with the following structure of the final build baseDir +- conf/ | +- my confg .xml and .properties files +- lib/ | +- dep1.jar, dep2.jar +- myAp.jar executable I would like myApp to be able to access the configuration files, which can be manually achieved by putting Class-Path: conf/ lib/dep1.jar lib/dep2.jar into myApp.jar's manifest. I have tried putting plugin artifactIdmaven-jar-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath classpathPrefixlib/classpathPrefix mainClass${mainclass}/mainClass /manifest /archive /configuration /plugin into pom.xml but it only generates the lib/dep1.jar lib/dep2.jar part. Adding manifestFilemerge/MANITEST.MF/manifestFile after the manifest element, where the merge/MANIFEST.MF file contains only single line Class-Path: conf/ caused the whole classpath section to be replaced in the resulting manifest (i.e. there were no dependencies). Is there a way how to achieve the desired result using Maven so I do not need to manually add the conf/ to the jar's manifest after every build? Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto deploy source jars to local repository maven2
Hi Yann Le Du, many many thanks for this hint ;-) Works perfect *jippi* - Thomas Yann Le Du schrieb: Hi Thomas, You can use the performRelease option : mvn install -DperformRelease=true It installs, along the usual JAR, a source JAR and a Javadoc JAR. - Yann 2007/1/12, Thomas Wabner [EMAIL PROTECTED]: Hi, we have the problem that we want to deploy source jar files with maven2 to our local repository. I cannot found any documentation about the deployment of source jar's to a repository (I have also not found a goal or plugin which helps). Any hints or tipps are very welcome. Many thanks in advance, - Thomas Wabner - 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: [XML-RPC] using the api
Laurent Forêt a écrit : Hi, I am working on the Netbeans integration of continuum and I have a trouble in getting developer list on the continuum.getProjects call. Indeed, for each project the developers list is empty. I have to call the continuum.getProject to get the real developers list. I am using the facade already developped by Milos (http://svn.apache.org/viewcvs.cgi/maven/continuum/tags/continuum-1.0.3/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/ProjectsReader.java?rev=395968view=markup) I do not think it is due to the Milos code. My question is : do you think it is Contnuum dev issue ? Probably, or maybe fixed in 1.1, I don't know Emmanuel
Re: gwt maven 2
On 1/12/07, Maruf Aytekin [EMAIL PROTECTED] wrote: Thank you Julian, I have one more quetsion: How do you orginize directory structure? as maven 2 directory structure or you leave it as gwt directory structure that gwt project creaton tool is creating? i have maven2 structure, src/{main,test}/{java,webapp,etc}. by default plugin generates output to to target/gwt/www/${className}, adding this you'll get webapp packed and ready to deploy ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration webResources resource directory ${project.build.directory }/gwt/www/${className} /directory /resource /webResources /configuration /plugin ... /iulian Many Thanks, Maruf Iulian Costan wrote: hey buddy, the following works for me like a charm, using gwt-maven-plugin ( http://codehaus.org/~shinobu/gwt-maven-plugin/index.html) ... plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId configuration className${className}/className /configuration executions execution idgwt-compile/id phasecompile/phase goals goalcompile/goal /goals /execution /executions dependencies dependency groupIdgwt-widgets/groupId artifactIdgwt-widgets/artifactId version0.1.2/version /dependency /dependencies /plugin ... where the ${classname} is your module's entry point. all you have to do is to checkout, compile and install the plugin. enjoy! /iulian On 1/12/07, Neeraj Bisht [EMAIL PROTECTED] wrote: i think you have not included the .xml file the jar or war project use tag include*.xml /include in your pom By the way maven 1.0.2 plugin is quite god and powerfull (we are using gwt plugin in maven 1.0.2 Regards Neeraj On 1/12/07, Maruf Aytekin [EMAIL PROTECTED] wrote: I have a gwt project and I am trying to buil dit with maven 2. I checked out maven-googlewebtoolkit2-plugin from |http://gw-maven.googlecode.com/svn/trunk/ |and built it and installed it and dependencies to .m2 local repository. I have added this plugin in the pom as follows: build plugins plugin groupIdcom.totsp.gwt.maven/groupId artifactIdmaven-googlewebtoolkit2-plugin/artifactId configuration googleWebToolkitOutputDirectory${basedir}/target/webapp/googleWebToolkitOutputDirectory googleWebToolkitCompileTargetcom.mycompany.myapp.customer.Hello /googleWebToolkitCompileTarget googleWebToolkitHomeC:\gwt/googleWebToolkitHome sourceDirectories param${basedir}/src/main/java//param /sourceDirectories /configuration dependencies dependency groupIdcom.google.gwt/groupId artifactIdgwt-dev-windows/artifactId version1.3/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version1.3/version /dependency /dependencies /plugin /plugins /build I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath is as follows in the eclipse: classpath classpathentry kind=src path=src/main/java/ classpathentry kind=src path=src/main/resources/ classpathentry kind=src path=src/test/java output=target/test-classes/ classpathentry kind=output path=target/classes/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ /classpath When I try to run it as gwt project it cannot find com.mycompany.myapp.customer.Hello.gwt.xml. I am not sure how to set directory structure. Currently I have orginized directory structure as maven 2 directory structure. Hello.gwt.xml is located at: ${basedir}/src/main/java/com/mycompany/myapp/customer/ Did anyone use maven 2 to compile and deploy a gwt project? If you someone can provide more information or sample on this I 'd really appreceate it. I couldn't find much information on the web about this. Many Thanks, Maruf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: gwt maven 2
On 1/12/07, Iulian Costan [EMAIL PROTECTED] wrote: On 1/12/07, Maruf Aytekin [EMAIL PROTECTED] wrote: Thank you Julian, I have one more quetsion: How do you orginize directory structure? as maven 2 directory structure or you leave it as gwt directory structure that gwt project creaton tool is creating? and the package structure is the one suggested by gwt: client, server, public, etc. hope it helps. /iulian i have maven2 structure, src/{main,test}/{java,webapp,etc}. by default plugin generates output to to target/gwt/www/${className}, adding this you'll get webapp packed and ready to deploy ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration webResources resource directory ${project.build.directory }/gwt/www/${className} /directory /resource /webResources /configuration /plugin ... /iulian Many Thanks, Maruf Iulian Costan wrote: hey buddy, the following works for me like a charm, using gwt-maven-plugin ( http://codehaus.org/~shinobu/gwt-maven-plugin/index.htmlhttp://codehaus.org/%7Eshinobu/gwt-maven-plugin/index.html ) ... plugin groupId org.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId configuration className${className}/className /configuration executions execution idgwt-compile/id phasecompile/phase goals goalcompile/goal /goals /execution /executions dependencies dependency groupIdgwt-widgets/groupId artifactIdgwt-widgets/artifactId version0.1.2/version /dependency /dependencies /plugin ... where the ${classname} is your module's entry point. all you have to do is to checkout, compile and install the plugin. enjoy! /iulian On 1/12/07, Neeraj Bisht [EMAIL PROTECTED] wrote: i think you have not included the .xml file the jar or war project use tag include*.xml /include in your pom By the way maven 1.0.2 plugin is quite god and powerfull (we are using gwt plugin in maven 1.0.2 Regards Neeraj On 1/12/07, Maruf Aytekin [EMAIL PROTECTED] wrote: I have a gwt project and I am trying to buil dit with maven 2. I checked out maven-googlewebtoolkit2-plugin from |http://gw-maven.googlecode.com/svn/trunk/ |and built it and installed it and dependencies to .m2 local repository. I have added this plugin in the pom as follows: build plugins plugin groupId com.totsp.gwt.maven/groupId artifactIdmaven-googlewebtoolkit2-plugin/artifactId configuration googleWebToolkitOutputDirectory${basedir}/target/webapp/googleWebToolkitOutputDirectory googleWebToolkitCompileTargetcom.mycompany.myapp.customer.Hello /googleWebToolkitCompileTarget googleWebToolkitHomeC:\gwt/googleWebToolkitHome sourceDirectories param${basedir}/src/main/java//param /sourceDirectories /configuration dependencies dependency groupId com.google.gwt/groupId artifactIdgwt-dev-windows/artifactId version1.3/version /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version1.3/version /dependency /dependencies /plugin /plugins /build I ran mvn googlewebtoolkit2:compile and it compiled fine. classpath is as follows in the eclipse: classpath classpathentry kind=src path=src/main/java/ classpathentry kind=src path=src/main/resources/ classpathentry kind=src path=src/test/java output=target/test-classes/ classpathentry kind=output path=target/classes/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ /classpath When I try to run it as gwt project it cannot find com.mycompany.myapp.customer.Hello.gwt.xml. I am not sure how to set directory structure. Currently I have orginized directory structure as maven 2 directory structure. Hello.gwt.xml is located at: ${basedir}/src/main/java/com/mycompany/myapp/customer/ Did anyone use maven 2 to compile and deploy a gwt project? If you someone can provide more information or sample on this I 'd really appreceate it. I
jsmooth anyone?
We're struggling with getting that to work... and I was wondering if anyone had some working code to contribute :) Ciurrently, we're trying to hook in an ant task to do this. -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xdoc test results for Dennis
drekka wrote: Hi Dennis, I'm running this under WinXP. Will that make a difference ? It shouldn't, as I run that too :) This is really weird. I've deleted the whole org/apache/maven directory just to be sure. Then deleted the /target directory and ran mvn clean site. Downloaded versions are: doxia(core site): 1.0-alpha-7 site: 2.0-beta-5 Same result again in index.html: div class=sectionh2section 1/h2 div class=sectionh3subsection 1/h3 pparagraph 1 in subsection 1/p ul lilist item 1/li lilist item 2/li /ul paragraph 2 in subsection 1 /div div class=sectionh3subsection 2/h3 paragraph 1 in subsection 2 /div /div If I do this, maven-site-plugin 2.0-beta-5 and doxia 1.0-alpha-7 and 1.0-alpha-8 is downloaded. For doxia, jars are only downloaded for alpha-8. The output I get is this: a name=section_1/adiv class=sectionh2section 1/h2 a name=subsection_1/adiv class=sectionh3subsection 1/h3 pparagraph 1 in subsection 1/p ul lilist item 1/li lilist item 2/li /ul pparagraph 2 in subsection 1/p /div a name=subsection_2/adiv class=sectionh3subsection 2/h3 pparagraph 1 in subsection 2/p /div /div Note here that I get the a ... tags as well. This indicated that you and I are not running the same versions. If you run this instead: mvn clean mvn -X site You should get the versions being used printed out for you on the command line. The site-plugin comes in the very beginning and doxia about one page down. Also tried: Running under cgwin - no difference. Commenting out the 2.0-beta-5 dependency - no difference. ... 2 hours later ;-) ... Been trolling the repository and jars. I've tried to check out Maven several times now and Eclipse just crashes after about 5 minutes of downloading. Gives some message about the server killing the connection. Anyway, trolling the repository directly is slow but I think I have a handle on this. Three classes are involved MXParser which parses the source index.xml, XDocParser which responds to the xml events as the file is read and feeds the data to XdocSink which formats the output and writes it to the html file. Looking inside XdocSink we see that there is a flag (as I suspected) which is set when dealing with a list. This flag is also checked when receiving p tag events. I cannot see anything wrong with the code, but it looks as if the communication between these three classes is going awry somewhere. The code in XdocSink suggests that possibly after the /ul tag is written the flag is somehow not being reset which would cause the next p to be ignored. However the next /p would still reset the flag. So I thought perhaps thing is causing the MXParser to send data following this in a way that XDocParser is not seeing as p tags. Too hard to tell from the source, I would really need to debug through and as I said I've had no luck trying to checkc it out. Hope this helps. Derek P.S. I also traced the MXParser back to the core maven pluxus lib (v1.1) and manually updaed it to v1.4, but that didn't fix it either ;-( Dennis Lundberg-2 wrote: drekka wrote: Hi Dennis, As expected, the results are the same - no p tags: Hi Derek Actually that's not what I expected. If we are using the same version of Maven and the site-plugin we should get the same results. What OS are you running this on? You might also try to nuke the org/apache/maven/plugins/maven-site-plugin and org/apache/maven/doxia directories of your local repository. This would trigger a fresh download of the site-plugin and doxia, during the next run. div id=bodyColumn div id=contentBox div class=sectionh2section 1/h2 div class=sectionh3subsection 1/h3 pparagraph 1 in subsection 1/p ul lilist item 1/li lilist item 2/li /ul paragraph 2 in subsection 1 /div div class=sectionh3subsection 2/h3 paragraph 1 in subsection 2 /div /div /div /div I'll re-install maven and try again. ciao Derek -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] any estimate for the next maven-ejb-plugin release (2.1) ?
Does anyone know when maven-ejb-plugin 2.1 will be released ? Thanks, Dário - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: enabling logging
i normally always run: mvn -e Then to add debug tracing I use: mvn -X -e On 1/11/07, Nir Feldman [EMAIL PROTECTED] wrote: Just run mvn -X -Original Message- From: Dmitry Beransky [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 6:22 PM To: Maven Users List Subject: enabling logging Hi, How can I enable debug level logging for maven's plugins. I'd like to see what goes on before this exception is thrown: Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java :184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:534) ... 10 more Caused by: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: reject HostKey: newzealand.TRAVELSECURE.LOCAL at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(Abs tractSshWagon.java:239) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java :153) ... 12 more Caused by: com.jcraft.jsch.JSchException: reject HostKey: newzealand.TRAVELSECURE.LOCAL at com.jcraft.jsch.Session.checkHost(Unknown Source) at com.jcraft.jsch.Session.connect(Unknown Source) at com.jcraft.jsch.Session.connect(Unknown Source) at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(Abs tractSshWagon.java:228) ... 15 more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks DJ MICK (Mick Knutson) http://www.djmick.com http://www.myspace.com/djmick_dot_com http://www.thumpradio.com
Re: jar plugin and assembly plugin disagree on SNAPSHOT versions
John Casey wrote: If you use the 2.2-SNAPSHOT version of the assembly plugin, you can specify the outputFileNameMapping in the dependencySet to be something like the following descriptor has: Stupid question: what is the groupId of the 2.2-SNAPSHOT version of the assembly plugin? It doesn't seem to be org.apache.maven.plugins. -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eclipse not picking up settings.xml
What do I need to do to configure Eclipse 3.2 to pick up the settings.xml file defined in %M2_HOME%/conf? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
RE: Eclipse not picking up settings.xml
Hi Alex, If by 'Eclipse' you mean the M2Eclipse plugin, that's a known issue with the plugin - it never reads settings.xml. Thanks, Ryan Slobojan -Original Message- From: Morgovsky, Alexander (US - Glen Mills) [mailto:[EMAIL PROTECTED] Sent: Friday, January 12, 2007 10:25 AM To: users@maven.apache.org Subject: Eclipse not picking up settings.xml What do I need to do to configure Eclipse 3.2 to pick up the settings.xml file defined in %M2_HOME%/conf? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jar plugin and assembly plugin disagree on SNAPSHOT versions
Christian Goetze wrote: John Casey wrote: If you use the 2.2-SNAPSHOT version of the assembly plugin, you can specify the outputFileNameMapping in the dependencySet to be something like the following descriptor has: Stupid question: what is the groupId of the 2.2-SNAPSHOT version of the assembly plugin? It doesn't seem to be org.apache.maven.plugins. Because they are in a different repo... duh :) -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [XML-RPC] using the api
Though I cannot remember just now I know that some of the getSomethings calls return less detailed info than the individual getSomething calls. for example getBuilds will not return all the dumped data but getBuild will. At least something along those lines iirc. A On 12 Jan 2007, at 16:19, Laurent Forêt wrote: Hi, I am working on the Netbeans integration of continuum and I have a trouble in getting developer list on the continuum.getProjects call. Indeed, for each project the developers list is empty. I have to call the continuum.getProject to get the real developers list. I am using the facade already developped by Milos (http://svn.apache.org/viewcvs.cgi/maven/continuum/tags/ continuum-1.0.3/continuum-rpc-client/src/main/java/org/apache/maven/ continuum/rpc/ProjectsReader.java?rev=395968view=markup) I do not think it is due to the Milos code. My question is : do you think it is Contnuum dev issue ? best regards. Laurent.
eclipse:generate-classpath and .classpath
I'd appreciate any feedback on this: i'm getting jars from WEB-INF/lib listed under java resources in RAD6 in addition to jars put in by eclipse plug-in, which reside in MAVEN_REPO. So most of them are duplicated in .classpath by the IDE, after running eclipse:generate-classpath. Even making .classpath non-writeable after running eclipse:generate-classpath doesn't stop the IDE from double-listing the dependencies. This isn't a functional thing, but it makes browsing in the navigation pane more difficult. Thanks for any feedback. PRIVILEGED AND CONFIDENTIAL This email transmission contains privileged and confidential information intended only for the use of the individual or entity named above. If the reader of the email is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any use, dissemination or copying of this email transmission is strictly prohibited by the sender. If you have received this transmission in error, please delete the email and immediately notify the sender via the email return address or mailto:[EMAIL PROTECTED] Thank you.
Re: jar plugin and assembly plugin disagree on SNAPSHOT versions
you'll need the following: pluginRepositories pluginRepository idapache.snapshots/id urlhttp://people.apache.org/repo/m2-snapshot-repository/url /pluginRepository /pluginRepositories Note that this repository has NOT disabled releases...this is important because of a bug in Maven = 2.0.4, where plugin-version resolution will only check repositories with releases enabled. It should work for you with this repository in place. -j On 1/12/07, Christian Goetze [EMAIL PROTECTED] wrote: Christian Goetze wrote: John Casey wrote: If you use the 2.2-SNAPSHOT version of the assembly plugin, you can specify the outputFileNameMapping in the dependencySet to be something like the following descriptor has: Stupid question: what is the groupId of the 2.2-SNAPSHOT version of the assembly plugin? It doesn't seem to be org.apache.maven.plugins. Because they are in a different repo... duh :) -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jar plugin and assembly plugin disagree on SNAPSHOT versions
John Casey wrote: you'll need the following: pluginRepositories pluginRepository idapache.snapshots/id urlhttp://people.apache.org/repo/m2-snapshot-repository/url /pluginRepository /pluginRepositories Note that this repository has NOT disabled releases...this is important because of a bug in Maven = 2.0.4, where plugin-version resolution will only check repositories with releases enabled. It should work for you with this repository in place. Thanks ... Now my problem is that maven-proxy doesn't seem to understand how to resolve SNAPSHOT names, it is actually looking for x.y-SNAPSHOT. I heard that maven-proxy is obsolete - so what are people using for proxy instead? -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] any estimate for the next maven-ejb-plugin release (2.1) ?
I know the Maven Dev team is working on M2.0.5 along with some new plugin releases right now, so perhaps they can look at m-ejb-p once those releases are all done. Unsure when the next release will be available; you'd need to check with the developer(s) responsible for m-ejb-p to be sure. I'm curious why you want to know when it will be released -- are there specific JIRA bugs with patches available that you would like to be applied to have another release cut? In the meantime, you can pull the m-ejb-p code down from SVN, apply the patches, and release it under your own version number or groupId if you require some specific bug fixes until they make a formal release. Wayne On 1/12/07, Dário Luís Coneglian Oliveros [EMAIL PROTECTED] wrote: Does anyone know when maven-ejb-plugin 2.1 will be released ? Thanks, Dário - 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: applying filters to a site
This is indeed too many steps involved and if you try it for a multi-module project it breaks down. Unless you replicate a substantial set of the pom properties, which makes the idea of pom inheritance less appealing. Resource filtering happens during compilation, which means all sub-modules try to filter as well even if you just want it to occur for the parent project. IFAIK there is no way to prevent pom properties inheritance. IMHO multi-module site generation needs a re-design. * POM properties filtering should be built-in for site.xml and text docs, like apt. * There should be built-in support for report aggregation, so it doesn't need to be implemented by each report plug-in. I find myself wasting too much time just with trial-and-error to get site generation work. /Jens -Original Message- From: Gregory Kick [mailto:[EMAIL PROTECTED] Sent: den 12 januari 2007 04:32 To: Maven Users List Subject: applying filters to a site after looking through the thread at http://www.nabble.com/-M2--Insert-variables-in-xdoc-apt-files-tf1956665. html i've gotten filters applied to a site using: resources resource directorysrc/site/directory targetPath../filtered-site/targetPath filteringtrue/filtering /resource /resources filters filtersite-filter.properties/filter /filters and plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration siteDirectory${project.build.directory}/filtered-site/siteDirectory /configuration /plugin Is there a better way to get this done? It seems like there are way too many steps involved... -- Gregory Kick [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]
Maven2 Surefire Aspectj LTW Spring Integration Tests Don't Work???
I have an application in which I make use of AspectJ Load-time-weaving to inject pojos with services from Spring. I have some integration tests which test that the pojo is able to be injected and collaborate with the injected service successfully. These tests run successfully within Eclipse's environment (I configured Eclipse's Installed JRE setting to set the -javaagent:/aspectjweaver.jar). When I back out onto the command prompt (Windows XP) and set an environment variable: set MAVEN_OPTS=-javaagent:/aspectjweaver.jar where /aspectjweaver.jar happens to be on my c:\ drive and run 'mvn test' or any derivatives thereof, the tests run as if there is no weaving happening. I suspect the maven surefire plugin isn't carrying over the javaagent setting. Maybe it's spawning a new process that does its own thing??? If I actually run the app on command line through Maven (it's a web app launchable through the maven Jetty plugin), weaving works, so it definitely points towards there just being a problem with surefire plugin. I've tried configuring the surefire plugin to fork a new process once pertest and set the argLine property with my javaagent setting to no avail. Has anyone gotten aspectj weaving to work outside of Eclipse within a maven surefire test? Thanks, Terry -- View this message in context: http://www.nabble.com/Maven2-Surefire-Aspectj-LTW-Spring-Integration-Tests-Don%27t-Worktf2968462s177.html#a8306746 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Webapp Standard Directory Layout
The sample usage example of the maven-war-plugin [1] demonstrates a war's project structure with images in the src/main/resources directory, and a resulting package structure with the images in web-inf/classes. According to the Servlet 2.4 specification [2]: The WEB-INF node is not part of the public document tree of the application. No file contained in the WEB-INF directory may be served directly to a client by the container. Since these images are web resources to be deployed to a server, it seems that these types of resources belong in the src/main/webapp directory. The resources in src/main/resources might be used for configuration files and properties used by the classes within the src/main/java directory, but not likely for images. Should this usage documentation be updated to a more relevant example, or is my assumption about the best practice for standard directory layouts for webapps incorrect? [1] http://maven.apache.org/plugins/maven-war-plugin/usage.html [2] http://java.sun.com/products/servlet/download.html#specs
Re: Webapp Standard Directory Layout
I put my images and javascript files etc directly into webapp. And files which I use internally in my code go into src/main/resources. So my personal usage seems to reflect that in the Spec. Sounds like the documentation of m-war-p should probably be updated. Wayne On 1/12/07, Shelley L [EMAIL PROTECTED] wrote: The sample usage example of the maven-war-plugin [1] demonstrates a war's project structure with images in the src/main/resources directory, and a resulting package structure with the images in web-inf/classes. According to the Servlet 2.4 specification [2]: The WEB-INF node is not part of the public document tree of the application. No file contained in the WEB-INF directory may be served directly to a client by the container. Since these images are web resources to be deployed to a server, it seems that these types of resources belong in the src/main/webapp directory. The resources in src/main/resources might be used for configuration files and properties used by the classes within the src/main/java directory, but not likely for images. Should this usage documentation be updated to a more relevant example, or is my assumption about the best practice for standard directory layouts for webapps incorrect? [1] http://maven.apache.org/plugins/maven-war-plugin/usage.html [2] http://java.sun.com/products/servlet/download.html#specs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: howto get scm revision information into a assembly
http://jira.codehaus.org/browse/SCM-270 for the records here : looks to me like svn must be set to run in english, then this all works for me. File an issue on Maven-SCM project and we'll fix it. Emmanuel berndq a écrit : Hi, I can get it into a property but can't get it into e.g. the manifest file due to http://jira.codehaus.org/browse/MASSEMBLY-121 I was wrong, I can not get it into a property. Using plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId executions execution phasevalidate/phase idgetting-scm.revision/id goals goalupdate/goal /goals /execution /executions /plugin as suggested on this list results in [INFO] [scm:update {execution: getting-scm.revision}] [INFO] Executing: svn --username maven --non-interactive update [INFO] Working directory: D:\projekte\template\templatePom-trunk [DEBUG] Revision 375. [INFO] Unknown file status: 'R' in line Revision 375.. [INFO] Storing revision in 'scm.revision' project property. This does not result in rev. 375 being replaced in filtered files (result is xyz=0 insted of the expedted xyz=375) If run mvn -Dscm.revision=42 ... then I get the 42 value in the filtered file. Bernd I tried filtering but I could not get it to work. Anyway I am not sure how I would have to set up a filter based on a property value. Any help is appreciated. Bernd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
eclipse:generate-classpath and .classpath
I'd appreciate any feedback on this: i'm getting jars from WEB-INF/lib listed under java resources in RAD6 in addition to jars put in by eclipse plug-in, which reside in MAVEN_REPO. So most of them are duplicated in .classpath by the IDE, after running eclipse:generate-classpath. Making .classpath non-writeable after running eclipse:generate-classpath does stop the IDE from double-listing the dependencies, but that's more of a hack. This isn't a functional thing, but it makes browsing in the navigation pane more difficult w/o using the hack. Thanks for any feedback. PRIVILEGED AND CONFIDENTIAL This email transmission contains privileged and confidential information intended only for the use of the individual or entity named above. If the reader of the email is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any use, dissemination or copying of this email transmission is strictly prohibited by the sender. If you have received this transmission in error, please delete the email and immediately notify the sender via the email return address or mailto:[EMAIL PROTECTED] Thank you.
Re: jar plugin and assembly plugin disagree on SNAPSHOT versions
I think archiva may be a good option to replace maven-proxy, though I don't know much about using it. I haven't had a need for something like this yet. -j On 1/12/07, Christian Goetze [EMAIL PROTECTED] wrote: John Casey wrote: you'll need the following: pluginRepositories pluginRepository idapache.snapshots/id urlhttp://people.apache.org/repo/m2-snapshot-repository/url /pluginRepository /pluginRepositories Note that this repository has NOT disabled releases...this is important because of a bug in Maven = 2.0.4, where plugin-version resolution will only check repositories with releases enabled. It should work for you with this repository in place. Thanks ... Now my problem is that maven-proxy doesn't seem to understand how to resolve SNAPSHOT names, it is actually looking for x.y-SNAPSHOT. I heard that maven-proxy is obsolete - so what are people using for proxy instead? -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Restricting maven's dependency search
I am in the process of migrating the build of a largish project from Ant to Maven 2. I'm trying to figure out whether it's possible and how to configure a Maven project to depend on artifacts from a given repository ONLY. That is, I want to restrict Maven's search path to a blessed repository, for artifacts that my project directly depends on; however, I don't want to prevent Maven being able to get its plugins (and their dependencies) from our (internal) mirror of central (containing unblessed artifacts). I was wondering about the difference between repositories and pluginRepositories, but I haven't figured out from the documentation how to use them to accomplish this. Does anybody know, is it possible to do what I'm describing? If so, could you post a snippet? Thanks for your time. -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jar plugin and assembly plugin disagree on SNAPSHOT versions
On 1/13/07, Christian Goetze [EMAIL PROTECTED] wrote: John Casey wrote: you'll need the following: pluginRepositories pluginRepository idapache.snapshots/id urlhttp://people.apache.org/repo/m2-snapshot-repository/url /pluginRepository /pluginRepositories Note that this repository has NOT disabled releases...this is important because of a bug in Maven = 2.0.4, where plugin-version resolution will only check repositories with releases enabled. It should work for you with this repository in place. Thanks ... Now my problem is that maven-proxy doesn't seem to understand how to resolve SNAPSHOT names, it is actually looking for x.y-SNAPSHOT. I heard that maven-proxy is obsolete - so what are people using for proxy instead? Can you provide more information? I use mvn-proxy, but I don't use external snapshot repositories. I follow the wiki instructions I wrote for releasing patched internal versions of plugins. Due to a bug (I can't recall which one, the wiki probably mentions it) you need mvn-proxy to aggregate your internal plugin repository with central or else patched plugins wont get resolved correctly. See http://docs.codehaus.org/display/MAVENUSER/Patching+Maven+Plugins for more details. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
m1 - m2 and the maven-one-plugin
Greetings -- I've begun the process of migrating from maven1 to maven2 and I ran across the maven-one-plugin. It seems that version 1.0 does not contain the functionality to convert a project.xml to a pom.xml. Is version 1.1 archived anywhere? ...or do I have to grab it from the source repository? Also, has anyone had success in using the one:convert goal? http://maven.apache.org/plugins/maven-one-plugin/index.html Thanks, -adrian- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] DbUnit Maven Plugin 1.0-beta-1 released
The Mojo team is pleased to announce the first beta release of the DbUnit Maven Plugin The site is at: http://mojo.codehaus.org/dbunit-maven-plugin -Dan
[ANN] Eclipse PDE Maven Plugin 1.0-alpha-1 Released
The Mojo team is pleased to announce the first alpha release of the Eclipse PDE Maven Plugin The site is at: http://mojo.codehaus.org/pde-maven-plugin -Dan
Re: xdoc test results for Dennis
Hi Dennis, TO ensure you have everything I've uploaded a log file by executing 'mvn -X site lot.txt' Click on http://www.nabble.com/file/5619/log.txt log.txt enjoy Derek ;-) -- View this message in context: http://www.nabble.com/xdoc-test-results-for-Dennis-tf2955728s177.html#a8312032 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unjarring Jars declared as Maven Dpendencies
Hi, Currently i am using ant unjar task to unjar all jar files in a given folder.I am invoking this from maven using maven-antrun-plugin.Its working fine.But i need to unjar specific jars in a repository. Is there any way i can refer to maven dependencies and unjar files based on group-id and artifactid combination for example.Suppose for example i want to unjar all maven dependencies say with combination {groupid}-{*-source}.i.e all artifact ids ending with -source for example. Regards Raju -- View this message in context: http://www.nabble.com/Unjarring-Jars-declared-as-Maven-Dpendencies-tf2970512s177.html#a8312091 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]