A module using different compiler cannot find its compiler when compiling thru. the package project
Hi, I have a lot of modules and I have a package project p0 to aggregate them like the following: modulep1/module modulep2/module modulep1/module All the modules except p2 use the default complier. p2 uses eclipse compiler. I find if I just compile p2, it works well. When I try to compile all these modules thru. the package p0, an error like the following occurs: [INFO] [compiler:compile {execution: default-compile}] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] No such compiler 'eclipse'. How do I solve this problem? Rice
maven-site-plugin 3.0 deploy not working
Hi, I tried to update my projects to use the 3.0 version of the org.apache.maven.plugins:maven-site-plugin but now site deploy isn't working anymore. As it is often useful with Maven I tried to isolate the issue and could reproduce it with the simplest possible project, so it seems like I must be doing something wrong, can someone please tell me what? I use Maven 2.2.1 on Windows. I have this example project with 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 groupIdcom.example.maven/groupId artifactIdtesttesttest/artifactId packagingjar/packaging version1.0/version nameMaven site 3 test/name distributionManagement site idexample-web/id urlscp://www.example.com/srv/www/htdocs/mavensites/${project.artifactId}//url /site /distributionManagement build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.6/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version3.0/version /plugin /plugins /pluginManagement /build /project I have added the following entry under servers ~/.m2/settings.xml: server idexample-web/id usernameexampleuser/username privateKeyc:\Programme\putty\id_rsa/privateKey filePermissions644/filePermissions directoryPermissions755/directoryPermissions configuration/ /server When I run mvn site the site is generated with the default project-info-reports, ok. Now I try to deploy the site with mvn site:deploy I get the following error (this is also happening with my project which uses real servers and users): [FATAL ERROR] org.apache.maven.plugins.site.SiteDeployMojo#execute() caused a linkage error (java.lang.NoSuchMethodError) and may be out-of-date. Chec k the realms: [FATAL ERROR] Plugin realm = app0.child-container[org.apache.maven.plugins:maven-site-plugin:3.0] urls[0] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/plugins/maven-site-plugin/3.0/maven-site-plugin-3.0.jar urls[1] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/reporting/maven-reporting-exec/1.0.1/maven-reporting-exec-1.0.1.jar urls[2] = file:/d:/chrism_iii/mavenrepository/org/codehaus/plexus/plexus-utils/1.5.10/plexus-utils-1.5.10.jar urls[3] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/maven-settings-builder/3.0/maven-settings-builder-3.0.jar urls[4] = file:/d:/chrism_iii/mavenrepository/org/apache/velocity/velocity/1.5/velocity-1.5.jar urls[5] = file:/d:/chrism_iii/mavenrepository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar urls[6] = file:/d:/chrism_iii/mavenrepository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar urls[7] = file:/d:/chrism_iii/mavenrepository/oro/oro/2.0.8/oro-2.0.8.jar urls[8] = file:/d:/chrism_iii/mavenrepository/velocity/velocity/1.5/velocity-1.5.jar urls[9] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/doxia/doxia-core/1.2/doxia-core-1.2.jar urls[10] = file:/d:/chrism_iii/mavenrepository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar urls[11] = file:/d:/chrism_iii/mavenrepository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar urls[12] = file:/d:/chrism_iii/mavenrepository/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.jar urls[13] = file:/d:/chrism_iii/mavenrepository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar urls[14] = file:/d:/chrism_iii/mavenrepository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar urls[15] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/doxia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.jar urls[16] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/doxia/doxia-module-apt/1.2/doxia-module-apt-1.2.jar urls[17] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/doxia/doxia-module-xdoc/1.2/doxia-module-xdoc-1.2.jar urls[18] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/doxia/doxia-module-fml/1.2/doxia-module-fml-1.2.jar urls[19] = file:/d:/chrism_iii/mavenrepository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar urls[20] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/doxia/doxia-decoration-model/1.2/doxia-decoration-model-1.2.jar urls[21] =
Maven sql uograde plugin information required
Hi, I want to execute a sql file, if its revision number is updated in the svn i.e. if there is any modification in the file. Can you please suggest a maven plugin that will fulfill this requirement. Any help is appreciated. -- View this message in context: http://maven.40175.n5.nabble.com/Maven-sql-uograde-plugin-information-required-tp4681584p4681584.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Need help
Hello allo, I have this following case: in my first project project1 I have a dependency project2. In this following project2 (isn't jar type but .zip type), I have a project2.wsdl, I wanted to copy in the first project project1 at the root jar directory, example: project2: --- /META-INF /Classes /project2.wsdl Do you have an idea, how can I make this ? Thank you Best regards, Adrien Ruffié -- Adrien Ruffié - Ingénieur de recherches et développements - Scrum Team member - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Need help
hi Adrien! You could try the maven-depedency-plugin dependency:unpack goal [1]. LieGrue, strub [1] http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html --- On Tue, 8/9/11, Adrien Ruffie - Petals Link adrien.ruf...@petalslink.com wrote: From: Adrien Ruffie - Petals Link adrien.ruf...@petalslink.com Subject: Need help To: users@maven.apache.org Date: Tuesday, August 9, 2011, 9:57 AM Hello allo, I have this following case: in my first project project1 I have a dependency project2. In this following project2 (isn't jar type but .zip type), I have a project2.wsdl, I wanted to copy in the first project project1 at the root jar directory, example: project2: --- /META-INF /Classes /project2.wsdl Do you have an idea, how can I make this ? Thank you Best regards, Adrien Ruffié -- Adrien Ruffié - Ingénieur de recherches et développements - Scrum Team member - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Need help in uploading maven archetypes to nexus repo and in maven release
Hervé BOUTEMY, Thanks for the information. I liked Maven release plugin it made a copy of the project in tags folder as well deployed archetype to nexus repo. I have another question:- i call a plugin(maven module with a mojo) using mvn groupid:artifactid:version:goal can i have it in nexus repo? If i can how can i call it from the nexus repo? -- View this message in context: http://maven.40175.n5.nabble.com/Need-help-in-uploading-maven-archetypes-to-nexus-repo-and-in-maven-release-tp4674573p4682012.html Sent from the Maven - Users mailing list archive at Nabble.com.
Re: Need help in uploading maven archetypes to nexus repo and in maven release
Hervé BOUTEMY, Thanks for the information. I liked Maven release plugin it made a copy of the project in tags folder as well deployed archetype to nexus repo :) I have another question:- i call a plugin(maven module with a mojo) using command mvn groupid:artifactid:version:goal can i have it in nexus repo? If i can how can i call it from the nexus repo? Regards -Goutham -- View this message in context: http://maven.40175.n5.nabble.com/Need-help-in-uploading-maven-archetypes-to-nexus-repo-and-in-maven-release-tp4674573p4682017.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Where to hook into to install dependencies prior to build
On 09/08/2011 1:19 AM, Jason Pyeron wrote: I do not know if I posted enough detail, if there are details missing, please le me know and I will post it. I know this is not how it should be done, but I have external requirements at the moment. The question is how could maven be configured to pull in the most recent non-maven managed dependency as part of a single build command: mvn package? You can deploy non-maven artifacts to your Maven Repo (Nexus or other) and then use them as you want. In Nexus this is done though the upload command. Ron Note the failure here: $ mvn compile [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building fepl 5010 Spring-WS Application 1.0-SNAPSHOT [INFO] [WARNING] The POM for com.carefirst.fep.local.commons:fepl-commons:jar:1.0-SNAPSHOT is missing, no dependency information available [WARNING] The POM for com.carefirst.fep.local.datatier:fepl-orm-persistence-defaultconfig:jar:1.0-SNAP SHOT is missing, no dependency information available [WARNING] The POM for com.carefirst.fep.local.datatier:fepl-orm-core:jar:1.0-SNAPSHOT is missing, no dependency information available [WARNING] The POM for com.carefirst.fep.local.datatier:fepl-orm-claim:jar:1.0-SNAPSHOT is missing, no dependency information available [WARNING] The POM for com.carefirst.fep.local.datatier:fepl-orm-refdata:jar:1.0-SNAPSHOT is missing, no dependency information available [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.062s [INFO] Finished at: Tue Aug 09 01:12:26 EDT 2011 [INFO] Final Memory: 5M/121M [INFO] [ERROR] Failed to execute goal on project fepl5010webServices: Could not resolve dependencies for project com.carefirst.fep.local.webservices:fepl5010webServices:war:1.0-SNAPSHOT: The following artifacts could not be resolved: com.carefirst.fep.local.commons:fepl-commons:jar:1.0-SNAPSHOT, com.carefirst.fep.local.datatier:fepl-orm-persistence-defaultconfig:jar:1.0-SNAP SHOT, com.carefirst.fep.local.datatier:fepl-orm-core:jar:1.0-SNAPSHOT, com.carefirst.fep.local.datatier:fepl-orm-claim:jar:1.0-SNAPSHOT, com.carefirst.fep.local.datatier:fepl-orm-refdata:jar:1.0-SNAPSHOT: Could not find artifact com.carefirst.fep.local.commons:fepl-commons:jar:1.0-SNAPSHOT - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException But, run the same only upto the validate phase... $ mvn validate [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building fepl 5010 Spring-WS Application 1.0-SNAPSHOT [INFO] [INFO] [INFO] --- maven-install-plugin:2.3.1:install-file (fepl-commons.jar) @ fepl5010webServices --- [INFO] Installing C:\Documents and Settings\All Users\workspace\fepl_5010_web_services\..\build\fepl-commons.jar to C:\Documents and Settings\All Users\workspace\fepl_5010_web_services\.\lib\mvn\com\carefirst\fep\local\commons \fepl-commons\1.0-SNAPSHOT\fepl-commons-1.0-SNAPSHOT.jar [INFO] Installing C:\cygwin\tmp\mvninstall4706321913072696756.pom to C:\Documents and Settings\All Users\workspace\fepl_5010_web_services\.\lib\mvn\com\carefirst\fep\local\commons \fepl-commons\1.0-SNAPSHOT\fepl-commons-1.0-SNAPSHOT.pom [INFO] [INFO] --- maven-install-plugin:2.3.1:install-file (fepl-orm-persistence-defaultconfig.jar) @ fepl5010webServices --- [INFO] Installing C:\Documents and Settings\All Users\workspace\fepl_5010_web_services\..\build\fepl-orm-persistence-defaultconf ig.jar to C:\Documents and Settings\All Users\workspace\fepl_5010_web_services\.\lib\mvn\com\carefirst\fep\local\datatie r\fepl-orm-persistence-defaultconfig\1.0-SNAPSHOT\fepl-orm-persistence-defaultco nfig-1.0-SNAPSHOT.jar [INFO] Installing C:\cygwin\tmp\mvninstall4508066304432652487.pom to C:\Documents and Settings\All Users\workspace\fepl_5010_web_services\.\lib\mvn\com\carefirst\fep\local\datatie r\fepl-orm-persistence-defaultconfig\1.0-SNAPSHOT\fepl-orm-persistence-defaultco nfig-1.0-SNAPSHOT.pom [INFO] [INFO] --- maven-install-plugin:2.3.1:install-file (fepl-orm-core.jar) @ fepl5010webServices --- [INFO] Installing C:\Documents and Settings\All Users\workspace\fepl_5010_web_services\..\build\fepl-orm-core.jar to C:\Documents and Settings\All
RE: Trouble setting Boolean property in custom Mojo
Hi Robert, I really appreciate your help with this. What you suggested worked perfectly. All the best, - Dave -- View this message in context: http://maven.40175.n5.nabble.com/Trouble-setting-Boolean-property-in-custom-Mojo-tp4677954p4682047.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: When is the best phase to generate javadocs?
Yes, you *could* rely on your IDE to show you the Javadoc *for the class or method you're currently focused on*. But then you'd miss seeing that you forgot to write the overview, you forgot to write most of the package comments, or that 80% of your classes and methods have either no topic sentence, a useless one, or one that is bizarrely formatted and unreadable. Or the amount of material that doesn't really say anything which would help someone not already intimately familiar with the code. Documentation should be generated and reviewed regularly. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Asking whether markets are efficient is like asking whether people are smart. pgptFSx7Kd4SD.pgp Description: PGP signature
Re: Maven sql uograde plugin information required
I want to execute a sql file, if its revision number is updated in the svn i.e. if there is any modification in the file. Can you please suggest a maven plugin that will fulfill this requirement. What you are describing is not really part of Maven's area of responsibility. Instead, it sounds like you are looking for a Continuous Integration server and a SQL-exec type plugin. Or you could even make this part of your SVN server via a post-commit hook. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: When is the best phase to generate javadocs?
Yes exactly! I do have my Eclipse setup to display the javadoc when I hover my cursor over a class name or method name - I have been doing that for years. It is great! However, this new project I have built is the first time anyone on my team has actually written any overview and package comments. In the past we have relied too much (IMHO) on external documentation that is not as easy to find or access. I am trying develop a new culture where we keep the documentation closer to the source code where people work routinely. Some day I need to find some better tools for creating HTML that just the Eclipse HTML editors. I am very good at writing raw HTML, but my productivity is not very good doing things in such a manual way. Eventually I want to learn how better access the javadoc some people deploy with their Maven artifacts as it is still the case I import something from Maven, but cannot see the javadocs from Eclipse, yet I know they are in the distribution. Cheers, Eric On Tue, Aug 9, 2011 at 6:47 AM, Mark H. Wood mw...@iupui.edu wrote: Yes, you *could* rely on your IDE to show you the Javadoc *for the class or method you're currently focused on*. But then you'd miss seeing that you forgot to write the overview, you forgot to write most of the package comments, or that 80% of your classes and methods have either no topic sentence, a useless one, or one that is bizarrely formatted and unreadable. Or the amount of material that doesn't really say anything which would help someone not already intimately familiar with the code. Documentation should be generated and reviewed regularly. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Asking whether markets are efficient is like asking whether people are smart.
Re: When is the best phase to generate javadocs?
No, I don't miss that... Again, properly configuring the IDE will give you all that as well. For example, turn on the setting to flag missing or malformed JavaDoc as warning or even error if your group takes it very seriously. Well, if I didn't have a more advanced IDE, I would miss that... ;-) Absolutely, docs should be generated and reviewed regularly along with the other reports from the nightly build (static analysis reports should be reviewed more frequently). Running JavaDoc every hour wouldn't have ever benefited my projects, but YMMV! A nightly build with JavaDoc, JXR, multiple static analysis reports (and smaller but important rule sets that will fail the build) are one of the first things I setup on my projects (as a consultant, I regularly do them). As well as using them real-time with IDE plugins. On Tue, Aug 9, 2011 at 8:47 AM, Mark H. Wood mw...@iupui.edu wrote: Yes, you *could* rely on your IDE to show you the Javadoc *for the class or method you're currently focused on*. But then you'd miss seeing that you forgot to write the overview, you forgot to write most of the package comments, or that 80% of your classes and methods have either no topic sentence, a useless one, or one that is bizarrely formatted and unreadable. Or the amount of material that doesn't really say anything which would help someone not already intimately familiar with the code. Documentation should be generated and reviewed regularly. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Asking whether markets are efficient is like asking whether people are smart.
Re: When is the best phase to generate javadocs?
Using m2eclipse and turning on its feature to automatically download dependency source and JavaDoc, it will automatically configure what you seek... :-) On Tue, Aug 9, 2011 at 9:18 AM, Eric Kolotyluk eric.koloty...@gmail.comwrote: Yes exactly! I do have my Eclipse setup to display the javadoc when I hover my cursor over a class name or method name - I have been doing that for years. It is great! However, this new project I have built is the first time anyone on my team has actually written any overview and package comments. In the past we have relied too much (IMHO) on external documentation that is not as easy to find or access. I am trying develop a new culture where we keep the documentation closer to the source code where people work routinely. Some day I need to find some better tools for creating HTML that just the Eclipse HTML editors. I am very good at writing raw HTML, but my productivity is not very good doing things in such a manual way. Eventually I want to learn how better access the javadoc some people deploy with their Maven artifacts as it is still the case I import something from Maven, but cannot see the javadocs from Eclipse, yet I know they are in the distribution. Cheers, Eric On Tue, Aug 9, 2011 at 6:47 AM, Mark H. Wood mw...@iupui.edu wrote: Yes, you *could* rely on your IDE to show you the Javadoc *for the class or method you're currently focused on*. But then you'd miss seeing that you forgot to write the overview, you forgot to write most of the package comments, or that 80% of your classes and methods have either no topic sentence, a useless one, or one that is bizarrely formatted and unreadable. Or the amount of material that doesn't really say anything which would help someone not already intimately familiar with the code. Documentation should be generated and reviewed regularly. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Asking whether markets are efficient is like asking whether people are smart.
Re: A module using different compiler cannot find its compiler when compiling thru. the package project
All the modules except p2 use the default complier. p2 uses eclipse compiler. I find if I just compile p2, it works well. When I try to compile [INFO] No such compiler 'eclipse'. What version of Maven are you using? Most likely this is a manifestation of the first declaration of a plugin wins problem in Maven 2. Give this a try in Maven3 and let us know if it works or still has problems. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Need help in uploading maven archetypes to nexus repo and in maven release
i call a plugin(maven module with a mojo) using mvn groupid:artifactid:version:goal can i have it in nexus repo? If i can how can i call it from the nexus repo? Yes, just deploy it like any other artifact to Nexus. The packaging is maven-plugin. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Need help in uploading maven archetypes to nexus repo and in maven release
Hi Wayne Fay To call a archetype from nexus repo we use -DarchetypeCatalog= http://nexusrepo/archetype-catalog.xml but what is the maven command so that it directs to the specified nexus repo i want. Thanks in advance On Tue, Aug 9, 2011 at 8:31 PM, Wayne Fay [via Maven] ml-node+4682403-2016591529-220...@n5.nabble.com wrote: i call a plugin(maven module with a mojo) using mvn groupid:artifactid:version:goal can i have it in nexus repo? If i can how can i call it from the nexus repo? Yes, just deploy it like any other artifact to Nexus. The packaging is maven-plugin. Wayne - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4682403i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4682403i=1 -- If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/Need-help-in-uploading-maven-archetypes-to-nexus-repo-and-in-maven-release-tp4674573p4682403.html To unsubscribe from Need help in uploading maven archetypes to nexus repo and in maven release, click herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4674573code=Z291dGhhbS52YXNpcmVkZGlAZ21haWwuY29tfDQ2NzQ1NzN8MTY3OTUzMTU3NQ==. -- View this message in context: http://maven.40175.n5.nabble.com/Need-help-in-uploading-maven-archetypes-to-nexus-repo-and-in-maven-release-tp4674573p4682461.html Sent from the Maven - Users mailing list archive at Nabble.com.
Re: Problem configuring PMD and CPD differently
Hello, I've been working with Oskar, trying to figure out how to go about configuring PMD and CPD at the same time, but with different configurations. After investigating things further (via the internals of the maven-pmd-plugin) it looks like the check goal invokes the pmd goal through some built in Maven functionality that allows goals to invoke other goals. However, I don't see any way to configure the goal that's being invoked, for that particular execution. ie. when check invokes pmd, I can configure the check goal, but not the pmd goal, unless I put the configuration outside the execution, which causes it to affect other executions. Is there something we're missing about being able to configure these chained goals? Thanks, Derek On Mon, Aug 8, 2011 at 9:23 AM, Oskar Separovic oskar.separo...@elasticpath.com wrote: Hello, We're using the PMD plugin to run both PMD and CPD on our codebase, however, we've come across a problem that has led us to disable CPD as a workaround. Specifically, we want to run PMD on all our code, but run CPD on only production code. The includeTests configuration tag appears to allow us to do this, however, when running both PMD and CPD, there doesn't seem to be any way to configure them differently. The problem seems to be that when you add configuration tags within an execution, the tags are specific to the goal specified, and have no function if the goal doesn't support them, even if that goal invokes another goal that does support those configuration tags. For the PMD plugin this means that when the check/cpd-check goals invoke the pmd/cpd goals, the pmd/cpd goals cannot be configured within the execution. If another execution configures the pmd/cpd goals, then the goals will run twice, once with the specified configuration and once with the default configuration. The only way to configure the pmd/cpd goals when invoked from the check/cpd-check goals is to add them to a configuration outside the execution. The problem with this is that the configuration outside the executions applies to both the pmd and cpd goals, so the pmd and cpd goals cannot be configured differently (for example running pmd on tests but not cpd). The best suggestion we have come up with to fix this is for the check/cpd-check goals to support all the configuration tags of the pmd and cpd goals respectively, and somehow pass them to the pmd and cpd goals when the check goals invoke them. For example configuring the check goal like this currently does not work, but ideally it should pass the rulesets configuration to the pmd goal that is invoked: execution idcompliance-pmd/id phaseverify/phase goals goalcheck/goal /goals configuration rulesets rulesetrules/pmd-rules.xml/ruleset /rulesets /configuration /execution Does anyone have comments on the feasibility of implementing such a solution? [http://elasticpath.com/images/ep.gif] Oskar Separovic, Release Engineer Phone: 604.408.8078 ext. 744 Email: oskar.separo...@elasticpath.commailto: oskar.separo...@elasticpath.com Elastic Path Software, Inc. Web elasticpath.com http://www.elasticpath.com/ | Blog getelastic.com http://www.getelastic.com/ | Twitter twitter.com/elasticpath http://www.twitter.com/elasticpath Careers elasticpath.com/jobshttp://www.elasticpath.com/jobs | Community grep.elasticpath.com http://grep.elasticpath.com/ Confidentiality Notice: This message is intended only for the use of the designated addressee(s), and may contain information that is privileged, confidential and exempt from disclosure. Any unauthorized viewing, disclosure, copying, distribution or use of information contained in this e-mail is prohibited and may be unlawful. If you received this e-mail in error, please reply to the sender immediately to inform us you are not the intended recipient and delete the email from your computer system.
Re: One Maven Framework.property file for projects
+1. Quite obvious: design a parent pom which every projects will inherit. Another possibility is using the remote-resources plugin. Cheers
Re: Can I invoke package on Eclipse auto-build?
There seem to be many possibilities but I guess your question would be better posted on the dedicated M2e ml as your problem seems more M2e specificly related than pure maven-ish. (but ftr have a look in your project properties, you can specify goals to be run under some circumstances). Cheers Le 8 août 2011 12:22, Hugi Thordarson h...@karlmenn.is a écrit : Hi all. I'm using Eclipse 3.7 to develop Web Applications (jsp servlets) using Maven (m2eclipse). Currently, when I make modifications to a class or resource in Eclipse, I have to manually invoke mvn package on my project to get the updated resources/jars copied to the target directory (where the application is running, from an external Tomcat). Anyone know if I can make the Maven auto builder in Eclipse automatically update the web application residing in my target folder, so I can skip the manual step? (and totally enjoy the autoloading of modified classes JRebel is providing) (or if someone has a better idea for a workflow—essentially, I just want to code, and not have to do any manual work for each modification. Cheers, - hugi - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem configuring PMD and CPD differently
I cannot test it right now, but have you tried setting two different executions for the plugin. By the way check seems to only concern pmd, and cpd-check cpd. http://maven.apache.org/plugins/maven-pmd-plugin/examples/violationChecking.html My 2 cents. 2011/8/9 Derek Lewis de...@lewisd.com Hello, I've been working with Oskar, trying to figure out how to go about configuring PMD and CPD at the same time, but with different configurations. After investigating things further (via the internals of the maven-pmd-plugin) it looks like the check goal invokes the pmd goal through some built in Maven functionality that allows goals to invoke other goals. However, I don't see any way to configure the goal that's being invoked, for that particular execution. ie. when check invokes pmd, I can configure the check goal, but not the pmd goal, unless I put the configuration outside the execution, which causes it to affect other executions. Is there something we're missing about being able to configure these chained goals? Thanks, Derek On Mon, Aug 8, 2011 at 9:23 AM, Oskar Separovic oskar.separo...@elasticpath.com wrote: Hello, We're using the PMD plugin to run both PMD and CPD on our codebase, however, we've come across a problem that has led us to disable CPD as a workaround. Specifically, we want to run PMD on all our code, but run CPD on only production code. The includeTests configuration tag appears to allow us to do this, however, when running both PMD and CPD, there doesn't seem to be any way to configure them differently. The problem seems to be that when you add configuration tags within an execution, the tags are specific to the goal specified, and have no function if the goal doesn't support them, even if that goal invokes another goal that does support those configuration tags. For the PMD plugin this means that when the check/cpd-check goals invoke the pmd/cpd goals, the pmd/cpd goals cannot be configured within the execution. If another execution configures the pmd/cpd goals, then the goals will run twice, once with the specified configuration and once with the default configuration. The only way to configure the pmd/cpd goals when invoked from the check/cpd-check goals is to add them to a configuration outside the execution. The problem with this is that the configuration outside the executions applies to both the pmd and cpd goals, so the pmd and cpd goals cannot be configured differently (for example running pmd on tests but not cpd). The best suggestion we have come up with to fix this is for the check/cpd-check goals to support all the configuration tags of the pmd and cpd goals respectively, and somehow pass them to the pmd and cpd goals when the check goals invoke them. For example configuring the check goal like this currently does not work, but ideally it should pass the rulesets configuration to the pmd goal that is invoked: execution idcompliance-pmd/id phaseverify/phase goals goalcheck/goal /goals configuration rulesets rulesetrules/pmd-rules.xml/ruleset /rulesets /configuration /execution Does anyone have comments on the feasibility of implementing such a solution? [http://elasticpath.com/images/ep.gif] Oskar Separovic, Release Engineer Phone: 604.408.8078 ext. 744 Email: oskar.separo...@elasticpath.commailto: oskar.separo...@elasticpath.com Elastic Path Software, Inc. Web elasticpath.com http://www.elasticpath.com/ | Blog getelastic.com http://www.getelastic.com/ | Twitter twitter.com/elasticpath http://www.twitter.com/elasticpath Careers elasticpath.com/jobshttp://www.elasticpath.com/jobs | Community grep.elasticpath.com http://grep.elasticpath.com/ Confidentiality Notice: This message is intended only for the use of the designated addressee(s), and may contain information that is privileged, confidential and exempt from disclosure. Any unauthorized viewing, disclosure, copying, distribution or use of information contained in this e-mail is prohibited and may be unlawful. If you received this e-mail in error, please reply to the sender immediately to inform us you are not the intended recipient and delete the email from your computer system. -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: Problem configuring PMD and CPD differently
Hello, Yes, I've tried configuring multiple executions, but we are still unable to configure PMD and CPD differently, specifically with regards to the includeTests configuration. I've logged an issue, but there has been no response: https://jira.codehaus.org/browse/MPMD-132 With multiple executions configured something like this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.5/version executions execution idcompliance-pmd/id phaseverify/phase goals goalcheck/goal !-- invokes 'pmd' goal -- /goals configuration includeTeststrue/includeTests /configuration /execution execution idcompliance-cpd/id phaseverify/phase goals goalcpd-check/goal !-- invokes 'cpd' goal -- /goals configuration includeTestsfalse/includeTests /configuration /execution /executions /plugin When the check goal invokes the pmd goal, and when the cpd-check goal invokes cpd, the includeTests configuration is not picked up by the pmd and cpd goals, so the default (or whatever is in a configuration block outside of the executions) is what takes effect. This means I can't configure PMD and CPD to do different things. Running the above POM with mvn -X verify shows: [DEBUG] --- init fork of com.example:module:1.0-SNAPSHOT for org.apache.maven.plugins:maven-pmd-plugin:2.5:check (compliance-pmd) --- [DEBUG] Dependencies (collect): [] [DEBUG] Dependencies (resolve): [] [DEBUG] --- [DEBUG] Goal: org.apache.maven.plugins:maven-pmd-plugin:2.5:pmd (pmd) [DEBUG] Style: Regular [DEBUG] Configuration: ?xml version=1.0 encoding=UTF-8? configuration aggregate default-value=false${aggregate}/aggregate compileSourceRoots${project.compileSourceRoots}/compileSourceRoots format default-value=xml${format}/format includeTests default-value=false/ ... Even though I have includeTeststrue/includeTests in the execution configuration for the check goal, it's not picked up when the check goal invokes the pmd goal. On Tue, Aug 9, 2011 at 11:32 AM, Baptiste MATHUS m...@batmat.net wrote: I cannot test it right now, but have you tried setting two different executions for the plugin. By the way check seems to only concern pmd, and cpd-check cpd. http://maven.apache.org/plugins/maven-pmd-plugin/examples/violationChecking.html My 2 cents. 2011/8/9 Derek Lewis de...@lewisd.com Hello, I've been working with Oskar, trying to figure out how to go about configuring PMD and CPD at the same time, but with different configurations. After investigating things further (via the internals of the maven-pmd-plugin) it looks like the check goal invokes the pmd goal through some built in Maven functionality that allows goals to invoke other goals. However, I don't see any way to configure the goal that's being invoked, for that particular execution. ie. when check invokes pmd, I can configure the check goal, but not the pmd goal, unless I put the configuration outside the execution, which causes it to affect other executions. Is there something we're missing about being able to configure these chained goals? Thanks, Derek On Mon, Aug 8, 2011 at 9:23 AM, Oskar Separovic oskar.separo...@elasticpath.com wrote: Hello, We're using the PMD plugin to run both PMD and CPD on our codebase, however, we've come across a problem that has led us to disable CPD as a workaround. Specifically, we want to run PMD on all our code, but run CPD on only production code. The includeTests configuration tag appears to allow us to do this, however, when running both PMD and CPD, there doesn't seem to be any way to configure them differently. The problem seems to be that when you add configuration tags within an execution, the tags are specific to the goal specified, and have no function if the goal doesn't support them, even if that goal invokes another goal that does support those configuration tags. For the PMD plugin this means that when the check/cpd-check goals invoke the pmd/cpd goals, the pmd/cpd goals cannot be configured within the execution. If another execution configures the pmd/cpd goals, then the goals will run twice, once with the specified configuration and once with the default configuration. The only way to configure the pmd/cpd goals when invoked from the check/cpd-check goals is to add them to a configuration outside the execution. The problem with this is that the configuration outside the executions applies to both the pmd and cpd goals, so the pmd and cpd goals cannot be configured differently (for example
Re: maven-site-plugin 3.0 deploy not working
Hi Please open an issue in JIRA for this and attach your pom.xml, settings.xml and a complete build log running mvn with the -X flag on the command line. https://jira.codehaus.org/browse/MSITE On 2011-08-09 12:43, Christian Migowski wrote: Hi, I tried to update my projects to use the 3.0 version of the org.apache.maven.plugins:maven-site-plugin but now site deploy isn't working anymore. As it is often useful with Maven I tried to isolate the issue and could reproduce it with the simplest possible project, so it seems like I must be doing something wrong, can someone please tell me what? I use Maven 2.2.1 on Windows. I have this example project with 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 groupIdcom.example.maven/groupId artifactIdtesttesttest/artifactId packagingjar/packaging version1.0/version nameMaven site 3 test/name distributionManagement site idexample-web/id urlscp://www.example.com/srv/www/htdocs/mavensites/${project.artifactId}//url /site /distributionManagement build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.6/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version3.0/version /plugin /plugins /pluginManagement /build /project I have added the following entry under servers ~/.m2/settings.xml: server idexample-web/id usernameexampleuser/username privateKeyc:\Programme\putty\id_rsa/privateKey filePermissions644/filePermissions directoryPermissions755/directoryPermissions configuration/ /server When I run mvn site the site is generated with the default project-info-reports, ok. Now I try to deploy the site with mvn site:deploy I get the following error (this is also happening with my project which uses real servers and users): [FATAL ERROR] org.apache.maven.plugins.site.SiteDeployMojo#execute() caused a linkage error (java.lang.NoSuchMethodError) and may be out-of-date. Chec k the realms: [FATAL ERROR] Plugin realm = app0.child-container[org.apache.maven.plugins:maven-site-plugin:3.0] urls[0] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/plugins/maven-site-plugin/3.0/maven-site-plugin-3.0.jar urls[1] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/reporting/maven-reporting-exec/1.0.1/maven-reporting-exec-1.0.1.jar urls[2] = file:/d:/chrism_iii/mavenrepository/org/codehaus/plexus/plexus-utils/1.5.10/plexus-utils-1.5.10.jar urls[3] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/maven-settings-builder/3.0/maven-settings-builder-3.0.jar urls[4] = file:/d:/chrism_iii/mavenrepository/org/apache/velocity/velocity/1.5/velocity-1.5.jar urls[5] = file:/d:/chrism_iii/mavenrepository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar urls[6] = file:/d:/chrism_iii/mavenrepository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar urls[7] = file:/d:/chrism_iii/mavenrepository/oro/oro/2.0.8/oro-2.0.8.jar urls[8] = file:/d:/chrism_iii/mavenrepository/velocity/velocity/1.5/velocity-1.5.jar urls[9] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/doxia/doxia-core/1.2/doxia-core-1.2.jar urls[10] = file:/d:/chrism_iii/mavenrepository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar urls[11] = file:/d:/chrism_iii/mavenrepository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar urls[12] = file:/d:/chrism_iii/mavenrepository/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.jar urls[13] = file:/d:/chrism_iii/mavenrepository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar urls[14] = file:/d:/chrism_iii/mavenrepository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar urls[15] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/doxia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.jar urls[16] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/doxia/doxia-module-apt/1.2/doxia-module-apt-1.2.jar urls[17] = file:/d:/chrism_iii/mavenrepository/org/apache/maven/doxia/doxia-module-xdoc/1.2/doxia-module-xdoc-1.2.jar urls[18] =
Re: A module using different compiler cannot find its compiler when compiling thru. the package project
On Wed, Aug 10, 2011 at 12:24 AM, Wayne Fay wayne...@gmail.com wrote: All the modules except p2 use the default complier. p2 uses eclipse compiler. I find if I just compile p2, it works well. When I try to compile [INFO] No such compiler 'eclipse'. What version of Maven are you using? Most likely this is a manifestation of the first declaration of a plugin wins problem in Maven 2. Give this a try in Maven3 and let us know if it works or still has problems. Also, run mvn -X install in both scenarios and compare the large quantity of information. You want to focus on the configuration settings for compiler:compile. mvn help:effective-pom may also be useful. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] DBUpgade Maven Plugin 1.0-beta-1 release
Hi, The Mojo team is pleased to announce the release of the DBUpgrade Maven Plugin version 1.0-beta-1 Site : http://mojo.codehaus.org/dbupgade-maven-plugin/ To get this update, simply specify the version in your project's plugin configuration: plugin groupIdorg.codehaus.mojo/groupId artifactIddbupgrade-maven-plugin/artifactId version1.0-beta-1/version /plugin This plugin also has a separate java component ( library) that I allow you to hook directly into your app to perform your incremental database upgrade What incremental DB upgrade mechanism are you using? Feedbacks are welcomed. Have Fun, -- The Mojo team. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANN] DBUpgade Maven Plugin 1.0-beta-1 release
Hi, Dan Tran wrote: Site : http://mojo.codehaus.org/dbupgade-maven-plugin/ The given link is not correct: The following seemed to be the correct one: http://mojo.codehaus.org/dbupgrade/dbupgrade-maven-plugin/ Kind regards Karl Heinz Marbaise - Kind regards Karl Heinz Marbaise http://www.soebes.de http://www.skmwiki.de http://supose.org/wiki/supose -- View this message in context: http://maven.40175.n5.nabble.com/ANN-DBUpgade-Maven-Plugin-1-0-beta-1-release-tp4684432p4684705.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org