I doubt it is intentional behavior. You didn't mention which version
of maven are you using, or maven-dependency-plugin - like with any OSS
project, latest maven is the greatest, and configure plugin version in
pluginManagement section. You also didn't provide snapshots repository
definition snippet - maybe you're affected by default daily
updatePolicy for snapshots; configure "always" or use -U switch when
building.

Regards,
Stevo.

On Sun, Feb 27, 2011 at 2:44 AM, sebb <seb...@gmail.com> wrote:
> I uploaded commons-parent POM 19-SNAPSHOT to the snapshot repo [1],
> and then deleted it from my local repo (because I want to test how it
> will work for others).
>
> When I try to depend on it as a parent, i.e.
>
>    <parent>
>        <groupId>org.apache.commons</groupId>
>        <artifactId>commons-parent</artifactId>
>        <version>19-SNAPSHOT</version>
>    </parent>
>
> I get the following error:
>
> [INFO] Scanning for projects...
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
> Project ID: org.home.mvnsample:mvnsample:jar:1.0-SNAPSHOT
>
> Reason: Cannot find parent: org.apache.commons:commons-parent for
> project: org.home.mvnsample:mvnsample:jar:1.0-SNAPSHOT for project
> org.home.mvnsample:mvnsample:jar:1.0-
> SNAPSHOT
>
> Yet when the POM depends on it as a dependency, i.e.
>
>    <dependency>
>      <groupId>org.apache.commons</groupId>
>      <artifactId>commons-parent</artifactId>
>      <version>19-SNAPSHOT</version>
>      <type>pom</type>
>    </dependency>
>
> it is downloaded without a problem.
>
> It looks as though Maven does not check snapshot repositories for a
> parent POM dependency.
> Is this true, and if so is it intentional?
>
> [1] 
> http://repository.apache.org/snapshots/org/apache/commons/commons-parent/19-SNAPSHOT/
>
> ---------------------------------------------------------------------
> 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

Reply via email to