You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by dedmist <de...@nice.com> on 2012/01/12 20:13:59 UTC
Some dependencies aren't working.
So I have a very large project that currently runs with ant and equinox,
which I'm switching to maven and tycho.
I was able to work through a large number of dependency issues, but I can't
seem to get this last one working.
I'm getting the error: java.lang.RuntimeException: "No solution found
because the problem is unsatisfiable.": ["Unable to satisfy dependency from
specific.artifact.id 1.0.0 to bundle org.hamcrest 1.1.0.", "Unable to
satisfy dependency from specific.artifact.id 1.0.0 to bundle org.junit
4.6.0."
The specific artifact id is test code.
When I hit these issues before, I added a dependency into the parent pom and
everything would be resolved and I can verify the artifact shows up in
nexus. But for some reason, I have these artifacts and they're not being
seen or I have some sort of mismatch?
Does anyone know what I'm doing wrong here?
The manifest it's referencing is:
Require-Bundle:
another.specific.artifact.id;bundle-version="1.0.0";visibility:=reexport,
org.hamcrest;bundle-version="1.1.0";visibility:=reexport,
org.junit;bundle-version="4.6.0";visibility:=reexport,
...
My project is setup like so
workspace
|-pom.xml (parent pom)
|-eclipse directories
-|-plugin or feature
--|-plugin or feature pom
--|-plugin or feature directories
---|-specific plugin or feature pom
The grandchild poms all look like:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>kernel.plugins</artifactId>
<groupId>project.group.id</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>project.group.id</groupId>
<artifactId>specific.artifact.id</artifactId>
<version>1.0.0</version>
<packaging>eclipse-plugin</packaging>
</project>
The feature or plugin poms look like
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>project.group.id</groupId>
<artifactId>3rdparty.features</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<parent>
<artifactId>parent</artifactId>
<groupId>project.group.id</groupId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modules>
<module>kernel.plugins</module>
... lots more...
</modules>
</project>
and the parent pom
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<artifactId>parent</artifactId>
<groupId>project.group.id</groupId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>0.13.0</version>
<extensions>true</extensions>
<configuration>
<resolver>p2</resolver>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86</arch>
</environment>
</environments>
<resolver>p2</resolver>
<pomDependencies>consider</pomDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>0.13.0</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>ganymedeupdate</id>
<layout>p2</layout>
<url>http://download.eclipse.org/eclipse/updates/3.4</url>
</repository>
<repository>
<id>ganymede</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/ganymede</url>
</repository>
</repositories>
<modules>
<module>3rdparty/features</module>
... tons of these ...
</modules>
<dependencies>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>servlet-api</artifactId>
<version>6.0.35</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.8.2</version>
</dependency>
<dependency>
<groupId>org.apache</groupId>
<artifactId>apache-jar-resource-bundle</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.6</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
</project>
--
View this message in context: http://maven.40175.n5.nabble.com/Some-dependencies-aren-t-working-tp5140763p5140763.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