Re: NullPointerException while running mvn site:site
Hello, see http://jira.codehaus.org/browse/MNG-1455 but the patch was reverted. I think the maven-project-info-reports-plugin in the svn has a fix for it. Maybe a SNAPSHOT version is available. My technical question It is allowed to return null for artifact.getFile() ? If not there should be different implementation or call of artifact.setFile for a system artifact. If it is allowed the patch should applied. Best Regards Bernd Bohmann Dixit, Sandeep (ProSource Solutions) schrieb: I am getting the error below while running 'mvn site'. I read in the mailing archive that it is related to the use of systemPaths in pom.xml, but didn't see any resolution. Does anyone know how to resolve this? Thanks, Sandeep [INFO] [site:site] [INFO] Generate Continuous Integration report. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [INFO] Generate Dependencies report. [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] null [INFO] - --- [INFO] Trace java.lang.NullPointerException at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:82) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:63) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo sitory(DefaultMavenProjectBuilder.java:387) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito ry(DefaultMavenProjectBuilder.java:352) at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRe nderer.getMavenProjectFromRepository(DependenciesReport.java:362) at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRe nderer.renderBody(DependenciesReport.java:242) at org.apache.maven.reporting.AbstractMavenReportRenderer.render(Abstrac tMavenReportRenderer.java:65) at org.apache.maven.report.projectinfo.DependenciesReport.executeReport( DependenciesReport.java:157) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven Report.java:98) at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo. java:802) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:432) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:530) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:485) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:455) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] - --- [INFO] Total time: 14 seconds [INFO] Finished at: Wed Jan 04 14:56:43 EST 2006 [INFO] Final Memory: 6M/11M [INFO] - --- --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication.
Re: Creating macros in maven
You might want to look at jelly's define:taglib, define:tag tags? I think these can help you re-use jelly/maven snippets. http://jakarta.apache.org/commons/jelly/libs/define/tags.html Some other helpful Jelly references. http://jakarta.apache.org/commons/jelly/tag-reference/all.html http://jakarta.apache.org/commons/jelly/libs/index.html Assuming you have XML namespace set up for jelly:ant, I was under impression that you could do ant:macrodef to set up macro definitions in jelly scripts. I have never tried this myself, but you can give it a shot. HTH, Rahul - Original Message - From: Afkham Azeez [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Thursday, January 05, 2006 6:29 PM Subject: Re: Creating macros in maven Hi Arnaud, This is for M1. I want to reuse some portions of my maven script, hence I need something like a function, where I can pass in parameters. Thanks Azeez On 1/4/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: Can you explain why you want it ? In m1 or m2 ? Arnaud On 1/4/06, Afkham Azeez [EMAIL PROTECTED] wrote: Hi I'm a maven newbee... Can anybody tell me whether macros (similar to ant macros) can be written using maven? If so, please provide me with some pointers. -- Thanks in advance Afkham Azeez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks Afkham Azeez - 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 + XDoclet
Hi! Has anyone experienced using xdoclet plugin on maven2? I need to perform several xdoclet tasks in my build (generate hbm.xml, struts-config.xml etc). Which plugin (group-id, artifact-id, version) should I use? I would really appreciate if you could write some example pom or point to some existing guidelines on the web. Thanks in advance! Best regards, Dmitriy - Don't limit your challenges, Challenge your limits! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I create ejb-jar and ejb-client-jar with maven-ejb-plugin in Maven 2?
Hello, Could anyone provide me with a working example of a project, which uses the maven-ejb-plugin to generate jar files for the ejb-module and for the ejb-client? (I use the xdoclet-maven-plugin to generate the ejb artifacts to the folder 'targets/generated-sources/xdoclet') I'm quite new to maven and don't understand the usage example given on plugins' webpage (http://maven.apache.org/plugins/maven-ejb-plugin/howto.html). When I integrate that XML to my POM, nothing happens. Only calling 'mvn ejb:ejb' manually works, as long as I copy the META-INF-folder from 'target/generated-sources/xdoclet' to 'target/classes' first. How can I integrate this into my build process (mvn package: ejb-jar and ejb-client-jar are generated. mvn install: ejb-jar and ejb-client-jar are copied to my local repository...)? Thanks a lot in advance! Regards, Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNI with maven2
BTW, i have created a plugin that will use a .mak file to compile a dll (you ofcourse need to export the mak file from Visual Studio 6). I don't know if you guys are interessed in adding this to your plugin? regards, Wim 2006/1/5, Wim Deblauwe [EMAIL PROTECTED]: plugin looks very nice. It would be even nicer if the whole configuration (as presented on http://mojo.codehaus.org/maven-native/native-maven-plugin/examples.html ) could be auto-generated from a make file, because now you have to be very carefull to have all the options you have set in your visual studio in the pom.xml. Never the less, looks like a very good start! regards, Wim 2006/1/4, Sean Hennessy [EMAIL PROTECTED]: FYI: http://mojo.codehaus.org instead of http://mojo.codehaus.com -Original Message- From: dan tran [mailto: [EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 9:22 AM To: Maven Users List Subject: Re: JNI with maven2 Philippe native-maven-plugin is at http://mojo.codehaus.com . Still in alpha, but I am able to compile windows and linux,etc. Give it a try, feedback + help is greatly appreciated. The doc is still very limitted. -D On 1/4/06, Philippe Faes [EMAIL PROTECTED] wrote: Hi all, I found a maven-1 plugin for compiling native code (for JNI), but none for maven-2. Can I use m2 for my JNI project or is it not ready yet? kind regards Philippe -- ir. Philippe Faes Ghent University - Department ELIS Sint-Pietersnieuwstraat 41 -- B-9000 Gent Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94 http://www.elis.UGent.be/~pfaes http://www.elis.UGent.be/%7Epfaes ON5DEU -- LPIC1 -- gpg-key:173720B6 - 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: JNI with maven2
you can always submit it to JIRA On 1/5/06, Wim Deblauwe [EMAIL PROTECTED] wrote: BTW, i have created a plugin that will use a .mak file to compile a dll (you ofcourse need to export the mak file from Visual Studio 6). I don't know if you guys are interessed in adding this to your plugin? regards, Wim 2006/1/5, Wim Deblauwe [EMAIL PROTECTED]: plugin looks very nice. It would be even nicer if the whole configuration (as presented on http://mojo.codehaus.org/maven-native/native-maven-plugin/examples.html ) could be auto-generated from a make file, because now you have to be very carefull to have all the options you have set in your visual studio in the pom.xml. Never the less, looks like a very good start! regards, Wim 2006/1/4, Sean Hennessy [EMAIL PROTECTED]: FYI: http://mojo.codehaus.org instead of http://mojo.codehaus.com -Original Message- From: dan tran [mailto: [EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 9:22 AM To: Maven Users List Subject: Re: JNI with maven2 Philippe native-maven-plugin is at http://mojo.codehaus.com . Still in alpha, but I am able to compile windows and linux,etc. Give it a try, feedback + help is greatly appreciated. The doc is still very limitted. -D On 1/4/06, Philippe Faes [EMAIL PROTECTED] wrote: Hi all, I found a maven-1 plugin for compiling native code (for JNI), but none for maven-2. Can I use m2 for my JNI project or is it not ready yet? kind regards Philippe -- ir. Philippe Faes Ghent University - Department ELIS Sint-Pietersnieuwstraat 41 -- B-9000 Gent Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94 http://www.elis.UGent.be/~pfaes http://www.elis.UGent.be/%7Epfaes ON5DEU -- LPIC1 -- gpg-key:173720B6 - 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: Jackrabbit with maven1.1
Hello Arnaud, I would have hoped so. I've been sending mails a while now and nobody is answering. I'm stuck in my work and the situation's becoming critical. It seems that my questions are so basic that nobody has time to answer on... I thought of trying the maven mailing list as Jackrabbit uses maven, hoping that I may find someone to answer on my questions and help me to resolve my problem so I can finally progress in my work. Thanks for your comprehension. Regards, --CC From: Arnaud HERITIER [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org Subject: Re: Jackrabbit with maven1.1 Date: Wed, 4 Jan 2006 22:52:32 +0100 the jackrabbit ml can't help you ? Aranud On 1/4/06, sirène vip [EMAIL PROTECTED] wrote: Hello Everyone, As no one is answering my annoying questions and that time is precious, I adress myself to you guys hoping to find someone who knows about Jackrabbit and worked with it. Here is the situation: I'm trying to run JCRTest.java, Jackrabbit example. First of all, where is the correct place to put this file and repository.xml file so they can be correctly accessed. Second, should I create a project.xml file for this example (or any other application) when using Jackrabbit project and its file. Third, the Build is successful for maven java:compile. But what command should I run to get the output of the program (which is in this example rep:root) Fourth, I'm not having no structure output as described on the website (repository/ workspaces/) under the same directory containing repository.xml I hope to find someone able to answer these questions. Thank you in advance. Regards, --CC _ Don't just search. Find. Check out the new MSN Search! http://search.msn.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven1 using Maven2 repository possible?
Hi Chris, AFAIK, m1 cannot take the repo format of m2. -allan Christopher Lim wrote: I understand that Maven2 is capable of accessing Maven1 repository through the *legacy* tag. Is there a way for Maven1 to understand Maven2 repository? Perhaps pointing MAVEN_HOME_LOCAL to a Maven2 repo. This will avoid duplication of jar files in the local repository. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Integration testing
Hello everyone I'm trying to include integration tests into my maven project. I've accomplished the task but had to write my own plugin. Since I don't know maven2 too well I'd like to ask you a few questions. My plugin does the following: 1) compiles integration tests 2) starts tomcat using cargo 3) runs tests 4) stops tomcat Junit tests are run before the 'package' phase so there is no application to be tested yet. Therefore if integration tests were in the same directory as the junit tests, the test phase would fail. That's why I use two test directories: 1) src/tests for junit tests 2) src/integration-tests for integration tests I'd like to use maven code as much as possible therefore I'd like to remove the 1st section (compilation of tests). Right now the compilation of tests is done in a similiar way as in TestCompilerMojo.java. I wanted to extend this class but the fields: compileSourceRoots and outputDirectory are read only. So I would have to create a few fields with different names, and when they are set in plugin's configuration I could set the proper ones through reflection. It's not a good approach I agree. It would be even more convenient if I could use the existing compiler plugin and could simply set different paths. The junit tests would be compiled in a standard way by setting testSourceDirectory and integration tests would be compiled using different source directory to a different output directory. The question is, how can I do it? How can I use maven-compiler-plugin two times with different source and destination paths? Can someone send me a few lines of pom which does it? Thanks in advance Pablo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] how to remove jar from .m2/repository
I suggest that we should have a plugin for this. A goal that can remove an artifact from the local repo and a goal that will clear all the artifact in a group? What do you think? -allan dan tran wrote: perhaps we should have automation tool so that meta-data file can be updated accordingly as well. For my case, I am required to do daily build, and eventually I will need to remove those builds that we no longer need. -D On 1/2/06, Edwin Punzalan [EMAIL PROTECTED] wrote: As of now, the only way to remove the jar is to delete it manually from your repository folder. The repository can be found in ~/.m2/repository by default. Man-Chi Leung wrote: after install a jar to local repository, how can I remove it? $mvn install:install-file -Dfile=easymock.jar -DgroupId=easymock - DartifactId=easymock -Dversion=2.0 -Dpackaging=jar -DgeneratePom=true I check the documentation, there are only 2 goal for install, any goal for removal of jar? install:install-file (Installs a file in local repository.) install:install ( Installs project's main artifact in local repository) Regards, ~manchi - 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] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.10/218 - Release Date: 1/2/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : [m2] how to remove jar from .m2/repository
Hi, Maybe something too which clean SNAPSHOT previous when performing a release ? Probably dangerous but could be optionnal in release plugin ? - Olivier -Message d'origine- De : Allan Ramirez [mailto:[EMAIL PROTECTED] Envoyé : jeudi 5 janvier 2006 11:06 À : Maven Users List Objet : Re: [m2] how to remove jar from .m2/repository I suggest that we should have a plugin for this. A goal that can remove an artifact from the local repo and a goal that will clear all the artifact in a group? What do you think? -allan dan tran wrote: perhaps we should have automation tool so that meta-data file can be updated accordingly as well. For my case, I am required to do daily build, and eventually I will need to remove those builds that we no longer need. -D On 1/2/06, Edwin Punzalan [EMAIL PROTECTED] wrote: As of now, the only way to remove the jar is to delete it manually from your repository folder. The repository can be found in ~/.m2/repository by default. Man-Chi Leung wrote: after install a jar to local repository, how can I remove it? $mvn install:install-file -Dfile=easymock.jar -DgroupId=easymock - DartifactId=easymock -Dversion=2.0 -Dpackaging=jar -DgeneratePom=true I check the documentation, there are only 2 goal for install, any goal for removal of jar? install:install-file (Installs a file in local repository.) install:install ( Installs project's main artifact in local repository) Regards, ~manchi - 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] --- - No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.10/218 - Release Date: 1/2/2006 This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to specify external jars
Try this http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIinstallafileinmylocalrepositoryalongwithagenericPOM Kenney Westerhof wrote: On Wed, 4 Jan 2006, Pagadala Baskar, Kiran Kumar (Cognizant) wrote: My guess is that there's no .pom next to the jar.. You need to create a small pom listing the groupId, artifactId and version (same filename as the jar except ending in .pom, not .jar). Is that it? -- Kenney Hi, I am still stuck with this issue. Could someone please let me know what could possibly be wrong? Regards, Kiran -Original Message- From: Pagadala Baskar, Kiran Kumar (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 5:40 PM To: Maven Users List Subject: How to specify external jars Hi, I have a couple of external jars that I need for my Project compilation. I have uploaded them to the local repository using: mvn install:install-file -Dfile=File Path\JAR_NAME.jar -DgroupId=groupId -DartifactId=JAR_NAME -Dversion=1.0 -Dpackaging=jar I tried adding the jar as a dependency to my POM.xml. When I try to compile the project using mvn compile, it is still not detected. I even tried to add the jars to my CLASSPATH manually. Even that doesn't help. Could someone please let me know where I am going wrong? Thanks and Regards, Kiran This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to specify external jars
Hi, Thanks for the pointers Allan and Kenney. Will try and get back in case of any issues. Regards, Kiran -Original Message- From: Allan Ramirez [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 3:41 PM To: Maven Users List Subject: Re: How to specify external jars Try this http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIinstallafilei nmylocalrepositoryalongwithagenericPOM Kenney Westerhof wrote: On Wed, 4 Jan 2006, Pagadala Baskar, Kiran Kumar (Cognizant) wrote: My guess is that there's no .pom next to the jar.. You need to create a small pom listing the groupId, artifactId and version (same filename as the jar except ending in .pom, not .jar). Is that it? -- Kenney Hi, I am still stuck with this issue. Could someone please let me know what could possibly be wrong? Regards, Kiran -Original Message- From: Pagadala Baskar, Kiran Kumar (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 5:40 PM To: Maven Users List Subject: How to specify external jars Hi, I have a couple of external jars that I need for my Project compilation. I have uploaded them to the local repository using: mvn install:install-file -Dfile=File Path\JAR_NAME.jar -DgroupId=groupId -DartifactId=JAR_NAME -Dversion=1.0 -Dpackaging=jar I tried adding the jar as a dependency to my POM.xml. When I try to compile the project using mvn compile, it is still not detected. I even tried to add the jars to my CLASSPATH manually. Even that doesn't help. Could someone please let me know where I am going wrong? Thanks and Regards, Kiran This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Integration testing
There is a phase integration-test. I think you could bind different existing plugin (compile, cargo, surefire) using the execution, phase and goal tags. I hope this info will guide you toward the solution you need. Gilles -Original Message- From: Pablo [mailto:[EMAIL PROTECTED] Sent: 05 January 2006 10:43 To: Maven Users List Subject: Integration testing Hello everyone I'm trying to include integration tests into my maven project. I've accomplished the task but had to write my own plugin. Since I don't know maven2 too well I'd like to ask you a few questions. My plugin does the following: 1) compiles integration tests 2) starts tomcat using cargo 3) runs tests 4) stops tomcat Junit tests are run before the 'package' phase so there is no application to be tested yet. Therefore if integration tests were in the same directory as the junit tests, the test phase would fail. That's why I use two test directories: 1) src/tests for junit tests 2) src/integration-tests for integration tests I'd like to use maven code as much as possible therefore I'd like to remove the 1st section (compilation of tests). Right now the compilation of tests is done in a similiar way as in TestCompilerMojo.java. I wanted to extend this class but the fields: compileSourceRoots and outputDirectory are read only. So I would have to create a few fields with different names, and when they are set in plugin's configuration I could set the proper ones through reflection. It's not a good approach I agree. It would be even more convenient if I could use the existing compiler plugin and could simply set different paths. The junit tests would be compiled in a standard way by setting testSourceDirectory and integration tests would be compiled using different source directory to a different output directory. The question is, how can I do it? How can I use maven-compiler-plugin two times with different source and destination paths? Can someone send me a few lines of pom which does it? Thanks in advance Pablo - 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] war dependencies in ear
I've got ear multiproject that contain several web and ejb modules. Those ejbs and wars have dependency on jar with application logic. Of course, application logic has huge number of other 3th party dependencies. When I'm building ear, all wars archives contain their own dependencies (including contain application logic and all 3th party dependencies). Ear archive contain all ejbs dependencies (also including application logic and all 3th party dependencies). In result, I have application logic and all 3th party dependencies in each war and also in ear. This includes all configuration files of application logic. So if I want to change single property I must change it in every application logic jar in each war and ear. What I want to achieve? I want all dependencies from wars in ear bundle, not in WEB-INF/lib. I tried to exclude all jars in WEB-INF/lib using exclude tag in war configuration. It works - directory WEB-INF/lib is empty, but it didn't solve the problem, since those excluded jars weren't added to ear. Do you know any solution for the problem? best regards, -- Michal Stochmialek IT Department, Technology Division Euro Bank S.A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven2 + XDoclet
Here's an example from something I am playing with at home. It generates both the ejb and client jars. I use the two properties at the top just to simplify the stuff in the ejbdoclet definition: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; properties xdocletSource${project.build.directory}/generated-sources/xdoclet/xdo cletSource xdocletXML${project.build.outputDirectory}/META-INF/xdocletXML /properties modelVersion4.0.0/modelVersion groupIdaddrbook/groupId artifactIdaddrbook-ejb/artifactId packagingejb/packaging version1.0-SNAPSHOT/version nameFamily Address Book EJBs/name urlhttps://sd.no-ip.biz/addrbook/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdJBoss/groupId artifactIdjboss-j2ee/artifactId version4.0.3SP1/version scopeprovided/scope /dependency /dependencies build finalNameaddrbook-ejb/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destdir=${xdocletSource} excludedtags=@version,@author ejbspec=2.0 mergedir=src/xdoclet force=${xdoclet.force} fileset dir=src/main/java include name=**/ejb/*Bean.java/ /fileset packageSubstitution packages=ejb substituteWith=ejbif/ remoteinterface/ homeinterface/ localinterface/ localhomeinterface/ entitypk/ entitybmp/ entitycmp/ utilobject cacheHomes=true kind=physical/ valueobject packageSubstitution packages=ejb substituteWith=data/ /valueobject deploymentdescriptor destdir=${xdocletXML}/ !-- AS 4/29/02 Do not validate XML files because JBoss 3.0 message driven will report an wrong error because it uses the wrong jboss.dtd -- jboss version=4.0 xmlencoding=UTF-8 typemapping=PostgreSQL datasource=java:AddrBookDS destdir=${xdocletXML} validateXml=false / /ejbdoclet /tasks /configuration /execution /executions /plugin /plugins /build /project -Original Message- From: Dmitriy D. [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 03:06 To: users@maven.apache.org Subject: Maven2 + XDoclet Hi! Has anyone experienced using xdoclet plugin on maven2? I need to perform several xdoclet tasks in my build (generate hbm.xml, struts-config.xml etc). Which plugin (group-id, artifact-id, version) should I use? I would really appreciate if you could write some example pom or point to some existing guidelines on the web. Thanks in advance! Best regards, Dmitriy - Don't limit your challenges, Challenge your limits! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I create ejb-jar and ejb-client-jar withmaven-ejb-plugin in Maven 2?
To generate both jars, you need to tell the plugin that you want both of them as follows: project ... build ... plugins ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin ... plugins ... /build ... /project -Original Message- From: Stefan Rademacher [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 03:14 To: Maven Users List Subject: How can I create ejb-jar and ejb-client-jar withmaven-ejb-plugin in Maven 2? Hello, Could anyone provide me with a working example of a project, which uses the maven-ejb-plugin to generate jar files for the ejb-module and for the ejb-client? (I use the xdoclet-maven-plugin to generate the ejb artifacts to the folder 'targets/generated-sources/xdoclet') I'm quite new to maven and don't understand the usage example given on plugins' webpage (http://maven.apache.org/plugins/maven-ejb-plugin/howto.html). When I integrate that XML to my POM, nothing happens. Only calling 'mvn ejb:ejb' manually works, as long as I copy the META-INF-folder from 'target/generated-sources/xdoclet' to 'target/classes' first. How can I integrate this into my build process (mvn package: ejb-jar and ejb-client-jar are generated. mvn install: ejb-jar and ejb-client-jar are copied to my local repository...)? Thanks a lot in advance! Regards, Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] war dependencies in ear
I've got ear multiproject that contain several web and ejb modules. Those ejbs and wars have dependency on jar with application logic. Of course, application logic has huge number of other 3th party dependencies. When I'm building ear, all wars archives contain their own dependencies (including contain application logic and all 3th party dependencies). Ear archive contain all ejbs dependencies (also including application logic and all 3th party dependencies). In result, I have application logic and all 3th party dependencies in each war and also in ear. This includes all configuration files of application logic. So if I want to change single property I must change it in every application logic jar in each war and ear. What I want to achieve? I want all dependencies from wars in ear bundle, not in WEB-INF/lib. I tried to exclude all jars in WEB-INF/lib using exclude tag in war configuration. It works - directory WEB-INF/lib is empty, but it didn't solve the problem, since those excluded jars weren't added to ear. Do you know any solution for the problem? best regards, I believe that the problem is connected to issue Ability to disable transitive dependency in a bundle artifact (MNG-818). This issue have been fixed and transitive dependencies of bundle artifacts are disabled by default. Is there a way to enable them? best regards, -- Michal Stochmialek IT Department, Technology Division Euro Bank S.A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] war dependencies in ear
--- Micha³ Stochmia³ek [EMAIL PROTECTED] wrote: I've got ear multiproject that contain several web and ejb modules. Those ejbs and wars have dependency on jar with application logic. Of course, application logic has huge number of other 3th party dependencies. When I'm building ear, all wars archives contain their own dependencies (including contain application logic and all 3th party dependencies). Ear archive contain all ejbs dependencies (also including application logic and all 3th party dependencies). In result, I have application logic and all 3th party dependencies in each war and also in ear. This includes all configuration files of application logic. So if I want to change single property I must change it in every application logic jar in each war and ear. What I want to achieve? I want all dependencies from wars in ear bundle, not in WEB-INF/lib. I tried to exclude all jars in WEB-INF/lib using exclude tag in war configuration. It works - directory WEB-INF/lib is empty, but it didn't solve the problem, since those excluded jars weren't added to ear. Do you know any solution for the problem? best regards, I believe that the problem is connected to issue Ability to disable transitive dependency in a bundle artifact (MNG-818). This issue have been fixed and transitive dependencies of bundle artifacts are disabled by default. Is there a way to enable them? Looking at MNG-818, I don't get what the fix is. Is it true that, as Michael says, transitive dependencies for war artifacts are disabled by default ? If this is true then how can I specify which dependencies should go to WEB-INF/lib and which should be packaged in the ear and be referenced through the war/META-INF/MANIFEST.MF ? Please don't tell me that I have to specify the latter in both the war and the ear poms. Compare this to maven 1 which uses the properties war.bundle and war.manifest.classpath in the war project.xml. I think something similar is needed in maven 2 to distinguish the two cases. The ear plugin could read them from the war pom.xml to help it select the dependencies that it should transitively include. I'm not saying that dependencies should have properties again, but I am saying that it is the responsability of the war pom.xml to describe which dependencies it will include itself and which ones should be provided by its containg ear. Regards, Marcel Schutte __ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: antrun's antlr task problem
Are you using the 1.1 plugin? On 1/4/06, dan tran [EMAIL PROTECTED] wrote: ok, have my plugin's configuration as configuration tasks ant inheritRefs=true property name=build.dir value=${ project.build.directory}/ /ant /tasks /configuration and have my build.xml to reference maven.plugin.classpath, but got error Embedded error: The following error occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:249: The following er ror occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:279: Reference maven. plugin.classpath not found. Suggestion on how to trouble shoot this issue is greatly appreciated. -Dan On 1/4/06, Carlos Sanchez [EMAIL PROTECTED] wrote: You need to use the plugin classpath in your build.xml and call ant with inheritRefs=true classpath refid=maven.plugin.classpath/ On 1/4/06, dan tran [EMAIL PROTECTED] wrote: Folks, Here is my build : plugin artifactIdmaven-antrun-plugin/artifactId version1.1-SNAPSHOT/version dependencies dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency dependency groupIdantlr/groupId artifactIdantlr/artifactId version2.7.4/version /dependency /dependencies executions execution phasecompile/phase configuration tasks ant property name=build.dir value=${ project.build.directory}/ /ant /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin and antrun complains Embedded error: The following error occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:299: Could not create task or type of type: antlr. Ant could not find the task or a class this task relies upon. Any suggestions? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: call for testers: scp wagon
Test case: Performing a clean deploy with performRelease=true on a multiproject containing two modules, which failed at least 5 times in a row yesterday when I tried with Maven 2.0.1 (resorted to deploying each module individually). Environment: Fedora Core 4, using SCP to a Red Hat server. Results with these three new jars: success twice in a row, no failures. Whoo-hoo! Succes! Thanks ever so much! -Stephen On 1/5/06, Brett Porter [EMAIL PROTECTED] wrote: Hi, In the lead up to the 2.0.2 release, I'd like anyone experiencing: [WAGONSSH-28] session is down [WAGONSSH-30] hangs during deployment to test the following wagon snapshots: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0-alpha-6-SNAPSHOT/wagon-ssh-1.0-alpha-6-20060105.062346-2.jar by including it in your $M2_HOME/lib directory. Please also include: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6-SNAPSHOT/wagon-provider-api-1.0-alpha-6-20060105.062346-7.jar and http://www.ibiblio.org/maven2/com/jcraft/jsch/0.1.24/jsch-0.1.24.jar Replace any existing wagon/jsch libraries. Another way to test is to pick up the following integration build instead: http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-20060105.071501.tar.gz With this build, you can also test scpexe and sftp if you were having any problems with them. Thanks! - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antw: RE: How can I create ejb-jar and ejb-client-jar withmaven-ejb-plugin in Maven 2?
Hello, thank you. I already had this code in my POM but the packaging was set to jar. Now I changed it to ejb and it works fine. Now there is one more problem. The maven-ejb-plugin doesn't find the deployment descriptors. It searches in target/classes/META-INF but the files are generated by xdoclet-maven-plugin to target/generated-sources/xdoclet/META-INF. What is the right way to make the maven-ejb-plugin find the deployment descriptors? Thanks for your help! Bye, Stefan [EMAIL PROTECTED] 05.01.2006 12:24:48 To generate both jars, you need to tell the plugin that you want both of them as follows: project ... build ... plugins ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin ... plugins ... /build ... /project -Original Message- From: Stefan Rademacher [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 03:14 To: Maven Users List Subject: How can I create ejb-jar and ejb-client-jar withmaven-ejb-plugin in Maven 2? Hello, Could anyone provide me with a working example of a project, which uses the maven-ejb-plugin to generate jar files for the ejb-module and for the ejb-client? (I use the xdoclet-maven-plugin to generate the ejb artifacts to the folder 'targets/generated-sources/xdoclet') I'm quite new to maven and don't understand the usage example given on plugins' webpage (http://maven.apache.org/plugins/maven-ejb-plugin/howto.html). When I integrate that XML to my POM, nothing happens. Only calling 'mvn ejb:ejb' manually works, as long as I copy the META-INF-folder from 'target/generated-sources/xdoclet' to 'target/classes' first. How can I integrate this into my build process (mvn package: ejb-jar and ejb-client-jar are generated. mvn install: ejb-jar and ejb-client-jar are copied to my local repository...)? Thanks a lot in advance! Regards, Stefan - 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: NullPointerException while running mvn site:site
I think it needs to be incorporated into the release. One thing I don't understand is why is it null? Below is my tag: dependency groupIdjavax/groupId artifactIdjavax.ejb/artifactId version5.0/version scopesystem/scope systemPath${was.lib}/j2ee.jar/systemPath /dependency The ${was.lib} is defined in settings.xml and is a valid value. Maybe the plugin is not properly resolving the ${was.lib} variable? Thanks, Sandeep -Original Message- From: Bernd Bohmann [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 3:05 AM To: Maven Users List Subject: Re: NullPointerException while running mvn site:site Hello, see http://jira.codehaus.org/browse/MNG-1455 but the patch was reverted. I think the maven-project-info-reports-plugin in the svn has a fix for it. Maybe a SNAPSHOT version is available. My technical question It is allowed to return null for artifact.getFile() ? If not there should be different implementation or call of artifact.setFile for a system artifact. If it is allowed the patch should applied. Best Regards Bernd Bohmann Dixit, Sandeep (ProSource Solutions) schrieb: I am getting the error below while running 'mvn site'. I read in the mailing archive that it is related to the use of systemPaths in pom.xml, but didn't see any resolution. Does anyone know how to resolve this? Thanks, Sandeep [INFO] [site:site] [INFO] Generate Continuous Integration report. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [INFO] Generate Dependencies report. [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] null [INFO] - --- [INFO] Trace java.lang.NullPointerException at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:82) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:63) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo sitory(DefaultMavenProjectBuilder.java:387) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito ry(DefaultMavenProjectBuilder.java:352) at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRe nderer.getMavenProjectFromRepository(DependenciesReport.java:362) at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRe nderer.renderBody(DependenciesReport.java:242) at org.apache.maven.reporting.AbstractMavenReportRenderer.render(Abstrac tMavenReportRenderer.java:65) at org.apache.maven.report.projectinfo.DependenciesReport.executeReport( DependenciesReport.java:157) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven Report.java:98) at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo. java:802) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:432) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:530) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:485) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:455) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO]
${project.build.directory} different in M2.0 M2.0.1
In Maven 2.0 the value containes the whole absolute path to the target dir. C:\windows\system32\target With Maven 2.0.1 only: target\ I use the JavaCC-plugin: plugin groupIdorg.codehaus.mojo/groupId artifactIdjavacc-maven-plugin/artifactId version0.6.1-SNAPSHOT/version configuration outputDirectory${project.build.directory}/generated-src/main/java/out putDirectory /configuration /plugin The problem now arise when the project with javacc is part of a multi-module build (with 2.0.1). Because ${project.build.directory}/generated-src/main/java evalulates to target/generated-src/main/java the files are generated to the parent-project target-directory! Which value should ${project.build.directory} contain? Thanks Workaround: Its simple to fix this in the pom.xml using ${basedir}/target/generated-src/main/java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
m2 plugin config problems with eclipse
Hi I downloaded and use the maven-plugin offered on the Appache http://maven.apache.org/eclipse-plugin.html . After having spent hours googeling around, to try to find some documents or hints how to use the m2 plugin in eclipse with run-- external tools -- m2 build in the popup window Create, manage and run configurations, I have to give up and hope that one of you guys can help me. In the eclipse Windows -- Preferences -- Maven2 I set the local Repository folder to C:\maven-2.0.1 and to Java -- Classpath Variables I added M2_REPO and MAVEN_REPO (just to be sure) to point to my local repository (e.g. E:\maven\localrepository) Next I try to start a maven goal through the run -- external tools: I entered the base directory (e.g. E:/myApp) and goal (e.g. install) in the requested fields. It return immediately with an information in the border of the console view window, like: terminatedmyApp[m2 build} C:\Program\Java\jre1.5.0\bin\javaw.exe(05.01.20006 14:20:34) I tried to also write the output to a logfile but nothing gets written there, but the file gets created. The only info I get on the console is: [Console output redirected to file:E:\HotelDatabase\maven_eclipse_run] If I run m2 from the windows command line everything goes perfect. I appreciate if someone can help me and give me glue on what I missed! Thanks in advance. Cheers Roland
Re: [m2] war dependencies in ear
I'm not saying that dependencies should have properties again, but I am saying that it is the responsability of the war pom.xml to describe which dependencies it will include itself and which ones should be provided by its containg ear. I was thinking also about war projects which can be installed as standalone applications (then they should include all their dependencies in the WEB-INF/lib) and as a part of ear also (then they should not include dependencies which are common for other ear modules). Any support for this case? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: call for testers: scp wagon
Hello, Another way to test is to pick up the following integration build instead: http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-20060105.071501.tar.gz Using above build I tried mvn deploy with following configurations: 1. on the windows machine under cygwin shell using scp:// and sftp:// protocols - deploy to the remote machine - SUCCESS 2. on the linux box using scp:// and sftp:// protocols - deploy to the remote machine - SUCCESS 3. on the linux box using scp:// and sftp:// protocols - deploy to the local machine (it is my remote repository) - SUCCESS I distinguish cases 2 and 3 because with maven 2.0.1 I had problems (session is down) much more often when deploying from the same machine as the remote repository (it looked as it depends on the connection speed - if the connection was faster - the same host - the problem occured almost every time). Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] dependency-maven-plugin 1.0
I think that's a good idea for the plugin-report. -Original Message- From: Hervé BOUTEMY [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 2:34 AM To: Maven Users List Subject: Re: [ANN] dependency-maven-plugin 1.0 (The following is a little off-topic for dependency-maven-plugin specifically, but I think it needs to be said.) For an experience Maven2 user, the value of these docs is immediately obvious. For the newbie, however, there is still the feeling: OK, so now what do I do. +1 (+2 if I could) a simple addition in the About xxx plugin generated file would do the trick. For example, if you see http://maven.apache.org/plugins/maven-site-plugin/index.html After the Goals available: table, simply add : Configuration: To use this plugin, you will need to add to your pom : plugin groupIdorg.apache.maven.plugins/groupId (is this necessary ? perhaps not for org.apache.maven.plugins, but for other like org.codehaus.mojo...) artifactIdmaven-site-plugin/artifactId /plugin For more information, see Guide to Conguring Plug-ins (link to http://maven.apache.org/guides/mini/guide-configuring-plugins.html) I think this would really help the newbie : personally, for example, it took me a long time to discover that naming convention for Maven plugins was maven-xxx-plugin, but for Mojo plugins it is xxx-maven-plugin. Carefully reading the plugin documentation would have been sufficient, but... Is there an existing JIRA entry, or should I create one ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Any additional docs for plugin maven-release-plugin?
I would say for something as crucial as a release plugin (or anything else that changes files and checks changes into SCM) the docs should be very explicit about what the plugin is doing--not just stating the options. ..David.. -Original Message- From: Chris Hagmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 2:25 PM To: users@maven.apache.org Subject: [m2] Any additional docs for plugin maven-release-plugin? Are there any additional docs for the maven-release-plugin? The docs on maven.apache.org only show the configuration, but there is nothing related to how to use it, or what those configuration parameters mean. Any pointer would be helpful. Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Overriding a configuration property
No one replied to then when I sent it originally. Does anyone have any thoughts before I write a JIRA about it? ..David.. -Original Message- From: David Jackman [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 4:07 PM To: Maven Users List Subject: [m2] Overriding a configuration property In my parent pom, I have a configuration property set for a particular plugin. In one of the subprojects, I need to be able to override that configuration property with a different value. Should this sort of thing be possible? It isn't working for me. ..David.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum + Clearcae. [Was] Re: How to use continuum with Maven2? - Please Help
It did find the file and loaded only that module which i mentioned in the cal_mod.txt, i copied it in continuum relative path directory. I made it sure its loading that file only by removing cal_mod.txt then continuum errored with messge it couldn't fine cal_mod.txt file Thanks, Raghurajan G
RE: [m2] war dependencies in ear
http://jira.codehaus.org/browse/MWAR-9 We throw everything in EAR_ROOT/lib and exclude them from WEB-INF/lib. The WAR's MANIFEST.MF is autogenerated like so: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration warSourceDirectoryWebContent/warSourceDirectory warSourceExcludesWEB-INF/lib/*.jar/warSourceExcludes archive manifest addClasspathtrue/addClasspath classpathPrefixlib//classpathPrefix /manifest /archive /configuration /plugin In the EAR's POM, you need to list all the dependencies that the WARs have as direct dependencies in the EAR. This will tell the plugin to copy all dependent jars to EAR_ROOT/lib. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration defaultJavaBundleDirlib//defaultJavaBundleDir /configuration /plugin HTH mike -Original Message- From: Michał Stochmiałek [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 5:13 AM To: Maven Users List Subject: [m2] war dependencies in ear I've got ear multiproject that contain several web and ejb modules. Those ejbs and wars have dependency on jar with application logic. Of course, application logic has huge number of other 3th party dependencies. When I'm building ear, all wars archives contain their own dependencies (including contain application logic and all 3th party dependencies). Ear archive contain all ejbs dependencies (also including application logic and all 3th party dependencies). In result, I have application logic and all 3th party dependencies in each war and also in ear. This includes all configuration files of application logic. So if I want to change single property I must change it in every application logic jar in each war and ear. What I want to achieve? I want all dependencies from wars in ear bundle, not in WEB-INF/lib. I tried to exclude all jars in WEB-INF/lib using exclude tag in war configuration. It works - directory WEB-INF/lib is empty, but it didn't solve the problem, since those excluded jars weren't added to ear. Do you know any solution for the problem? best regards, -- Michal Stochmialek IT Department, Technology Division Euro Bank S.A. - 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: JNI with maven2
What would you consider good coding practice? One project with the Java source and another with the c code? Where would I put the tests? How do I specify the dependencies of other projects? thanks Ph On Wed, 2006-01-04 at 09:22 -0800, dan tran wrote: Philippe native-maven-plugin is at http://mojo.codehaus.com. Still in alpha, but I am able to compile windows and linux,etc. Give it a try, feedback + help is greatly appreciated. The doc is still very limitted. -D On 1/4/06, Philippe Faes [EMAIL PROTECTED] wrote: Hi all, I found a maven-1 plugin for compiling native code (for JNI), but none for maven-2. Can I use m2 for my JNI project or is it not ready yet? kind regards Philippe -- ir. Philippe Faes Ghent University - Department ELIS Sint-Pietersnieuwstraat 41 -- B-9000 Gent Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94 http://www.elis.UGent.be/~pfaes ON5DEU -- LPIC1 -- gpg-key:173720B6 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ir. Philippe Faes Ghent University - Department ELIS Sint-Pietersnieuwstraat 41 -- B-9000 Gent Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94 http://www.elis.UGent.be/~pfaes ON5DEU -- LPIC1 -- gpg-key:173720B6 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : [m2] how to remove jar from .m2/repository
yes, I believe that we need a goal to remove jar from local repository and also for Maven-Proxy repository yes, for SNAPSHOT , I do find that some release plugins are having dependencies on SNAPSHOT version , and very often that SNAPSHOT may be broken or no longer exist! :-(we need something to track this too ~manchi On Jan 5, 2006, at 6:10 PM, Olivier Lamy wrote: Hi, Maybe something too which clean SNAPSHOT previous when performing a release ? Probably dangerous but could be optionnal in release plugin ? - Olivier -Message d'origine- De : Allan Ramirez [mailto:[EMAIL PROTECTED] Envoyé : jeudi 5 janvier 2006 11:06 À : Maven Users List Objet : Re: [m2] how to remove jar from .m2/repository I suggest that we should have a plugin for this. A goal that can remove an artifact from the local repo and a goal that will clear all the artifact in a group? What do you think? -allan dan tran wrote: perhaps we should have automation tool so that meta-data file can be updated accordingly as well. For my case, I am required to do daily build, and eventually I will need to remove those builds that we no longer need. -D On 1/2/06, Edwin Punzalan [EMAIL PROTECTED] wrote: As of now, the only way to remove the jar is to delete it manually from your repository folder. The repository can be found in ~/.m2/repository by default. Man-Chi Leung wrote: after install a jar to local repository, how can I remove it? $mvn install:install-file -Dfile=easymock.jar - DgroupId=easymock - DartifactId=easymock -Dversion=2.0 - Dpackaging=jar -DgeneratePom=true I check the documentation, there are only 2 goal for install, any goal for removal of jar? install:install-file (Installs a file in local repository.) install:install ( Installs project's main artifact in local repository) Regards, ~manchi --- -- 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] - -- - No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.10/218 - Release Date: 1/2/2006 This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. -- --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: call for testers: scp wagon
Anyone else having problems contacting the snapshots machine below? -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 1:34 AM To: Maven Users List Subject: call for testers: scp wagon Hi, In the lead up to the 2.0.2 release, I'd like anyone experiencing: [WAGONSSH-28] session is down [WAGONSSH-30] hangs during deployment to test the following wagon snapshots: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon- ssh/1.0-alpha-6-SNAPSHOT/wagon-ssh-1.0-alpha-6-20060105.062346-2.jar by including it in your $M2_HOME/lib directory. Please also include: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon- provider-api/1.0-alpha-6-SNAPSHOT/wagon-provider-api-1.0-alpha-6-2006010 5.062346-7.jar and http://www.ibiblio.org/maven2/com/jcraft/jsch/0.1.24/jsch-0.1.24.jar Replace any existing wagon/jsch libraries. Another way to test is to pick up the following integration build instead: http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-2006 0105.071501.tar.gz With this build, you can also test scpexe and sftp if you were having any problems with them. Thanks! - Brett - 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: Error building POM (may not be this project's POM)
Has anyone seen this error n knows how to correct it ? ... please help. On 1/4/06, Karthik V [EMAIL PROTECTED] wrote: Hi, I installed some jars into the repository using install:install-file. Now I have this problem - every time I run mvn, I get the below error, each time with some random module (it picks one of the modules I installed manually). Please help me resolve this, and also tell me why I keep getting a different module error every time, when all I do is run mvn install again and again with no other changes. [ERROR] BUILD ERROR [INFO] - --- [INFO] Error building POM (may not be this project's POM). Project ID: hibernate:hibernate Reason: Error getting POM for 'hibernate:hibernate' from the repository: Error t ransferring file hibernate:hibernate:pom:3.1 from the specified remote repositories: central ( http://repo1.maven.org/maven2) [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - This error goes away by itself during some runs, but it is totally unpredictable. Please help. Thanks Karthik.
RE: Error building POM (may not be this project's POM)
I remember this error. It was to do with my proxy - username/password -settings. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 10:50 AM To: users@maven.apache.org Subject: Re: Error building POM (may not be this project's POM) Has anyone seen this error n knows how to correct it ? ... please help. On 1/4/06, Karthik V [EMAIL PROTECTED] wrote: Hi, I installed some jars into the repository using install:install-file. Now I have this problem - every time I run mvn, I get the below error, each time with some random module (it picks one of the modules I installed manually). Please help me resolve this, and also tell me why I keep getting a different module error every time, when all I do is run mvn install again and again with no other changes. [ERROR] BUILD ERROR [INFO] - --- [INFO] Error building POM (may not be this project's POM). Project ID: hibernate:hibernate Reason: Error getting POM for 'hibernate:hibernate' from the repository: Error t ransferring file hibernate:hibernate:pom:3.1 from the specified remote repositories: central ( http://repo1.maven.org/maven2) [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - This error goes away by itself during some runs, but it is totally unpredictable. Please help. Thanks Karthik. --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error building POM (may not be this project's POM)
Oh .. thanks .. Could you tell me where to set it? On 1/5/06, Dixit, Sandeep (ProSource Solutions) [EMAIL PROTECTED] wrote: I remember this error. It was to do with my proxy - username/password -settings. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 10:50 AM To: users@maven.apache.org Subject: Re: Error building POM (may not be this project's POM) Has anyone seen this error n knows how to correct it ? ... please help. On 1/4/06, Karthik V [EMAIL PROTECTED] wrote: Hi, I installed some jars into the repository using install:install-file. Now I have this problem - every time I run mvn, I get the below error, each time with some random module (it picks one of the modules I installed manually). Please help me resolve this, and also tell me why I keep getting a different module error every time, when all I do is run mvn install again and again with no other changes. [ERROR] BUILD ERROR [INFO] - --- [INFO] Error building POM (may not be this project's POM). Project ID: hibernate:hibernate Reason: Error getting POM for 'hibernate:hibernate' from the repository: Error t ransferring file hibernate:hibernate:pom:3.1 from the specified remote repositories: central ( http://repo1.maven.org/maven2) [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - This error goes away by itself during some runs, but it is totally unpredictable. Please help. Thanks Karthik. --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error building POM (may not be this project's POM)
Settings.xml -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 11:07 AM To: Maven Users List Subject: Re: Error building POM (may not be this project's POM) Oh .. thanks .. Could you tell me where to set it? On 1/5/06, Dixit, Sandeep (ProSource Solutions) [EMAIL PROTECTED] wrote: I remember this error. It was to do with my proxy - username/password -settings. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 10:50 AM To: users@maven.apache.org Subject: Re: Error building POM (may not be this project's POM) Has anyone seen this error n knows how to correct it ? ... please help. On 1/4/06, Karthik V [EMAIL PROTECTED] wrote: Hi, I installed some jars into the repository using install:install-file. Now I have this problem - every time I run mvn, I get the below error, each time with some random module (it picks one of the modules I installed manually). Please help me resolve this, and also tell me why I keep getting a different module error every time, when all I do is run mvn install again and again with no other changes. [ERROR] BUILD ERROR [INFO] - --- [INFO] Error building POM (may not be this project's POM). Project ID: hibernate:hibernate Reason: Error getting POM for 'hibernate:hibernate' from the repository: Error t ransferring file hibernate:hibernate:pom:3.1 from the specified remote repositories: central ( http://repo1.maven.org/maven2) [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - This error goes away by itself during some runs, but it is totally unpredictable. Please help. Thanks Karthik. --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] war dependencies in ear
I was thinking also about war projects which can be installed as standalone applications (then they should include all their dependencies in the WEB-INF/lib) and as a part of ear also (then they should not include dependencies which are common for other ear modules). Any support for this case? Best regards, Piotrek I think you will always have to install/deploy two different versions of your war to support this. The war must be built before you use it either standalone or in an ear. __ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
m2: local repo is not working?
Hi, I have a following problem: I installed a few artefacts with a command (for example): mvn install:install-file -Dfile=./jdom-1.0.zip -DgroupId=org -DartifactId=jdom -Dversion=1.0 -Dpackaging=jar Now I have a structure: \.m2\repository\org\jdom\1.0\jdom-1.0.jar In my POM.xml there is: ... repositories repository snapshots enabledtrue/enabled /snapshots idmy-m1-repository/id nameMaven 1.x Repository/name urlhttp://192.168.1.60:8080/maven/url layoutlegacy/layout /repository /repositories ... and ... dependencies ... dependency groupIdorg/groupId artifactIdjdom/artifactId version1.0/version scopecompile/scope /dependency ... /dependencies ... When I try: mvn compile, it says: Downloading: http://192.168.1.60:8080/maven/org/poms/jdom-1.0.pom [WARNING] Unable to get resource from repository my-m1-repository (http://192.168.1.60:8080/maven) Downloading: http://repo1.maven.org/maven2/org/jdom/1.0/jdom-1.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) and the operation takes much time (a couple of minutes). I didn't changed anything in my settings.xml or other files. Is it possible that my local repository isn't working? Thanks for any suggestions, Pawel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: antrun's antlr task problem
Yes I am using 1.1 plugin -D On 1/5/06, Carlos Sanchez [EMAIL PROTECTED] wrote: Are you using the 1.1 plugin? On 1/4/06, dan tran [EMAIL PROTECTED] wrote: ok, have my plugin's configuration as configuration tasks ant inheritRefs=true property name=build.dir value=${ project.build.directory}/ /ant /tasks /configuration and have my build.xml to reference maven.plugin.classpath, but got error Embedded error: The following error occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:249: The following er ror occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:279: Reference maven. plugin.classpath not found. Suggestion on how to trouble shoot this issue is greatly appreciated. -Dan On 1/4/06, Carlos Sanchez [EMAIL PROTECTED] wrote: You need to use the plugin classpath in your build.xml and call ant with inheritRefs=true classpath refid=maven.plugin.classpath/ On 1/4/06, dan tran [EMAIL PROTECTED] wrote: Folks, Here is my build : plugin artifactIdmaven-antrun-plugin/artifactId version1.1-SNAPSHOT/version dependencies dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency dependency groupIdantlr/groupId artifactIdantlr/artifactId version2.7.4/version /dependency /dependencies executions execution phasecompile/phase configuration tasks ant property name=build.dir value=${ project.build.directory}/ /ant /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin and antrun complains Embedded error: The following error occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:299: Could not create task or type of type: antlr. Ant could not find the task or a class this task relies upon. Any suggestions? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2: local repo is not working?
Your groupid in your dependencies tag should be org.jdom. For info when you install an artifact it is installed to your local repository, which is \.m2\repository. When you use the repository tag then you are telling the pom to look for the artifact in your remote repository. Wasnt sure if that was understood from what you wrote. Hope this helps. :-) [EMAIL PROTECTED] wrote: Hi, I have a following problem: I installed a few artefacts with a command (for example): mvn install:install-file -Dfile=./jdom-1.0.zip -DgroupId=org -DartifactId=jdom -Dversion=1.0 -Dpackaging=jar Now I have a structure: \.m2\repository\org\jdom\1.0\jdom-1.0.jar In my POM.xml there is: ... repositories repository snapshots enabledtrue/enabled /snapshots idmy-m1-repository/id nameMaven 1.x Repository/name urlhttp://192.168.1.60:8080/maven/url layoutlegacy/layout /repository /repositories ... and ... dependencies ... dependency groupIdorg/groupId artifactIdjdom/artifactId version1.0/version scopecompile/scope /dependency ... /dependencies ... When I try: mvn compile, it says: Downloading: http://192.168.1.60:8080/maven/org/poms/jdom-1.0.pom [WARNING] Unable to get resource from repository my-m1-repository (http://192.168.1.60:8080/maven) Downloading: http://repo1.maven.org/maven2/org/jdom/1.0/jdom-1.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) and the operation takes much time (a couple of minutes). I didn't changed anything in my settings.xml or other files. Is it possible that my local repository isn't working? Thanks for any suggestions, Pawel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London EC1Y 8LZ tel: +44 (0)20 7256 2300 fax: +44 (0)20 7256 2301 email: [EMAIL PROTECTED] web: http://www.ktsplc.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: call for testers: scp wagon
Yes Mike Perham wrote: Anyone else having problems contacting the snapshots machine below? -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 1:34 AM To: Maven Users List Subject: call for testers: scp wagon Hi, In the lead up to the 2.0.2 release, I'd like anyone experiencing: [WAGONSSH-28] session is down [WAGONSSH-30] hangs during deployment to test the following wagon snapshots: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon- ssh/1.0-alpha-6-SNAPSHOT/wagon-ssh-1.0-alpha-6-20060105.062346-2.jar by including it in your $M2_HOME/lib directory. Please also include: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon- provider-api/1.0-alpha-6-SNAPSHOT/wagon-provider-api-1.0-alpha-6-2006010 5.062346-7.jar and http://www.ibiblio.org/maven2/com/jcraft/jsch/0.1.24/jsch-0.1.24.jar Replace any existing wagon/jsch libraries. Another way to test is to pick up the following integration build instead: http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-2006 0105.071501.tar.gz With this build, you can also test scpexe and sftp if you were having any problems with them. Thanks! - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2: local repo is not working?
Oops sorry, just noticed that matches your groupid in your install command. Not sure in that case. Tim Davies wrote: Your groupid in your dependencies tag should be org.jdom. For info when you install an artifact it is installed to your local repository, which is \.m2\repository. When you use the repository tag then you are telling the pom to look for the artifact in your remote repository. Wasnt sure if that was understood from what you wrote. Hope this helps. :-) [EMAIL PROTECTED] wrote: Hi, I have a following problem: I installed a few artefacts with a command (for example): mvn install:install-file -Dfile=./jdom-1.0.zip -DgroupId=org -DartifactId=jdom -Dversion=1.0 -Dpackaging=jar Now I have a structure: \.m2\repository\org\jdom\1.0\jdom-1.0.jar In my POM.xml there is: ... repositories repository snapshots enabledtrue/enabled /snapshots idmy-m1-repository/id nameMaven 1.x Repository/name urlhttp://192.168.1.60:8080/maven/url layoutlegacy/layout /repository /repositories ... and ... dependencies ... dependency groupIdorg/groupId artifactIdjdom/artifactId version1.0/version scopecompile/scope /dependency ... /dependencies ... When I try: mvn compile, it says: Downloading: http://192.168.1.60:8080/maven/org/poms/jdom-1.0.pom [WARNING] Unable to get resource from repository my-m1-repository (http://192.168.1.60:8080/maven) Downloading: http://repo1.maven.org/maven2/org/jdom/1.0/jdom-1.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) and the operation takes much time (a couple of minutes). I didn't changed anything in my settings.xml or other files. Is it possible that my local repository isn't working? Thanks for any suggestions, Pawel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London EC1Y 8LZ tel: +44 (0)20 7256 2300 fax: +44 (0)20 7256 2301 email: [EMAIL PROTECTED] web: http://www.ktsplc.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] italian mirror ?
hello, anyone using any italian mirror for maven2 ? if so, can anyone paste here the code to copy in settings.xml ? thanks valerio -- To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs
Repository 'central' will be blacklisted -- any clue?
Any clue about this error? [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-inst all-plugin' could not be retrieved from repository: central due to an error: Err or transferring file [INFO] Repository 'central' will be blacklisted [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] - All of a sudden everything stopped working, throwing this error.
Re: call for testers: scp wagon
it's ok now, you can retry. Emmanuel Mike Perham a écrit : Anyone else having problems contacting the snapshots machine below? -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 1:34 AM To: Maven Users List Subject: call for testers: scp wagon Hi, In the lead up to the 2.0.2 release, I'd like anyone experiencing: [WAGONSSH-28] session is down [WAGONSSH-30] hangs during deployment to test the following wagon snapshots: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon- ssh/1.0-alpha-6-SNAPSHOT/wagon-ssh-1.0-alpha-6-20060105.062346-2.jar by including it in your $M2_HOME/lib directory. Please also include: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon- provider-api/1.0-alpha-6-SNAPSHOT/wagon-provider-api-1.0-alpha-6-2006010 5.062346-7.jar and http://www.ibiblio.org/maven2/com/jcraft/jsch/0.1.24/jsch-0.1.24.jar Replace any existing wagon/jsch libraries. Another way to test is to pick up the following integration build instead: http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-2006 0105.071501.tar.gz With this build, you can also test scpexe and sftp if you were having any problems with them. Thanks! - Brett - 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: antrun's antlr task problem
Not sure about maven.plugin.classpath however my use of maven.dependency.classpath seems to work as configured here. Perhaps using the name attribute used in the property element within the pom instead of maven.plugin.classpath? !-- pom.xml -- configuration tasks property refid=maven.dependency.classpath name=depClasspath/property ant inheritRefs=true property name=build.dir value=${project.build.directory }/ /ant /tasks /configuration !-- build.xml referencing maven.dependency.classpath as depClasspath -- taskdef classpath=${depClasspath} resource=org/apache/commons/attributes/anttasks.properties /taskdef -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 10:35 PM To: Maven Users List Subject: Re: antrun's antlr task problem any one? ;-) On 1/4/06, dan tran [EMAIL PROTECTED] wrote: ok, have my plugin's configuration as configuration tasks ant inheritRefs=true property name=build.dir value=${ project.build.directory }/ /ant /tasks /configuration and have my build.xml to reference maven.plugin.classpath, but got error Embedded error: The following error occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:249: The following er ror occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:279: Reference maven. plugin.classpath not found. Suggestion on how to trouble shoot this issue is greatly appreciated. -Dan On 1/4/06, Carlos Sanchez [EMAIL PROTECTED] wrote: You need to use the plugin classpath in your build.xml and call ant with inheritRefs=true classpath refid=maven.plugin.classpath/ On 1/4/06, dan tran [EMAIL PROTECTED] wrote: Folks, Here is my build : plugin artifactIdmaven-antrun-plugin/artifactId version1.1-SNAPSHOT/version dependencies dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency dependency groupIdantlr/groupId artifactIdantlr/artifactId version2.7.4/version /dependency /dependencies executions execution phasecompile/phase configuration tasks ant property name=build.dir value=${ project.build.directory}/ /ant /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin and antrun complains Embedded error: The following error occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:299: Could not create task or type of type: antlr. Ant could not find the task or a class this task relies upon. Any suggestions? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Repository 'central' will be blacklisted -- any clue?
I ran into this behavior on another system when it was upgraded to Fedora Core 4 and SELinux security was enabled by default. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 8:49 AM To: Maven Users List Subject: Repository 'central' will be blacklisted -- any clue? Any clue about this error? [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-inst all-plugin' could not be retrieved from repository: central due to an error: Err or transferring file [INFO] Repository 'central' will be blacklisted [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] - All of a sudden everything stopped working, throwing this error. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: call for testers: scp wagon
Hi, Seems to work for me - quite faster than with scpexe :) Thanks ! g On 05/01/06, Brett Porter [EMAIL PROTECTED] wrote: Hi, In the lead up to the 2.0.2 release, I'd like anyone experiencing: [WAGONSSH-28] session is down [WAGONSSH-30] hangs during deployment to test the following wagon snapshots: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0-alpha-6-SNAPSHOT/wagon-ssh-1.0-alpha-6-20060105.062346-2.jar by including it in your $M2_HOME/lib directory. Please also include: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6-SNAPSHOT/wagon-provider-api-1.0-alpha-6-20060105.062346-7.jar and http://www.ibiblio.org/maven2/com/jcraft/jsch/0.1.24/jsch-0.1.24.jar Replace any existing wagon/jsch libraries. Another way to test is to pick up the following integration build instead: http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-20060105.071501.tar.gz With this build, you can also test scpexe and sftp if you were having any problems with them. Thanks! - Brett - 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: Repository 'central' will be blacklisted -- any clue?
yes i saw ur post at http://www.nabble.com/-m2-FC4-INFO-:-%22Repository-'central'-will-be-blacklisted%22-p1875130.html... I'm running this on Win XP, and it was running fine till yesterday. Nothing changed on my side. If maven just does http downloads of the artifacts, why does it fail when I can still browse the Internet? Can this happen if something is changed in the gateway or the proxy? On 1/5/06, Sean Hennessy [EMAIL PROTECTED] wrote: I ran into this behavior on another system when it was upgraded to Fedora Core 4 and SELinux security was enabled by default. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 8:49 AM To: Maven Users List Subject: Repository 'central' will be blacklisted -- any clue? Any clue about this error? [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-inst all-plugin' could not be retrieved from repository: central due to an error: Err or transferring file [INFO] Repository 'central' will be blacklisted [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] - All of a sudden everything stopped working, throwing this error. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Antw: RE: How can I create ejb-jar and ejb-client-jarwithmaven-ejb-plugin in Maven 2?
You need to specify the destdir attribute of the deploymentDescriptor subtask to point it to the correct location. -Original Message- From: Stefan Rademacher [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 08:12 To: users@maven.apache.org Subject: Antw: RE: How can I create ejb-jar and ejb-client-jarwithmaven-ejb-plugin in Maven 2? Hello, thank you. I already had this code in my POM but the packaging was set to jar. Now I changed it to ejb and it works fine. Now there is one more problem. The maven-ejb-plugin doesn't find the deployment descriptors. It searches in target/classes/META-INF but the files are generated by xdoclet-maven-plugin to target/generated-sources/xdoclet/META-INF. What is the right way to make the maven-ejb-plugin find the deployment descriptors? Thanks for your help! Bye, Stefan [EMAIL PROTECTED] 05.01.2006 12:24:48 To generate both jars, you need to tell the plugin that you want both of them as follows: project ... build ... plugins ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin ... plugins ... /build ... /project -Original Message- From: Stefan Rademacher [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 03:14 To: Maven Users List Subject: How can I create ejb-jar and ejb-client-jar withmaven-ejb-plugin in Maven 2? Hello, Could anyone provide me with a working example of a project, which uses the maven-ejb-plugin to generate jar files for the ejb-module and for the ejb-client? (I use the xdoclet-maven-plugin to generate the ejb artifacts to the folder 'targets/generated-sources/xdoclet') I'm quite new to maven and don't understand the usage example given on plugins' webpage (http://maven.apache.org/plugins/maven-ejb-plugin/howto.html). When I integrate that XML to my POM, nothing happens. Only calling 'mvn ejb:ejb' manually works, as long as I copy the META-INF-folder from 'target/generated-sources/xdoclet' to 'target/classes' first. How can I integrate this into my build process (mvn package: ejb-jar and ejb-client-jar are generated. mvn install: ejb-jar and ejb-client-jar are copied to my local repository...)? Thanks a lot in advance! Regards, Stefan - 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: call for testers: scp wagon
Brett, I switched from sftp to scp and it appears to work! I hope all of this can be released with 2.0.2 as we are planning a company-wide migration from 2.0 to 2.0.2 once it has been released and I have tested it internally. Is there any practical difference between the two transports? Why should I pick one versus the other? mike -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 1:34 AM To: Maven Users List Subject: call for testers: scp wagon Hi, In the lead up to the 2.0.2 release, I'd like anyone experiencing: [WAGONSSH-28] session is down [WAGONSSH-30] hangs during deployment to test the following wagon snapshots: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon- ssh/1.0-alpha-6-SNAPSHOT/wagon-ssh-1.0-alpha-6-20060105.062346-2.jar by including it in your $M2_HOME/lib directory. Please also include: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon- provider-api/1.0-alpha-6-SNAPSHOT/wagon-provider-api-1.0-alpha-6-2006010 5.062346-7.jar and http://www.ibiblio.org/maven2/com/jcraft/jsch/0.1.24/jsch-0.1.24.jar Replace any existing wagon/jsch libraries. Another way to test is to pick up the following integration build instead: http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-2006 0105.071501.tar.gz With this build, you can also test scpexe and sftp if you were having any problems with them. Thanks! - Brett - 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: Repository 'central' will be blacklisted -- any clue?
Maybe the remote machine is down. Try a mirror or in a few hours. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 11:03 AM To: Maven Users List Subject: Re: Repository 'central' will be blacklisted -- any clue? yes i saw ur post at http://www.nabble.com/-m2-FC4-INFO-:-%22Repository-'central'-will-be-bla cklisted%22-p1875130.html... I'm running this on Win XP, and it was running fine till yesterday. Nothing changed on my side. If maven just does http downloads of the artifacts, why does it fail when I can still browse the Internet? Can this happen if something is changed in the gateway or the proxy? On 1/5/06, Sean Hennessy [EMAIL PROTECTED] wrote: I ran into this behavior on another system when it was upgraded to Fedora Core 4 and SELinux security was enabled by default. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 8:49 AM To: Maven Users List Subject: Repository 'central' will be blacklisted -- any clue? Any clue about this error? [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-inst all-plugin' could not be retrieved from repository: central due to an error: Err or transferring file [INFO] Repository 'central' will be blacklisted [INFO] -- -- - --- [ERROR] BUILD ERROR [INFO] -- -- - --- [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] -- -- - All of a sudden everything stopped working, throwing this error. - 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: Repository 'central' will be blacklisted -- any clue?
It normally happens when maven fails to download an artifact. If you can browse ibiblio through a browser and your proxy settings are the same in maven then theres no reason why it shouldnt work. I would suggest you delete the folder org\apache\maven\plugins\maven-install-plugin from you local repository and try again. It has maybe become corrupted in some way. Mike Perham wrote: Maybe the remote machine is down. Try a mirror or in a few hours. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 11:03 AM To: Maven Users List Subject: Re: Repository 'central' will be blacklisted -- any clue? yes i saw ur post at http://www.nabble.com/-m2-FC4-INFO-:-%22Repository-'central'-will-be-bla cklisted%22-p1875130.html... I'm running this on Win XP, and it was running fine till yesterday. Nothing changed on my side. If maven just does http downloads of the artifacts, why does it fail when I can still browse the Internet? Can this happen if something is changed in the gateway or the proxy? On 1/5/06, Sean Hennessy [EMAIL PROTECTED] wrote: I ran into this behavior on another system when it was upgraded to Fedora Core 4 and SELinux security was enabled by default. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 8:49 AM To: Maven Users List Subject: Repository 'central' will be blacklisted -- any clue? Any clue about this error? [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-inst all-plugin' could not be retrieved from repository: central due to an error: Err or transferring file [INFO] Repository 'central' will be blacklisted [INFO] -- -- - --- [ERROR] BUILD ERROR [INFO] -- -- - --- [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] -- -- - All of a sudden everything stopped working, throwing this error. - 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] -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London EC1Y 8LZ tel: +44 (0)20 7256 2300 fax: +44 (0)20 7256 2301 email: [EMAIL PROTECTED] web: http://www.ktsplc.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repository 'central' will be blacklisted -- any clue?
I can browse thru repo1 wth my browser .. my browser is set to direct connection to Internet and not 'auto-detect proxy' ... I havnt specified anything in settings.xml ... I deleted the whole repo, reinstalled maven etc. but no avail ... On 1/5/06, Tim Davies [EMAIL PROTECTED] wrote: It normally happens when maven fails to download an artifact. If you can browse ibiblio through a browser and your proxy settings are the same in maven then theres no reason why it shouldnt work. I would suggest you delete the folder org\apache\maven\plugins\maven-install-plugin from you local repository and try again. It has maybe become corrupted in some way. Mike Perham wrote: Maybe the remote machine is down. Try a mirror or in a few hours. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 11:03 AM To: Maven Users List Subject: Re: Repository 'central' will be blacklisted -- any clue? yes i saw ur post at http://www.nabble.com/-m2-FC4-INFO-:-%22Repository-'central'-will-be-bla cklisted%22-p1875130.html... I'm running this on Win XP, and it was running fine till yesterday. Nothing changed on my side. If maven just does http downloads of the artifacts, why does it fail when I can still browse the Internet? Can this happen if something is changed in the gateway or the proxy? On 1/5/06, Sean Hennessy [EMAIL PROTECTED] wrote: I ran into this behavior on another system when it was upgraded to Fedora Core 4 and SELinux security was enabled by default. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 8:49 AM To: Maven Users List Subject: Repository 'central' will be blacklisted -- any clue? Any clue about this error? [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-inst all-plugin' could not be retrieved from repository: central due to an error: Err or transferring file [INFO] Repository 'central' will be blacklisted [INFO] -- -- - --- [ERROR] BUILD ERROR [INFO] -- -- - --- [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] -- -- - All of a sudden everything stopped working, throwing this error. - 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] -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London EC1Y 8LZ tel: +44 (0)20 7256 2300 fax: +44 (0)20 7256 2301 email: [EMAIL PROTECTED] web: http://www.ktsplc.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Repository 'central' will be blacklisted -- any clue?
Likely the [WARINING] [INFO] message is generic and we are seeing different flavors of repository access failures. The use of 'blacklisted' implies any further attempts will also fail. Have we done something to warrant such persona non grata treatment? It remains a mystery. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 9:18 AM To: Maven Users List Subject: Re: Repository 'central' will be blacklisted -- any clue? I can browse thru repo1 wth my browser .. my browser is set to direct connection to Internet and not 'auto-detect proxy' ... I havnt specified anything in settings.xml ... I deleted the whole repo, reinstalled maven etc. but no avail ... On 1/5/06, Tim Davies [EMAIL PROTECTED] wrote: It normally happens when maven fails to download an artifact. If you can browse ibiblio through a browser and your proxy settings are the same in maven then theres no reason why it shouldnt work. I would suggest you delete the folder org\apache\maven\plugins\maven-install-plugin from you local repository and try again. It has maybe become corrupted in some way. Mike Perham wrote: Maybe the remote machine is down. Try a mirror or in a few hours. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 11:03 AM To: Maven Users List Subject: Re: Repository 'central' will be blacklisted -- any clue? yes i saw ur post at http://www.nabble.com/-m2-FC4-INFO-:-%22Repository-'central'-will-be- bla cklisted%22-p1875130.html... I'm running this on Win XP, and it was running fine till yesterday. Nothing changed on my side. If maven just does http downloads of the artifacts, why does it fail when I can still browse the Internet? Can this happen if something is changed in the gateway or the proxy? On 1/5/06, Sean Hennessy [EMAIL PROTECTED] wrote: I ran into this behavior on another system when it was upgraded to Fedora Core 4 and SELinux security was enabled by default. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 8:49 AM To: Maven Users List Subject: Repository 'central' will be blacklisted -- any clue? Any clue about this error? [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-inst all-plugin' could not be retrieved from repository: central due to an error: Err or transferring file [INFO] Repository 'central' will be blacklisted [INFO] -- -- - --- [ERROR] BUILD ERROR [INFO] -- -- - --- [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] -- -- - All of a sudden everything stopped working, throwing this error. - 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] -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London EC1Y 8LZ tel: +44 (0)20 7256 2300 fax: +44 (0)20 7256 2301 email: [EMAIL PROTECTED] web: http://www.ktsplc.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: antrun's antlr task problem
Thanks first, it is a joice ;-) I would like to put it inside an already defined path id=xyz maven setup here / !-- how do i do this together with your suggestion -- pathelement old stuff / /path Regards -Dan On 1/5/06, Sean Hennessy [EMAIL PROTECTED] wrote: Not sure about maven.plugin.classpath however my use of maven.dependency.classpath seems to work as configured here. Perhaps using the name attribute used in the property element within the pom instead of maven.plugin.classpath? !-- pom.xml -- configuration tasks property refid=maven.dependency.classpath name=depClasspath/property ant inheritRefs=true property name=build.dir value=${project.build.directory }/ /ant /tasks /configuration !-- build.xml referencing maven.dependency.classpath as depClasspath -- taskdef classpath=${depClasspath} resource=org/apache/commons/attributes/anttasks.properties /taskdef -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 10:35 PM To: Maven Users List Subject: Re: antrun's antlr task problem any one? ;-) On 1/4/06, dan tran [EMAIL PROTECTED] wrote: ok, have my plugin's configuration as configuration tasks ant inheritRefs=true property name=build.dir value=${ project.build.directory }/ /ant /tasks /configuration and have my build.xml to reference maven.plugin.classpath, but got error Embedded error: The following error occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:249: The following er ror occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:279: Reference maven. plugin.classpath not found. Suggestion on how to trouble shoot this issue is greatly appreciated. -Dan On 1/4/06, Carlos Sanchez [EMAIL PROTECTED] wrote: You need to use the plugin classpath in your build.xml and call ant with inheritRefs=true classpath refid=maven.plugin.classpath/ On 1/4/06, dan tran [EMAIL PROTECTED] wrote: Folks, Here is my build : plugin artifactIdmaven-antrun-plugin/artifactId version1.1-SNAPSHOT/version dependencies dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency dependency groupIdantlr/groupId artifactIdantlr/artifactId version2.7.4/version /dependency /dependencies executions execution phasecompile/phase configuration tasks ant property name=build.dir value=${ project.build.directory}/ /ant /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin and antrun complains Embedded error: The following error occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:299: Could not create task or type of type: antlr. Ant could not find the task or a class this task relies upon. Any suggestions? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] m2 antrun plugin 1.1 released
Hi, I'd like to announce the release of the maven 2 antrun plugin 1.1 Changelog (since a jira project was created): http://tinyurl.com/bxcvd Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repository 'central' will be blacklisted -- any clue?
I just tested this on my machine and had no problems. For what little help that may be. Im afraid I dont have a detailed enough knowledge to suggest anything else. In the past though when I have come across the blacklisted message it has been sufficient to delete the corresponding metadata from the local repository and try again. Sorry. Sean Hennessy wrote: Likely the [WARINING] [INFO] message is generic and we are seeing different flavors of repository access failures. The use of 'blacklisted' implies any further attempts will also fail. Have we done something to warrant such persona non grata treatment? It remains a mystery. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 9:18 AM To: Maven Users List Subject: Re: Repository 'central' will be blacklisted -- any clue? I can browse thru repo1 wth my browser .. my browser is set to direct connection to Internet and not 'auto-detect proxy' ... I havnt specified anything in settings.xml ... I deleted the whole repo, reinstalled maven etc. but no avail ... On 1/5/06, Tim Davies [EMAIL PROTECTED] wrote: It normally happens when maven fails to download an artifact. If you can browse ibiblio through a browser and your proxy settings are the same in maven then theres no reason why it shouldnt work. I would suggest you delete the folder org\apache\maven\plugins\maven-install-plugin from you local repository and try again. It has maybe become corrupted in some way. Mike Perham wrote: Maybe the remote machine is down. Try a mirror or in a few hours. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 11:03 AM To: Maven Users List Subject: Re: Repository 'central' will be blacklisted -- any clue? yes i saw ur post at http://www.nabble.com/-m2-FC4-INFO-:-%22Repository-'central'-will-be- bla cklisted%22-p1875130.html... I'm running this on Win XP, and it was running fine till yesterday. Nothing changed on my side. If maven just does http downloads of the artifacts, why does it fail when I can still browse the Internet? Can this happen if something is changed in the gateway or the proxy? On 1/5/06, Sean Hennessy [EMAIL PROTECTED] wrote: I ran into this behavior on another system when it was upgraded to Fedora Core 4 and SELinux security was enabled by default. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 8:49 AM To: Maven Users List Subject: Repository 'central' will be blacklisted -- any clue? Any clue about this error? [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-inst all-plugin' could not be retrieved from repository: central due to an error: Err or transferring file [INFO] Repository 'central' will be blacklisted [INFO] -- -- - --- [ERROR] BUILD ERROR [INFO] -- -- - --- [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] -- -- - All of a sudden everything stopped working, throwing this error. - 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] -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London EC1Y 8LZ tel: +44 (0)20 7256 2300 fax: +44 (0)20 7256 2301 email: [EMAIL PROTECTED] web: http://www.ktsplc.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repository 'central' will be blacklisted -- any clue?
Guess what .. it started working now .. though I have no idea when it might stop ... thanks for ur replies .. On 1/5/06, Tim Davies [EMAIL PROTECTED] wrote: I just tested this on my machine and had no problems. For what little help that may be. Im afraid I dont have a detailed enough knowledge to suggest anything else. In the past though when I have come across the blacklisted message it has been sufficient to delete the corresponding metadata from the local repository and try again. Sorry. Sean Hennessy wrote: Likely the [WARINING] [INFO] message is generic and we are seeing different flavors of repository access failures. The use of 'blacklisted' implies any further attempts will also fail. Have we done something to warrant such persona non grata treatment? It remains a mystery. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 9:18 AM To: Maven Users List Subject: Re: Repository 'central' will be blacklisted -- any clue? I can browse thru repo1 wth my browser .. my browser is set to direct connection to Internet and not 'auto-detect proxy' ... I havnt specified anything in settings.xml ... I deleted the whole repo, reinstalled maven etc. but no avail ... On 1/5/06, Tim Davies [EMAIL PROTECTED] wrote: It normally happens when maven fails to download an artifact. If you can browse ibiblio through a browser and your proxy settings are the same in maven then theres no reason why it shouldnt work. I would suggest you delete the folder org\apache\maven\plugins\maven-install-plugin from you local repository and try again. It has maybe become corrupted in some way. Mike Perham wrote: Maybe the remote machine is down. Try a mirror or in a few hours. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 11:03 AM To: Maven Users List Subject: Re: Repository 'central' will be blacklisted -- any clue? yes i saw ur post at http://www.nabble.com/-m2-FC4-INFO-:-%22Repository-'central'-will-be- bla cklisted%22-p1875130.html... I'm running this on Win XP, and it was running fine till yesterday. Nothing changed on my side. If maven just does http downloads of the artifacts, why does it fail when I can still browse the Internet? Can this happen if something is changed in the gateway or the proxy? On 1/5/06, Sean Hennessy [EMAIL PROTECTED] wrote: I ran into this behavior on another system when it was upgraded to Fedora Core 4 and SELinux security was enabled by default. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 8:49 AM To: Maven Users List Subject: Repository 'central' will be blacklisted -- any clue? Any clue about this error? [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-inst all-plugin' could not be retrieved from repository: central due to an error: Err or transferring file [INFO] Repository 'central' will be blacklisted [INFO] -- -- - --- [ERROR] BUILD ERROR [INFO] -- -- - --- [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] -- -- - All of a sudden everything stopped working, throwing this error. - 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] -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London EC1Y 8LZ tel: +44 (0)20 7256 2300 fax: +44 (0)20 7256 2301 email: [EMAIL PROTECTED] web: http://www.ktsplc.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] war plugin and resources filtering
Hi, I think this is related to http://jira.codehaus.org/browse/MNG-791 Is there a known workaround to filter web.xml ? This issue is blocking me from using the war plugin. I presume I am not the only person in that situation. What kind of solutions are you people using ? Best regards, -- Laurent Berteau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repository 'central' will be blacklisted -- any clue?
Though this is solved, I have one question ... I had already downloaded whatever is required to my local repo ... Assuming nothing is corrupted, why is maven still trying a download bfore it checks the local? And sometimes even complains of errors ... I'm new to maven n I find this dependency thing totally unreliable ... I slog all day to get all dependencies in place n things work fine ... the next day I find weird errors even without touching the pom file ... If the artifacts downloaded fine once, and things started working, I dont understand the reason for it to break again ... Can someone tell me how it works? On 1/5/06, Karthik V [EMAIL PROTECTED] wrote: Guess what .. it started working now .. though I have no idea when it might stop ... thanks for ur replies .. On 1/5/06, Tim Davies [EMAIL PROTECTED] wrote: I just tested this on my machine and had no problems. For what little help that may be. Im afraid I dont have a detailed enough knowledge to suggest anything else. In the past though when I have come across the blacklisted message it has been sufficient to delete the corresponding metadata from the local repository and try again. Sorry. Sean Hennessy wrote: Likely the [WARINING] [INFO] message is generic and we are seeing different flavors of repository access failures. The use of 'blacklisted' implies any further attempts will also fail. Have we done something to warrant such persona non grata treatment? It remains a mystery. -Original Message- From: Karthik V [mailto: [EMAIL PROTECTED] Sent: Thursday, January 05, 2006 9:18 AM To: Maven Users List Subject: Re: Repository 'central' will be blacklisted -- any clue? I can browse thru repo1 wth my browser .. my browser is set to direct connection to Internet and not 'auto-detect proxy' ... I havnt specified anything in settings.xml ... I deleted the whole repo, reinstalled maven etc. but no avail ... On 1/5/06, Tim Davies [EMAIL PROTECTED] wrote: It normally happens when maven fails to download an artifact. If you can browse ibiblio through a browser and your proxy settings are the same in maven then theres no reason why it shouldnt work. I would suggest you delete the folder org\apache\maven\plugins\maven-install-plugin from you local repository and try again. It has maybe become corrupted in some way. Mike Perham wrote: Maybe the remote machine is down. Try a mirror or in a few hours. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 11:03 AM To: Maven Users List Subject: Re: Repository 'central' will be blacklisted -- any clue? yes i saw ur post at http://www.nabble.com/-m2-FC4-INFO-:-%22Repository-'central'-will-be-http://www.nabble.com/-m2-FC4-INFO-:-%22Repository-%27central%27-will-be- bla cklisted%22-p1875130.html... I'm running this on Win XP, and it was running fine till yesterday. Nothing changed on my side. If maven just does http downloads of the artifacts, why does it fail when I can still browse the Internet? Can this happen if something is changed in the gateway or the proxy? On 1/5/06, Sean Hennessy [EMAIL PROTECTED] wrote: I ran into this behavior on another system when it was upgraded to Fedora Core 4 and SELinux security was enabled by default. -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 8:49 AM To: Maven Users List Subject: Repository 'central' will be blacklisted -- any clue? Any clue about this error? [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-inst all-plugin' could not be retrieved from repository: central due to an error: Err or transferring file [INFO] Repository 'central' will be blacklisted [INFO] -- -- - --- [ERROR] BUILD ERROR [INFO] -- -- - --- [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] -- -- - All of a sudden everything stopped working, throwing this error. - 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] -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London
Re: antrun's antlr task problem
Check the src/it/test1 in the plugin sources, that works for me. BTW antlr 2.7.4 jar is not in the repo On 1/5/06, dan tran [EMAIL PROTECTED] wrote: Yes I am using 1.1 plugin -D On 1/5/06, Carlos Sanchez [EMAIL PROTECTED] wrote: Are you using the 1.1 plugin? On 1/4/06, dan tran [EMAIL PROTECTED] wrote: ok, have my plugin's configuration as configuration tasks ant inheritRefs=true property name=build.dir value=${ project.build.directory}/ /ant /tasks /configuration and have my build.xml to reference maven.plugin.classpath, but got error Embedded error: The following error occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:249: The following er ror occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:279: Reference maven. plugin.classpath not found. Suggestion on how to trouble shoot this issue is greatly appreciated. -Dan On 1/4/06, Carlos Sanchez [EMAIL PROTECTED] wrote: You need to use the plugin classpath in your build.xml and call ant with inheritRefs=true classpath refid=maven.plugin.classpath/ On 1/4/06, dan tran [EMAIL PROTECTED] wrote: Folks, Here is my build : plugin artifactIdmaven-antrun-plugin/artifactId version1.1-SNAPSHOT/version dependencies dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency dependency groupIdantlr/groupId artifactIdantlr/artifactId version2.7.4/version /dependency /dependencies executions execution phasecompile/phase configuration tasks ant property name=build.dir value=${ project.build.directory}/ /ant /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin and antrun complains Embedded error: The following error occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:299: Could not create task or type of type: antlr. Ant could not find the task or a class this task relies upon. Any suggestions? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] italian mirror ?
This is the list of available mirrors http://jroller.com/page/carlossg?entry=using_mirrors_of_maven2_repositories On 1/5/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: hello, anyone using any italian mirror for maven2 ? if so, can anyone paste here the code to copy in settings.xml ? thanks valerio -- To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : [m2] war plugin and resources filtering
Hi, To add resources (struts, tiles and others). Two solutions : - made your own war plugin (look at a solution proposed http://jira.codehaus.org/browse/MNG-1683) - using something as : build directorybuild/directory outputDirectorybuild/classes/outputDirectory resources resource targetPathpath to ${webappDirectory}/WEB-INF/targetPath directorysrc/main/resources/struts/directory includes include**/*.xml/include /includes filteringtrue/filtering /resource I don't like it because all web resources are included when just made mvn compile - Olivier -Message d'origine- De : Laurent Berteau [mailto:[EMAIL PROTECTED] Envoyé : jeudi 5 janvier 2006 18:35 À : Maven Users List Objet : Re: [m2] war plugin and resources filtering Hi, I think this is related to http://jira.codehaus.org/browse/MNG-791 Is there a known workaround to filter web.xml ? This issue is blocking me from using the war plugin. I presume I am not the only person in that situation. What kind of solutions are you people using ? Best regards, -- Laurent Berteau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] italian mirror ?
Thanks Carlos, shoud I add all of them ? it's not clear from the post (which, by the way, is the most complete I could find so far) if I should add one or all. valerio 2006/1/5, Carlos Sanchez [EMAIL PROTECTED]: This is the list of available mirrors http://jroller.com/page/carlossg?entry=using_mirrors_of_maven2_repositories On 1/5/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: hello, anyone using any italian mirror for maven2 ? if so, can anyone paste here the code to copy in settings.xml ? thanks valerio -- To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs
Re: [m2] italian mirror ?
just use one of the following mirror entries in your settings.xml ;) On 1/5/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: Thanks Carlos, shoud I add all of them ? it's not clear from the post (which, by the way, is the most complete I could find so far) if I should add one or all. valerio 2006/1/5, Carlos Sanchez [EMAIL PROTECTED]: This is the list of available mirrors http://jroller.com/page/carlossg?entry=using_mirrors_of_maven2_repositories On 1/5/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: hello, anyone using any italian mirror for maven2 ? if so, can anyone paste here the code to copy in settings.xml ? thanks valerio -- To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: call for testers: scp wagon
it is a great joice to see scp working with all the correct persmission settings there is one minor problem with scpexe thou Tested with the recommended snapshot build using scp, sftp,and scpexe. The project ( maven-native) consists of 2 parents, 6 jars, and 1 plugin projects. the plugin deploy always fails at the last step for SCPEXE. I also fails when I deploy the plugin alone. [INFO] [deploy:deploy] [INFO] Retrieving previous build number from snapshots Uploading: scpexe://repo1.maven.org/home/projects/maven/repository-staging/snaps hots/maven2/org/codehaus/mojo/native-maven-plugin/1.0-alpha-1-SNAPSHOT/native-ma ven-plugin-1.0-alpha-1-20060105.181308-10.jar [INFO] Retrieving previous metadata from snapshots [INFO] Uploading repository metadata for: 'artifact org.codehaus.mojo:native-mav en-plugin' [INFO] Retrieving previous metadata from snapshots [INFO] Uploading repository metadata for: 'snapshot org.codehaus.mojo:native-mav en-plugin:1.0-alpha-1-SNAPSHOT' [INFO] Retrieving previous metadata from snapshots [INFO] Uploading project information for native-maven-plugin 1.0-alpha-1-2006010 5.181308-10 [INFO] Retrieving previous metadata from snapshots [INFO] Uploading repository metadata for: 'org.codehaus.mojo' [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Error installing artifact's metadata: Error while deploying metadata: Err or executing command for transfer Exit code 1 - overall, it is a joice to see scp working with all the correct persmission settings On 1/5/06, Mike Perham [EMAIL PROTECTED] wrote: Brett, I switched from sftp to scp and it appears to work! I hope all of this can be released with 2.0.2 as we are planning a company-wide migration from 2.0 to 2.0.2 once it has been released and I have tested it internally. Is there any practical difference between the two transports? Why should I pick one versus the other? mike -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 1:34 AM To: Maven Users List Subject: call for testers: scp wagon Hi, In the lead up to the 2.0.2 release, I'd like anyone experiencing: [WAGONSSH-28] session is down [WAGONSSH-30] hangs during deployment to test the following wagon snapshots: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon- ssh/1.0-alpha-6-SNAPSHOT/wagon-ssh-1.0-alpha-6-20060105.062346-2.jar by including it in your $M2_HOME/lib directory. Please also include: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon- provider-api/1.0-alpha-6-SNAPSHOT/wagon-provider-api-1.0-alpha-6-2006010 5.062346-7.jar and http://www.ibiblio.org/maven2/com/jcraft/jsch/0.1.24/jsch-0.1.24.jar Replace any existing wagon/jsch libraries. Another way to test is to pick up the following integration build instead: http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-2006 0105.071501.tar.gz With this build, you can also test scpexe and sftp if you were having any problems with them. Thanks! - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Location of source for integration-test
Did you ever got an answer to this question. It might be stupid but I am wondering exactly the same.. :) thanks erick Bill Siggelkow wrote: I apologize if this is a stupid question, but what is the proper location for integration-test source (as opposed to the src/test/java for unit tests)? I read the intro to the std dir layout and did not see any mention of this. -Bill Siggelkow - 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: NullPointerException while running mvn site:site
Hello Sandeep, you can install this artifact in your local repository. The j2ee.jar is not really a system artifact. see: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html I hope this helps Regards Bernd Dixit, Sandeep (ProSource Solutions) schrieb: I think it needs to be incorporated into the release. One thing I don't understand is why is it null? Below is my tag: dependency groupIdjavax/groupId artifactIdjavax.ejb/artifactId version5.0/version scopesystem/scope systemPath${was.lib}/j2ee.jar/systemPath /dependency The ${was.lib} is defined in settings.xml and is a valid value. Maybe the plugin is not properly resolving the ${was.lib} variable? Thanks, Sandeep -Original Message- From: Bernd Bohmann [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 3:05 AM To: Maven Users List Subject: Re: NullPointerException while running mvn site:site Hello, see http://jira.codehaus.org/browse/MNG-1455 but the patch was reverted. I think the maven-project-info-reports-plugin in the svn has a fix for it. Maybe a SNAPSHOT version is available. My technical question It is allowed to return null for artifact.getFile() ? If not there should be different implementation or call of artifact.setFile for a system artifact. If it is allowed the patch should applied. Best Regards Bernd Bohmann Dixit, Sandeep (ProSource Solutions) schrieb: I am getting the error below while running 'mvn site'. I read in the mailing archive that it is related to the use of systemPaths in pom.xml, but didn't see any resolution. Does anyone know how to resolve this? Thanks, Sandeep [INFO] [site:site] [INFO] Generate Continuous Integration report. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [INFO] Generate Dependencies report. [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] null [INFO] - --- [INFO] Trace java.lang.NullPointerException at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:82) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:63) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo sitory(DefaultMavenProjectBuilder.java:387) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito ry(DefaultMavenProjectBuilder.java:352) at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRe nderer.getMavenProjectFromRepository(DependenciesReport.java:362) at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRe nderer.renderBody(DependenciesReport.java:242) at org.apache.maven.reporting.AbstractMavenReportRenderer.render(Abstrac tMavenReportRenderer.java:65) at org.apache.maven.report.projectinfo.DependenciesReport.executeReport( DependenciesReport.java:157) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven Report.java:98) at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo. java:802) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:432) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:530) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:485) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:455) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at
Re: m2 plugin config problems with eclipse
Be sure not to confuse the maven eclipse plugin with the eclipse maven plugin. The former is a plugin for maven 2 that allows mvn eclipse:eclipse to create .classpath and .project as Man-Chi explained. --- The latter is a plugin for eclipse that supports maven. It adds a bunch of features to eclipse to do things like: * create appropriate classpath entries any time you edit the POM for a project. * let you search the repository for particular jars (there are some issues with this feature as relates to the local repository) * do external builds with Maven (I haven't gotten this to work) * fix up source folder settings in eclipse --- Notes for Roland: M2_REPO is an eclipse variable that ties into the entries the maven eclipse plugin puts in the .classpath for an eclipse project The preference setting for local repository is, I think, supposed to point to the local user directory/.m2/repository folder. (In windows thats something like c:\Documents and Settings\userid\.m2\repository.) I haven't been able to get the M2 external build to work. I don't get the same error you do. But it works fine to add a plain external build that runs mvn.bat (in the windows case) when starting in the folder containing the POM.xml you want to build. The arguments would be things like install or -e site or whatever. -- Lee On 1/5/06, Man-Chi Leung [EMAIL PROTECTED] wrote: eclipse plugin is already come with m2 by default the following command will create .classpath and .project files for eclipse. $mvn eclipse:eclipse u also need to add your .m2/repository parameter to eclipse as the following: $mvn -Declipse.workspace=YOUR_ECLIPSE_WORKSPACE_DIR eclipse:add- maven-repo from eclipse u may run as external tools: check out this instructions http://maven.apache.org/guides/mini/guide-ide-eclipse.html in fact, I perfer to run via CLI , that is faster ~manchi On Jan 5, 2006, at 9:53 PM, Roland Oertig wrote: Hi I downloaded and use the maven-plugin offered on the Appache http://maven.apache.org/eclipse-plugin.html . After having spent hours googeling around, to try to find some documents or hints how to use the m2 plugin in eclipse with run-- external tools -- m2 build in the popup window Create, manage and run configurations, I have to give up and hope that one of you guys can help me. In the eclipse Windows -- Preferences -- Maven2 I set the local Repository folder to C:\maven-2.0.1 and to Java -- Classpath Variables I added M2_REPO and MAVEN_REPO (just to be sure) to point to my local repository (e.g. E:\maven \localrepository) Next I try to start a maven goal through the run -- external tools: I entered the base directory (e.g. E:/myApp) and goal (e.g. install) in the requested fields. It return immediately with an information in the border of the console view window, like: terminatedmyApp[m2 build} C:\Program\Java\jre1.5.0\bin\javaw.exe(05.01.20006 14:20:34) I tried to also write the output to a logfile but nothing gets written there, but the file gets created. The only info I get on the console is: [Console output redirected to file:E:\HotelDatabase\maven_eclipse_run] If I run m2 from the windows command line everything goes perfect. I appreciate if someone can help me and give me glue on what I missed! Thanks in advance. Cheers Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: antrun's antlr task problem
OK the IT test1 works, I now use it as a base to test if I can load antlr task. It fails not able to load antlr task It seems like antrun is not able to find the entry into the antlr ant task. Your help is greatly appreciated here is the pom ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.apache.maven.plugins.antrun/groupId artifactIdtest1/artifactId version1.0-SNAPSHOT/version nameTest for compile and plugin classpath references/name descriptionEnsure that maven.compile.classpath and maven.plugin.classpath referencies are set/description dependencies /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.1/version executions execution idcompile/id phasecompile/phase configuration sourceRoottarget/generated/src/main/java/sourceRoot tasks path id=classpath path refid=maven.compile.classpath/ path refid=maven.plugin.classpath/ /path ant antfile=${basedir}/build.xml inheritRefs=true target name=test/ /ant /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency dependency groupIdantlr/groupId artifactIdantlrall/artifactId version2.7.4/version /dependency /dependencies /plugin /plugins /build /project Here is build.xml = ?xml version=1.0? project name=test1 target name=test antlr target=${main.dir}/org/exolab/jms/selector/parser/Selector.g outputdirectory=${parser.dir} classpath refid=classpath/ /antlr /target /project -D On 1/5/06, Carlos Sanchez [EMAIL PROTECTED] wrote: Check the src/it/test1 in the plugin sources, that works for me. BTW antlr 2.7.4 jar is not in the repo On 1/5/06, dan tran [EMAIL PROTECTED] wrote: Yes I am using 1.1 plugin -D On 1/5/06, Carlos Sanchez [EMAIL PROTECTED] wrote: Are you using the 1.1 plugin? On 1/4/06, dan tran [EMAIL PROTECTED] wrote: ok, have my plugin's configuration as configuration tasks ant inheritRefs=true property name=build.dir value=${ project.build.directory}/ /ant /tasks /configuration and have my build.xml to reference maven.plugin.classpath, but got error Embedded error: The following error occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:249: The following er ror occurred while executing this line: M:\dtran-uscud-dtran-phoenix-i\EJB\maven\openjms\build.xml:279: Reference maven. plugin.classpath not found. Suggestion on how to trouble shoot this issue is greatly appreciated. -Dan On 1/4/06, Carlos Sanchez [EMAIL PROTECTED] wrote: You need to use the plugin classpath in your build.xml and call ant with inheritRefs=true classpath refid=maven.plugin.classpath/ On 1/4/06, dan tran [EMAIL PROTECTED] wrote: Folks, Here is my build : plugin artifactIdmaven-antrun-plugin/artifactId version1.1-SNAPSHOT/version dependencies dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency dependency groupIdantlr/groupId artifactIdantlr/artifactId version2.7.4/version /dependency /dependencies executions execution phasecompile/phase configuration tasks ant property name=build.dir value=${ project.build.directory}/ /ant /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin and antrun complains
RE: [ANN] m2 antrun plugin 1.1 released
Is there something fundamental that I need to change between 1.0 and 1.1? I just updated because I needed the http://jira.codehaus.org/browse/MANTRUN-28 fix. I only changed the version and now it seems to be missing more stuff on the class path: executions execution idkodo-enhance/id phasecompile/phase configuration tasks ant antfile=kodo-enhance.xml inheritRefs=true inheritAll=true/ /tasks /configuration goals goalrun/goal /goals /execution Kodo-enhance.xml: project name=Kodo Enhance default=enhance property environment=environment/ property name=m2localrepo value=${environment.M2_REPO}/ path id=local.class.path pathelement location=./target/classes/ pathelement location=./src/main/resources/ path refid=maven.dependency.classpath/ /path target name=enhance taskdef name=enhance-classes classname=kodo.ant.JDOEnhancerTask classpathref=local.class.path/ enhance-classes classpath refid=local.class.path/ fileset dir=./target include name=**/*.jdo / /fileset /enhance-classes /target /project Error: [INFO] [antrun:run {execution: kodo-enhance}] [INFO] Executing tasks enhance: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded error: The following error occurred while executing this line: E:\STC\workarea\svn\modules\services\supplementaldata-jdo\trunk\kodo-enh ance.xml:10: taskdef class kodo.ant.J OEnhancerTask cannot be found [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant tasks at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:544 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecu or.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleE ecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.j va:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing ant tasks at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntM ojo.java:114) at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:519 ... 16 more Caused by: The following error occurred while executing this line: E:\STC\workarea\svn\modules\services\supplementaldata-jdo\trunk\kodo-enh ance.xml:10: taskdef class kodo.ant.J OEnhancerTask cannot be found at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe lper.java:539) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntM ojo.java:108) ... 19 more Caused by: E:\STC\workarea\svn\modules\services\supplementaldata-jdo\trunk\kodo-enh ance.xml:10: taskdef class kodo.ant.JDOEnhancerTask cannot be found -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Thursday, January 05, 2006 12:17 PM To: Maven
Re: [ANN] m2 antrun plugin 1.1 released
sound like you are running into the same problem that I have in other thread ( antlr task) You may want use that thread to configure your classpath + dependencies if It does not work, sound like a JIRA tome -Dan On 1/5/06, Brian E. Fox [EMAIL PROTECTED] wrote: Is there something fundamental that I need to change between 1.0 and 1.1? I just updated because I needed the http://jira.codehaus.org/browse/MANTRUN-28 fix. I only changed the version and now it seems to be missing more stuff on the class path: executions execution idkodo-enhance/id phasecompile/phase configuration tasks ant antfile=kodo-enhance.xml inheritRefs=true inheritAll=true/ /tasks /configuration goals goalrun/goal /goals /execution Kodo-enhance.xml: project name=Kodo Enhance default=enhance property environment=environment/ property name=m2localrepo value=${environment.M2_REPO}/ path id=local.class.path pathelement location=./target/classes/ pathelement location=./src/main/resources/ path refid=maven.dependency.classpath/ /path target name=enhance taskdef name=enhance-classes classname=kodo.ant.JDOEnhancerTask classpathref=local.class.path/ enhance-classes classpath refid=local.class.path/ fileset dir=./target include name=**/*.jdo / /fileset /enhance-classes /target /project Error: [INFO] [antrun:run {execution: kodo-enhance}] [INFO] Executing tasks enhance: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded error: The following error occurred while executing this line: E:\STC\workarea\svn\modules\services\supplementaldata-jdo\trunk\kodo-enh ance.xml:10: taskdef class kodo.ant.J OEnhancerTask cannot be found [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant tasks at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:544 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecu or.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleE ecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.j va:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing ant tasks at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntM ojo.java:114) at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:519 ... 16 more Caused by: The following error occurred while executing this line: E:\STC\workarea\svn\modules\services\supplementaldata-jdo\trunk\kodo-enh ance.xml:10: taskdef class kodo.ant.J OEnhancerTask cannot be found at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe lper.java:539) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntM ojo.java:108) ... 19 more Caused by:
[m2] Where to find the source code for org.apache.maven.model.Model
I'm investigating how the maven-site-plugin generates the dependency list. As part of that I need to look at the source of org.apache.maven.model.Model. I cannot find the source for this class anywhere in the source checked out from http://svn.apache.org/viewcvs.cgi/maven/components/trunk/ Any hint where to find it? Thanks, Chris
Re: unit test fails for 'package' but not 'site' or 'test'
I did notice (replying to my self) that the failing project is the only one with an excludes on the surefile plugin. On 1/5/06, Lee Meador [EMAIL PROTECTED] wrote: When I do 'mvn site' or 'mvn test' the tests run on all my projects. They don't fail. When I do 'mvn package', one test fails. Two projects (including the parent) have no tests. Then wo projects with tests succeed. Then two projects with no tests. And then the failure happens on the next project to build. The failure is due to a java.lang.NoClassDefFoundError pointing to a class that is in one of the earlier built projects' jar files. That jar file is in place and contains the class file. When I do -e -X it shows the classpath on the test run and that jar file (the one with the class that can't be found) is listed. I have a parent/base project and a bunch of child projects sitting in folder beside the folder for the parent. That leaves a lot of ..s in the POMs but hasn't been a problem to this point. I don't know where to go from here. Help? Thanks. -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: NullPointerException while running mvn site:site
I confirm : svn has a fix (modified since the patch from MNG-1455) I built and installed the plugin locally, and it works nicely Le Jeudi 05 Janvier 2006 09:04, Bernd Bohmann a écrit : Hello, see http://jira.codehaus.org/browse/MNG-1455 but the patch was reverted. I think the maven-project-info-reports-plugin in the svn has a fix for it. Maybe a SNAPSHOT version is available. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 plugin config problems with eclipse
Hi. I'm really new with Maven myself, but I'm also completely unaware of any utility that the eclipse Maven plugin actually provides! I can tell you how I am using Maven in eclipse: 1. Set up eclipse's build path to 'mirror' the Maven settings. 2. Set up basic 'External Tools' to run maven tasks. 3. Import these basic external tools into your project as builders and disable the default Java builder. With this setup, the Maven plugin is providing no real utility. But I can use Maven from eclipse commands and it works just like from the command line. Here's the gory details of setting up eclipse: The first thing I did was go ahead and install the Maven plugin. I wrote my POM by hand. Then in eclipse, right-click the project and choose Maven/Update Source Folders to get a start on having the eclipse build path set up as it is declared in your POM. Then go to the project properties and tweak the build path by hand. This allows eclipse to correctly identify source code items in the package view. Now, to set up the builder, first use this bizarre eclipse feature: In preferences, under Run/Debug, add a String Substitution. Choose the folder that contains your Maven executable [mvn.bat on my windows machine]. Name this whatever you like; I called mine Maven bin. Apparently it doesn't even matter. When you set up an external program, eclipse will automatically search within this directory for an external program if you prompt it. This is completely bizarre. But, save your preferences. Go to the external tools menu and add a new Program. The Location should be: ${system_path:mvn.bat} And as I said, eclipse will search in that folder you chose above and find that there is a mvn.bat in there, and this will execute when you run this tool. Now, set the Working Directory to ${project_loc} Set arguments to whatever goal you want: clean, compile, package... Then on the Refresh tab I set it up to refresh the 'project containing the selected resource'; and on the Common tab I have it saved as a local file and I select Display in favorites menu. Duplicate this task for each Maven goal you want easy access to: Be careful you don't make it too easy to execute something potentially dangerous: don't add such tasks to the favorites menu; and force yourself to have to open the dialog to run those when you need them. Remember too that if you have two projects open, these will run on the project that contains the selected resource so you don't want to mistakenly run some goal on the wrong project. You can also opt to have none of these in the favorites menu, or dispense with creating these external tools and specify them each time for each new project as I explain below. It seems a bit useful to have them around at least as templates though. OK. No you have tasks that you can run by selecting your project and then choosing the tool from the external tools menu. It will execute in your project's directory just like from the command line -- more specifically, as I said, it will execute in the directory of the project that contains the selected resource, so be careful. Now go back you your project preferences if you want to, and import Builders for the eclipse clean and build commands. Choose Import and import your Maven-clean command for instance. You wind up with a copy of the task you imported, but it is probably safer to run since you are sure this one only runs on the project you have in fact selected to clean or build from the eclipse menu. And you set the Build Options so it executes on the appropriate command. So that's the whole story from my workbench... Frankly I am liking this mode of working a bit. I did the same thing with Ant, which is: If you build with an external tool in eclipse, then eclipse doesn't get so sticky with errors in your package view and editors. By that I mean: when you build with eclipse's default Java builder, if you have errors, most of the time on non-trivial projects you have to clean the project to have it truly recognize any changes you make and to be sure all the up to date classes are being loaded here and there. Using Maven or Ant frees the eclipse editor to attempt to behave [sensibly] and dynamically parse the source in place instead of doing some incremental compiling or whatever the heck it is all doing in there! Basically I have to do less double-checking of the IDE and it has become more useful. But mileage varies... Good luck in any case! Regards, Steev Coco. Roland Oertig wrote: Hi I downloaded and use the maven-plugin offered on the Appache http://maven.apache.org/eclipse-plugin.html . After having spent hours googeling around, to try to find some documents or hints how to use the m2 plugin in eclipse with run-- external tools -- m2 build in the popup window Create, manage and run configurations, I have to give up and hope that one of you guys can help me. In the eclipse Windows -- Preferences -- Maven2 I set the local
[m2] target/classes/META-INF/persistence.xml - howto?
Hey all, Working on an EJB3 project and the 'test' continues to fail. I think I know why but not sure how to do it. When the classes are compiled they are stored to target/classes/**/*.class. I need to also have from src/java/META-INF/persistence.xml to also copy over to target/classes/**/*.class (or from another directory location). This will also need to happen during package/deploy, but stuck at test at the moment ;-) Recommendations for dealing with this META-INF file? Thanky, -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ${project.build.directory} different in M2.0 M2.0.1
We have seen the same issue, and it is a serious PITA. Now we will have to go through any home grown Plugins and modify them accordingly. 1) the absolute path makes more sense, and more importantly, matches all previous behavior, particularly m1!! 2) this sort of change should come with a huge red flag attached, as it breaks peoples code. It certainly shouldn't come in a minor release Thus, I can only assume that this is an bug?? Can we expect this to be fixed in 2.0.2?? Thanks, -- Chris On 1/5/06, Jens Zastrow [EMAIL PROTECTED] wrote: In Maven 2.0 the value containes the whole absolute path to the target dir. C:\windows\system32\target With Maven 2.0.1 only: target\ I use the JavaCC-plugin: plugin groupId org.codehaus.mojo/groupId artifactIdjavacc-maven-plugin/artifactId version0.6.1-SNAPSHOT/version configuration outputDirectory${ project.build.directory}/generated-src/main/java/out putDirectory /configuration /plugin The problem now arise when the project with javacc is part of a multi-module build (with 2.0.1). Because ${project.build.directory}/generated-src/main/java evalulates to target/generated-src/main/java the files are generated to the parent-project target-directory! Which value should ${project.build.directory } contain? Thanks Workaround: Its simple to fix this in the pom.xml using ${basedir}/target/generated-src/main/java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] m2 antrun plugin 1.1 released
It seems to work if I change it from maven.dependencies.classpath to maven.test.classpath. Not sure why. -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 2:44 PM To: Maven Users List Subject: Re: [ANN] m2 antrun plugin 1.1 released sound like you are running into the same problem that I have in other thread ( antlr task) You may want use that thread to configure your classpath + dependencies if It does not work, sound like a JIRA tome -Dan On 1/5/06, Brian E. Fox [EMAIL PROTECTED] wrote: Is there something fundamental that I need to change between 1.0 and 1.1? I just updated because I needed the http://jira.codehaus.org/browse/MANTRUN-28 fix. I only changed the version and now it seems to be missing more stuff on the class path: executions execution idkodo-enhance/id phasecompile/phase configuration tasks ant antfile=kodo-enhance.xml inheritRefs=true inheritAll=true/ /tasks /configuration goals goalrun/goal /goals /execution Kodo-enhance.xml: project name=Kodo Enhance default=enhance property environment=environment/ property name=m2localrepo value=${environment.M2_REPO}/ path id=local.class.path pathelement location=./target/classes/ pathelement location=./src/main/resources/ path refid=maven.dependency.classpath/ /path target name=enhance taskdef name=enhance-classes classname=kodo.ant.JDOEnhancerTask classpathref=local.class.path/ enhance-classes classpath refid=local.class.path/ fileset dir=./target include name=**/*.jdo / /fileset /enhance-classes /target /project Error: [INFO] [antrun:run {execution: kodo-enhance}] [INFO] Executing tasks enhance: [INFO] -- -- [ERROR] BUILD ERROR [INFO] -- -- [INFO] Error executing ant tasks Embedded error: The following error occurred while executing this line: E:\STC\workarea\svn\modules\services\supplementaldata-jdo\trunk\kodo-e nh ance.xml:10: taskdef class kodo.ant.J OEnhancerTask cannot be found [INFO] -- -- [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant tasks at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defau lt LifecycleExecutor.java:544 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif ec ycle(DefaultLifecycleExecu or.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defaul tL ifecycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand le Failures(DefaultLifecycleE ecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment s( DefaultLifecycleExecutor.j va:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif ec ycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j av a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess or Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing ant tasks at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAn tM ojo.java:114) at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugin Ma nager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defau lt LifecycleExecutor.java:519 ... 16 more Caused by: The following error occurred while executing this line: E:\STC\workarea\svn\modules\services\supplementaldata-jdo\trunk\kodo-e nh ance.xml:10: taskdef class kodo.ant.J OEnhancerTask cannot be found at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Project He lper.java:539) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384) at
RE: [m2] Exception while executing SCM command. password is required
Why do I keep getting this error: sun4-cross: mvn scm:update [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'scm'. [INFO] [INFO] Building GTPL Maven Sample Project [INFO]task-segment: [scm:update] (aggregator-style) [INFO] [INFO] [scm:update] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot run checkout command : Embedded error: Exception while executing SCM command. password is required [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 8 seconds [INFO] Finished at: Thu Jan 05 15:19:20 EST 2006 [INFO] Final Memory: 4M/77M [INFO] In POM I have: scm connectionscm:cvs:pserver:[EMAIL PROTECTED]:/export1/cvsrep/gtpl:sampleProject/connection developerConnectionscm:cvs:pserver:[EMAIL PROTECTED]:/export1/cvsrep/gtpl:sampleProject/developerConnection /scm Even thought the CVS has no password for my user and I've already checked out the project via CVS without password. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Exception while executing SCM command. password is required
On 05/01/06, Mayorgaadame, Alex [EMAIL PROTECTED] wrote: Why do I keep getting this error: sun4-cross: mvn scm:update Embedded error: Exception while executing SCM command. password is required In POM I have: scm connectionscm:cvs:pserver:[EMAIL PROTECTED]:/export1/cvsrep/gtpl:sampleProject/connection developerConnectionscm:cvs:pserver:[EMAIL PROTECTED]:/export1/cvsrep/gtpl:sampleProject/developerConnection /scm Even thought the CVS has no password for my user and I've already checked out the project via CVS without password. Try connectionscm:cvs:pserver:me:@server:/export1/cvsrep/gtpl:sampleProject/connection That should do it. (It specifies an empty password, between your username and your @server) HTH, g - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Where to find the source code for org.apache.maven.model.Model
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I'm investigating how the maven-site-plugin generates the dependency list. As part of that I need to look at the source of org.apache.maven.model.Model. I cannot find the source for this class anywhere in the source checked out from http://svn.apache.org/viewcvs.cgi/maven/components/trunk/ Any hint where to find it? You should be able to find it near here: http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0/maven-model - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Where to find the source code for org.apache.maven.model.Model
No, doesn't exist there. But I found out that it is generated by executing maven modello:java within the directory maven-model. It looks as if all source code in maven-model is generated. Thanks, Chris Christopher Cobb [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I'm investigating how the maven-site-plugin generates the dependency list. As part of that I need to look at the source of org.apache.maven.model.Model. I cannot find the source for this class anywhere in the source checked out from http://svn.apache.org/viewcvs.cgi/maven/components/trunk/ Any hint where to find it? You should be able to find it near here: http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0/maven-model - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] dependency-maven-plugin 1.0
ok, filed MPLUGIN-11 it contains a patch to add the text described to the plugin documentation report (even translated it into french :) ) but it did not change the About xxx plugin page : I don't know where to go for that. If anybody can show me... Le Jeudi 05 Janvier 2006 08:42, Wim Deblauwe a écrit : very good suggestion +1 for me also 2006/1/5, Hervé BOUTEMY [EMAIL PROTECTED]: (The following is a little off-topic for dependency-maven-plugin specifically, but I think it needs to be said.) For an experience Maven2 user, the value of these docs is immediately obvious. For the newbie, however, there is still the feeling: OK, so now what do I do. +1 (+2 if I could) a simple addition in the About xxx plugin generated file would do the trick. For example, if you see http://maven.apache.org/plugins/maven-site-plugin/index.html After the Goals available: table, simply add : Configuration: To use this plugin, you will need to add to your pom : plugin groupIdorg.apache.maven.plugins/groupId (is this necessary ? perhaps not for org.apache.maven.plugins, but for other like org.codehaus.mojo...) artifactIdmaven-site-plugin/artifactId /plugin For more information, see Guide to Conguring Plug-ins (link to http://maven.apache.org/guides/mini/guide-configuring-plugins.html) I think this would really help the newbie : personally, for example, it took me a long time to discover that naming convention for Maven plugins was maven-xxx-plugin, but for Mojo plugins it is xxx-maven-plugin. Carefully reading the plugin documentation would have been sufficient, but... Is there an existing JIRA entry, or should I create one ? - 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]
You need to define a connectionUrl parameter.
I'm trying to set up svn and I'm getting this message: Embedded error: Can't load the scm provider. You need to define a connectionUrl parameter. How/where do I define a connectionUrl parameter? - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.
Re: [m2] Where to find the source code for org.apache.maven.model.Model
yes, that is correct On 1/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: No, doesn't exist there. But I found out that it is generated by executing maven modello:java within the directory maven-model. It looks as if all source code in maven-model is generated. Thanks, Chris Christopher Cobb [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I'm investigating how the maven-site-plugin generates the dependency list. As part of that I need to look at the source of org.apache.maven.model.Model. I cannot find the source for this class anywhere in the source checked out from http://svn.apache.org/viewcvs.cgi/maven/components/trunk/ Any hint where to find it? You should be able to find it near here: http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0/maven-model - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jesse mcconnell
Re: [m2] Where to find the source code for org.apache.maven.model.Model
[EMAIL PROTECTED] wrote: No, doesn't exist there. But I found out that it is generated by executing maven modello:java within the directory maven-model. It looks as if all source code in maven-model is generated. The source for much of the generated code is this file: http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-model/maven.mdo -- Dennis Lundberg Thanks, Chris Christopher Cobb [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I'm investigating how the maven-site-plugin generates the dependency list. As part of that I need to look at the source of org.apache.maven.model.Model. I cannot find the source for this class anywhere in the source checked out from http://svn.apache.org/viewcvs.cgi/maven/components/trunk/ Any hint where to find it? You should be able to find it near here: http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0/maven-model - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - 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: You need to define a connectionUrl parameter.
Christopher Cobb wrote: I'm trying to set up svn and I'm getting this message: Embedded error: Can't load the scm provider. You need to define a connectionUrl parameter. How/where do I define a connectionUrl parameter? It's defined in your pom.xml. http://maven.apache.org/guides/introduction/introduction-to-the-pom.html http://maven.apache.org/maven-model/maven.html#class_scm -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ${project.build.directory} different in M2.0 M2.0.1
JIRA please ;-) did you test it with a snapshot of 2.0.2? -D On 1/5/06, Chris Berry [EMAIL PROTECTED] wrote: We have seen the same issue, and it is a serious PITA. Now we will have to go through any home grown Plugins and modify them accordingly. 1) the absolute path makes more sense, and more importantly, matches all previous behavior, particularly m1!! 2) this sort of change should come with a huge red flag attached, as it breaks peoples code. It certainly shouldn't come in a minor release Thus, I can only assume that this is an bug?? Can we expect this to be fixed in 2.0.2?? Thanks, -- Chris On 1/5/06, Jens Zastrow [EMAIL PROTECTED] wrote: In Maven 2.0 the value containes the whole absolute path to the target dir. C:\windows\system32\target With Maven 2.0.1 only: target\ I use the JavaCC-plugin: plugin groupId org.codehaus.mojo/groupId artifactIdjavacc-maven-plugin/artifactId version0.6.1-SNAPSHOT/version configuration outputDirectory${ project.build.directory }/generated-src/main/java/out putDirectory /configuration /plugin The problem now arise when the project with javacc is part of a multi-module build (with 2.0.1). Because ${project.build.directory}/generated-src/main/java evalulates to target/generated-src/main/java the files are generated to the parent-project target-directory! Which value should ${project.build.directory } contain? Thanks Workaround: Its simple to fix this in the pom.xml using ${basedir}/target/generated-src/main/java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: accessing environment variable in settings.xml or pom.xml
Greetings, my name is Adam Altemus. I am a computer science student @ Indiana University of PA. and am doing an internship. I read in a thread that you said that you can acess environment variables in the pom.xml from the settings.xml. Could you explain to me how this can be done?
RE: You need to define a connectionUrl parameter.
-Original Message- From: Dennis Lundberg [mailto:[EMAIL PROTECTED] It's defined in your pom.xml. http://maven.apache.org/guides/introduction/introduction-to-the-pom.html http://maven.apache.org/maven-model/maven.html#class_scm Thanks for those URL's, although I don't see explicit mention of connectionUrl in either place. Are you talking about the connection element that I already have in my pom? scm connectionscm:svn:svn://coe10/GCSS/gvis-wms/gvis/trunk//connection /scm Is there anything wrong with the URL that I am using above? I thought that the error was probably talking about some other kind of parameter. - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] List of dependencies in site plugin
Standalone HTML can be generated with: mvn project-info-reports:dependencies Cheers, Brett On 1/5/06, Allan Ramirez [EMAIL PROTECTED] wrote: If I recall correctly, the dependencies report is generated by the maven-project-info-reports-plugin. You can take a look in the source how it was done. Check out the source here: http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-project-info-reports-plugin [EMAIL PROTECTED] wrote: How is the list of dependencies generated in the plugin site? I basically want to generate a either a HTML page or even better a plain-text list of dependencies a la what the site plugin generates. Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xmlbeans plugin
John Wells (Aziz) [EMAIL PROTECTED] I am trying to use the XML beans plugin from http://mojo.codehaus.org/xmlbeans-maven-plugin/ However, I get the following: [ERROR] BUILD ERROR [INFO] -- --- [INFO] Failed to resolve artifact. GroupId: xmlbeans ArtifactId: xmlbeans-jsr173-api Version: 2.0-dev Reason: Unable to download the artifact from any repository xmlbeans:xmlbeans-jsr173-api:2.0-dev:jar from the specified remote repositories: central (http://repo1.maven.org/maven2), CoreRepo (http://www-tux/wls/maven2/repository) Looks like there is a missing file in the repository. Where is this file supposed to live? John Wells (Aziz) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] JUnitDoclet pluging help, or replacement options to generate unit tests ple
I have been using JUNitDoclet for m1.0.2 and really want some sort of unit test generation functionality in m2 please. Can anyone help? --- Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com Washington Mutual (WAMU) (Emeryville, California) --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ${project.build.directory} different in M2.0 M2.0.1
This difference is also evident in Maven 2.1-SNAPSHOT. Richard Allen dan tran wrote: JIRA please ;-) did you test it with a snapshot of 2.0.2? -D On 1/5/06, Chris Berry [EMAIL PROTECTED] wrote: We have seen the same issue, and it is a serious PITA. Now we will have to go through any home grown Plugins and modify them accordingly. 1) the absolute path makes more sense, and more importantly, matches all previous behavior, particularly m1!! 2) this sort of change should come with a huge red flag attached, as it breaks peoples code. It certainly shouldn't come in a minor release Thus, I can only assume that this is an bug?? Can we expect this to be fixed in 2.0.2?? Thanks, -- Chris On 1/5/06, Jens Zastrow [EMAIL PROTECTED] wrote: In Maven 2.0 the value containes the whole absolute path to the target dir. C:\windows\system32\target With Maven 2.0.1 only: target\ I use the JavaCC-plugin: plugin groupId org.codehaus.mojo/groupId artifactIdjavacc-maven-plugin/artifactId version0.6.1-SNAPSHOT/version configuration outputDirectory${ project.build.directory }/generated-src/main/java/out putDirectory /configuration /plugin The problem now arise when the project with javacc is part of a multi-module build (with 2.0.1). Because ${project.build.directory}/generated-src/main/java evalulates to target/generated-src/main/java the files are generated to the parent-project target-directory! Which value should ${project.build.directory } contain? Thanks Workaround: Its simple to fix this in the pom.xml using ${basedir}/target/generated-src/main/java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] JUnitDoclet pluging help, or replacement options to generate unit tests ple
I have developed a M2 Junitdoclet plugin. If there is interest I would like to see it hosted on the MOJO project. bye Ralf Mick Knutson wrote: I have been using JUNitDoclet for m1.0.2 and really want some sort of unit test generation functionality in m2 please. Can anyone help? --- Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com Washington Mutual (WAMU) (Emeryville, California) --- - 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]