MavenArtifactUrlReference karafUrl = maven().groupId("uk.org.openeyes.oink.karaf").artifactId("distro").type("tar.gz").versionAsInProject();
throws error:
org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact uk.org.openeyes.oink.karaf:distro:tar.gz:0.2 in local (file:/Users/Oli/.m2/repository/
--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So the only way to make this work is to make sure each artifact you need in the test is also specified as a maven dependency of the itest project. So maven makes sure these are built before the test.
You received this message because you are subscribed to a topic in the Google Groups "OPS4J" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ops4j/EXtrOLSAWG8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ops4j+un...@googlegroups.com.
Thats a shame because that means the maven-release-plugin’s default settings can’t be used to make my releases.
The maven-release-plugin by default takes my working code which has version 0.x-SNAPSHOT and temporarily changes the version to 0.x then performs a ‘clean verify’ to make sure all the tests still pass.
You CAN change the default behaviour of it calling ‘clean verify’ to ‘clean install’ so perhaps thats my best option now.
Thanks,Oli
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+un...@googlegroups.com.
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-release-plugin</artifactId><version>2.4.2</version><configuration><useReleaseProfile>false</useReleaseProfile><preparationGoals>clean install</preparationGoals><goals>deploy</goals><arguments>-Prelease,deploy,src,manual</arguments><autoVersionSubmodules>true</autoVersionSubmodules></configuration></plugin>
Here’s your answer (in the Karaf root pom)
<plugin><groupId>org.apache.maven.plugins</groupId>&n bsp; <artifactId>maven-release-plugin</artifactId>
<version>2.4.2</version><configuration><useReleaseProfile>false</useReleaseProfile><preparationGoals>clean install</preparationGoals>
& nbsp; <goals>deploy</goals><arguments>-Prelease,deploy,src,manual</arguments>  ;<autoVersionSubmodules>true</autoVersionSubmodules></configuration></plugin>
As suspected they override the default <preparationGoals>clean verify</preparationGoals> with <preparationGoals>clean install</preparationGoals>
Thanks for the guidance,Oli