Docs not uptodate
Hi, I was following the links from here for tutorials on continuum: http://docs.codehaus.org/display/CONTINUUM/Home then in Where is the documentation on how to use the latest Continuum? It pointed me to: http://docs.codehaus.org/display/CONTINUUMUSER/Building but when I checked out the project I couldn't find the file continuum-webapp/src/main/filters/filter.properties I tried searching for the file filter.properties in the root checkout directory but didn't find anything I wonder if the docs are up to date..? If not, would anyone please point me to the updated site? Thanks, Johan
Re: Docs not uptodate
The site must be updated, it's very old. Why do you want to build Continuum? you can use a snapshot: http://maven.zones.apache.org/~continuum/builds/trunk/ then, you can configure like descrived there: http://docs.codehaus.org/display/CONTINUUMUSER/Deploying Emmanuel Johan Iskandar a écrit : Hi, I was following the links from here for tutorials on continuum: http://docs.codehaus.org/display/CONTINUUM/Home then in Where is the documentation on how to use the latest Continuum? It pointed me to: http://docs.codehaus.org/display/CONTINUUMUSER/Building but when I checked out the project I couldn't find the file continuum-webapp/src/main/filters/filter.properties I tried searching for the file filter.properties in the root checkout directory but didn't find anything I wonder if the docs are up to date..? If not, would anyone please point me to the updated site? Thanks, Johan
Re: How can i add clover report generation into maven and have the ability to turn on/off?
Hi, How can i add clover report generation into maven and have the ability to turn on/off? Meaning, after implementation, when running mvn install, it will not run clover unless doing something like mvn install -Dclover=true? I'd create a profile clover that only contains the clover reporting plugin section so you can activate it by simply specifying mvn -P clover ... HTH Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with archetype
Hi Erik, I'm trying to use a simple archetype command and getting an unexpected error. When I run: mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp I get the error listed below. I don't understand why I would get an error message asking me to install an artifact for a fairly standard Maven archetype. I assumed these were all hosted in a public repo. Are you behind a firewall and have to use a proxy to access the central repo? If yes: The Archetype plugin has a bug and ignores any proxy settings you have configured in your settings.xml unless there's a pom.xml in the directory in which you execute mvn... Regards Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: questions about using different config files, such as persistence.xml in maven configs
Hi, you have a few options based on your concrete scenario: If you just want to unit test a ejb project you can create two 'persistence.xml' files one in 'src/main/resources' for production use and one in 'src/test/resources' for testing. The testing persistence.xml should then shadow the production one. An other option would be to enable filtering on the resource dir: build resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources /build and have profiles for the different environments: profiles profile idtest/id activation activeByDefaulttrue/activeByDefault/ /activation properties connectiontestconnection/nconnection /properties /profile profile idproduction/id properties connectionprodconnection/nconnection /properties /profile /profiles And put ${connection} in the persistence.xml. Hope this helps -Tim Ryan Moquin schrieb: Hi, I know that in order to use different configuration files (such as a persistence.xml), such as test configurations vs. production configurations I need to setup profiles to allow these different files to be used. What is the preferred way to indicate to maven how to find a configuration file that should be used? Such as, I have a persistence.xml file, currently I have my test database definition in it as a separate entry from my production configuration. This works fine in theory because I can mock out my persistence classes to use the test configuration for tests. The problem is that hibernate loads BOTH definitions when it starts up, whether it's used or not which causes problems with hot deploying, when my production environment is running (since my test config is loaded in production, and my tests are trying to use that configuration). I'm also running into problems of needing persistence configurations that can use other database servers other than assuming localhost. Does anyone have a strategy or know of a link that I can look at that will help me implement an appropriate strategy to use/bundle differnet persistence.xml files based upon the loaded maven profile? Thanks! Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven checkstyle plugin - how to get working?
Hi, When running the checkstyle plugin I get out of memory errors: --- Embedded error: Error rendering Maven report: Exit code: 1 - c:\home\roge se6\presence-util\src\main\java\com\presence\util\PtUtils.java:6: warning Sun proprietary API and may be removed in a future release import sun.misc.BASE64Encoder; ^ javadoc: error - java.lang.OutOfMemoryError: Please increase memory. For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx such as -J-Xmx32m. I'd suggest you set MAVEN_OPTS and put the parameters for the Java min/max heap size into it, i.e. MAVEN_OPTS=-Xmx256m HTH Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i add clover report generation into maven and have the ability to turn on/off?
i thought you can do something like -Dmaven.clover.skip=false in order to invoke it? On 7/12/07, Thorsten Heit [EMAIL PROTECTED] wrote: Hi, How can i add clover report generation into maven and have the ability to turn on/off? Meaning, after implementation, when running mvn install, it will not run clover unless doing something like mvn install -Dclover=true? I'd create a profile clover that only contains the clover reporting plugin section so you can activate it by simply specifying mvn -P clover ... HTH Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Failed to validate POM warning
Thanks Steven for the reply. The result of mvn help:effective-pom command seems good to me, it has a groupId with a correct value (sapiens), here's the output : Effective POM for project 'sapiens:SapiensCommonsCore:jar:2.6.0' ?xml version=1.0?project parent artifactIdSocleSapiens/artifactId groupIdsapiens/groupId version2.6.0/version /parent modelVersion4.0.0/modelVersion groupIdsapiens/groupId artifactIdSapiensCommonsCore/artifactId nameSapiens Core/name version2.6.0/version descriptionSocle Technique Sapiens/description urlhttp://asa.anpe.fr/asa/index.php?page=documents#sapiens/SapiensCommonsCore/url developers developer idjojo/id nameJoÙl Costigliola/name email[EMAIL PROTECTED]/email organizationANPE/ASA/organization roles roleDevelopper/role /roles /developer developer idyoyo/id nameYoann Charpiot/name email[EMAIL PROTECTED]/email organizationANPE/ASA/organization roles roleDevelopper/role /roles /developer /developers build sourceDirectoryD:\bea_dev\SocleSapiens\SapiensCommonsCore\src\java/sourceDirectory scriptSourceDirectorysrc/main/scripts/scriptSourceDirectory testSourceDirectoryD:\bea_dev\SocleSapiens\SapiensCommonsCore\src\test/testSourceDirectory outputDirectoryD:\bea_dev\SocleSapiens\SapiensCommonsCore\target\classes/outputDirectory testOutputDirectoryD:\bea_dev\SocleSapiens\SapiensCommonsCore\target\test-classes/testOutputDirectory resources resource directoryD:\bea_dev\SocleSapiens\SapiensCommonsCore\src\main\resources/directory /resource /resources testResources testResource directoryD:\bea_dev\SocleSapiens\SapiensCommonsCore\src\test\resources/directory /testResource /testResources directoryD:\bea_dev\SocleSapiens\SapiensCommonsCore\target/directory finalNameSapiensCommonsCore-2.6.0/finalName plugins plugin artifactIdmaven-surefire-plugin/artifactId configuration skiptrue/skip /configuration /plugin plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.4/source target1.4/target /configuration /plugin plugin artifactIdmaven-site-plugin/artifactId configuration localesfr/locales /configuration /plugin plugin artifactIdmaven-help-plugin/artifactId version2.0.1/version /plugin /plugins /build repositories repository snapshots enabledfalse/enabled /snapshots idcentral/id nameMaven Repository Switchboard/name urlhttp://repo1.maven.org/maven2/url /repository /repositories pluginRepositories pluginRepository releases updatePolicynever/updatePolicy /releases snapshots enabledfalse/enabled /snapshots idcentral/id nameMaven Plugin Repository/name urlhttp://repo1.maven.org/maven2/url /pluginRepository /pluginRepositories dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdcommons-net/groupId artifactIdcommons-net/artifactId version1.4.0/version /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.8/version /dependency /dependencies reporting outputDirectorytarget/site/outputDirectory plugins plugin artifactIdmaven-changes-plugin/artifactId configuration xmlPathD:\bea_dev\SocleSapiens\SapiensCommonsCore/src/site/xdoc/changes.xml/xmlPath /configuration reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /plugin /plugins /reporting dependencyManagement dependencies dependency groupIdsapiens/groupId artifactIdSapiensCommonsCore/artifactId version2.6.0/version /dependency dependency groupIdsapiens/groupId artifactIdAuthentificationService/artifactId version2.6.0/version /dependency dependency groupIdsapiens/groupId artifactIdSapiensServices/artifactId version2.6.0/version /dependency dependency groupIdcommons-net/groupId artifactIdcommons-net/artifactId version1.4.0/version /dependency dependency groupIdweblogic/groupId artifactIdweblogic/artifactId version8.1.5/version scopesystem/scope
[Maven2] Building Website using Maven
Hi All, I am trying to build the website for a project. I managed to attach userguide.html and other documentation to the site successfully. The problem occurred when I am trying to generate a custom index.html I introduced an index.xml file into src/site/xdocs/index.xml. Then i typed $mvn clean site:site But the default index.html has not changed. I am using maven 2.0.6. Am I missing something here? I really appreciate any help on the issue. Thank you, Dimuthu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Maven2] Building Website using Maven
Hi I create a custom index.html by editing this file: src/site/apt/index.apt This file is in apt format: http://maven.apache.org/guides/mini/guide-apt-format.html Patrick On 13/07/07, Dimuthu Leelarathne [EMAIL PROTECTED] wrote: Hi All, I am trying to build the website for a project. I managed to attach userguide.html and other documentation to the site successfully. The problem occurred when I am trying to generate a custom index.html I introduced an index.xml file into src/site/xdocs/index.xml. Then i typed $mvn clean site:site But the default index.html has not changed. I am using maven 2.0.6. Am I missing something here? I really appreciate any help on the issue. Thank you, Dimuthu - 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 make a multimodules site
hallo have you configured the modules in your parent pom? (modules section) if so the generation of the site at the parent pom location should do the job regards op Sylvain Mazaleyrat schrieb: It's work fine when you have just one module. When I do : $ mvn site $ mvn site:deploy I have several directories : myproject-parent/$VERSION/MySite myproject-webapp/$VERSION/MySite myproject-core/$VERSION/MySite I just want to have : myproject/$PARENT-VERSION/MyparentSite/webbappSite etc Tanks for your help On 7/12/07, maarten roosendaal [EMAIL PROTECTED] wrote: Haven;t figured that one out either but when you deploy the site (for example c:\mysite) it works fine. You have to add the deplomentManagement tags to your pom.xml - Original Message From: Sylvain Mazaleyrat [EMAIL PROTECTED] To: users@maven.apache.org Sent: Thursday, July 12, 2007 11:06:31 AM Subject: How to make a multimodules site Hello, When I build the site of my project, I have several site in each module/target and my top site isn't connected with each module. I don't know how to put each site module in the parent site. Thanks in advance, -- Sylvain Mazaleyrat _o) / \\ _(___V Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 - 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: [Maven2] Building Website using Maven
Hi Dimuthu Sorry, I have no idea. I don't use xdocs. I hope you find a solution. Regards. Patrick On 13/07/07, Dimuthu Leelarathne [EMAIL PROTECTED] wrote: Thank you very much. src/site/apt/index.apt works! But I am wondering why the src/site/xdocs/index.html doesn't work. Regards, Dimuthu On Fri, 2007-07-13 at 09:06 +0100, Patrick Kimber wrote: Hi I create a custom index.html by editing this file: src/site/apt/index.apt This file is in apt format: http://maven.apache.org/guides/mini/guide-apt-format.html Patrick On 13/07/07, Dimuthu Leelarathne [EMAIL PROTECTED] wrote: Hi All, I am trying to build the website for a project. I managed to attach userguide.html and other documentation to the site successfully. The problem occurred when I am trying to generate a custom index.html I introduced an index.xml file into src/site/xdocs/index.xml. Then i typed $mvn clean site:site But the default index.html has not changed. I am using maven 2.0.6. Am I missing something here? I really appreciate any help on the issue. Thank you, Dimuthu - 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: [Maven2] Building Website using Maven
It works! Thank you, Dimuthu On Fri, 2007-07-13 at 13:04 +0200, Lukas Theussl wrote: Try src/site/xdoc/index.xml (not xdocs), it works for me. HTH, -Lukas Dimuthu Leelarathne wrote: Hi All, I am trying to build the website for a project. I managed to attach userguide.html and other documentation to the site successfully. The problem occurred when I am trying to generate a custom index.html I introduced an index.xml file into src/site/xdocs/index.xml. Then i typed $mvn clean site:site But the default index.html has not changed. I am using maven 2.0.6. Am I missing something here? I really appreciate any help on the issue. Thank you, Dimuthu - 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: [Maven2] Building Website using Maven
Try src/site/xdoc/index.xml (not xdocs), it works for me. HTH, -Lukas Dimuthu Leelarathne wrote: Hi All, I am trying to build the website for a project. I managed to attach userguide.html and other documentation to the site successfully. The problem occurred when I am trying to generate a custom index.html I introduced an index.xml file into src/site/xdocs/index.xml. Then i typed $mvn clean site:site But the default index.html has not changed. I am using maven 2.0.6. Am I missing something here? I really appreciate any help on the issue. Thank you, Dimuthu - 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]
Building an EAR from source and binaries
In a multi-module setup, I am trying to build an EAR from a mix of projects for which I have the source code and a number of binary modules for which I do not have the source code. I have installed these binaries in my local M2 repository and reference them in various POMs. So far so good, but a number of these binaries are J2EE modules themselves, so they are also mentioned in the dependencies list in the POM of the EAR-project. Most of these modules contain a MANIFEST.MF file with a classpath entry that names the dependencies by their 'non-maven-name', i.e. X.jar instead of X-1.0.jar, and that obviously causes problems when these modules are deployed by the Application Server. Thoughts anyone? Harry Klerks
RE: Where has xmlbeans 2.3.0 gone?
Ok, that actually makes sense :D Thanks! Andreas -Original Message- From: ext Severin Ecker [mailto:[EMAIL PROTECTED] Sent: 13 July, 2007 14:50 To: Maven Users List Subject: Re: Where has xmlbeans 2.3.0 gone? hi, xmlbeans was moved to where it belongs according to its pom file http://repo1.maven.org/maven2/org/apache/xmlbeans/xmlbeans/2.3.0/ cheers, severin ps.: yes it was there, but its own pom file suggests that it belongs to the new URL. they seem to have changed the groupId from xmlbeans to org.apache.xmlbeans moving from version 2.1.x to 2.2.0 [EMAIL PROTECTED] wrote: Hi, I just was wondering why I cannot reprocude the build from our cruisecontrol server. Maven is missing a dependency for xmlbeans:xmlbeans:jar:2.3.0. It definitly was on ibiblio since cruisecontrol got it from there: Downloading: http://repo1.maven.org/maven2/xmlbeans/xmlbeans/2.3.0/xmlbeans- 2.3.0.pom 1/4K 2/4K 4/4K 4K downloaded 1) Why has it gone? 2) Where has it gone? 3) Will it ever come back? :) Andreas Ebbert-Karroum Senior Software Design Engineer - Nokia Siemens Networks / Operations Business Software phone: +49-211-94123928, fax: +49-211-94123838 Heltorfer Straße 1, 40472 Düsseldorf, Germany Nokia Siemens Networks GmbH Co. KG * Sitz der Gesellschaft: München / Registered office: Munich * Registergericht: München / Commercial registry: Munich, HRA 88537 * WEEE-Reg.-Nr.: DE 52984304 Persönlich haftende Gesellschafterin / General Partner: Nokia Siemens Networks Management GmbH * Geschäftsleitung / Board of Directors: Joachim Malterer, Lydia Sommer * Sitz der Gesellschaft: München / Registered office: Munich * Registergericht: München / Commercial registry: Munich, HRB 163416 - 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: questions about using different config files, such as persistence.xml in maven configs
Hi Tim, Thanks for your response... I was having trouble getting the first scenario to work, but that's because I took an approach of specifying two configurations in my persistence.xml and then using a spring object to dictate which one to load based on passing in a flag into my constructor in my tests. This has worked fine, other than the problem I've mentioned below. When I separated them into two different files, I started getting a lot of complaining from hibernate. I think because I must have parts in my tests that aren't using the mocked out object and therefore causing hibernate to try to load the one that is nonexistent... All our other projects use the database directly instead of mocking out the database connection because I haven't found an acceptable way to do it.. just easier to let everything modify the test database. I find your second solution interesting.. and I think maybe a bit cleaner ... it's actually what I was hoping someone would point me to. My confusion is still the same though, how would maven know to load the file and substitute the property? And if it's hibernate that would do it, then how would it get it at runtime? Would I always have to pass in a system property? I guess I should look up properties and the persistence.xml ... maybe there is something I'm just not understanding. Ryan On 7/13/07, Tim Kettler [EMAIL PROTECTED] wrote: Hi, you have a few options based on your concrete scenario: If you just want to unit test a ejb project you can create two 'persistence.xml' files one in 'src/main/resources' for production use and one in 'src/test/resources' for testing. The testing persistence.xml should then shadow the production one. An other option would be to enable filtering on the resource dir: build resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources /build and have profiles for the different environments: profiles profile idtest/id activation activeByDefaulttrue/activeByDefault/ /activation properties connectiontestconnection/nconnection /properties /profile profile idproduction/id properties connectionprodconnection/nconnection /properties /profile /profiles And put ${connection} in the persistence.xml. Hope this helps -Tim Ryan Moquin schrieb: Hi, I know that in order to use different configuration files (such as a persistence.xml), such as test configurations vs. production configurations I need to setup profiles to allow these different files to be used. What is the preferred way to indicate to maven how to find a configuration file that should be used? Such as, I have a persistence.xml file, currently I have my test database definition in it as a separate entry from my production configuration. This works fine in theory because I can mock out my persistence classes to use the test configuration for tests. The problem is that hibernate loads BOTH definitions when it starts up, whether it's used or not which causes problems with hot deploying, when my production environment is running (since my test config is loaded in production, and my tests are trying to use that configuration). I'm also running into problems of needing persistence configurations that can use other database servers other than assuming localhost. Does anyone have a strategy or know of a link that I can look at that will help me implement an appropriate strategy to use/bundle differnet persistence.xml files based upon the loaded maven profile? Thanks! Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Managing Project License
I am trying to manage the project license in our development. 1) I would like to add a report in order to indicate in which files the license header is missing. I tried with maven-checkstyle-plugin (cf. http://maven.apache.org/plugins/maven-checkstyle-plugin/tips.html) but It did not worked. The build success but the checkstyle report is empty... reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId version2.2-SNAPSHOT/version configuration configLocation${basedir}/src/main/config/checkstyle.xml/configLocation headerLocation${basedir}/src/main/config/LICENSE.txt/headerLocation /configuration /plugin /plugins /reporting 2) I wonder if it possible to automatically add the license header if it missing in a file. Rémy
Re: [M2] Managing Project License
Have you added the right rule in your checkstylexml? See [1] Hth, Nick Stolwijk [1]http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html#headerLocation Rémy Sanlaville wrote: I am trying to manage the project license in our development. 1) I would like to add a report in order to indicate in which files the license header is missing. I tried with maven-checkstyle-plugin (cf. http://maven.apache.org/plugins/maven-checkstyle-plugin/tips.html) but It did not worked. The build success but the checkstyle report is empty... reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId version2.2-SNAPSHOT/version configuration configLocation${basedir}/src/main/config/checkstyle.xml/configLocation headerLocation${basedir}/src/main/config/LICENSE.txt/headerLocation /configuration /plugin /plugins /reporting 2) I wonder if it possible to automatically add the license header if it missing in a file. Rémy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where has xmlbeans 2.3.0 gone?
hi, xmlbeans was moved to where it belongs according to its pom file http://repo1.maven.org/maven2/org/apache/xmlbeans/xmlbeans/2.3.0/ cheers, severin ps.: yes it was there, but its own pom file suggests that it belongs to the new URL. they seem to have changed the groupId from xmlbeans to org.apache.xmlbeans moving from version 2.1.x to 2.2.0 [EMAIL PROTECTED] wrote: Hi, I just was wondering why I cannot reprocude the build from our cruisecontrol server. Maven is missing a dependency for xmlbeans:xmlbeans:jar:2.3.0. It definitly was on ibiblio since cruisecontrol got it from there: Downloading: http://repo1.maven.org/maven2/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.0.pom 1/4K 2/4K 4/4K 4K downloaded 1) Why has it gone? 2) Where has it gone? 3) Will it ever come back? :) Andreas Ebbert-Karroum Senior Software Design Engineer - Nokia Siemens Networks / Operations Business Software phone: +49-211-94123928, fax: +49-211-94123838 Heltorfer Straße 1, 40472 Düsseldorf, Germany Nokia Siemens Networks GmbH Co. KG * Sitz der Gesellschaft: München / Registered office: Munich * Registergericht: München / Commercial registry: Munich, HRA 88537 * WEEE-Reg.-Nr.: DE 52984304 Persönlich haftende Gesellschafterin / General Partner: Nokia Siemens Networks Management GmbH * Geschäftsleitung / Board of Directors: Joachim Malterer, Lydia Sommer * Sitz der Gesellschaft: München / Registered office: Munich * Registergericht: München / Commercial registry: Munich, HRB 163416 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where has xmlbeans 2.3.0 gone?
Hi, I just was wondering why I cannot reprocude the build from our cruisecontrol server. Maven is missing a dependency for xmlbeans:xmlbeans:jar:2.3.0. It definitly was on ibiblio since cruisecontrol got it from there: Downloading: http://repo1.maven.org/maven2/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.0.pom 1/4K 2/4K 4/4K 4K downloaded 1) Why has it gone? 2) Where has it gone? 3) Will it ever come back? :) Andreas Ebbert-Karroum Senior Software Design Engineer - Nokia Siemens Networks / Operations Business Software phone: +49-211-94123928, fax: +49-211-94123838 Heltorfer Straße 1, 40472 Düsseldorf, Germany Nokia Siemens Networks GmbH Co. KG * Sitz der Gesellschaft: München / Registered office: Munich * Registergericht: München / Commercial registry: Munich, HRA 88537 * WEEE-Reg.-Nr.: DE 52984304 Persönlich haftende Gesellschafterin / General Partner: Nokia Siemens Networks Management GmbH * Geschäftsleitung / Board of Directors: Joachim Malterer, Lydia Sommer * Sitz der Gesellschaft: München / Registered office: Munich * Registergericht: München / Commercial registry: Munich, HRB 163416 This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia Siemens Networks GmbH Co. KG does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. Nokia Siemens Networks GmbH Co. KG is a German Company. Further information about the Company is available from its offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nsn.com/
hibernate:schema error
When exporting database schema I get the maven-hibernate-plugin error. hibernate:schema-export: [echo] Exporting Hibernate Schema file Bases string: C:\Documents and Settings\ramirez\workspace\trunk\core/target/classes Adding base dir: C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes Bases string: C:\Documents and Settings\ramirez\workspace\trunk\core/target/classes Adding base dir: C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes Base dir:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes Excludes: Includes:**/*.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vp1062\model\data\VP1062PreselectionImportFileDataModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vp1062\model\tx\VP1062GroupAdminLimitTxModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vp1062\model\tx\VP1062GroupLimitSettingsTxModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vp1062\model\tx\VP1062GroupTxModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vp1062\model\tx\VP1062VerificationTxModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vp1062\model\VP1062GroupModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vp1062\model\VP1062PreselectionImportModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vpnm\model\tx\VPNMSubscriberTxModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vpnm\model\VPNMMigration.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vpnm\model\VPNMMigrationPhase.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vpnm\model\VPNMProfileModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vpnm\model\VPNMSubscriberModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vpnm\model\VPNMUserModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vpnprofile\model\tx\VPNProfileTxModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vpnprofile\model\VPNProfileModel.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\cgm\vpnprofile\model\VPNProfileType.hbm.xml work with file:C:\Documents and Settings\ramirez\workspace\trunk\core\target\classes\amg\ptc\log\model\LogEventModel.hbm.xml popping off [EMAIL PROTECTED] for [EMAIL PROTECTED] in maven-artifact-plugin:maven-artifact-plugin popping off [EMAIL PROTECTED] for [EMAIL PROTECTED] in maven-xdoc-plugin:maven-xdoc-plugin popping off [EMAIL PROTECTED] for [EMAIL PROTECTED] in maven-test-plugin:maven-test-plugin popping off [EMAIL PROTECTED] for [EMAIL PROTECTED] in maven-pom-plugin:maven-pom-plugin popping off [EMAIL PROTECTED] for [EMAIL PROTECTED] in maven-emma-plugin:maven-emma-plugin popping off [EMAIL PROTECTED] for [EMAIL PROTECTED] in maven-hibernate-plugin:maven-hibernate-plugin popping off [EMAIL PROTECTED] for [EMAIL PROTECTED] in maven-antlr-plugin:maven-antlr-plugin popping off [EMAIL PROTECTED] for [EMAIL PROTECTED] in maven-java-plugin:maven-java-plugin BUILD FAILED File.. C:\Documents and Settings\ramirez\.maven\cache\maven-hibernate-plugin-1.4-SNAPSHOT\plugin.jelly Element... h:schema-export Line.. 55 Column 53 net/sf/hibernate/UserType com.werken.werkz.UnattainableGoalException: Unable to obtain goal [hibernate:schema-export] -- C:\Documents and Settings\ramirez\.maven\cache\maven-hibernate-plugin-1.4-SNAPSHOT\plugin.jelly:55:53: h:schema-export net/sf/hibernate/UserType at com.werken.werkz.Goal.fire(Goal.java:646) at com.werken.werkz.Goal.attain(Goal.java:575) at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) at com.werken.werkz.Goal.attain(Goal.java:573) at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) at com.werken.werkz.Goal.attain(Goal.java:573) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:488) at org.apache.maven.cli.App.main(App.java:1239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
Re: How can i add clover report generation into maven and have the ability to turn on/off?
Hi, i thought you can do something like -Dmaven.clover.skip=false in order to invoke it? Sorry, don't know. I'd suggest you take a look into the plugin description. If the plugin supports such a flag, it should be documented there... Regards Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Maven2] Adding transitive dependencies in EAR
Things works now ! :) In the EAR project I had forgotten to inherits from parent project. Joel -Message d'origine- De : Joel COSTIGLIOLA (Services DPT SYSTEME D INFORMATION METIER) [mailto:[EMAIL PROTECTED] Envoyé : vendredi 13 juillet 2007 11:39 À : Maven Users List; [EMAIL PROTECTED] Objet : [Maven2] Adding transitive dependencies in EAR Hi, I'm working on a project (ObjetTrouve) that offers services as EJB packaged in an EAR. ObjetTrouve structure : - ObjetTrouveEAR (depends on ObjetTrouveEJB and ObjetTrouveService) - ObjetTrouveEJB (depends on ObjetTrouveService) - ObjetTrouveService (depends on third party jar like Spring, log4j, ...) When buiding the EAR with maven it only packages the direct dependencies i.e. ObjetTrouveEJB and ObjetTrouveService, my application can not work without third party jar needed by ObjetTrouveService. Questions : 1 - how configure the EAR plugin to include the dependencies of ObjetTrouveService ? 2 - Is there an elegant solution to this problem ? One solution may be to repeat ObjetTrouveService dependencies in the EAR project pom.xml but it's an ugly solution as I need to duplicate information. For information here's EAR 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 groupIdsapiens/groupId artifactIdObjetTrouveEAR/artifactId packagingear/packaging version2.6.0/version nameObjetTrouveEAR/name urlhttp://maven.apache.org/url dependencies dependency groupIdsapiens/groupId artifactIdObjetTrouveEJB/artifactId typeejb/type version2.6.0/version /dependency dependency groupIdsapiens/groupId artifactIdObjetTrouveService/artifactId typejar/type version2.6.0/version /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration modules jarModule groupIdsapiens/groupId artifactIdObjetTrouveService/artifactId includeInApplicationXml true /includeInApplicationXml /jarModule ejbModule groupIdsapiens/groupId artifactIdObjetTrouveEJB/artifactId /ejbModule /modules /configuration /plugin /plugins /build /project Regards, Joël Costigliola - 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] Adding transitive dependencies in EAR
Hi, I'm working on a project (ObjetTrouve) that offers services as EJB packaged in an EAR. ObjetTrouve structure : - ObjetTrouveEAR (depends on ObjetTrouveEJB and ObjetTrouveService) - ObjetTrouveEJB (depends on ObjetTrouveService) - ObjetTrouveService (depends on third party jar like Spring, log4j, ...) When buiding the EAR with maven it only packages the direct dependencies i.e. ObjetTrouveEJB and ObjetTrouveService, my application can not work without third party jar needed by ObjetTrouveService. Questions : 1 - how configure the EAR plugin to include the dependencies of ObjetTrouveService ? 2 - Is there an elegant solution to this problem ? One solution may be to repeat ObjetTrouveService dependencies in the EAR project pom.xml but it's an ugly solution as I need to duplicate information. For information here's EAR 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 groupIdsapiens/groupId artifactIdObjetTrouveEAR/artifactId packagingear/packaging version2.6.0/version nameObjetTrouveEAR/name urlhttp://maven.apache.org/url dependencies dependency groupIdsapiens/groupId artifactIdObjetTrouveEJB/artifactId typeejb/type version2.6.0/version /dependency dependency groupIdsapiens/groupId artifactIdObjetTrouveService/artifactId typejar/type version2.6.0/version /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration modules jarModule groupIdsapiens/groupId artifactIdObjetTrouveService/artifactId includeInApplicationXml true /includeInApplicationXml /jarModule ejbModule groupIdsapiens/groupId artifactIdObjetTrouveEJB/artifactId /ejbModule /modules /configuration /plugin /plugins /build /project Regards, Joël Costigliola - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Maven2] Building Website using Maven
Thank you very much. src/site/apt/index.apt works! But I am wondering why the src/site/xdocs/index.html doesn't work. Regards, Dimuthu On Fri, 2007-07-13 at 09:06 +0100, Patrick Kimber wrote: Hi I create a custom index.html by editing this file: src/site/apt/index.apt This file is in apt format: http://maven.apache.org/guides/mini/guide-apt-format.html Patrick On 13/07/07, Dimuthu Leelarathne [EMAIL PROTECTED] wrote: Hi All, I am trying to build the website for a project. I managed to attach userguide.html and other documentation to the site successfully. The problem occurred when I am trying to generate a custom index.html I introduced an index.xml file into src/site/xdocs/index.xml. Then i typed $mvn clean site:site But the default index.html has not changed. I am using maven 2.0.6. Am I missing something here? I really appreciate any help on the issue. Thank you, Dimuthu - 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]skip parent
As promised, I tried for the multiple executions. For the moment maven-antrun-plugin do not allows you to skip plugin's execution cf. http://jira.codehaus.org/browse/MANTRUN-65, Vote for it ! :-) But you can do this : parent-pom : -- build pluginManagement plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution idantrun_id1/id phasevalidate/phase configuration tasks echo message=project.build.directory = ${project.build.directory}/ /tasks /configuration goals goalrun/goal /goals /execution execution idantrun_id2/id phasevalidate/phase configuration tasks echo message=antrun id 2 execution/ /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /pluginManagement /build module1-pom: -- build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution idantrun_id1/id phasevalidate/phase configuration tasks echo message=NOTHING TO DO.../ /tasks /configuration /execution /executions /plugin /plugins /build It results: - [INFO] [INFO] Building Unnamed - tests.multimodules:module1:jar:1.0-SNAPSHOT [INFO]task-segment: [validate] [INFO] [INFO] [antrun:run {execution: antrun_id1}] [INFO] Executing tasks [echo] NOTHING TO DO... [INFO] Executed tasks [INFO] [antrun:run {execution: antrun_id2}] [INFO] Executing tasks [echo] antrun id 2 execution [INFO] Executed tasks [INFO] [INFO] Building Unnamed - tests.multimodules:module2:jar:1.0-SNAPSHOT [INFO]task-segment: [validate] [INFO] [INFO] [antrun:run {execution: antrun_id1}] [INFO] Executing tasks [echo] project.build.directory = P:\03-Maven\dev\tests\multimodules\skip-parent\02-pluginManagement\module2\target [INFO] Executed tasks [INFO] [antrun:run {execution: antrun_id2}] [INFO] Executing tasks [echo] antrun id 2 execution [INFO] Executed tasks --- So it seems to be good ! Nevertheless, it's better to can skip the antrun execution. Rémy
Re: [M2]skip parent
Hi Tim you should split the common configuration (parent pom) and the project aggregation (modules/ tag) in two separate poms: myproject | |-myproject-parent |-module1 |-module2 You then would have all three modules declared in the top level pom and module1 and module2 would have myproject-parent as their parent pom. It works well. Many Thanks. As Wendy mentioned, I think I will use pluginManagement instead. I think it's easier to maintain and explain to the team. Rémy
Re: [M2]skip parent
Hi Wendy, Usually you would put it in pluginManagement in the parent, but I'm not sure how well that's going to work if you ever have multiple executions in antrun. (BTW, it's a good idea to give that execution an id.) That's what I needed. Many thanks. For the moment I don't need multiple executions. I will try and let you know if it works. You are right about the id, I will do. Rémy
Re: Installer Scripts Best Practice
Hi Rogrigo, Rodrigo Madera wrote: I was wondering if anyone has a suggestion on the best practice to execute post-build scripts, such as copying output files to a template directory for installer generation. Right now I'm using a shell script to do the copying and calling my installer-generating scripts, but I'm sure there is another (and less painful) way of doing this. I don't know about best practices, but you could automate these tasks with Maven 2 by binding plugin executions to the phase you use to build. For example, if you run the lifecycle through the package phase (i.e., mvn package is how you perform your build), you could bind an antrun plugin[1] execution for the copying[2], and exec plugin[3] execution(s) to invoke the installer generation script(s). Something like (caveat: untested): build ... plugins ... plugin artifactIdmaven-antrun-plugin/artifactId executions execution idcopy-files-for-installer-generation/id phasepackage/phase goals goalrun/goal /goals configuration tasks copy todir=${project.build.dir}/installer fileset dir=${project.build.dir} includes include${artifactId}-${version}.jar/include ... /includes /fileset /copy ... /tasks /configuration /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution idcall-first-installer-generator-script/id phasepackage/phase goals goalexec/goal /goals configuration executable /path/to/first/installer/generator/script /executable workingDirectory ${project.build.directory}/installer /workingDirectory arguments argument.../argument ... /arguments /configuration /execution execution idcall-second-installer-generator-script/id phasepackage/phase goals goalexec/goal /goals configuration executable /path/to/second/installer/generator/script /executable ... /configuration /execution ... /executions /plugin ... /plugins ... /build Steve [1] http://maven.apache.org/plugins/maven-antrun-plugin/ [2] http://ant.apache.org/manual/CoreTasks/copy.html [3] http://mojo.codehaus.org/exec-maven-plugin/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Managing Project License
Hi Nick, Have you added the right rule in your checkstylexml? See [1] You have right, I was missing that. So I add in my checkstyle.xml file : module name=RegexpHeader property name=headerFile value=${checkstyle.header.file}/ /module But unfortunately it's still not working (no errors). I also try to add (as for myfaces project [1]) : !-- Checks for Headers -- !-- See http://checkstyle.sf.net/config_header.html -- module name=Header property name=headerFile value=${checkstyle.header.file}/ /module But it's not working also. It seems that I am missing something else. Rémy [1] https://svn.apache.org/repos/asf/myfaces/maven/branches/1_0_5/build-tools/src/main/resources/config/myfaces-checks.xml
Re: questions about using different config files, such as persistence.xml in maven configs
You should read more about Profiles on the Maven website and in the free PDF books from Mergere and Sonatype, and then do some more exploring on your own. Property substitution happens automatically by Maven at compile/package time (its static) -- nothing happens at runtime (not dynamic) -- so you do run into the issue of this Jar was packaged for DEV, this one for PROD which many people dislike. So keep playing and reading with it, and bounce back over here with more questions as you have them. Wayne On 7/13/07, Ryan Moquin [EMAIL PROTECTED] wrote: Hi Tim, Thanks for your response... I was having trouble getting the first scenario to work, but that's because I took an approach of specifying two configurations in my persistence.xml and then using a spring object to dictate which one to load based on passing in a flag into my constructor in my tests. This has worked fine, other than the problem I've mentioned below. When I separated them into two different files, I started getting a lot of complaining from hibernate. I think because I must have parts in my tests that aren't using the mocked out object and therefore causing hibernate to try to load the one that is nonexistent... All our other projects use the database directly instead of mocking out the database connection because I haven't found an acceptable way to do it.. just easier to let everything modify the test database. I find your second solution interesting.. and I think maybe a bit cleaner ... it's actually what I was hoping someone would point me to. My confusion is still the same though, how would maven know to load the file and substitute the property? And if it's hibernate that would do it, then how would it get it at runtime? Would I always have to pass in a system property? I guess I should look up properties and the persistence.xml ... maybe there is something I'm just not understanding. Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with archetype
Are you behind a firewall and have to use a proxy to access the central repo? You guessed it. I'm sitting here in a large company, behind an ugly firewall/proxy. If yes: The Archetype plugin has a bug and ignores any proxy settings you have configured in your settings.xml unless there's a pom.xml in the directory in which you execute mvn... Seems strange that I'm trying to use an archetype to create my maven project structure and pom, and I need to provide a pom to get the archetype to work. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Managing Project License
I have no experience with this checkstyle module, but maybe you can pinpoint the problem. Does it work with the 2.1 plugin? Does it work, when you put the right file in the checkstyle file instead of checkstyle.header.file? Does the checkstyle configuration work with checkclipse or the checkstyle program itself? I guess you're on your own. ;) Keep us updated. Hth, Nick S. Rémy Sanlaville wrote: Hi Nick, Have you added the right rule in your checkstylexml? See [1] You have right, I was missing that. So I add in my checkstyle.xml file : module name=RegexpHeader property name=headerFile value=${checkstyle.header.file}/ /module But unfortunately it's still not working (no errors). I also try to add (as for myfaces project [1]) : !-- Checks for Headers -- !-- See http://checkstyle.sf.net/config_header.html -- module name=Header property name=headerFile value=${checkstyle.header.file}/ /module But it's not working also. It seems that I am missing something else. Rémy [1] https://svn.apache.org/repos/asf/myfaces/maven/branches/1_0_5/build-tools/src/main/resources/config/myfaces-checks.xml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Managing Project License
As you can see with faces[1] they are using the 2.1 version of the plugin and it is in build and reporting section. Also they are using a separate module for the configuration, maybe that helps? Hth, Nick S. Nick Stolwijk wrote: I have no experience with this checkstyle module, but maybe you can pinpoint the problem. Does it work with the 2.1 plugin? Does it work, when you put the right file in the checkstyle file instead of checkstyle.header.file? Does the checkstyle configuration work with checkclipse or the checkstyle program itself? I guess you're on your own. ;) Keep us updated. Hth, Nick S. Rémy Sanlaville wrote: Hi Nick, Have you added the right rule in your checkstylexml? See [1] You have right, I was missing that. So I add in my checkstyle.xml file : module name=RegexpHeader property name=headerFile value=${checkstyle.header.file}/ /module But unfortunately it's still not working (no errors). I also try to add (as for myfaces project [1]) : !-- Checks for Headers -- !-- See http://checkstyle.sf.net/config_header.html -- module name=Header property name=headerFile value=${checkstyle.header.file}/ /module But it's not working also. It seems that I am missing something else. Rémy [1] https://svn.apache.org/repos/asf/myfaces/maven/branches/1_0_5/build-tools/src/main/resources/config/myfaces-checks.xml - 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] Managing Project License
Oops, forgot the link... [1] https://svn.apache.org/repos/asf/myfaces/maven/branches/1_0_5/master-pom/pom.xml Nick Stolwijk wrote: As you can see with faces[1] they are using the 2.1 version of the plugin and it is in build and reporting section. Also they are using a separate module for the configuration, maybe that helps? Hth, Nick S. Nick Stolwijk wrote: I have no experience with this checkstyle module, but maybe you can pinpoint the problem. Does it work with the 2.1 plugin? Does it work, when you put the right file in the checkstyle file instead of checkstyle.header.file? Does the checkstyle configuration work with checkclipse or the checkstyle program itself? I guess you're on your own. ;) Keep us updated. Hth, Nick S. Rémy Sanlaville wrote: Hi Nick, Have you added the right rule in your checkstylexml? See [1] You have right, I was missing that. So I add in my checkstyle.xml file : module name=RegexpHeader property name=headerFile value=${checkstyle.header.file}/ /module But unfortunately it's still not working (no errors). I also try to add (as for myfaces project [1]) : !-- Checks for Headers -- !-- See http://checkstyle.sf.net/config_header.html -- module name=Header property name=headerFile value=${checkstyle.header.file}/ /module But it's not working also. It seems that I am missing something else. Rémy [1] https://svn.apache.org/repos/asf/myfaces/maven/branches/1_0_5/build-tools/src/main/resources/config/myfaces-checks.xml - 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: problems with mvn2, Spring and Hibernate... anyone could help?
Hello Marco I had a problem like that too, overloaded the class to, but didn't like the result of it. At then I came up with the following: * For each project have a hibernate.cfg.xml file that holds reference to your hibernate classes. * in your Sring config file have the following: bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=configLocation value=classpath:hibernate.cfg.xml/ property name=configLocations value=classpath*:hibernate.cfg.xml/ That would work with your local classpath as well with your jars, including test phases Regards Johann Reyes On 7/6/07, Marco Mistroni [EMAIL PROTECTED] wrote: Hi Trevor, thanks... that would work unfortunately my app is splitted in two jars, one for backend and another for webapp. everythign works fine at the junit level for the backend, but once code runs in app server , where the webapp jar is calling the backend jar for interactign with db.. code fails.. my best option now is to override LocalSessionFactoryBean.. i found a sample ont henet, i am going to try and post results.. thanks and regards marco On 7/6/07, Trevor Torrez [EMAIL PROTECTED] wrote: The problem is with the ability of the JVM to enumerate resources in the root of the classpath when these resources are in jars. The mappingJarLocations property would be used to search through jars that are *not* normally on the classpath, so you shouldn't be using that for WEB-INF/lib jars; in some cases you would cause hibernate to read the mapping files twice, once for the jar on the classpath, and once for the jar in the mappingJarLocations -- they just happen to be the same physical jar. The best fix is to create all the hbm.xml files in a subpackage of src/main/resources -- perhaps com/project/domain; then use a resource pattern like classpath*:/com/project/domain/**/*.hbm.xml. On 7/5/07, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Jon actually it has nothing to do with maven, as i discovered later.. since scope=compile will be visible in the test it has to do with Spring classloading actually.. i'll post a solution here as soon as i finish to try some code i found on the web with kindest regards marco On 7/5/07, Jon SlinnHawkins [EMAIL PROTECTED] wrote: I think this may be a problem with Surefire and the way spring uses classloaders : http://jira.codehaus.org/browse/SUREFIRE-340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel If you find a solution please post Thanks Marco Mistroni wrote: hi all, i know i should post this to maven list but it is about spring and i am sure someone here is using maven for building its environment I have an app composed of 3 project: - domain OBjects , contains domain objects used by web and backend project - backend project contains hibernate code - webapp contains webwork code that uses hibernate to access database i have been searching for solutions for not hardcoding hibernate mapping files.. i came across mappingJarLocations where you can specify jars where hbm.xml file are located. this is fine, however i am building my project using maven2 and i am setting the dependency scope for domainObjects.jar on my backend project.. if i use scopetest/scope test will fail because spring won't be able to find hbm.xml file (jar is not in classpath) if i use scopecompile/scope jar won't be in test classpath i was wondering if anyone on this forum came across same situation... here's my spring context... bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref bean=dataSource/ /property property name=mappingJarLocations valueclasspath*:domainObjects-1.0-SNAPSHOT.jar /value /property property name=hibernateProperties ref bean=exampleHibernateProperties / /property /bean thanks in advancea nd regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: questions about using different config files, such as persistence.xml in maven configs
Yeah that's what I was saying.. I'm going to do a little more research on the profiles... yeah that's what I was hoping not to do and wasn't sure if that's what the other solution was getting at... I'll play around and find something I like... On 7/13/07, Wayne Fay [EMAIL PROTECTED] wrote: You should read more about Profiles on the Maven website and in the free PDF books from Mergere and Sonatype, and then do some more exploring on your own. Property substitution happens automatically by Maven at compile/package time (its static) -- nothing happens at runtime (not dynamic) -- so you do run into the issue of this Jar was packaged for DEV, this one for PROD which many people dislike. So keep playing and reading with it, and bounce back over here with more questions as you have them. Wayne On 7/13/07, Ryan Moquin [EMAIL PROTECTED] wrote: Hi Tim, Thanks for your response... I was having trouble getting the first scenario to work, but that's because I took an approach of specifying two configurations in my persistence.xml and then using a spring object to dictate which one to load based on passing in a flag into my constructor in my tests. This has worked fine, other than the problem I've mentioned below. When I separated them into two different files, I started getting a lot of complaining from hibernate. I think because I must have parts in my tests that aren't using the mocked out object and therefore causing hibernate to try to load the one that is nonexistent... All our other projects use the database directly instead of mocking out the database connection because I haven't found an acceptable way to do it.. just easier to let everything modify the test database. I find your second solution interesting.. and I think maybe a bit cleaner ... it's actually what I was hoping someone would point me to. My confusion is still the same though, how would maven know to load the file and substitute the property? And if it's hibernate that would do it, then how would it get it at runtime? Would I always have to pass in a system property? I guess I should look up properties and the persistence.xml... maybe there is something I'm just not understanding. Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Managing Project License
Does it work with the 2.1 plugin? No Does it work, when you put the right file in the checkstyle file instead of checkstyle.header.file? No, also Does the checkstyle configuration work with checkclipse or the checkstyle program itself? You have right, it's the first things to check. I will let you know if I find a solution to my problem. Many thanks for you help. Rémy
Re: problem with archetype
I had this bugger bite me during an Evangelizing session just yesterday at around the time you posted this (mine involved the quickstart archetype thought). I was also behind a proxy there. But the problem was that the archetypes metadata got corrupted somehow. Go check ${user.home}/.m2/repository/org/apache/maven/archetypes/maven-archetype-webapp/maven-*.xml If you see something like this: ?xml version=1.0 encoding=UTF-8?metadata groupIdorg.apache.maven.archetypes/groupId artifactIdmaven-archetype-webapp/artifactId version1.0-alpha-4/version /metadata with missing versioning then we saw the same bugger. Just nuke the ${user.home}/.m2/repository/org/apache/maven/archetypes/maven-archetype-webapp folder from your local repository and try again. I've just tried your command behind the corporate proxy here and it succeeded. My 2¢, Alex -- View this message in context: http://www.nabble.com/problem-with-archetype-tf4070979s177.html#a11582912 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: Installer Scripts Best Practice
Why not set up an assembly and use assembly:directory to do this? -Original Message- From: Steven Rowe [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 11:01 AM To: Maven Users List Subject: Re: Installer Scripts Best Practice Hi Rogrigo, Rodrigo Madera wrote: I was wondering if anyone has a suggestion on the best practice to execute post-build scripts, such as copying output files to a template directory for installer generation. Right now I'm using a shell script to do the copying and calling my installer-generating scripts, but I'm sure there is another (and less painful) way of doing this. I don't know about best practices, but you could automate these tasks with Maven 2 by binding plugin executions to the phase you use to build. For example, if you run the lifecycle through the package phase (i.e., mvn package is how you perform your build), you could bind an antrun plugin[1] execution for the copying[2], and exec plugin[3] execution(s) to invoke the installer generation script(s). Something like (caveat: untested): build ... plugins ... plugin artifactIdmaven-antrun-plugin/artifactId executions execution idcopy-files-for-installer-generation/id phasepackage/phase goals goalrun/goal /goals configuration tasks copy todir=${project.build.dir}/installer fileset dir=${project.build.dir} includes include${artifactId}-${version}.jar/include ... /includes /fileset /copy ... /tasks /configuration /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution idcall-first-installer-generator-script/id phasepackage/phase goals goalexec/goal /goals configuration executable /path/to/first/installer/generator/script /executable workingDirectory ${project.build.directory}/installer /workingDirectory arguments argument.../argument ... /arguments /configuration /execution execution idcall-second-installer-generator-script/id phasepackage/phase goals goalexec/goal /goals configuration executable /path/to/second/installer/generator/script /executable ... /configuration /execution ... /executions /plugin ... /plugins ... /build Steve [1] http://maven.apache.org/plugins/maven-antrun-plugin/ [2] http://ant.apache.org/manual/CoreTasks/copy.html [3] http://mojo.codehaus.org/exec-maven-plugin/ - 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: Installer Scripts Best Practice
Actually I do use the Assembly Plugin to generate a -with-dependencies.jar. But after that, I need to put the jar on the template directory, along with the installation files such as the license text file, the configuration files, the documentation, etc. Am I missing a feature for the Assembly plugin? Steven, Is using Ant scripts really acceptable from a Maven good-practice point of view? Thanks, Rodrigo On 7/13/07, EJ Ciramella [EMAIL PROTECTED] wrote: Why not set up an assembly and use assembly:directory to do this? -Original Message- From: Steven Rowe [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 11:01 AM To: Maven Users List Subject: Re: Installer Scripts Best Practice Hi Rogrigo, Rodrigo Madera wrote: I was wondering if anyone has a suggestion on the best practice to execute post-build scripts, such as copying output files to a template directory for installer generation. Right now I'm using a shell script to do the copying and calling my installer-generating scripts, but I'm sure there is another (and less painful) way of doing this. I don't know about best practices, but you could automate these tasks with Maven 2 by binding plugin executions to the phase you use to build. For example, if you run the lifecycle through the package phase (i.e., mvn package is how you perform your build), you could bind an antrun plugin[1] execution for the copying[2], and exec plugin[3] execution(s) to invoke the installer generation script(s). Something like (caveat: untested): build ... plugins ... plugin artifactIdmaven-antrun-plugin/artifactId executions execution idcopy-files-for-installer-generation/id phasepackage/phase goals goalrun/goal /goals configuration tasks copy todir=${project.build.dir}/installer fileset dir=${project.build.dir} includes include${artifactId}-${version}.jar/include ... /includes /fileset /copy ... /tasks /configuration /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution idcall-first-installer-generator-script/id phasepackage/phase goals goalexec/goal /goals configuration executable /path/to/first/installer/generator/script /executable workingDirectory ${project.build.directory}/installer /workingDirectory arguments argument.../argument ... /arguments /configuration /execution execution idcall-second-installer-generator-script/id phasepackage/phase goals goalexec/goal /goals configuration executable /path/to/second/installer/generator/script /executable ... /configuration /execution ... /executions /plugin ... /plugins ... /build Steve [1] http://maven.apache.org/plugins/maven-antrun-plugin/ [2] http://ant.apache.org/manual/CoreTasks/copy.html [3] http://mojo.codehaus.org/exec-maven-plugin/ - 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: Installer Scripts Best Practice
With the assembly descriptor, you can say where you want the jars/files/resources to live inside your artifact. With assembly:assembly, that will build up your artifact, but with assembly:directory, that creates the same thing but in exploded (untarred/unzipped) format. (don't forget about assembly:single and assembly:directory-inline either) -Original Message- From: Rodrigo Madera [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 2:31 PM To: Maven Users List Subject: Re: Installer Scripts Best Practice Actually I do use the Assembly Plugin to generate a -with-dependencies.jar. But after that, I need to put the jar on the template directory, along with the installation files such as the license text file, the configuration files, the documentation, etc. Am I missing a feature for the Assembly plugin? Steven, Is using Ant scripts really acceptable from a Maven good-practice point of view? Thanks, Rodrigo On 7/13/07, EJ Ciramella [EMAIL PROTECTED] wrote: Why not set up an assembly and use assembly:directory to do this? -Original Message- From: Steven Rowe [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 11:01 AM To: Maven Users List Subject: Re: Installer Scripts Best Practice Hi Rogrigo, Rodrigo Madera wrote: I was wondering if anyone has a suggestion on the best practice to execute post-build scripts, such as copying output files to a template directory for installer generation. Right now I'm using a shell script to do the copying and calling my installer-generating scripts, but I'm sure there is another (and less painful) way of doing this. I don't know about best practices, but you could automate these tasks with Maven 2 by binding plugin executions to the phase you use to build. For example, if you run the lifecycle through the package phase (i.e., mvn package is how you perform your build), you could bind an antrun plugin[1] execution for the copying[2], and exec plugin[3] execution(s) to invoke the installer generation script(s). Something like (caveat: untested): build ... plugins ... plugin artifactIdmaven-antrun-plugin/artifactId executions execution idcopy-files-for-installer-generation/id phasepackage/phase goals goalrun/goal /goals configuration tasks copy todir=${project.build.dir}/installer fileset dir=${project.build.dir} includes include${artifactId}-${version}.jar/include ... /includes /fileset /copy ... /tasks /configuration /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution idcall-first-installer-generator-script/id phasepackage/phase goals goalexec/goal /goals configuration executable /path/to/first/installer/generator/script /executable workingDirectory ${project.build.directory}/installer /workingDirectory arguments argument.../argument ... /arguments /configuration /execution execution idcall-second-installer-generator-script/id phasepackage/phase goals goalexec/goal /goals configuration executable /path/to/second/installer/generator/script /executable ... /configuration /execution ... /executions /plugin ... /plugins ... /build Steve [1] http://maven.apache.org/plugins/maven-antrun-plugin/ [2] http://ant.apache.org/manual/CoreTasks/copy.html [3] http://mojo.codehaus.org/exec-maven-plugin/ - 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: problem with archetype
Thanks Alex... I'm back in business. The strange thing is that I didn't have to delete anything from my repo and the archetype just worked today.?.? How could something get corrupted like you described? Erik I had this bugger bite me during an Evangelizing session just yesterday at around the time you posted this (mine involved the quickstart archetype thought). I was also behind a proxy there. But the problem was that the archetypes metadata got corrupted somehow. Go check ${user.home}/.m2/repository/org/apache/maven/archetypes/maven-archetype-webapp/maven-*.xml If you see something like this: ?xml version=1.0 encoding=UTF-8?metadata groupIdorg.apache.maven.archetypes/groupId artifactIdmaven-archetype-webapp/artifactId version1.0-alpha-4/version /metadata with missing versioning then we saw the same bugger. Just nuke the ${user.home}/.m2/repository/org/apache/maven/archetypes/maven-archetype-webapp folder from your local repository and try again. I've just tried your command behind the corporate proxy here and it succeeded. My 2¢, Alex -- View this message in context: http://www.nabble.com/problem-with-archetype-tf4070979s177.html#a11582912 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 archetype
On 7/13/07, Erik Weibust [EMAIL PROTECTED] wrote: I'm back in business. The strange thing is that I didn't have to delete anything from my repo and the archetype just worked today.?.? The default repository update policy is 'daily'. If it fails once, Maven won't check a given repository for a given artifact again until the next day. You can override this with -U on the command line, or by deleting the metadata from your local repository. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with mvn2, Spring and Hibernate... anyone could help?
thanx johann! i'll try it out! regards marco On 7/13/07, Johann Reyes [EMAIL PROTECTED] wrote: Hello Marco I had a problem like that too, overloaded the class to, but didn't like the result of it. At then I came up with the following: * For each project have a hibernate.cfg.xml file that holds reference to your hibernate classes. * in your Sring config file have the following: bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=configLocation value=classpath:hibernate.cfg.xml/ property name=configLocations value=classpath*:hibernate.cfg.xml / That would work with your local classpath as well with your jars, including test phases Regards Johann Reyes On 7/6/07, Marco Mistroni [EMAIL PROTECTED] wrote: Hi Trevor, thanks... that would work unfortunately my app is splitted in two jars, one for backend and another for webapp. everythign works fine at the junit level for the backend, but once code runs in app server , where the webapp jar is calling the backend jar for interactign with db.. code fails.. my best option now is to override LocalSessionFactoryBean.. i found a sample ont henet, i am going to try and post results.. thanks and regards marco On 7/6/07, Trevor Torrez [EMAIL PROTECTED] wrote: The problem is with the ability of the JVM to enumerate resources in the root of the classpath when these resources are in jars. The mappingJarLocations property would be used to search through jars that are *not* normally on the classpath, so you shouldn't be using that for WEB-INF/lib jars; in some cases you would cause hibernate to read the mapping files twice, once for the jar on the classpath, and once for the jar in the mappingJarLocations -- they just happen to be the same physical jar. The best fix is to create all the hbm.xml files in a subpackage of src/main/resources -- perhaps com/project/domain; then use a resource pattern like classpath*:/com/project/domain/**/*.hbm.xml. On 7/5/07, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Jon actually it has nothing to do with maven, as i discovered later.. since scope=compile will be visible in the test it has to do with Spring classloading actually.. i'll post a solution here as soon as i finish to try some code i found on the web with kindest regards marco On 7/5/07, Jon SlinnHawkins [EMAIL PROTECTED] wrote: I think this may be a problem with Surefire and the way spring uses classloaders : http://jira.codehaus.org/browse/SUREFIRE-340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel If you find a solution please post Thanks Marco Mistroni wrote: hi all, i know i should post this to maven list but it is about spring and i am sure someone here is using maven for building its environment I have an app composed of 3 project: - domain OBjects , contains domain objects used by web and backend project - backend project contains hibernate code - webapp contains webwork code that uses hibernate to access database i have been searching for solutions for not hardcoding hibernate mapping files.. i came across mappingJarLocations where you can specify jars where hbm.xml file are located. this is fine, however i am building my project using maven2 and i am setting the dependency scope for domainObjects.jar on my backend project.. if i use scopetest/scope test will fail because spring won't be able to find hbm.xml file (jar is not in classpath) if i use scopecompile/scope jar won't be in test classpath i was wondering if anyone on this forum came across same situation... here's my spring context... bean id=sessionFactory class= org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref bean=dataSource/ /property property name=mappingJarLocations valueclasspath*:domainObjects-1.0-SNAPSHOT.jar /value /property property name=hibernateProperties ref bean=exampleHibernateProperties / /property /bean thanks in advancea nd regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: questions about using different config files, such as persistence.xml in maven configs
Your Spring solution (with all environments properties available, and a runtime switch to pick the one to use) is probably going to be the best option for a lot of reasons. So keep investigating that path, and let us know where you go with it. I think there are probably a bunch of people on this list who would really benefit from a complete example of such an implementation, so if you made a little test project you could share, that would be great. Wayne On 7/13/07, Ryan Moquin [EMAIL PROTECTED] wrote: Yeah that's what I was saying.. I'm going to do a little more research on the profiles... yeah that's what I was hoping not to do and wasn't sure if that's what the other solution was getting at... I'll play around and find something I like... On 7/13/07, Wayne Fay [EMAIL PROTECTED] wrote: You should read more about Profiles on the Maven website and in the free PDF books from Mergere and Sonatype, and then do some more exploring on your own. Property substitution happens automatically by Maven at compile/package time (its static) -- nothing happens at runtime (not dynamic) -- so you do run into the issue of this Jar was packaged for DEV, this one for PROD which many people dislike. So keep playing and reading with it, and bounce back over here with more questions as you have them. Wayne On 7/13/07, Ryan Moquin [EMAIL PROTECTED] wrote: Hi Tim, Thanks for your response... I was having trouble getting the first scenario to work, but that's because I took an approach of specifying two configurations in my persistence.xml and then using a spring object to dictate which one to load based on passing in a flag into my constructor in my tests. This has worked fine, other than the problem I've mentioned below. When I separated them into two different files, I started getting a lot of complaining from hibernate. I think because I must have parts in my tests that aren't using the mocked out object and therefore causing hibernate to try to load the one that is nonexistent... All our other projects use the database directly instead of mocking out the database connection because I haven't found an acceptable way to do it.. just easier to let everything modify the test database. I find your second solution interesting.. and I think maybe a bit cleaner ... it's actually what I was hoping someone would point me to. My confusion is still the same though, how would maven know to load the file and substitute the property? And if it's hibernate that would do it, then how would it get it at runtime? Would I always have to pass in a system property? I guess I should look up properties and the persistence.xml... maybe there is something I'm just not understanding. Ryan - 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]
filtering images in a war blows up
Sharing this so someone else might be helped later. I ran into this stack trace: [INFO] [war:war] [INFO] Exploding webapp... [INFO] Assembling webapp myapp in C:\code\myapp \target\myapp -1.4.0-SNAPSHOT [INFO] Copy webapp webResources to C:\code\myapp \target\myapp -1.4.0-SNAPSHOT [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.project.MavenProject [INFO] [INFO] Trace java.lang.ClassCastException: org.apache.maven.project.MavenProject at org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFil terReader.java:269) at org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFil terReader.java:162) at java.io.Reader.read(Reader.java:122) at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212) at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200) at org.apache.maven.plugin.war.AbstractWarMojo.copyFilteredFile(AbstractWar Mojo.java:921) at org.apache.maven.plugin.war.AbstractWarMojo.copyResources(AbstractWarMoj o.java:415) at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo. java:518) at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstract WarMojo.java:347) at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:164) at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:130) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecutor.java:48 0) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.jav a:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at 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) It seemed to hit this error when there was an images directory that had filtering on. Caused the problem when it hit ${basedir}/web/images: plugin artifactIdmaven-war-plugin/artifactId configuration webResources resource directory${basedir}/web/directory filteringtrue/filtering /resource /webResources /configuration /plugin Fixed the problem: plugin artifactIdmaven-war-plugin/artifactId configuration webResources resource directory${basedir}/web/directory filteringfalse/filtering /resource /webResources /configuration /plugin Paul Sundling
How can i specifying a settings.xml file to be used?
Is there a -f flag or something? Thanks. A.
Maven checkstyle plugin - how to get this working
So I configured my pom to use the checkstyle plugin. It is looking for the configuration files. Not wanting to create them from scratch, I then downloaded the .zip for checkstyle-4.3 that has these config files but when I point to them in the pom.xml there are many, many problems (variables not set) so am assuming I am going about this the wrong way. Is there a location that shows how to get going with maven checkstyle plugin? The page on the checkstyle plugin tells you what to put in the pom but not where to get the default config files that work with the plugin. confusing. si'mon -- View this message in context: http://www.nabble.com/Maven-checkstyle-plugin---how-to-get-this-working-tf4076713s177.html#a11586890 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: How can i specifying a settings.xml file to be used?
On 7/13/07, Baz [EMAIL PROTECTED] wrote: Is there a -f flag or something? $ mvn -h ... -s,--settings Alternate path for the user settings file -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with archetype
Wendy, Erik, Looks like we saw http://jira.codehaus.org/browse/MNG-916 given that the version gets resolved to RELEASE. This is the most prevalent bugger I've seen on Maven, sort of grown to live with it by nuking bits of my local repository every now and then. Shall we re-open it? Alex -- View this message in context: http://www.nabble.com/problem-with-archetype-tf4070979s177.html#a11586585 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: How can i specifying a settings.xml file to be used?
Cool, wendy, thanks. On 7/13/07, Wendy Smoak [EMAIL PROTECTED] wrote: On 7/13/07, Baz [EMAIL PROTECTED] wrote: Is there a -f flag or something? $ mvn -h ... -s,--settings Alternate path for the user settings file -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installer Scripts Best Practice
Hi Rodrigo, On 7/13/07, Rodrigo Madera [EMAIL PROTECTED] wrote: Is using Ant scripts really acceptable from a Maven good-practice point of view? maven-antrun-plugin copy tasks are the conventional means for moving files around, mostly because Maven 2 does not provide a generalized facility for doing so, except for when the destination is under target/classes/ or target/test-classes/; in those cases, maven-resources-plugin handles the job. So to answer your question, yes, it is acceptable to use Ant facilities where Maven is lacking. This particular gap will hopefully be filled by native Maven functionality at some point in the not-too-distant future, but it's probably hard for people to be motivated to fix this problem, because Ant's copy task is so flexible, well-known, thoroughly tested, tight syntactically, etc. Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven checkstyle plugin - how to get this working
Getting a sample Checkstyle configuration file from Checkstyle themselves is a good way to start. I'll try to add an FAQ for the plugin site: Where can I find a good configuration file for Checkstyle? What kind of problems are your experiencing? Is the maven-checkstyle-plugin not working? Does it find problems in your code? Please note that the currently released maven-checkstyle-plugin uses Checkstyle 4.1. So if you try to use checks that were introduced in a later version of Checkstyle - it will fail. Si_Simon wrote: So I configured my pom to use the checkstyle plugin. It is looking for the configuration files. Not wanting to create them from scratch, I then downloaded the .zip for checkstyle-4.3 that has these config files but when I point to them in the pom.xml there are many, many problems (variables not set) so am assuming I am going about this the wrong way. Is there a location that shows how to get going with maven checkstyle plugin? The page on the checkstyle plugin tells you what to put in the pom but not where to get the default config files that work with the plugin. confusing. si'mon -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven checkstyle plugin - how to get this working
Si_Simon wrote: So I configured my pom to use the checkstyle plugin. It is looking for the configuration files. Not wanting to create them from scratch, I then downloaded the .zip for checkstyle-4.3 that has these config files but when I point to them in the pom.xml there are many, many problems (variables not set) so am assuming I am going about this the wrong way. Is there a location that shows how to get going with maven checkstyle plugin? The page on the checkstyle plugin tells you what to put in the pom but not where to get the default config files that work with the plugin. confusing. I don't quite understand what you're asking. The default config files are already in the plugin; you don't have to do anything. Do a 'mvn site' and you'll get a checkstyle report. If you /do/ want to change the configuration, you set the configLocation property to point to the new config files. There are some other properties that can be customized as well, such as propertiesFile and suppressionsFile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven checkstyle plugin - how to get this working
I tried this just today, and find that the plug-in is missing generics support. So, I took the one from the plug-in, then made my updates. I attached the version plus generics here.. (hope this works) Then, here is my plug-in declaration plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocation C:/viewstore/esp_lynx_dap/esp/dap/utilities/common/build-tools/src/main/resources/sun_checks.xml /configLocation /configuration /plugin Notice I force the plugin to use mine. This works great now. On 7/13/07, jason r tibbetts [EMAIL PROTECTED] wrote: Si_Simon wrote: So I configured my pom to use the checkstyle plugin. It is looking for the configuration files. Not wanting to create them from scratch, I then downloaded the .zip for checkstyle-4.3 that has these config files but when I point to them in the pom.xml there are many, many problems (variables not set) so am assuming I am going about this the wrong way. Is there a location that shows how to get going with maven checkstyle plugin? The page on the checkstyle plugin tells you what to put in the pom but not where to get the default config files that work with the plugin. confusing. I don't quite understand what you're asking. The default config files are already in the plugin; you don't have to do anything. Do a 'mvn site' and you'll get a checkstyle report. If you /do/ want to change the configuration, you set the configLocation property to point to the new config files. There are some other properties that can be customized as well, such as propertiesFile and suppressionsFile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com --- ?xml version=1.0? !DOCTYPE module PUBLIC -//Puppy Crawl//DTD Check Configuration 1.2//EN http://www.puppycrawl.com/dtds/configuration_1_2.dtd; !-- Checkstyle configuration that checks the sun coding conventions from: - the Java Language Specification at http://java.sun.com/docs/books/jls/second_edition/html/index.html - the Sun Code Conventions at http://java.sun.com/docs/codeconv/ - the Javadoc guidelines at http://java.sun.com/j2se/javadoc/writingdoccomments/index.html - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html - some best practices Checkstyle is very configurable. Be sure to read the documentation at http://checkstyle.sf.net (or in your downloaded distribution). Most Checks are configurable, be sure to consult the documentation. To completely disable a check, just comment it out or delete it from the file. Finally, it is worth reading the documentation. -- module name=Checker !-- Checks that a package.html file exists for each package. -- !-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -- module name=PackageHtml/ !-- Checks whether files end with a new line.-- !-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -- module name=NewlineAtEndOfFile/ !-- Checks that property files contain the same keys. -- !-- See http://checkstyle.sf.net/config_misc.html#Translation -- module name=Translation/ module name=TreeWalker !-- Checks for Javadoc comments. -- !-- See http://checkstyle.sf.net/config_javadoc.html -- module name=JavadocMethod/ module name=JavadocType/ module name=JavadocVariable/ module name=JavadocStyle/ !-- Checks for Naming Conventions. -- !-- See http://checkstyle.sf.net/config_naming.html -- module name=ConstantName/ module name=LocalFinalVariableName/ module name=LocalVariableName/ module name=MemberName/ module name=MethodName/ module name=PackageName/ module name=ParameterName/ module name=StaticVariableName/ module name=TypeName/ !-- Checks for Headers-- !-- See http://checkstyle.sf.net/config_header.html -- !-- module name=Header-- !-- The follow property value demonstrates the ability -- !-- to have access to ANT properties. In this case it uses -- !-- the ${basedir} property to allow Checkstyle to be run -- !-- from any directory within a project. See property -- !-- expansion,
[m2] Can I have a user specific plugin?
I want to have one integration user have a custom plugin, yet not the other team member. So, can I add a build plugin dependency into my settings.xmlfor just one user? -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com ---
Re: problem with archetype
Yes, go for it. Erik Wendy, Erik, Looks like we saw http://jira.codehaus.org/browse/MNG-916 given that the version gets resolved to RELEASE. This is the most prevalent bugger I've seen on Maven, sort of grown to live with it by nuking bits of my local repository every now and then. Shall we re-open it? Alex -- View this message in context: http://www.nabble.com/problem-with-archetype-tf4070979s177.html#a11586585 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 checkstyle plugin - how to get this working
thanks, I took the config param out (pointing to the checks file) and it works. The problem is that we have many modules and a new checkstyle config file gets created on the fly and put into each subdirectory. I suppose it is hardcoded in the jar or something to generate one. I suppose all of these config files are the same and can take one of them to use as a template. Ultimately I want all modules to use the same configuration file and not generate one as it is running and put it in the target/ directory. I need to figure this one out. Would also like to figure out how to create one html report for all modules. Right now it creates separate xml files for each module. Would you know what setting I could use to generate html reports instead of xml? I did not see a setting the maven docs. thanks Si'mon Thanks Si'mon jason r tibbetts wrote: Si_Simon wrote: So I configured my pom to use the checkstyle plugin. It is looking for the configuration files. Not wanting to create them from scratch, I then downloaded the .zip for checkstyle-4.3 that has these config files but when I point to them in the pom.xml there are many, many problems (variables not set) so am assuming I am going about this the wrong way. Is there a location that shows how to get going with maven checkstyle plugin? The page on the checkstyle plugin tells you what to put in the pom but not where to get the default config files that work with the plugin. confusing. I don't quite understand what you're asking. The default config files are already in the plugin; you don't have to do anything. Do a 'mvn site' and you'll get a checkstyle report. If you /do/ want to change the configuration, you set the configLocation property to point to the new config files. There are some other properties that can be customized as well, such as propertiesFile and suppressionsFile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-checkstyle-plugin---how-to-get-this-working-tf4076713s177.html#a11587736 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 checkstyle plugin - how to get this working
I got it working out of the box, now just need to tune some things. We have multiple maven modules each with it's own pom. A target/checkstyle-report.xml is created for each module. Would you know what setting will dump out an html report instead? I did not see the option on the website anywhere. Also is it possible to have checkstyle dump out one report for all modules in one file? thanks for the help Si'mon Dennis Lundberg-2 wrote: Getting a sample Checkstyle configuration file from Checkstyle themselves is a good way to start. I'll try to add an FAQ for the plugin site: Where can I find a good configuration file for Checkstyle? What kind of problems are your experiencing? Is the maven-checkstyle-plugin not working? Does it find problems in your code? Please note that the currently released maven-checkstyle-plugin uses Checkstyle 4.1. So if you try to use checks that were introduced in a later version of Checkstyle - it will fail. Si_Simon wrote: So I configured my pom to use the checkstyle plugin. It is looking for the configuration files. Not wanting to create them from scratch, I then downloaded the .zip for checkstyle-4.3 that has these config files but when I point to them in the pom.xml there are many, many problems (variables not set) so am assuming I am going about this the wrong way. Is there a location that shows how to get going with maven checkstyle plugin? The page on the checkstyle plugin tells you what to put in the pom but not where to get the default config files that work with the plugin. confusing. si'mon -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-checkstyle-plugin---how-to-get-this-working-tf4076713s177.html#a11587775 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 checkstyle plugin - how to get this working
1. reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocation C:/viewstore/esp_lynx_dap/esp/dap/utilities/common/build-tools/src/main/resources/sun_checks.xml /configLocation /configuration /plugin This generates the checkstyle HTML during the site command. 2. Not that I know of... On 7/13/07, Si_Simon [EMAIL PROTECTED] wrote: I got it working out of the box, now just need to tune some things. We have multiple maven modules each with it's own pom. A target/checkstyle-report.xml is created for each module. Would you know what setting will dump out an html report instead? I did not see the option on the website anywhere. Also is it possible to have checkstyle dump out one report for all modules in one file? thanks for the help Si'mon Dennis Lundberg-2 wrote: Getting a sample Checkstyle configuration file from Checkstyle themselves is a good way to start. I'll try to add an FAQ for the plugin site: Where can I find a good configuration file for Checkstyle? What kind of problems are your experiencing? Is the maven-checkstyle-plugin not working? Does it find problems in your code? Please note that the currently released maven-checkstyle-plugin uses Checkstyle 4.1. So if you try to use checks that were introduced in a later version of Checkstyle - it will fail. Si_Simon wrote: So I configured my pom to use the checkstyle plugin. It is looking for the configuration files. Not wanting to create them from scratch, I then downloaded the .zip for checkstyle-4.3 that has these config files but when I point to them in the pom.xml there are many, many problems (variables not set) so am assuming I am going about this the wrong way. Is there a location that shows how to get going with maven checkstyle plugin? The page on the checkstyle plugin tells you what to put in the pom but not where to get the default config files that work with the plugin. confusing. si'mon -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-checkstyle-plugin---how-to-get-this-working-tf4076713s177.html#a11587775 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, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com ---
Re: Maven checkstyle plugin - how to get this working
for multi-modules like mine and yours, this worked great: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html On 7/13/07, Si_Simon [EMAIL PROTECTED] wrote: thanks, I took the config param out (pointing to the checks file) and it works. The problem is that we have many modules and a new checkstyle config file gets created on the fly and put into each subdirectory. I suppose it is hardcoded in the jar or something to generate one. I suppose all of these config files are the same and can take one of them to use as a template. Ultimately I want all modules to use the same configuration file and not generate one as it is running and put it in the target/ directory. I need to figure this one out. Would also like to figure out how to create one html report for all modules. Right now it creates separate xml files for each module. Would you know what setting I could use to generate html reports instead of xml? I did not see a setting the maven docs. thanks Si'mon Thanks Si'mon jason r tibbetts wrote: Si_Simon wrote: So I configured my pom to use the checkstyle plugin. It is looking for the configuration files. Not wanting to create them from scratch, I then downloaded the .zip for checkstyle-4.3 that has these config files but when I point to them in the pom.xml there are many, many problems (variables not set) so am assuming I am going about this the wrong way. Is there a location that shows how to get going with maven checkstyle plugin? The page on the checkstyle plugin tells you what to put in the pom but not where to get the default config files that work with the plugin. confusing. I don't quite understand what you're asking. The default config files are already in the plugin; you don't have to do anything. Do a 'mvn site' and you'll get a checkstyle report. If you /do/ want to change the configuration, you set the configLocation property to point to the new config files. There are some other properties that can be customized as well, such as propertiesFile and suppressionsFile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-checkstyle-plugin---how-to-get-this-working-tf4076713s177.html#a11587736 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, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com ---
Re: Maven checkstyle plugin - how to get this working
These are not configuration files, they are Checkstyle reports in xml format. Just leave them as they are. The answers to the rest of your questions can be found on the plugin site: http://maven.apache.org/plugins/maven-checkstyle-plugin/ Si_Simon wrote: thanks, I took the config param out (pointing to the checks file) and it works. The problem is that we have many modules and a new checkstyle config file gets created on the fly and put into each subdirectory. I suppose it is hardcoded in the jar or something to generate one. I suppose all of these config files are the same and can take one of them to use as a template. Ultimately I want all modules to use the same configuration file and not generate one as it is running and put it in the target/ directory. I need to figure this one out. Would also like to figure out how to create one html report for all modules. Right now it creates separate xml files for each module. Would you know what setting I could use to generate html reports instead of xml? I did not see a setting the maven docs. thanks Si'mon Thanks Si'mon jason r tibbetts wrote: Si_Simon wrote: So I configured my pom to use the checkstyle plugin. It is looking for the configuration files. Not wanting to create them from scratch, I then downloaded the .zip for checkstyle-4.3 that has these config files but when I point to them in the pom.xml there are many, many problems (variables not set) so am assuming I am going about this the wrong way. Is there a location that shows how to get going with maven checkstyle plugin? The page on the checkstyle plugin tells you what to put in the pom but not where to get the default config files that work with the plugin. confusing. I don't quite understand what you're asking. The default config files are already in the plugin; you don't have to do anything. Do a 'mvn site' and you'll get a checkstyle report. If you /do/ want to change the configuration, you set the configLocation property to point to the new config files. There are some other properties that can be customized as well, such as propertiesFile and suppressionsFile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven checkstyle plugin - how to get this working
For some reason it will only generate xml reports and not html. I am using the default config file. I thought I remembered using at one time a setting in the pom configuration of the plugin to force html instead of xml. thanks for all the help. Mick Knutson-4 wrote: 1. reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocation C:/viewstore/esp_lynx_dap/esp/dap/utilities/common/build-tools/src/main/resources/sun_checks.xml /configLocation /configuration /plugin This generates the checkstyle HTML during the site command. 2. Not that I know of... On 7/13/07, Si_Simon [EMAIL PROTECTED] wrote: I got it working out of the box, now just need to tune some things. We have multiple maven modules each with it's own pom. A target/checkstyle-report.xml is created for each module. Would you know what setting will dump out an html report instead? I did not see the option on the website anywhere. Also is it possible to have checkstyle dump out one report for all modules in one file? thanks for the help Si'mon Dennis Lundberg-2 wrote: Getting a sample Checkstyle configuration file from Checkstyle themselves is a good way to start. I'll try to add an FAQ for the plugin site: Where can I find a good configuration file for Checkstyle? What kind of problems are your experiencing? Is the maven-checkstyle-plugin not working? Does it find problems in your code? Please note that the currently released maven-checkstyle-plugin uses Checkstyle 4.1. So if you try to use checks that were introduced in a later version of Checkstyle - it will fail. Si_Simon wrote: So I configured my pom to use the checkstyle plugin. It is looking for the configuration files. Not wanting to create them from scratch, I then downloaded the .zip for checkstyle-4.3 that has these config files but when I point to them in the pom.xml there are many, many problems (variables not set) so am assuming I am going about this the wrong way. Is there a location that shows how to get going with maven checkstyle plugin? The page on the checkstyle plugin tells you what to put in the pom but not where to get the default config files that work with the plugin. confusing. si'mon -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-checkstyle-plugin---how-to-get-this-working-tf4076713s177.html#a11587775 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, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com --- -- View this message in context: http://www.nabble.com/Maven-checkstyle-plugin---how-to-get-this-working-tf4076713s177.html#a11588268 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Checkstyle plugin - need list of params that can be set
Where can I find a complete list of parameters that can be set in the configuration section of the Maven2 Checkstyle plugin? thanks Si'mon -- View this message in context: http://www.nabble.com/Checkstyle-plugin---need-list-of-params-that-can-be-set-tf4077163s177.html#a11588438 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
upgrading from 2.0.4 - 2.0.7?
I'm inheriting a project that uses Maven 2.0.4, and want to upgrade to 2.0.7. Can someone please point me information on how I need to modify my existing pom.xml's? I found the changelog for 2.0.7, 2.0.6, and 2.0.5, but it's not clear to me the changes I need to make. http://jira.codehaus.org/browse/MNG?report=com.atlassian.jira.plugin.sys tem.project:changelog-panel thanks, Roger
Re: upgrading from 2.0.4 - 2.0.7?
On 7/13/07, Roger Huang (rchuang) [EMAIL PROTECTED] wrote: I'm inheriting a project that uses Maven 2.0.4, and want to upgrade to 2.0.7. Can someone please point me information on how I need to modify my existing pom.xml's? There are a few 'Changes that may affect existing builds' listed on the release notes page: http://maven.apache.org/release-notes.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checkstyle plugin - need list of params that can be set
Si_Simon wrote: Where can I find a complete list of parameters that can be set in the configuration section of the Maven2 Checkstyle plugin? This is available on the plugin site: http://maven.apache.org/plugins/maven-checkstyle-plugin/plugin-info.html -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to install and use existed ejbclients without the need to generate
I have existed modules (ejb, ejbclient, ear) from IBM RAD and now I use maven to build and create ejb, ejb-client, ear. For the generation I have used maven-antrun-plugin and the wasDeploy task with websphere jars to generate and create ejb.jar and ejb-client.jar files. these two were copy in target directory of ejb module and than the ejb.jar (ejb-1.0-SNAPSHOT.jar) was installed in local repository, but not ejb-client.jar. In order to use ejb-client as dependency in other projects I have to configurate in the pom like this dependencies dependency groupIdmy.demo/groupId artifactIdejbartifactId version1.2-SNAPSHOT/version typeejb-client/type /dependency dependencies But for now the ejb-client-1.0-SNAPSHOT.jar is not in the local repository and I have obtained the error missing of dependency in the local repository. The question is: how can I install the existed ejb-client and use it without have to use generateClient element? I have set this to false generateClientfalse/generateClient, because I do not use maven-ejb-plugin to generate the ejbclient stubs. Thanks for advance. -- View this message in context: http://www.nabble.com/How-to-install-and-use-existed-ejbclients-without-the-need-to-generate-tf4077306s177.html#a11588905 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
surefire plugin: multihtreaded test execution
Hi All, I've setup my surefire (JUnit) plugin to fork per test. Now I wish to parallelize the tests executions. I see the parallel option but I read it's only for TestNG. Is there a way to have the surefire (JUnit) plugin spawn the jvms in parallel instead of sequentially? thanks in advance for your advices Jerome Thibaud
[m2] How do I specify the target DIR of a resource with the resource
I want to put my resources into /META-INF/* But can't find anything about this in the plugin docs -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com ---
Re: module ordering
Hi, This is a bug in the enforcer plugin. Disabling it from the core-parent pom fixes it. -- Kenney Steve Ebersole wrote: I am having a problem getting multi-module builds to work right. All this stuff is publicly accessible, if someone was willing to take a look and try to help me figure it out. There are a couple of piece of information you'd need: 1) First, you'd need to define the jboss repo in addition to the central repo: repositories repository idjboss/id urlhttp://repository.jboss.com/maven2/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository /repositories pluginRepositories pluginRepository idjboss-plugins/id urlhttp://repository.jboss.com/maven2/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /pluginRepository /pluginRepositories 2) Check out the parent poms and install them locally: a) http://anonsvn.jboss.org/repos/testhibernate/maven-poms/trunk/core-parent/ b) http://anonsvn.jboss.org/repos/testhibernate/maven-poms/trunk/core-manual-parent/ 3) Check out the project: http://anonsvn.jboss.org/repos/testhibernate/core/trunk/ The situation is that I have a root project (./pom.xml) which defines a number of sub-projects via modules. Some of those sub-projects have dependencies on one another. So for example, ./core/pom.xml is depended upon by a number of other modules. Attempts to run 'mvn install' against the root project fail. They fail in a bizarre fashion. The output shows that maven believes (I think) that ./core/pom.xml has a dependency on ./cache-ehcache/pom.xml. It fails because ./cache-ehcache/pom.xml does then in fact have a dependency back to ./core/pom.xml: [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Hibernate Core [INFO] Hibernate Ehcache Integration [INFO] Hibernate JBossCache Integration [INFO] Hibernate JBossCache2.x Integration [INFO] Hibernate OSCache Integration [INFO] Hibernate SwarmCache Integration [INFO] Hibernate C3P0 ConnectionProvider [INFO] Hibernate Proxool ConnectionProvider [INFO] Hibernate JMX Module [INFO] Hibernate Testing [INFO] Hibernate Testsuite [INFO] Hibernate Example [INFO] Hibernate Manual (en-US) [INFO] Hibernate Manual (fr-FR) [INFO] Hibernate Manual (aggregator) [INFO] Hibernate Tutorial [INFO] Hibernate Core - Documentation [INFO] Hibernate Core Aggregator [INFO] --- [INFO] Building Hibernate Core [INFO]task-segment: [install] [INFO] --- [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.hibernate:hibernate-core:jar:3.3.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-c re \ -Dversion=3.3.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.hibernate -DartifactId=hibernate-core -Dversion=3.3.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.hibernate:hibernate-ehcache:jar:3.3.0-SNAPSHOT 2) org.hibernate:hibernate-core:jar:3.3.0-SNAPSHOT -- 1 required artifact is missing. for artifact: org.hibernate:hibernate-ehcache:jar:3.3.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), jboss (http://repository.jboss.com/maven2) But, dependency:analyze shows that core really does not have a dep on ehcache module: [INFO] [dependency:analyze] [INFO] Used declared dependencies: [INFO]commons-collections:commons-collections:jar:3.1:compile [INFO]javax.transaction:jta:jar:1.1:compile [INFO]javassist:javassist:jar:3.4.GA:compile [INFO]javax.security:jaas:jar:1.0.01:provided [INFO]ant:ant:jar:1.6.5:provided [INFO]commons-logging:commons-logging:jar:1.0.4:compile [INFO]javax.security:jacc:jar:1.0:provided [INFO]dom4j:dom4j:jar:1.6.1:compile [INFO]cglib:cglib:jar:2.1_3:compile [INFO]asm:asm-attrs:jar:1.5.3:compile [INFO]antlr:antlr:jar:2.7.6:compile [INFO]
Re: [m2] How do I specify the target DIR of a resource with the resource
Yout your resources in src/main/resources/META-INF/ -- Kenney Mick Knutson wrote: I want to put my resources into /META-INF/* But can't find anything about this in the plugin docs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upgrading from 2.0.4 - 2.0.7?
Hi, If you just _use_ maven 2.0.4, install 2.0.7 and use that. No pom changes required. All modelVersion4.0.0/modelVersion poms currently work with all versions of maven 2.0. -- Kenney Roger Huang (rchuang) wrote: I'm inheriting a project that uses Maven 2.0.4, and want to upgrade to 2.0.7. Can someone please point me information on how I need to modify my existing pom.xml's? I found the changelog for 2.0.7, 2.0.6, and 2.0.5, but it's not clear to me the changes I need to make. http://jira.codehaus.org/browse/MNG?report=com.atlassian.jira.plugin.sys tem.project:changelog-panel thanks, Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checkstyle plugin - need list of params that can be set
Si_Simon wrote: Where can I find a complete list of parameters that can be set in the configuration section of the Maven2 Checkstyle plugin? http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html -- Kenney thanks Si'mon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: upgrading from 2.0.4 - 2.0.7?
This is mentioned in the notes, but you might want to look here too: http://maven.apache.org/plugins/maven-dependency-plugin/examples/preparing-dependencies.html -Original Message- From: Kenney Westerhof [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 7:02 PM To: Maven Users List Subject: Re: upgrading from 2.0.4 - 2.0.7? Hi, If you just _use_ maven 2.0.4, install 2.0.7 and use that. No pom changes required. All modelVersion4.0.0/modelVersion poms currently work with all versions of maven 2.0. -- Kenney Roger Huang (rchuang) wrote: I'm inheriting a project that uses Maven 2.0.4, and want to upgrade to 2.0.7. Can someone please point me information on how I need to modify my existing pom.xml's? I found the changelog for 2.0.7, 2.0.6, and 2.0.5, but it's not clear to me the changes I need to make. http://jira.codehaus.org/browse/MNG?report=com.atlassian.jira.plugin.sys tem.project:changelog-panel thanks, Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: module ordering
Actually it's a core bug caused by enforcer being an aggregator and requiring dependencies. You can simply switch from enforce-once to enforce. See MECLIPSE-11 for more information. -Original Message- From: Kenney Westerhof [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 6:59 PM To: Maven Users List Subject: Re: module ordering Hi, This is a bug in the enforcer plugin. Disabling it from the core-parent pom fixes it. -- Kenney Steve Ebersole wrote: I am having a problem getting multi-module builds to work right. All this stuff is publicly accessible, if someone was willing to take a look and try to help me figure it out. There are a couple of piece of information you'd need: 1) First, you'd need to define the jboss repo in addition to the central repo: repositories repository idjboss/id urlhttp://repository.jboss.com/maven2/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository /repositories pluginRepositories pluginRepository idjboss-plugins/id urlhttp://repository.jboss.com/maven2/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /pluginRepository /pluginRepositories 2) Check out the parent poms and install them locally: a) http://anonsvn.jboss.org/repos/testhibernate/maven-poms/trunk/core-parent/ b) http://anonsvn.jboss.org/repos/testhibernate/maven-poms/trunk/core-manual-parent/ 3) Check out the project: http://anonsvn.jboss.org/repos/testhibernate/core/trunk/ The situation is that I have a root project (./pom.xml) which defines a number of sub-projects via modules. Some of those sub-projects have dependencies on one another. So for example, ./core/pom.xml is depended upon by a number of other modules. Attempts to run 'mvn install' against the root project fail. They fail in a bizarre fashion. The output shows that maven believes (I think) that ./core/pom.xml has a dependency on ./cache-ehcache/pom.xml. It fails because ./cache-ehcache/pom.xml does then in fact have a dependency back to ./core/pom.xml: [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Hibernate Core [INFO] Hibernate Ehcache Integration [INFO] Hibernate JBossCache Integration [INFO] Hibernate JBossCache2.x Integration [INFO] Hibernate OSCache Integration [INFO] Hibernate SwarmCache Integration [INFO] Hibernate C3P0 ConnectionProvider [INFO] Hibernate Proxool ConnectionProvider [INFO] Hibernate JMX Module [INFO] Hibernate Testing [INFO] Hibernate Testsuite [INFO] Hibernate Example [INFO] Hibernate Manual (en-US) [INFO] Hibernate Manual (fr-FR) [INFO] Hibernate Manual (aggregator) [INFO] Hibernate Tutorial [INFO] Hibernate Core - Documentation [INFO] Hibernate Core Aggregator [INFO] --- [INFO] Building Hibernate Core [INFO]task-segment: [install] [INFO] --- [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.hibernate:hibernate-core:jar:3.3.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-c re \ -Dversion=3.3.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.hibernate -DartifactId=hibernate-core -Dversion=3.3.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.hibernate:hibernate-ehcache:jar:3.3.0-SNAPSHOT 2) org.hibernate:hibernate-core:jar:3.3.0-SNAPSHOT -- 1 required artifact is missing. for artifact: org.hibernate:hibernate-ehcache:jar:3.3.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), jboss (http://repository.jboss.com/maven2) But, dependency:analyze shows that core really does not have a dep on ehcache module: [INFO] [dependency:analyze] [INFO] Used declared dependencies: [INFO]
Re: [m2] Can I have a user specific plugin?
Hi, I think you can use profiles in the project's pom instead of at the settings.xml as it allows you to modify the plugins and dependencies of the project while you cannot do that in settings.xml Please see http://maven.apache.org/guides/introduction/introduction-to-profiles.html (Profiles in pom.xml) HTH, Deng Mick Knutson wrote: I want to have one integration user have a custom plugin, yet not the other team member. So, can I add a build plugin dependency into my settings.xmlfor just one user? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]