Ok, lets talk with a concrete simple example:

PARENT POM:

<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";>
  <modelVersion>4.0.0</modelVersion>

  <groupId>a.b.c</groupId>
  <artifactId>parente</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>pom</packaging>
  <name>parente</name>
  <description>ddd</description>
  
        <distributionManagement>
                <repository>
                        <id>internal.project.release</id>
                        <name>internal.project.release</name>
                        <url>${maven2Repository_projet}/project_release</url>
                </repository>

                <snapshotRepository>
                        <id>internal.project.snapshot</id>
                        <name>internal.project.snapshot</name>
                        <url>${maven2Repository_projet}/project_snapshot</url>
                </snapshotRepository>

                <site>
                        <id>projects_Website</id>
                
<url>${projects_Website}/cti/melusine/${project.artifactId}/${project.version}</url>
                </site>
        </distributionManagement>
</project>
---------------------------------------------------
CHILD POM

<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";>
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>a.b.c</groupId>
    <artifactId>parente</artifactId>
    <version>0.0.1-SNAPSHOT</version>
  </parent>

  <groupId>a.c</groupId>
  <artifactId>deleteme</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <name>aaa</name>
  <description>bbb</description>
</project>
-----------------------------------------------------

These very simple Poms demonstrate the problem.

You need to deply parent first and then delete parent from local repo and
then try building child.
As you notice there are no SNAPSHOT repository declaration nowhere.
Distibution managment is a separate thing in the parent itself.




--
View this message in context: 
http://maven.40175.n5.nabble.com/Parent-SNAPSHOT-not-resolved-Maven-2-2-1-3-0-4-Nexus-repo-tp5772374p5772383.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

Reply via email to