I build a set of projects (locally and with Jenkins) which depend on each other. Previously I had added a link from APE to the EMM. Everything worked fine. I had no dependencies stated in my pom. This was the repository:
<repositories>
<repository>
<id>ModelMigration</id>
<layout>p2</layout>
<url>${repobase}/ModelMigration-Maven/${repopath}org.muml.emm.repository/target/repository</url>
</repository>
</repositories>
If I remove that repository the build fails.
Missing requirement: org.muml.ape.migrator 1.0.0.qualifier requires 'bundle org.muml.emm 0.0.0' but it could not be found
If I add an explicit dependency and enable snapshots for the repository, the build fails.
<dependencies>
<dependency>
<groupId>org.muml.emm.group</groupId>
<artifactId>org.muml.emm</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>ModelMigration</id>
<layout>p2</layout>
<url>${repobase}/ModelMigration-Maven/${repopath}org.muml.emm.repository/target/repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
Here's the error message:
[ERROR] Failed to execute goal on project org.muml.ape: Could not resolve dependencies for project org.muml.ape.group:org.muml.ape:eclipse-plugin:1.0.0-SNAPSHOT: Could not find artifact org.muml.emm.group:org.muml.emm:jar:1.0.0-SNAPSHOT -> [Help 1]
This are the Ids and version for the missing plugin:
<groupId>org.muml.emm.group</groupId>
<artifactId>org.muml.emm</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
The version and Ids seem correct, the jar is in the repository and it works without the explicit dependency. What is the problem with my snapshot dependency?