configure maven with IntellJ Idea
Hi, I am trying to configure Maven with Intellj Idea in POM file but looks like POM file which I have created has something missing in that. When I do *mvn clean *it is showing me build successful, but when I am giving command like* mvn compile/mvn package* in that case it is creating an empty jar file. In classes directory also it doesn't contain any files. ** My source folder is in*D:\ApgarSVN\development\Components\Internal\common-1.6.0 * this directory* *with* src* name. Enclosed POM file for your reference. Thanks. ** ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion groupIdcom.apelon/groupId artifactIdcommon-1.6.0/artifactId packagingjar/packaging version1.0-SNAPSHOT/version dependencies dependency groupIdlib/groupId artifactIdlib/artifactId version3.8.1/version /dependency /dependencies build sourceDirectorysrc/com/apelon/sourceDirectory plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-idea-plugin/artifactId version2.2/version /plugin !-- To use the plugin goals in your POM or parent POM -- /plugins /build /project - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: configure maven with IntellJ Idea
you should have your java files in ./src/main/java in order for anything to be in the ./target/*.jar you are creating. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Sat, Feb 7, 2009 at 3:36 PM, Poonam Gyanchandani poonamvg2...@gmail.comwrote: Hi, I am trying to configure Maven with Intellj Idea in POM file but looks like POM file which I have created has something missing in that. When I do *mvn clean *it is showing me build successful, but when I am giving command like* mvn compile/mvn package* in that case it is creating an empty jar file. In classes directory also it doesn't contain any files. ** My source folder is in*D:\ApgarSVN\development\Components\Internal\common-1.6.0 * this directory* *with* src* name. Enclosed POM file for your reference. Thanks. ** - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error: 'null' for project unknown
Hello Maven gurus, I'm wondering if the issue I described below never occured before?! Does anyone have a hint for me how to solve that issue? Thanks Michael Hüttermann schrieb: Hello, I'm doing a mvn clean inside a project and get the message: Fatal Error Error building POM (may not be this project's POM) Project ID: unknown Reason: Failed to build model from file: C:\...\pom.xml. Error: 'null' for project unknown The Trace delivers an error at org.apache.DefaultMaven.getProjects(DefaultMaven.java:378) Strange is that on one machine the project can be cleaned as expected and on the other the problem above arises. The system environments are the same, i.e. other projects can be build without any problems. What can be the problem? When does the described error pop up normally? Any experiences? Thank you! Best regards Michael - 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
How to rerun failed TestNG tests?
Hey, How to rerun failed TestNG tests in Maven? For Ant, we have this target: target name=failed-tests depends=compiletests description=Run TestNG unit tests testng classpathref=runtests.classpath outputDir=${test.reports} verbose=2 haltonfailure=true xmlfileset dir=${test.reports} includes=testng-failed.xml/ /testng /target Thanks. -- View this message in context: http://www.nabble.com/How-to-rerun-failed-TestNG-tests--tp21899281p21899281.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
maven-changes-plugin: issueLinkTemplatePerSystem
Hi there, i'm trying to get rid of warning during my usual mvn site build...(issueLinkTemplate ..deprecated) so i tried to use issueLinkTemplatePerSystem: issueManagement systemRedmine/system urlhttp://www.supose.org/url /issueManagement ... groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.1/version configuration issueLinkTemplatePerSystem Redminehttp://www.supoe.org/issues/show/%ISSUE%/Redmine /issueLinkTemplatePerSystem /configuration This will not produce a correct link in the change log... I've tried different types of Redmine ...uppercase, lowercase etc. Furthermore I have tried to add default/default entry to fix the problembut that didn't work neither... Maybe i misunderstand the documentationor do i oversight things ? maybe someone here can me enlighten me a little bit... BTW: Using mvn 2.0.9 on XP Thanks in advance... Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Does maven not use VERSION while detecting circular dependencies?
Hi, It appears to me that maven does not use VERSIONs while calculating circular dependencies. Is this true? Here is error I got: [INFO] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='xxx:hk2-maven-plugin'}' and 'Vertex{label='xxx:hk2-maven'}' introduces to cycle in the graph xxx:hk2-maven -- xxx:hk2-core -- xxx:hk2-maven-plugin -- xxx:hk2-maven If versions of various artifacts were included, the above graph would have looked like this: xxx:hk2-maven:2.0-SNAPSHOT -- xxx:hk2-core:2.0-SNAPSHOT -- xxx:hk2-maven-plugin:1.0 -- xxx:hk2-maven:1.0. As you can see, the latter graph does not have any cycle. /Why does maven not use VERSION while detecting cycles?/ Thanks, Sahoo - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Does maven not use VERSION while detecting circular dependencies?
On Sun, Feb 8, 2009 at 10:07 AM, Sahoo sa...@sun.com wrote: It appears to me that maven does not use VERSIONs while calculating circular dependencies. Is this true? Here is error I got: [INFO] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='xxx:hk2-maven-plugin'}' and 'Vertex{label='xxx:hk2-maven'}' introduces to cycle in the graph xxx:hk2-maven -- xxx:hk2-core -- xxx:hk2-maven-plugin -- xxx:hk2-maven If versions of various artifacts were included, the above graph would have looked like this: xxx:hk2-maven:2.0-SNAPSHOT -- xxx:hk2-core:2.0-SNAPSHOT -- xxx:hk2-maven-plugin:1.0 -- xxx:hk2-maven:1.0. As you can see, the latter graph does not have any cycle. /Why does maven not use VERSION while detecting cycles?/ Typically Maven resolves versions for you -- for instance, if I depend on Hibernate 3.0 and Commons Lang 1.3 and Hibernate depends on Commons Lang 1.4, I'll only end up with Commons Lang 1.4 at the end -- it uses the Version to determine which is likely to be the required version, but it won't actually include both. There's probably a better description somewhere than I've just given. :) With that in mind, I wouldn't expect it to consider the version in cyclical dependency checks. - Geoffrey -- Geoffrey Wiseman http://www.geoffreywiseman.ca/
maven-changes-plugin: issueLinkTemplatePerSystem
Hi there, i'm trying to get rid of warning during my usual mvn site build...(issueLinkTemplate ..deprecated) so i tried to use issueLinkTemplatePerSystem: issueManagement systemRedmine/system urlhttp://www.supose.org/url /issueManagement ... groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.1/version configuration issueLinkTemplatePerSystem Redminehttp://www.supoe.org/issues/show/%ISSUE%/Redmine /issueLinkTemplatePerSystem /configuration This will not produce a correct link in the change log... I've tried different types of Redmine ...uppercase, lowercase etc. Furthermore I have tried to add default/default entry to fix the problembut that didn't work neither... Maybe i misunderstand the documentationor do i oversight things ? maybe someone here can me enlighten me a little bit... BTW: Using mvn 2.0.9 on XP Thanks in advance... Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Local repository and problem with downloading parent
I thought setting the system property maven.repo.local does exactly the same... Regards, Johannes On Sat, 2009-02-07 at 21:59 -0500, Martin Gainty wrote: specify localRepositoryc:\repository/localRepostory node in settings.xml e.g. http://ericlefevre.net/wordpress/2007/02/21/changing-maven-local-repository/ Viel Gluck Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: Local repository and problem with downloading parent From: maili...@cedarsoft.com To: users@maven.apache.org Date: Sat, 7 Feb 2009 20:33:33 +0100 Hi, I encountered the following problem. Would be great if anyone could try to reproduce this or give me a hint, what I am doing wrong. I have a project that has a parent that is located in the Maven central repository (e.g. com.cedarsoft:open:1.0.2). When building, that parent is downloaded as expected. Now I try to switch to isolated local repositories. Therefore I call mvn compile -Dmaven.repo.local=. Unfortunately that still downloads the parent pom to ~/.m2/repository and not to my isolated local repo... Regards, Johannes Schneider - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_022009 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Does maven not use VERSION while detecting circular dependencies?
Geoffrey Wiseman wrote: On Sun, Feb 8, 2009 at 10:07 AM, Sahoo sa...@sun.com wrote: It appears to me that maven does not use VERSIONs while calculating circular dependencies. Is this true? Here is error I got: [INFO] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='xxx:hk2-maven-plugin'}' and 'Vertex{label='xxx:hk2-maven'}' introduces to cycle in the graph xxx:hk2-maven -- xxx:hk2-core -- xxx:hk2-maven-plugin -- xxx:hk2-maven If versions of various artifacts were included, the above graph would have looked like this: xxx:hk2-maven:2.0-SNAPSHOT -- xxx:hk2-core:2.0-SNAPSHOT -- xxx:hk2-maven-plugin:1.0 -- xxx:hk2-maven:1.0. As you can see, the latter graph does not have any cycle. /Why does maven not use VERSION while detecting cycles?/ Typically Maven resolves versions for you -- for instance, if I depend on Hibernate 3.0 and Commons Lang 1.3 and Hibernate depends on Commons Lang 1.4, I'll only end up with Commons Lang 1.4 at the end -- it uses the Version to determine which is likely to be the required version, but it won't actually include both. There's probably a better description somewhere than I've just given. :) With that in mind, I wouldn't expect it to consider the version in cyclical dependency checks. - Geoffrey This is too limiting IMO. Sahoo - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: configure maven with IntellJ Idea
Hi Poonam, looking at sourceDirectorysrc/com/apelon/sourceDirectory seems wrong - you mix source folder with package structure which is probably not intended Cheers, Siegfried Goeschl Mick Knutson wrote: you should have your java files in ./src/main/java in order for anything to be in the ./target/*.jar you are creating. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Sat, Feb 7, 2009 at 3:36 PM, Poonam Gyanchandani poonamvg2...@gmail.comwrote: Hi, I am trying to configure Maven with Intellj Idea in POM file but looks like POM file which I have created has something missing in that. When I do *mvn clean *it is showing me build successful, but when I am giving command like* mvn compile/mvn package* in that case it is creating an empty jar file. In classes directory also it doesn't contain any files. ** My source folder is in*D:\ApgarSVN\development\Components\Internal\common-1.6.0 * this directory* *with* src* name. Enclosed POM file for your reference. Thanks. ** - 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
Resolved Version Weirdness
Hello, We have a multi-module project which transitively uses Commons Logging. We do not use it directly ourselves and so did not explicitly declare it as a dependency. So far, this has not been a problem. But for some reason, something must have changed over the weekend. I started our application and got a NoClassDefFoundError because org.apache.commons.logging.LogFactory was missing. I then checked the following: - Maven dependencies in Eclipse (using m2eclipse) showed commons-logging-1.1 - The dependency hierarchy and dependency:tree showed commons-logging-1.1 as the winner (amongst 1.0, 1.0.3, 1.0.4, 1.1, 1.1.1) . dependency:copy copied commons-logging-1.1.jar - The Jar plugin wrote commons-logging-1.1.1 into the manifest. So, the problem is that either the Jar plugin or the Dependency plugin is wrong. Don't they use the same mechanism in order to determine the classpath? Naturally, I would expect the latest version to win. I don't understand why this happened all of a sudden. Nothing has changed here, and all our plugin versions are locked. For now, I fixed the problem by explicitly adding commons-logging-1.1.1 as a dependency, but I don't really like this. I'd appreciate any insight into what's going on here. Thanks, Reinhard - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org