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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to