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: 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