How to skip downloading POM?
Maven downloads all dependencies from remote repositories including their related jar and pom files. For some reason, not every jar has its pom file. In this case, Maven will try to download these pom files every time it is running. How can I let maven skip download these pom files or download only once? -- View this message in context: http://www.nabble.com/How-to-skip-downloading-POM--tp16975499s177p16975499.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependency injection and Plexus Compilers
To compile some internal linux based projects I'm looking to write a simple compiler that creates an scons or waf build file from the compiler configuration. I'm hoping to hook the artifacts the script creates back into maven so that it can manage them. We have fairly simple build requirements this far (i.e. a single platform) and internal knowledge of scons, hence this scons approach over something like the NAR or native plugins. I completely agree about coupling the compiler to the project object, I didn't like that approach from the beginning. I'll give the expressions another try and hopefully that will give me what I need. Thanks for your help. rgds, ste Jason van Zyl-2 wrote: On 22-Apr-08, at 4:37 PM, sgargan wrote: Hi there, I've been playing around with developing a simple compiler. Its coming along nicely, but for one thing. The configuration that gets passed to the compiler instance is great, but not as complete as I would like. Ideally I would like to have access to the MavenProject object at the compiler level in order to grab the little bits of extra information I need. I'm wondering if there is any way to have the complier injected with the Maven project, similar to how the mojos are injected with dependencies, or via the plexus container or otherwise? Coupling the compiler to a MavenProject is probably not a good idea. Extract what you need using the expressions and pass them into you component. Even if you are only using Maven it means that no one else will be able to use the compiler outside the confines of Maven. What kind of compiler are you making? Not similar to what we have now? Thanks in advance. regards, stephen -- View this message in context: http://www.nabble.com/Dependency-injection-and-Plexus-Compilers-tp16827294s177p16827294.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks, Jason -- Jason van Zyl Founder, Apache Maven jason at sonatype dot com -- To do two things at once is to do neither. -—Publilius Syrus, Roman slave, first century B.C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Dependency-injection-and-Plexus-Compilers-tp16827294s177p16976065.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Execute Integration/Unit Tests Separately
Hello, unit tests we just put in src/test/java instead of src/main/java and surefire runs them automatically in phase test. You can do a mvn test on the command-line to run only up to and including these tests. Integration tests - here's an example (that you can also adapt for unit tests) plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId executions execution idintegration-tests/id phaseintegration-test/phase goals goaltest/goal /goals configuration includes param**/*IntegrationTest.java/param /includes /configuration /execution /executions /plugin They'll be run in the regular build in phase integration-test. If you don't want them to run automatically, you can put this in a profile section and then you'd start them with mvn -P profilename integration-test. Yours, David -Original Message- From: Campano, Troy [mailto:[EMAIL PROTECTED] Sent: 30 April 2008 02:14 To: users@maven.apache.org Subject: Execute Integration/Unit Tests Separately Hello, I am new to Maven 2 (trying to convert from Maven 1). I want to be able to run my Unit Tests and Integration Tests separately. I have named my unit tests **UnitTest.java and my integration tests **IntegrationTest.java. In Maven 1 I would define two custom goals in maven.xml, one for each type of test, and also define the include filter to include the correct tests in the corresponding custom goal (the test-unit goal would run all my **UnitTest.java files and test-integration would run all of my **IntegrationTest.java files). How do I do this with Maven 2? I just read through the whole lifecycle concept. Does this mean I would define the SureFire plugin to run in the test phase and the integration-test phase and each definition in my pom.xml would be tied to one of those lifecycle phases (each with their own separate include definition)? Thank you for the help, it's appreciated! ~ T r o y ~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Profiles and/or assemblies?
Hi! First of all; I', pretty new to maven so sorry if I've missed the big pictures I'm working on a web project where we until now only have had one customer. We have been using profiles; development, test and production. The difference between the profiles are web service addresses, dbconnections etc. The profiles have filtered in the correct settings to the properties files. Now we got two other customers that want the same thing, but a few settings are changed (i.e the logo, heading etc). So now I would like to build the production profiles and then build 3 packages (one for each customer) and filter in the customer specific settings. I've been looking at the assembly plugin; but not sure it does what I want. I want to specify the filter to use for each customer and then filter the properties file. From what I understand the assembly plugin goes the opposite direction, one filter that can be applied on several files... :-/ An alternative is to make three static properties-files and copy them into the project using assembly, but then all the common properties are duplicated in all the three properties-files. Any thoughts? Ivar -- View this message in context: http://www.nabble.com/Profiles-and-or-assemblies--tp16977056s177p16977056.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
batch script halts after mvn command
Hi, I use maven 2.0.7. I wrote a *.bat file to execute maven command (and some other commands). But when mvn script finishes, the *.bat file do not process any other commands which follows mvn. Any solutions to fix that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Global settings for a plugin
Hello everybody! Could you please explain how can I provide some specific settings for a plugin, which would apply to any Maven project? For instance, I need to configure the Eclipse plugin to add the project version to a generated project, currently I need to provide each and every POM file with the settings like below: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration addVersionToProjectNametrue/addVersionToProjectName /configuration /plugin and this is a bit annoying. I learned settings.xml description and found there's no way to specify plugin settings in it. Any advice? -- Eugene N Dzhurinsky pgpWH7K09lvoX.pgp Description: PGP signature
how to avoid re-installation of an project
Hi, I wonder that it is possible to overwrite a already released version in the repository by mvn install. Is there a possibility to avoid this? Mit freundlichen Grüßen/Best regards Johannes Hoehne Merchandise Systems Article MGI METRO Group Information Technology GmbH Metro-Strasse 12, 40235 Duesseldorf, Germany Phone: +49 (211) 969-3695 E-Mail: [EMAIL PROTECTED] * SAVE PAPER - THINK BEFORE YOU PRINT Geschäftsführung/Management Board: Heinz-Josef Boeck (Vorsitzender/CEO), Heike Schneberger, Dr. Dirk Töpfer, Dr. Gerd Wolfram Sitz Düsseldorf, Amtsgericht Düsseldorf, HRB 18232/Commercial Register of the Duesseldorf Local Court, HRB 18232 This e-mail message is intended exclusively for the addressee. If the e-mail was sent to you by mistake, would you please call us immediately? In this case, we also request you to destroy the e-mail and to neither use the content nor disclose them in any manner to third parties, because the message can contain confidential information which may be protected by professional secrecy.
Re: batch script halts after mvn command
Thanks. CALL solved the problem Bernhard David wrote: Hello, I believe if you call one batch file from another you need to use CALL - see help call if you have it. start.exe (with some parameters) might also work. Or, if that fails, command.com /c file.bat. Yours, David -Original Message- From: Ramunas [mailto:[EMAIL PROTECTED] Sent: 30 April 2008 10:11 To: Maven Users List Subject: batch script halts after mvn command Hi, I use maven 2.0.7. I wrote a *.bat file to execute maven command (and some other commands). But when mvn script finishes, the *.bat file do not process any other commands which follows mvn. Any solutions to fix that? - 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] -- Pagarbiai, *Ramu-nas Pilotas* IS analitikas-projektuotojas UAB Metamodelis mobil. 8 674 36316 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] _www.metamodelis.lt_ P.S. Jei i; praneima; gavote per klaida;, praome ji; itrinti. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: batch script halts after mvn command
Hello, I believe if you call one batch file from another you need to use CALL - see help call if you have it. start.exe (with some parameters) might also work. Or, if that fails, command.com /c file.bat. Yours, David -Original Message- From: Ramunas [mailto:[EMAIL PROTECTED] Sent: 30 April 2008 10:11 To: Maven Users List Subject: batch script halts after mvn command Hi, I use maven 2.0.7. I wrote a *.bat file to execute maven command (and some other commands). But when mvn script finishes, the *.bat file do not process any other commands which follows mvn. Any solutions to fix that? - 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 skip downloading POM?
If you run maven with the option -o, it will execute in offline mode, and will not try to download any dependency from remote repositories. On Wed, Apr 30, 2008 at 8:02 AM, youhaodeyi [EMAIL PROTECTED] wrote: Maven downloads all dependencies from remote repositories including their related jar and pom files. For some reason, not every jar has its pom file. In this case, Maven will try to download these pom files every time it is running. How can I let maven skip download these pom files or download only once? -- View this message in context: http://www.nabble.com/How-to-skip-downloading-POM--tp16975499s177p16975499.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Execute Integration/Unit Tests Separately
Great, thank you David. I also found some related information here: http://wiki.rodcoffin.com/index.php?title=Maven_Integration_Testing ~ T r o y ~ -Original Message- From: Bernhard David [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 2:54 AM To: Maven Users List Subject: RE: Execute Integration/Unit Tests Separately Hello, unit tests we just put in src/test/java instead of src/main/java and surefire runs them automatically in phase test. You can do a mvn test on the command-line to run only up to and including these tests. Integration tests - here's an example (that you can also adapt for unit tests) plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId executions execution idintegration-tests/id phaseintegration-test/phase goals goaltest/goal /goals configuration includes param**/*IntegrationTest.java/param /includes /configuration /execution /executions /plugin They'll be run in the regular build in phase integration-test. If you don't want them to run automatically, you can put this in a profile section and then you'd start them with mvn -P profilename integration-test. Yours, David -Original Message- From: Campano, Troy [mailto:[EMAIL PROTECTED] Sent: 30 April 2008 02:14 To: users@maven.apache.org Subject: Execute Integration/Unit Tests Separately Hello, I am new to Maven 2 (trying to convert from Maven 1). I want to be able to run my Unit Tests and Integration Tests separately. I have named my unit tests **UnitTest.java and my integration tests **IntegrationTest.java. In Maven 1 I would define two custom goals in maven.xml, one for each type of test, and also define the include filter to include the correct tests in the corresponding custom goal (the test-unit goal would run all my **UnitTest.java files and test-integration would run all of my **IntegrationTest.java files). How do I do this with Maven 2? I just read through the whole lifecycle concept. Does this mean I would define the SureFire plugin to run in the test phase and the integration-test phase and each definition in my pom.xml would be tied to one of those lifecycle phases (each with their own separate include definition)? Thank you for the help, it's appreciated! ~ T r o y ~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven newbie, what next?
Hi all. I'm getting started with Maven, have followed the site docs, and have used http://today.java.net/pub/a/today/2007/03/01/building-web-applications-with-maven-2.html this great intro tutorial I found . So, I have setup a project which has a lot of source code. I can compile it and create a jar file with maven from the command line, getting all the pom dependencies, while I develop in Eclipse. But I'm not sure about the next steps. My project is Spring based, contains a lot of config and property files, which are not yet included in the project, and I want to deploy the app to tomcat the way I would with my ant scripts. I'm not quite sure where to look next for some examples, any pointers would be greatly appreciated! -- View this message in context: http://www.nabble.com/Maven-newbie%2C-what-next--tp16980070s177p16980070.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Localisation of reports
Hi everybody, If I specify in the maven-site-plugin : localesfr,en/locales (and I create a site.xml file in french and a site_en.xml file in english) Then the generated reports are in french, in both the french and the english generated Web page. If I specify localesfr,en/locales (and I create accordingly index_fr.xml in french, and index.xml in english) The generated reports are (as expected) in english in the english Web pages, in french in the french Web page. Is that a bug ? Is there a way to obtain the expected behaviour by using some configuration ? Also, is there an easy way to create a link allowing to switch between versions of the same page in different locales ? Thank you, Anne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Copying package to a directory
Is there a plugin which I can use to copy a package (jar, war ...) to a specified folder? And is it also possible to provide a name for that folder, with a buildnumber or something like that? This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Re: [POLL] Default Value for File Encoding
Benjamin Bentmann wrote: Manos Batsis wrote: I hate this! Someone finally agrees with me but in a misquoted email; I never wrote that :-) As I said, that was my fault of getting the reply header wrong, I apologize for this confusion. I didn't want to upset you Manos. No prob, sorry if i sounded upset - i wasn't. Thanks for the thread! Cheers, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven newbie, what next?
Take a look at http://maven.apache.org/articles.html 'Better builds with Maven' and 'The Definitive Maven Guide' are really good books. For eclipse, you may look at the m2eclipse plugin. http://m2eclipse.sonatype.org LieGrü, strub --- gezhall [EMAIL PROTECTED] schrieb: Hi all. I'm getting started with Maven, have followed the site docs, and have used http://today.java.net/pub/a/today/2007/03/01/building-web-applications-with-maven-2.html this great intro tutorial I found . So, I have setup a project which has a lot of source code. I can compile it and create a jar file with maven from the command line, getting all the pom dependencies, while I develop in Eclipse. But I'm not sure about the next steps. My project is Spring based, contains a lot of config and property files, which are not yet included in the project, and I want to deploy the app to tomcat the way I would with my ant scripts. I'm not quite sure where to look next for some examples, any pointers would be greatly appreciated! -- View this message in context: http://www.nabble.com/Maven-newbie%2C-what-next--tp16980070s177p16980070.html Sent from the Maven - Users mailing list archive at Nabble.com. __ Gesendet von Yahoo! Mail. Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Copying package to a directory
Le 30-avr.-08 à 13:22, [EMAIL PROTECTED] a écrit : Is there a plugin which I can use to copy a package (jar, war ...) to a specified folder? And is it also possible to provide a name for that folder, with a buildnumber or something like that? maven-assembly-plugin http://maven.apache.org/plugins/maven-assembly-plugin/ You can specify formatdir/format so you won't have a zip file but the directory structure. -- Arnaud Vandyck [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't run ant task in maven 2.0.9
I've just installed maven 2.0.9 and added the 2.0.9 Maven tasks for ant into my ant install lib directory (ant 1.7) and now when I run my antrun plugin it fails with the message: Embedded error: The following error occurred while executing this line: /home/development/workspace/backoffice/run-fit.xml:5: Could not create task or type of type: antlib:org.apache.maven.artifact.ant:dependencies. I didn't have this issue with maven 2.0.7 or 2.0.8 with either ant 1.6.5 or 1.7. Has anybody experienced this issue and know what the problem is? here is the antrun config in my pom: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idTests Run by Ant/id phasetest/phase goals goalrun/goal /goals configuration tasks ant antfile=${basedir}/run-fit.xml dir=${basedir} inheritRefs=true / /tasks /configuration /execution /executions /plugin and the ant build file: ?xml version=1.0? project name=run-fit default=run-tests xmlns:artifact=antlib:org.apache.maven.artifact.ant target name=setup artifact:dependencies filesetId=aspectjweaver.fileset dependency groupId=aspectj artifactId=aspectjweaver version=1.5.3 / /artifact:dependencies /target target name=run-tests depends=setup echo message=I don't work / /target /project os fedora core 6 version 2.6.22.14-72.fc6 java version 1.6.0_04 Java(TM) SE Runtime Environment (build 1.6.0_04-b12) Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing) Cheers Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Copying package to a directory
You can also use dependency plugin :) plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy/id phaseinstall/phase goals goalcopy/goal /goals configuration artifactItems artifactItem groupId ${project.groupId} /groupId artifactId ${project.artifactId} /artifactId version ${project.version} /version overWritetrue/overWrite type ${project.packaging} /type destFileName ${artifactId}.${project.packaging} /destFileName /artifactItem /artifactItems outputDirectory ${youroutput} /outputDirectory /configuration /execution /executions /plugin Tomas Darbois Edifixio Grenoble - Projet ScorWare 04 76 29 89 27 [EMAIL PROTECTED] -Message d'origine- De : Arnaud Vandyck [mailto:[EMAIL PROTECTED] Envoyé : mercredi 30 avril 2008 13:40 À : Maven Users List Objet : Re: Copying package to a directory Le 30-avr.-08 à 13:22, [EMAIL PROTECTED] a écrit : Is there a plugin which I can use to copy a package (jar, war ...) to a specified folder? And is it also possible to provide a name for that folder, with a buildnumber or something like that? maven-assembly-plugin http://maven.apache.org/plugins/maven-assembly-plugin/ You can specify formatdir/format so you won't have a zip file but the directory structure. -- Arnaud Vandyck [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: Global settings for a plugin
I haven't tried, but I believe you could have a look at the pluginManagement section, and add the global configuration for the eclipse plugin in your super pom. -Olivier On Wed, 2008-04-30 at 11:19 +0300, Eugeny N Dzhurinsky wrote: Hello everybody! Could you please explain how can I provide some specific settings for a plugin, which would apply to any Maven project? For instance, I need to configure the Eclipse plugin to add the project version to a generated project, currently I need to provide each and every POM file with the settings like below: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration addVersionToProjectNametrue/addVersionToProjectName /configuration /plugin and this is a bit annoying. I learned settings.xml description and found there's no way to specify plugin settings in it. Any advice? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Authentication failed: The host was not known when deploying from eclipse plugin
Hi, I am trying to use maven eclipse plugin m2eclipse. When I run goal deploy I get error: Error retrieving previous build number for artifact 'installer:installer:jar': repository metadata for: 'snapshot installer:installer:SNAPSHOT' could not be retrieved from repository: busse-test-ripo due to an error: Authentication failed: The host was not known and was not accepted by the configuration: Everything works fine when I rune mvn deploy from console. My maven is 2.0.9, eclipse 3.3.2. Anybody knows what can I do about it? Regards Pawel Stawicki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven Archetype Plugin 2.0-alpha-3 Released
I believe the Archetype 2.0-alpha-3 plugin is broken. There is a dependency issue that goes away when I force version 2.0-alpha-2. Could somebody look into this? In the interim I'm going to try running with a clean repo and bypassing our internal Maven repo-proxy. Raphaël Piéroni-5 wrote: The Maven team is pleased to announce the release of the Maven Archetype Plugin, version 2.0-alpha-3 The Archetype Plugin allows the user to create a Maven 2 project from an existing template called an archetype. It also allows the user to create an archetype from an existing project. http://maven.apache.org/plugins/maven-archetype-plugin/ Release Notes - Maven Archetype - Version 2.0-alpha-3 ** Bug * [ARCHETYPE-122] - The defined artifact is not an archetype? * [ARCHETYPE-124] - custom archetype-catalog.xml not read * [ARCHETYPE-126] - Site menu is corrupted * [ARCHETYPE-129] - incorrect error handling in batch mode * [ARCHETYPE-130] - selecting N to is this correct question resets all variables, even those that were input from the command line * [ARCHETYPE-132] - The create-from-project goal does not work on windows for multi-module projects * [ARCHETYPE-137] - Problem when setting default values for archetype-metadata.xml * [ARCHETYPE-139] - cannot create archetype for existing project without pre-existing pom * [ARCHETYPE-140] - archetype:generate doesn't support inserting a module into a multi-module build like :create did * [ARCHETYPE-141] - wrong goal name in docs * [ARCHETYPE-144] - Fails archetype:create when specify archetypeVersion * [ARCHETYPE-146] - Archetype Resources not being processed on Windows. * [ARCHETYPE-149] - archetype generate -DarchetypeRepository not working * [ARCHETYPE-150] - New maven-archetype-plugin ignores the remoteRepositories system property * [ARCHETYPE-153] - Multimodule archetype does not propagate the artifactId in module names. * [ARCHETYPE-159] - mvn archetype:generate is failing to download needed archetype artifacts * [ARCHETYPE-160] - [regression] the default (15) is no longer present in generate ** Improvement * [ARCHETYPE-109] - plugins should have a auto-generated goal help * [ARCHETYPE-112] - Allow to configure the filteredExtentions from the archetype.properties file * [ARCHETYPE-135] - add a variabl containing package in a path format * [ARCHETYPE-143] - Add the possibility to generate files at project's root ** Wish * [ARCHETYPE-154] - Can i ask when will alpha-3 released Enjoy, -The Maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-ANN--Maven-Archetype-Plugin-2.0-alpha-3-Released-tp16949530s177p16981794.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Global settings for a plugin
Hello, I believe the usual thing to do is declare one parent pom for all projects in your organization and put globals in there. Then, all your poms need to declare it or one of its children as parent. That's how we do it at elca. Yours, David -Original Message- From: Olivier Dehon [mailto:[EMAIL PROTECTED] Sent: 30 April 2008 14:05 To: Maven Users List Subject: Re: Global settings for a plugin I haven't tried, but I believe you could have a look at the pluginManagement section, and add the global configuration for the eclipse plugin in your super pom. -Olivier On Wed, 2008-04-30 at 11:19 +0300, Eugeny N Dzhurinsky wrote: Hello everybody! Could you please explain how can I provide some specific settings for a plugin, which would apply to any Maven project? For instance, I need to configure the Eclipse plugin to add the project version to a generated project, currently I need to provide each and every POM file with the settings like below: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration addVersionToProjectNametrue/addVersionToProjectName /configuration /plugin and this is a bit annoying. I learned settings.xml description and found there's no way to specify plugin settings in it. Any advice? - 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: [ANN] Maven Archetype Plugin 2.0-alpha-3 Released
Hi, Could you please raise a jira with the execution trace of maven with -X Thanks Raphaël 2008/4/30 Clifton [EMAIL PROTECTED]: I believe the Archetype 2.0-alpha-3 plugin is broken. There is a dependency issue that goes away when I force version 2.0-alpha-2. Could somebody look into this? In the interim I'm going to try running with a clean repo and bypassing our internal Maven repo-proxy. Raphaël Piéroni-5 wrote: The Maven team is pleased to announce the release of the Maven Archetype Plugin, version 2.0-alpha-3 The Archetype Plugin allows the user to create a Maven 2 project from an existing template called an archetype. It also allows the user to create an archetype from an existing project. http://maven.apache.org/plugins/maven-archetype-plugin/ Release Notes - Maven Archetype - Version 2.0-alpha-3 ** Bug * [ARCHETYPE-122] - The defined artifact is not an archetype? * [ARCHETYPE-124] - custom archetype-catalog.xml not read * [ARCHETYPE-126] - Site menu is corrupted * [ARCHETYPE-129] - incorrect error handling in batch mode * [ARCHETYPE-130] - selecting N to is this correct question resets all variables, even those that were input from the command line * [ARCHETYPE-132] - The create-from-project goal does not work on windows for multi-module projects * [ARCHETYPE-137] - Problem when setting default values for archetype-metadata.xml * [ARCHETYPE-139] - cannot create archetype for existing project without pre-existing pom * [ARCHETYPE-140] - archetype:generate doesn't support inserting a module into a multi-module build like :create did * [ARCHETYPE-141] - wrong goal name in docs * [ARCHETYPE-144] - Fails archetype:create when specify archetypeVersion * [ARCHETYPE-146] - Archetype Resources not being processed on Windows. * [ARCHETYPE-149] - archetype generate -DarchetypeRepository not working * [ARCHETYPE-150] - New maven-archetype-plugin ignores the remoteRepositories system property * [ARCHETYPE-153] - Multimodule archetype does not propagate the artifactId in module names. * [ARCHETYPE-159] - mvn archetype:generate is failing to download needed archetype artifacts * [ARCHETYPE-160] - [regression] the default (15) is no longer present in generate ** Improvement * [ARCHETYPE-109] - plugins should have a auto-generated goal help * [ARCHETYPE-112] - Allow to configure the filteredExtentions from the archetype.properties file * [ARCHETYPE-135] - add a variabl containing package in a path format * [ARCHETYPE-143] - Add the possibility to generate files at project's root ** Wish * [ARCHETYPE-154] - Can i ask when will alpha-3 released Enjoy, -The Maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-ANN--Maven-Archetype-Plugin-2.0-alpha-3-Released-tp16949530s177p16981794.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
convert maven 1 to maven 2
I got a few problem s to migrate some projects from maven 1 to maven 2 I have several main components to migrate. Under every component there are other components, and each of them has a client project, a server project and a common project. example: project A -- project A.1 -- client, server, common Now I thought it ' s a good idea to declare every client, server and common project as a module of the father component. Therefore I have to rename them, cause in Maven 2 you need for every project an unique artifact id and a group id. What advantages I get with the modules ? And what disadvantages? Is there any other handling with dependencies ? Because I still don't know how to build up the dependency management. -- View this message in context: http://www.nabble.com/convert-maven-1-to-maven-2-tp1698s177p1698.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven pde rcp to build
I need a userid and passcode to get access to the code. On Tue, Apr 29, 2008 at 6:59 PM, Carlos Sanchez [EMAIL PROTECTED] wrote: the link to the code is in the slides On Fri, Apr 25, 2008 at 7:47 AM, [EMAIL PROTECTED] wrote: There was no sample code with the slides, so I was a little lost. Most of the stuff has in the slide seems ok, but I could not make heads or tails without the src code. On Thu, Apr 24, 2008 at 6:04 AM, Vincent Siveton [EMAIL PROTECTED] wrote: Hi, Have a look on Carlos's blog http://www.jroller.com/carlossg/entry/slides_from_eclipsecon Cheers, Vincent 2008/4/21 [EMAIL PROTECTED]: I have been looking for a while for this solution. Has anyone been able to run this tutorial to complete? http://mojo.codehaus.org/pde-maven-plugin/examples/simple_product.html I have looked through many emails just to get the project to build in maven with Eclipse 3.3.2 as target. Now I am at a point where it builds with 0 errors. I had to change the pom.xml packaging setting from ZIP to JAR. So I tried to run it from the dos with: *java -jar simple_application-1.0-SNAPSHOT.jar * I get nothing. No errors, no failure,. nothing! Here is my pom.xml; 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 groupIdtest.pde_maven_plugin/groupId artifactIdsimple_application/artifactId packagingjar/packaging nameSimple Plugin PDE Example/name version1.0-SNAPSHOT/version descriptionA Simple Plugin PDE Example/description build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdpde-maven-plugin/artifactId extensionstrue/extensions configuration eclipseInstallC:\Program Files\JavaWorkEnv\eclipse/eclipseInstall pdeProductFilenamesimple_product.product/pdeProductFilename pdeBuildVersion3.3.2.v20071019/pdeBuildVersion /configuration /plugin /plugins /build /project Any leads to get this to run from dos as jar or how to get the zip packaging setting to build? Here is the error if I have zip as packaging setting. mvn install [INFO] Scanning for projects... [INFO] [INFO] Building Simple Plugin PDE Example [INFO]task-segment: [install] [INFO] [INFO] [pde:ext] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] C:\Program Files\JavaWorkEnv\eclipse\startup.jar not found. Have you set up your -DeclipseInstall? [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Mon Apr 21 12:12:30 CDT 2008 [INFO] Final Memory: 3M/8M [INFO] Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OSGi project architecture (solved)
Solved by using maven-assembly-plugin, many thanks. Le 29-avr.-08 à 16:25, Wayne Fay a écrit : Generally, people use the assembly plugin for things of this nature. Wayne On 4/29/08, Arnaud Vandyck [EMAIL PROTECTED] wrote: Hi all, I'm new to the list but I already read some documentation and the list archive (2008) and did not find an answer to my problem. Maybe I don't know where to search and I'm sorry about that! It's a multi-project question ;-) We are working on an OSGi project. I saw the maven-bundle-plugin from the Felix project and we are transforming our dependencies with it. We deploy them on a private repo. We have a structure like this: MainProject +-- pom.xml +-- src/site/... | +-- core | +-- pom.xml | +-- src/main/java/... | +-- log4j-osgi-fragment | +-- src/main/resources/log4j.properties | \-- anotherbundle +-- pom.xml +-- src/main/java/... What we'd like is: when you mvn package, you have something like this: MainProject +-- ... | \-- target +-- equinoxe-X.Y.Z.jar (launcher) +-- configurations | +-- config.ini | +-- features | +-- core-1.0-SNAPSHOT.jar | +-- anotherbundle-1.0-SNAPSHOT.jar | \-- plugins +-- log4j-osgi-1.2.13.jar Is there a plugin that can do that or do we have to consider writing our own plugin? Many thanks for your time and attention. PS: maven is really cool to use! :-D -- Arnaud Vandyck [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] -- Arnaud Vandyck [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven Archetype Plugin 2.0-alpha-3 Released
Ok, the error is actually a corrupt Velocity-1.5 pom.xml. It is being flagged by Artifactory, our internal repo so it may not affect everybody. I'm learning all of this off of the Artifactory mailing list. Raphaël Piéroni-5 wrote: Hi, Could you please raise a jira with the execution trace of maven with -X Thanks Raphaël 2008/4/30 Clifton [EMAIL PROTECTED]: I believe the Archetype 2.0-alpha-3 plugin is broken. There is a dependency issue that goes away when I force version 2.0-alpha-2. Could somebody look into this? In the interim I'm going to try running with a clean repo and bypassing our internal Maven repo-proxy. Raphaël Piéroni-5 wrote: The Maven team is pleased to announce the release of the Maven Archetype Plugin, version 2.0-alpha-3 The Archetype Plugin allows the user to create a Maven 2 project from an existing template called an archetype. It also allows the user to create an archetype from an existing project. http://maven.apache.org/plugins/maven-archetype-plugin/ Release Notes - Maven Archetype - Version 2.0-alpha-3 ** Bug * [ARCHETYPE-122] - The defined artifact is not an archetype? * [ARCHETYPE-124] - custom archetype-catalog.xml not read * [ARCHETYPE-126] - Site menu is corrupted * [ARCHETYPE-129] - incorrect error handling in batch mode * [ARCHETYPE-130] - selecting N to is this correct question resets all variables, even those that were input from the command line * [ARCHETYPE-132] - The create-from-project goal does not work on windows for multi-module projects * [ARCHETYPE-137] - Problem when setting default values for archetype-metadata.xml * [ARCHETYPE-139] - cannot create archetype for existing project without pre-existing pom * [ARCHETYPE-140] - archetype:generate doesn't support inserting a module into a multi-module build like :create did * [ARCHETYPE-141] - wrong goal name in docs * [ARCHETYPE-144] - Fails archetype:create when specify archetypeVersion * [ARCHETYPE-146] - Archetype Resources not being processed on Windows. * [ARCHETYPE-149] - archetype generate -DarchetypeRepository not working * [ARCHETYPE-150] - New maven-archetype-plugin ignores the remoteRepositories system property * [ARCHETYPE-153] - Multimodule archetype does not propagate the artifactId in module names. * [ARCHETYPE-159] - mvn archetype:generate is failing to download needed archetype artifacts * [ARCHETYPE-160] - [regression] the default (15) is no longer present in generate ** Improvement * [ARCHETYPE-109] - plugins should have a auto-generated goal help * [ARCHETYPE-112] - Allow to configure the filteredExtentions from the archetype.properties file * [ARCHETYPE-135] - add a variabl containing package in a path format * [ARCHETYPE-143] - Add the possibility to generate files at project's root ** Wish * [ARCHETYPE-154] - Can i ask when will alpha-3 released Enjoy, -The Maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-ANN--Maven-Archetype-Plugin-2.0-alpha-3-Released-tp16949530s177p16981794.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-ANN--Maven-Archetype-Plugin-2.0-alpha-3-Released-tp16949530s177p16985269.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
internationalization of reports
Hi everybody, I'v tried to internationalize a multimodule project, using localesen,fr/locales as advised on http://www.propellors.net/maven/site/guides/mini/guide-site.html However, the modules menu in the french site does not work : assuming there is a module named mymodule, the mymodule link in the deployed site works OK in the default en version, but the same link in the french version points toward fr/mymodule/index.html, whereas the french site of mymodule is deployed under mymodule/fr . I've tried with the last two stable versions of maven-site-plugin, 2.0-beta-5 and 2.0-beta-6 . Is there an example of a multilinguial site generated with maven ? Thanks, Anne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Netbeans Rich Client Platform
Hi, did anyone of you every try to develop a Netbeans Rich Client Platform application based on Maven? Are there any repositories where the Netbeans modules are contained in? Does anyone have a minimal pom / archetype? Regards, Johannes Schneider smime.p7s Description: S/MIME cryptographic signature
Re: Profiles and/or assemblies?
Some people leverage the JNDI features of their container and insert the proper values for the environment into JNDI. Then you don't include environment-specific values in the jar/war/ear at all. The other trouble you run into when you are trying to build an environment-specific package is that you need to add a classifier or adjust the artifactId to reflect which client/environment this particular package is for. Otherwise you may end up with client1 ear containing client2 war and client3 jar. Most people end up using War overlays to solve some of these problems. Take a look at them and see if that helps at all. This is a complex issue and I can't recommend a specific best practice that will solve it for all people in all environments with all builds etc. Generally client- and environment-specific profiles and a shared parent profile that contains common properties are involved, eg mvn -Pdev,client1 package or mvn -Pprod,client3. Wayne On 4/30/08, ika [EMAIL PROTECTED] wrote: Hi! First of all; I', pretty new to maven so sorry if I've missed the big pictures I'm working on a web project where we until now only have had one customer. We have been using profiles; development, test and production. The difference between the profiles are web service addresses, dbconnections etc. The profiles have filtered in the correct settings to the properties files. Now we got two other customers that want the same thing, but a few settings are changed (i.e the logo, heading etc). So now I would like to build the production profiles and then build 3 packages (one for each customer) and filter in the customer specific settings. I've been looking at the assembly plugin; but not sure it does what I want. I want to specify the filter to use for each customer and then filter the properties file. From what I understand the assembly plugin goes the opposite direction, one filter that can be applied on several files... :-/ An alternative is to make three static properties-files and copy them into the project using assembly, but then all the common properties are duplicated in all the three properties-files. Any thoughts? Ivar -- View this message in context: http://www.nabble.com/Profiles-and-or-assemblies--tp16977056s177p16977056.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with SNAPSHOT
Hi, I define a MyApp.war which depends on MyApp.jar. Like dependency groupIdcom.mine/groupId artifactIdMyApp/artifactId version1.0-SNAPSHOT/version /dependency When I generate WAR, it runs fine in first time. In next run, it includes two MyApp jars: one is MyApp.1.0-2008***.jar, which is last build; another is MyApp.1.0-SNAPSHOT.jar, which is latest build. My question is: - Why that redundant file MyApp.1.0-2008***.jar is there? How can I remove it? Thanks.
RE: Problem with SNAPSHOT
Try clean? -Original Message- From: Stanley Lee [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 3:30 PM To: Maven Users List Subject: Problem with SNAPSHOT Hi, I define a MyApp.war which depends on MyApp.jar. Like dependency groupIdcom.mine/groupId artifactIdMyApp/artifactId version1.0-SNAPSHOT/version /dependency When I generate WAR, it runs fine in first time. In next run, it includes two MyApp jars: one is MyApp.1.0-2008***.jar, which is last build; another is MyApp.1.0-SNAPSHOT.jar, which is latest build. My question is: - Why that redundant file MyApp.1.0-2008***.jar is there? How can I remove it? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javac: target release 1.3 conflicts with default source release 1.5
I have this defined in my pom.xml: build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.3/source target1.3/target compilerVersion1.3/compilerVersion executable${JAVA_1_3_HOME}/bin/javac/executable /configuration /plugin But when I run mvn compile I get this error: Failure executing javac, but could not parse the error: javac: target release 1.3 conflicts with default source release 1.5 It seems to work if I leave my underlying compiler 1.3 but change the source, target, compilerVersion parameters set to 1.4. It seems like it may be related to this issue: http://mail-archives.apache.org/mod_mbox/geronimo-dev/200702.mbox/%3CB84 [EMAIL PROTECTED] Has anyone seen this before? Is this a bug? Thank you, ~ T r o y ~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Netbeans Rich Client Platform
Well, I develop a bunch of modules for netbeans using maven. Not the same as platform app but similar, but I know companies which indeed develop platform apps. I've created and maintain the nbm-maven-plugin. http://mojo.codehaus.org/nbm-maven-plugin repository: http://deadlock.netbeans.org/maven2/ archetypeas are at groupId: org.codehaus.mojo.archetypes, one for single module, one for a platform app skeleton. The currently released version will only guide you up to the point where you create a module cluster. The svn trunk has additional goals to create webstart app and a zip of platform application. Milos On Wed, Apr 30, 2008 at 8:22 PM, Johannes Schneider [EMAIL PROTECTED] wrote: Hi, did anyone of you every try to develop a Netbeans Rich Client Platform application based on Maven? Are there any repositories where the Netbeans modules are contained in? Does anyone have a minimal pom / archetype? Regards, Johannes Schneider - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
project.build.directory is not resolved correctly anymore
I have at least one of my project which was defining a resource like: resources resource directory${project.build.directory}/generated-resources/directory /resource /resources And the files inside target/generated-resources could not be found by Maven plugin. Is it a known bug? -- Sébastien Arbogast http://sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ARCHETYPE - CUSTOM PARAMETERS]
Hi, I am trying to do something similar and need a solution to add custom parameters that I can pass along in the command line along with the usual parameters like -DartifactId etc. Can you please let me know how I can do that? Thanks in advance. Aarthi Raphaël wrote: Hi, João, Ludovic This feature is part of the upcomming new archetype plugin Regards, Raphaël 2007/11/11, Ludovic Claude [EMAIL PROTECTED]: Hi João, I've tried to do that as well, and I never found a way to make this work. If you find a solution, please let me know! Regards, Ludovic Claude João Kreuzberg a écrit : Hello guys, is there anyway to add custom parameters on archetype:create and recover them within the velocity context? ex.: -DuserName=ivanirjoao and then on velocity $userName Any help is appreciated. Best regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-ARCHETYPE---CUSTOM-PARAMETERS--tp13676725s177p16991600.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: default checksumPolicy is warn. Can we switch to fail ?
I'm not sure if fail is the right move, nor do I think warn is correct. That is unless some other behavior is put in place. Namely, a checksum failure in a repository should simply continue to the next repository. Just because one repository has a corrupt artifact doesn't mean that it should be used (as is the case with warn). This is currently the case today with this artifact: org.codehaus.mojo:selenium-maven-plugin:pom:1.0-beta-2 This pom includes a reference to OpenQA's repository: http://maven.openqa.org/ Unforunately, they changed their website repository URL and instead of automatically forwarding requests to the new repository location, they are putting up an HTML page explaining the change. So, the request for an artifact results in the return of this web page. Of course, the HTML doesn't match a checksum, but Maven doesn't care. It warns, then uses this non-existent artifact (d/l as HTML)! The kicker is the artifact never existed in the openqa repository. It's in the central maven repository. But because the openqa website answered with an HTTP 200 code, maven will use the web page as the artifact!? Even a checksumPolicy property wouldn't help in this case, since it is the codehaus selenium plugin that defines the repository. Maven should just simply check the next repository in the list when their is a bad checksum. -- jim Jerome Lacoste-2 wrote: But I have a question regarding the checksum policy. I've tracked down the original decision for the default checksum policy setting: http://jira.codehaus.org/browse/MNG-339 which states that the default was warn because of problems with bad checksums being a problem for bootstrapping [2]. This was in 2005. Are these problems still valid ? Could maven switch to a fail default policy ? -- View this message in context: http://www.nabble.com/default-checksumPolicy-is-warn.-Can-we-switch-to-fail---tp16368696s177p16991720.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven build causing java segmentation fault - help needed
We are trying to get the maven build for our product working under RedHat linux (running as a guest OS under VMWare). This build works fine on Windows Vista and XP. But under RedHat it is causing a Java segmentation fault. See attached log file for details. Does anyone have any ideas about how we might get to the bottom of what is causing this and fix it? Here are some details about our environment. Maven version 2.0.9 JDK 1.6.0_05 Red Hat Enterprise Linux AS release 4 (Nahant Update 6) jvm_args: -Xms768m -Xmx768m -Xss2048k - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] any tutorial on how to get Maven to compile and deploy in Tomcat/eclipse?
I am trying to switch from IntelliJ to eclipse. I used the eclipse:eclipse plugin, but then used the sonatype plugin to import an existing maven multi-module project I have. 1st i guess i don't understand how or what eclipse is going to use to deploy to Tomcat. Does it try to deploy exploded, or the wacutal war archives? 2nd, I keep getting this error only when starting eclipse: *Apr 30, 2008 2:50:51 PM org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.jboss.embedded.tomcat.EmbeddedJBossBootstrapListener * I was hoping it would be easy to switch FROM intellij, but so far I am not sure... -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.linkedin.com/in/mickknutson http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
maven build causing java segmentation fault - help needed
We are trying to get the maven build for our product working under RedHat linux (running as a guest OS under VMWare). This build works fine on Windows Vista and XP. But under RedHat it is causing a Java segmentation fault. See attached log file for details. Does anyone have any ideas about how we might get to the bottom of what is causing this and fix it? Here are some details about our environment. Maven version 2.0.9 JDK 1.6.0_05 Red Hat Enterprise Linux AS release 4 (Nahant Update 6) jvm_args: -Xms768m -Xmx768m -Xss2048k - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x06313045, pid=16347, tid=3086891936 # # Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing linux-x86) # Problematic frame: # V [libjvm.so+0x313045] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # --- T H R E A D --- Current thread (0x08058800): JavaThread main [_thread_in_vm, id=16349, stack(0xb7de3000,0xb7fe4000)] siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x08ae7000 Registers: EAX=0x0b1a, EBX=0x00a8f768, ECX=0xb7fe1df8, EDX=0x ESP=0xb7fe1d04, EBP=0xb7fe1d10, ESI=0x08057898, EDI=0x08057898 EIP=0x06313045, CR2=0x08ae7000, EFLAGS=0x00210283 Top of Stack: (sp=0xb7fe1d04) 0xb7fe1d04: 08058a1c b7fe1df8 b7fe1e90 0xb7fe1d14: 061877b0 b7fe1df8 08057898 08057898 0xb7fe1d24: 08058800 63e2a0e8 08058a44 0xb7fe1d34: b7fe1d60 b7fe1db8 0626e7a2 63db07e0 0xb7fe1d44: 0005 08059028 08059028 0xb7fe1d54: 61099438 08058a44 0005 0xb7fe1d64: 08058800 b7fe1d01 08058ec0 0xb7fe1d74: 001e 63e2a0e8 00096180 08058800 Instructions: (pc=0x06313045) 0x06313035: 53 8b 75 10 31 db 8b 4d 08 8b 7d 0c 39 f3 73 17 0x06313045: 8a 04 3b 3c 0a 74 28 3c 09 74 11 8b 41 0c 40 89 Stack: [0xb7de3000,0xb7fe4000], sp=0xb7fe1d04, free space=2043k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x313045] V [libjvm.so+0x1877b0] V [libjvm.so+0x3752ec] V [libjvm.so+0x373f35] V [libjvm.so+0x372fa7] V [libjvm.so+0x372cb2] V [libjvm.so+0x285e71] V [libjvm.so+0x26fb31] C [libjava.so+0xbbd4] Java_java_lang_ClassLoader_findBootstrapClass+0x114 J java.lang.ClassLoader.findBootstrapClass(Ljava/lang/String;)Ljava/lang/Class; J java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class; J org.codehaus.classworlds.RealmClassLoader.loadClassDirect(Ljava/lang/String;)Ljava/lang/Class; J org.codehaus.classworlds.DefaultClassRealm.loadClass(Ljava/lang/String;)Ljava/lang/Class; J org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(Lorg/codehaus/plexus/component/repository/ComponentDescriptor;Lorg/codehaus/classworlds/ClassRealm;Lorg/codehaus/plexus/PlexusContainer;)Ljava/lang/Object; J org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(Lorg/codehaus/plexus/component/repository/ComponentDescriptor;)Ljava/lang/Object; J org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent()Ljava/lang/Object; J org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/String;)Ljava/lang/Object; J org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase.execute(Ljava/lang/Object;Lorg/codehaus/plexus/component/manager/ComponentManager;)V J org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(Ljava/lang/Object;Lorg/codehaus/plexus/component/manager/ComponentManager;)V v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter J org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/String;)Ljava/lang/Object; J org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::StubRoutines (1) V [libjvm.so+0x21c40d] V [libjvm.so+0x310378] V [libjvm.so+0x21c2a0] V [libjvm.so+0x339835] V [libjvm.so+0x33c40c] V [libjvm.so+0x288355] C [libjava.so+0x15214] Java_sun_reflect_NativeMethodAccessorImpl_invoke0+0x34 v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::StubRoutines (1) V [libjvm.so+0x21c40d] V [libjvm.so+0x310378] V [libjvm.so+0x21c2a0] V [libjvm.so+0x2458c6] V [libjvm.so+0x2370c8] C [java+0x1b98]
Re: [m2] any tutorial on how to get Maven to compile and deploy in Tomcat/eclipse?
I have 2 artifacts in this project. Core and Webapp. When I have the core project (not just the jar) as a dependancy of my webapp, I get this error when i publish: *Error creating zip file core.jar: duplicate entry: META-INF/persistence.xml duplicate entry: META-INF/persistence.xml* persistence.xml is in src/main/resources/META-INF, as well as target/classes/META-INF. But when I use the core-2.2.jar as the dependancy of my webapp, i can publish fine, but then get this error: *Apr 30, 2008 3:06:51 PM org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.jboss.embedded.tomcat.EmbeddedJBossBootstrapListener at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205) at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153) at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1358) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644) at org.apache.catalina.startup.Catalina.load(Catalina.java:516) at org.apache.catalina.startup.Catalina.load(Catalina.java:550) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) * On Wed, Apr 30, 2008 at 2:52 PM, Mick Knutson [EMAIL PROTECTED] wrote: I am trying to switch from IntelliJ to eclipse. I used the eclipse:eclipse plugin, but then used the sonatype plugin to import an existing maven multi-module project I have. 1st i guess i don't understand how or what eclipse is going to use to deploy to Tomcat. Does it try to deploy exploded, or the wacutal war archives? 2nd, I keep getting this error only when starting eclipse: *Apr 30, 2008 2:50:51 PM org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.jboss.embedded.tomcat.EmbeddedJBossBootstrapListener * I was hoping it would be easy to switch FROM intellij, but so far I am not sure... -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.linkedin.com/in/mickknutson http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com --- -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.linkedin.com/in/mickknutson http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
Re: default checksumPolicy is warn. Can we switch to fail ?
This situation with OpenQA's repo etc is completely unacceptable, and it should be embarrassing for them as well. Does anyone know someone who works there who can help change things for the better? I know we had similar troubles with a Maven mirror a while back until they were removed from the list of official mirrors. Wayne On 4/30/08, chago [EMAIL PROTECTED] wrote: I'm not sure if fail is the right move, nor do I think warn is correct. That is unless some other behavior is put in place. Namely, a checksum failure in a repository should simply continue to the next repository. Just because one repository has a corrupt artifact doesn't mean that it should be used (as is the case with warn). This is currently the case today with this artifact: org.codehaus.mojo:selenium-maven-plugin:pom:1.0-beta-2 This pom includes a reference to OpenQA's repository: http://maven.openqa.org/ Unforunately, they changed their website repository URL and instead of automatically forwarding requests to the new repository location, they are putting up an HTML page explaining the change. So, the request for an artifact results in the return of this web page. Of course, the HTML doesn't match a checksum, but Maven doesn't care. It warns, then uses this non-existent artifact (d/l as HTML)! The kicker is the artifact never existed in the openqa repository. It's in the central maven repository. But because the openqa website answered with an HTTP 200 code, maven will use the web page as the artifact!? Even a checksumPolicy property wouldn't help in this case, since it is the codehaus selenium plugin that defines the repository. Maven should just simply check the next repository in the list when their is a bad checksum. -- jim Jerome Lacoste-2 wrote: But I have a question regarding the checksum policy. I've tracked down the original decision for the default checksum policy setting: http://jira.codehaus.org/browse/MNG-339 which states that the default was warn because of problems with bad checksums being a problem for bootstrapping [2]. This was in 2005. Are these problems still valid ? Could maven switch to a fail default policy ? -- View this message in context: http://www.nabble.com/default-checksumPolicy-is-warn.-Can-we-switch-to-fail---tp16368696s177p16991720.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven build causing java segmentation fault - help needed
Mark, The only time I've seen a maven build trigger a JVM seg fault the problem was due to bad server memory. It was low end hardware running CentOS and hosted our Cruise Control install, amongst many other things. The seg faults were intermittent. HTH and good luck, Doug On Wed, Apr 30, 2008 at 3:54 PM, Mark Hansen [EMAIL PROTECTED] wrote: We are trying to get the maven build for our product working under RedHat linux (running as a guest OS under VMWare). This build works fine on Windows Vista and XP. But under RedHat it is causing a Java segmentation fault. See attached log file for details. Does anyone have any ideas about how we might get to the bottom of what is causing this and fix it? Here are some details about our environment. Maven version 2.0.9 JDK 1.6.0_05 Red Hat Enterprise Linux AS release 4 (Nahant Update 6) jvm_args: -Xms768m -Xmx768m -Xss2048k - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x06313045, pid=16347, tid=3086891936 # # Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing linux-x86) # Problematic frame: # V [libjvm.so+0x313045] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # --- T H R E A D --- Current thread (0x08058800): JavaThread main [_thread_in_vm, id=16349, stack(0xb7de3000,0xb7fe4000)] siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x08ae7000 Registers: EAX=0x0b1a, EBX=0x00a8f768, ECX=0xb7fe1df8, EDX=0x ESP=0xb7fe1d04, EBP=0xb7fe1d10, ESI=0x08057898, EDI=0x08057898 EIP=0x06313045, CR2=0x08ae7000, EFLAGS=0x00210283 Top of Stack: (sp=0xb7fe1d04) 0xb7fe1d04: 08058a1c b7fe1df8 b7fe1e90 0xb7fe1d14: 061877b0 b7fe1df8 08057898 08057898 0xb7fe1d24: 08058800 63e2a0e8 08058a44 0xb7fe1d34: b7fe1d60 b7fe1db8 0626e7a2 63db07e0 0xb7fe1d44: 0005 08059028 08059028 0xb7fe1d54: 61099438 08058a44 0005 0xb7fe1d64: 08058800 b7fe1d01 08058ec0 0xb7fe1d74: 001e 63e2a0e8 00096180 08058800 Instructions: (pc=0x06313045) 0x06313035: 53 8b 75 10 31 db 8b 4d 08 8b 7d 0c 39 f3 73 17 0x06313045: 8a 04 3b 3c 0a 74 28 3c 09 74 11 8b 41 0c 40 89 Stack: [0xb7de3000,0xb7fe4000], sp=0xb7fe1d04, free space=2043k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x313045] V [libjvm.so+0x1877b0] V [libjvm.so+0x3752ec] V [libjvm.so+0x373f35] V [libjvm.so+0x372fa7] V [libjvm.so+0x372cb2] V [libjvm.so+0x285e71] V [libjvm.so+0x26fb31] C [libjava.so+0xbbd4] Java_java_lang_ClassLoader_findBootstrapClass+0x114 J java.lang.ClassLoader.findBootstrapClass(Ljava/lang/String;)Ljava/lang/Class; J java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class; J org.codehaus.classworlds.RealmClassLoader.loadClassDirect(Ljava/lang/String;)Ljava/lang/Class; J org.codehaus.classworlds.DefaultClassRealm.loadClass(Ljava/lang/String;)Ljava/lang/Class; J org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(Lorg/codehaus/plexus/component/repository/ComponentDescriptor;Lorg/codehaus/classworlds/ClassRealm;Lorg/codehaus/plexus/PlexusContainer;)Ljava/lang/Object; J org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(Lorg/codehaus/plexus/component/repository/ComponentDescriptor;)Ljava/lang/Object; J org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent()Ljava/lang/Object; J org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/String;)Ljava/lang/Object; J org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase.execute(Ljava/lang/Object;Lorg/codehaus/plexus/component/manager/ComponentManager;)V J org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(Ljava/lang/Object;Lorg/codehaus/plexus/component/manager/ComponentManager;)V v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter J org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/String;)Ljava/lang/Object; J org.codehaus.plexus.DefaultPlexusContainer.lookup(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter v ~BufferBlob::StubRoutines (1) V [libjvm.so+0x21c40d] V [libjvm.so+0x310378] V [libjvm.so+0x21c2a0] V [libjvm.so+0x339835] V [libjvm.so+0x33c40c] V [libjvm.so+0x288355] C
adding site resources folder to site
Hi, I'm new to maven. I have a project here called documentation, which should only generate a xdoc site. That works fine, but now I want to add a resource folder other than the default one. The reason is that I have images in another folder. I want to use them in the html files. And I don't want to move them into src/site/ . I read something about siteResources in http://maven.apache.org/guides/mini/guide-creating-archetypes.html, however this seems to be only for archetypes. Is there a way to have multiple site resources? I read that another possibility (a workaround) would be to call antrun to copy the files first to src/site/. Regards, Johannes. PS: no, I can't move the folder to src/site/. __ Johannes Buchner web: http://twoday.tuwien.ac.at/jo/ xmpp: [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part.
RE: default checksumPolicy is warn. Can we switch to fail ?
There's an open issue for this, that maven should try to care about the content of at least the metadata and not just take garbage. It frequently happens to travelers when they hit a login page to a public wifi. -Original Message- From: chago [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 5:18 PM To: users@maven.apache.org Subject: Re: default checksumPolicy is warn. Can we switch to fail ? I'm not sure if fail is the right move, nor do I think warn is correct. That is unless some other behavior is put in place. Namely, a checksum failure in a repository should simply continue to the next repository. Just because one repository has a corrupt artifact doesn't mean that it should be used (as is the case with warn). This is currently the case today with this artifact: org.codehaus.mojo:selenium-maven-plugin:pom:1.0-beta-2 This pom includes a reference to OpenQA's repository: http://maven.openqa.org/ Unforunately, they changed their website repository URL and instead of automatically forwarding requests to the new repository location, they are putting up an HTML page explaining the change. So, the request for an artifact results in the return of this web page. Of course, the HTML doesn't match a checksum, but Maven doesn't care. It warns, then uses this non-existent artifact (d/l as HTML)! The kicker is the artifact never existed in the openqa repository. It's in the central maven repository. But because the openqa website answered with an HTTP 200 code, maven will use the web page as the artifact!? Even a checksumPolicy property wouldn't help in this case, since it is the codehaus selenium plugin that defines the repository. Maven should just simply check the next repository in the list when their is a bad checksum. -- jim Jerome Lacoste-2 wrote: But I have a question regarding the checksum policy. I've tracked down the original decision for the default checksum policy setting: http://jira.codehaus.org/browse/MNG-339 which states that the default was warn because of problems with bad checksums being a problem for bootstrapping [2]. This was in 2005. Are these problems still valid ? Could maven switch to a fail default policy ? -- View this message in context: http://www.nabble.com/default-checksumPolicy-is-warn.-Can-we-switch-to-f ail---tp16368696s177p16991720.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SNAPSHOT
Most likely you had the MyApp.1.0-2008***.jar in the ${warSourceDirectory}/WEB-INF/lib folder prior to running the build the second time. Maybe you ran mvn war:inplace between the two builds? HTH, -Olivier On Wed, 2008-04-30 at 15:30 -0400, Stanley Lee wrote: Hi, I define a MyApp.war which depends on MyApp.jar. Like dependency groupIdcom.mine/groupId artifactIdMyApp/artifactId version1.0-SNAPSHOT/version /dependency When I generate WAR, it runs fine in first time. In next run, it includes two MyApp jars: one is MyApp.1.0-2008***.jar, which is last build; another is MyApp.1.0-SNAPSHOT.jar, which is latest build. My question is: - Why that redundant file MyApp.1.0-2008***.jar is there? How can I remove it? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multi-module archetypes
Did you ever figure out what was wrong here? I'm running into the same issue now with the alpha-3 plugin. Prystash,John wrote: Hey Raphaël, I added the settings to my settings.xml as you described and ran archetype:create-from-project. The POM file referenced 2.0-alpha-2. $ mvn -P apache-snapshots archetype:create-from-project $ cat target/generated-sources/archetype/pom.xml ?xml version=1.0 encoding=UTF-8? project ... version1.0-SNAPSHOT/version build extensions extension groupIdorg.apache.maven.archetype/groupId artifactIdarchetype-packaging/artifactId version2.0-alpha-2/version /extension /extensions plugins plugin artifactIdmaven-archetype-plugin/artifactId version2.0-alpha-2/version extensionstrue/extensions /plugin /plugins /build /project So I added the following to my parent POM, and the resulting POM under target/generated-sources/archetype had 2.0-alpha-3 in them. ... build ... extensions extension groupIdorg.apache.maven.archetype/groupId artifactIdarchetype-packaging/artifactId version2.0-alpha-3-SNAPSHOT/version /extension /extensions ... plugin artifactIdmaven-archetype-plugin/artifactId version2.0-alpha-3-SNAPSHOT/version extensionstrue/extensions /plugin ... /build ... Unfortunately, I now get the following error when rerunning archetype:create-from-project: ... [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org/apache/commons/lang/StringUtils [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils at org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize(ResourceManagerImpl.java:165) at org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(RuntimeInstance.java:594) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:241) at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:116) at org.codehaus.plexus.velocity.DefaultVelocityComponent.initialize(DefaultVelocityComponent.java:79) ... I tried including commons-lang in POMs to see if that would help, but no luck. Thanks -Original Message- From: Raphaël Piéroni [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2008 3:40 PM To: Maven Users List Subject: Re: Multi-module archetypes Hi John, This feature is provided by the 2.0-alpha-3 version of the Archetype plugin. This version is not yet released. But you can try the last snapshot by adding a repository to apache snapshot [1]. 1. The goal to call from the project directory (or parent in case of a multi module) is 'mvn archetype:create-from-project'. 2. Then go to the target/generated-sources/archetype directory and see if the generated archetype is correct. install the archetype in your local repository by calling 'mvn install' as usual. 3. Then go to a fresh directory and call 'mvn archetype:generate -DarchetypeCatalog=local'. Step 3 may don't work because repositories defined in profiles in the settings.xml file are recognised only when maven is called in a project's directory. One may try to use the apache's snapshot repository as mirror of central (not tested). Another workaround i see is compiling the plugin from the sources. Please share your experience of using the plugin afterward. Thanks, Raphaël [1]: in settings.xml : profile idapache-snapshots/id repositories repository idapache-snapshot/id nameApache Snapshots/name releases enabledfalse/enabled updatePolicynever/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /snapshots urlhttp://people.apache.org/maven-snapshot-repository//url layoutdefault/layout /repository /repositories pluginRepositories pluginRepository idapache-snapshot/id
QuickStart example just doesn't work
Am I just broken? Nothing could be easier to download and set up, but walking the QuickStart (http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html), I find the example simply doesn't work. C:\russ\devset JAVA_HOME=C:\Program Files\Java\jdk1.6.0_04 M2=C:\Program Files\Apache Software Foundation\apache-maven-2.0.9\bin M2_HOME=C:\Program Files\Apache Software Foundation\apache-maven-2.0.9 MAVEN_OPTS=-Xms256m -Xmx512m C:\russ\devmvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [archetype:create] (aggregator-style) [INFO] [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] [archetype:create] [WARNING] This goal is deprecated. Please use mvn archetype:generate instead [INFO] Defaulting package to group ID: com.mycompany.app [INFO] [INFO] Using following parameters for creating OldArchetype: maven-archetype-quickstart:RELEASE [INFO] [INFO] Parameter: groupId, Value: com.mycompany.app [INFO] Parameter: packageName, Value: com.mycompany.app [INFO] Parameter: package, Value: com.mycompany.app [INFO] Parameter: artifactId, Value: my-app [INFO] Parameter: basedir, Value: C:\russ\dev [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] * End of debug info from resources from generated POM *** [INFO] OldArchetype created in dir: C:\russ\dev\my-app [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Wed Apr 30 20:24:59 MDT 2008 [INFO] Final Memory: 8M/254M [INFO] C:\russ\dev\my-apptree Folder PATH listing Volume serial number is 0006EEA4 B0CE:6693 C:. src main ? java ? com ? mycompany ? app ? App.java test java com mycompany app AppTest.java C:\russ\dev\my-appjava -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App *Exception in thread main java.lang.NoClassDefFoundError: com/mycompany/app/App* Caused by: java.lang.ClassNotFoundException: com.mycompany.app.App at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) The class is indeed there as my tree command shows, but Java can't find it. This problem would not happen in Eclipse as long as the code is there, but as it's Maven that's going to do the build eventually, it won't work. Or, maybe JDK 6 is broken for Maven's use. C:\russ\dev\my-app java -version java version 1.6.0_04 Java(TM) SE Runtime Environment (build 1.6.0_04-b12) Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
Re: QuickStart example just doesn't work
On Thu, May 1, 2008 at 10:44 AM, Russell Bateman [EMAIL PROTECTED] wrote: Am I just broken? Nothing could be easier to download and set up, but walking the QuickStart (http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html), I find the example simply doesn't work. ... C:\russ\devmvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app ... C:\russ\dev\my-appjava -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App Try 'mvn install' before you try to execute it. At least, I don't see where you ever compiled the code and created the jar... Creating an archetype with Maven doesn't mean it's watching to see when things need to be compiled. As you pointed out, that's what IDEs do for you. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: QuickStart example just doesn't work
On Thu, May 1, 2008 at 11:00 AM, Wendy Smoak [EMAIL PROTECTED] wrote: Creating an archetype with Maven doesn't mean it's watching to see Should be: Creating a project from an archetype ... -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: QuickStart example just doesn't work
Looks like you missed this section: Build the Project mvn package The command line will print out various actions, and end with the following: ... [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Thu Oct 05 21:16:04 CDT 2006 [INFO] Final Memory: 3M/6M [INFO] Unlike the first command executed (archetype:create ) you may notice the second is simply a single word - package . Rather than a goal, this is a phase . A phase is a step in the build lifecycle , which is an ordered sequence of phases. When a phase is given, Maven will execute every phase in the sequence up to and including the one defined. For example, if we execute the compile phase, the phases that actually get executed are: 1. validate 2. generate-sources 3. process-sources 4. generate-resources 5. process-resources 6. compile -Original Message- From: Russell Bateman [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 10:45 PM To: users@maven.apache.org Subject: QuickStart example just doesn't work Am I just broken? Nothing could be easier to download and set up, but walking the QuickStart (http://maven.apache.org/guides/getting-started/maven-in-five-minutes.ht ml), I find the example simply doesn't work. C:\russ\devset JAVA_HOME=C:\Program Files\Java\jdk1.6.0_04 M2=C:\Program Files\Apache Software Foundation\apache-maven-2.0.9\bin M2_HOME=C:\Program Files\Apache Software Foundation\apache-maven-2.0.9 MAVEN_OPTS=-Xms256m -Xmx512m C:\russ\devmvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [archetype:create] (aggregator-style) [INFO] [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] [archetype:create] [WARNING] This goal is deprecated. Please use mvn archetype:generate instead [INFO] Defaulting package to group ID: com.mycompany.app [INFO] [INFO] Using following parameters for creating OldArchetype: maven-archetype-quickstart:RELEASE [INFO] [INFO] Parameter: groupId, Value: com.mycompany.app [INFO] Parameter: packageName, Value: com.mycompany.app [INFO] Parameter: package, Value: com.mycompany.app [INFO] Parameter: artifactId, Value: my-app [INFO] Parameter: basedir, Value: C:\russ\dev [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] * End of debug info from resources from generated POM *** [INFO] OldArchetype created in dir: C:\russ\dev\my-app [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Wed Apr 30 20:24:59 MDT 2008 [INFO] Final Memory: 8M/254M [INFO] C:\russ\dev\my-apptree Folder PATH listing Volume serial number is 0006EEA4 B0CE:6693 C:. src main ? java ? com ? mycompany ? app ? App.java test java com mycompany app AppTest.java C:\russ\dev\my-appjava -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App *Exception in thread main java.lang.NoClassDefFoundError: com/mycompany/app/App* Caused by: java.lang.ClassNotFoundException: com.mycompany.app.App at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at
Re: QuickStart example just doesn't work
You're absolutely right. Somehow I missed the mvn package command in the 5-minute quick start stuff and I have no excuse for that. Wow, this stuff works really well now. Thanks to both of you for this answer. Russ Wendy Smoak wrote: On Thu, May 1, 2008 at 11:00 AM, Wendy Smoak [EMAIL PROTECTED] wrote: Creating an archetype with Maven doesn't mean it's watching to see Should be: Creating a project from an archetype ...