You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by spsarolkar <sp...@gmail.com> on 2009/07/14 13:00:14 UTC
Problem installing simple multi module project
I have a parent pom like this
#simple-parent/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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.sonatype.mavenbook.ch06</groupId>
<artifactId>simple-parent</artifactId>
<packaging>pom</packaging>
<version>1.0</version>
<name>Chapter 6 Simple Parent Project</name>
<modules>
<module>simple-weather</module>
<module>simple-webapp</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
And two modules
#simple-parent/simple-weather/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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.mavenbook.ch06</groupId>
<artifactId>simple-parent</artifactId>
<version>1.0</version>
</parent>
<artifactId>simple-weather</artifactId>
<packaging>jar</packaging>
<name>simple-weather</name>
<url>http://sonatype.org</url>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-io</artifactId>
<version>1.4</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>
maven-surefire-plugin
</artifactId>
<configuration>
<descriptorRefs>
<testFailureIgnore>true</testFailureIgnore>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
#simple-parent/simple-webapp/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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.mavenbook.ch06</groupId>
<artifactId>simple-parent</artifactId>
<version>1.0</version>
</parent>
<artifactId>simple-weather</artifactId>
<packaging>jar</packaging>
<name>simple-weather</name>
<url>http://sonatype.org</url>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-io</artifactId>
<version>1.4</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>
maven-surefire-plugin
</artifactId>
<configuration>
<descriptorRefs>
<testFailureIgnore>true</testFailureIgnore>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
I don't know where i am going wrong ?
I getting error messahe like
http://www.nabble.com/file/p24477379/maven_problem.jpeg
I am refering to sonatype book.
When i downloaded their source code for chapter 6 and run same command it
has no effect on error message. I don't know why it is searching for
simple-parent pom in remote repository
--
View this message in context: http://www.nabble.com/Problem-installing-simple-multi-module-project-tp24477379p24477379.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problem installing simple multi module project [RESOLVED]
Posted by spsarolkar <sp...@gmail.com>.
(parent)group id for simple-weather was incorrect
--
View this message in context: http://www.nabble.com/Problem-installing-simple-multi-module-project-tp24477379p24477802.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problem installing simple multi module project
Posted by Mick Knutson <mi...@gmail.com>.
1st, take out the <pluginManagement> tags and just have <plugins>....
---
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
Vacation Rental: http://tahoe.baselogic.com
---
On Tue, Jul 14, 2009 at 4:00 AM, spsarolkar <sp...@gmail.com> wrote:
>
> I have a parent pom like this
> #simple-parent/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">
> <modelVersion>4.0.0</modelVersion>
> <groupId>org.sonatype.mavenbook.ch06</groupId>
> <artifactId>simple-parent</artifactId>
> <packaging>pom</packaging>
> <version>1.0</version>
> <name>Chapter 6 Simple Parent Project</name>
>
> <modules>
> <module>simple-weather</module>
> <module>simple-webapp</module>
> </modules>
>
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
> </build>
>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> </dependencies>
> </project>
> And two modules
> #simple-parent/simple-weather/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">
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>org.apache.mavenbook.ch06</groupId>
> <artifactId>simple-parent</artifactId>
> <version>1.0</version>
> </parent>
> <artifactId>simple-weather</artifactId>
> <packaging>jar</packaging>
> <name>simple-weather</name>
> <url>http://sonatype.org</url>
>
> <dependencies>
> <dependency>
> <groupId>log4j</groupId>
> <artifactId>log4j</artifactId>
> <version>1.2.14</version>
> </dependency>
> <dependency>
> <groupId>dom4j</groupId>
> <artifactId>dom4j</artifactId>
> <version>1.6.1</version>
> </dependency>
>
> <dependency>
> <groupId>jaxen</groupId>
> <artifactId>jaxen</artifactId>
> <version>1.1.1</version>
> </dependency>
>
> <dependency>
> <groupId>velocity</groupId>
> <artifactId>velocity</artifactId>
> <version>1.5</version>
> </dependency>
> <dependency>
> <groupId>org.apache.commons</groupId>
> <artifactId>commons-io</artifactId>
> <version>1.4</version>
> <scope>test</scope>
> </dependency>
> </dependencies>
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <artifactId>
> maven-surefire-plugin
> </artifactId>
> <configuration>
> <descriptorRefs>
>
> <testFailureIgnore>true</testFailureIgnore>
> </descriptorRefs>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
> </build>
> </project>
> #simple-parent/simple-webapp/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">
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>org.apache.mavenbook.ch06</groupId>
> <artifactId>simple-parent</artifactId>
> <version>1.0</version>
> </parent>
> <artifactId>simple-weather</artifactId>
> <packaging>jar</packaging>
> <name>simple-weather</name>
> <url>http://sonatype.org</url>
>
> <dependencies>
> <dependency>
> <groupId>log4j</groupId>
> <artifactId>log4j</artifactId>
> <version>1.2.14</version>
> </dependency>
> <dependency>
> <groupId>dom4j</groupId>
> <artifactId>dom4j</artifactId>
> <version>1.6.1</version>
> </dependency>
>
> <dependency>
> <groupId>jaxen</groupId>
> <artifactId>jaxen</artifactId>
> <version>1.1.1</version>
> </dependency>
>
> <dependency>
> <groupId>velocity</groupId>
> <artifactId>velocity</artifactId>
> <version>1.5</version>
> </dependency>
> <dependency>
> <groupId>org.apache.commons</groupId>
> <artifactId>commons-io</artifactId>
> <version>1.4</version>
> <scope>test</scope>
> </dependency>
> </dependencies>
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <artifactId>
> maven-surefire-plugin
> </artifactId>
> <configuration>
> <descriptorRefs>
>
> <testFailureIgnore>true</testFailureIgnore>
> </descriptorRefs>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
> </build>
> </project>
> I don't know where i am going wrong ?
> I getting error messahe like
> http://www.nabble.com/file/p24477379/maven_problem.jpeg
> I am refering to sonatype book.
> When i downloaded their source code for chapter 6 and run same command it
> has no effect on error message. I don't know why it is searching for
> simple-parent pom in remote repository
>
>
> --
> View this message in context:
> http://www.nabble.com/Problem-installing-simple-multi-module-project-tp24477379p24477379.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>