Have you extracted the versions using the service mix plugin as described in the documentation? Is the version. Properties generated correctly?
Kind regards, Andreas On 9 Jun 2013 12:46, "Charles Moulliard" <[email protected]> wrote: > > Hi, > > I get this pax exam (maven error) in an unit test which was working previously. Here is also the pom file. What should I do in the pom file definition to avoid this error ( https://gist.github.com/cmoulliard/49e4ef4c871d48bba550) > > java.lang.RuntimeException: Could not resolve version for groupId:org.apache.karaf artifactId:apache-karaf by reading the dependency information generated by maven. > at org.ops4j.pax.exam.MavenUtils.getArtifactVersion(MavenUtils.java:78) > at org.ops4j.pax.exam.MavenUtils$1.getVersion(MavenUtils.java:100) > at org.ops4j.pax.exam.options.MavenArtifactUrlReference.version(MavenArtifactUrlReference.java:110) > at org.ops4j.pax.exam.options.MavenArtifactUrlReference.versionAsInProject(MavenArtifactUrlReference.java:118) > > Class > > import static org.apache.karaf.tooling.exam.options.KarafDistributionOption.*; > > ... > > @Configuration > public static Option[] configure() { > return new Option[]{ > karafDistributionConfiguration().frameworkUrl( > maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").versionAsInProject()) > .karafVersion(MavenUtils.getArtifactVersion("org.apache.karaf", "apache-karaf")).name("Apache Karaf") > .unpackDirectory(new File("target/exam/unpack/")), > > keepRuntimeFolder(), > > ... > > Pom file > > Regards, > > -- > Charles Moulliard > Apache Committer / Architect (RedHat) > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com >
