Could you move the editConfiguration... part right before the configureConsole() part. I think at that point it's not working.
Take the baseTest Class from the Pax-Web project as a sample. This part is configured in a later step. [1] regards, Achim [1] - https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-itest/pax-web-itest-karaf/src/test/java/org/ops4j/pax/web/itest/karaf/KarafBaseTest.java#L95 2015-05-28 23:08 GMT+02:00 sebersole <[email protected]>: > Achim, > > That file was seemingly not touched. The file has no mention of "modified > by paxexam" and the setting has no mention of my repo: > > org.ops4j.pax.url.mvn.repositories= \ > http://repo1.maven.org/maven2@id=central, \ > > > http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release > , > \ > > > http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external > , > \ > http://zodiac.springsource.com/maven/bundles/release@id=gemini, \ > > > http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases > , > \ > > > https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases > , > \ > > > https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases > > Here is my @Configuration method: > > return options( > when( debug ).useOptions( > debugConfiguration( "5005", true ) ), > karafDistributionConfiguration() > .frameworkUrl( > paxExamEnvironment.getProperty( > "org.ops4j.pax.exam.container.karaf.distroUrl" ) ) > .karafVersion( > paxExamEnvironment.getProperty( > "org.ops4j.pax.exam.container.karaf.version" ) ) > .name( "Apache Karaf" ) > .unpackDirectory( > new File( > > paxExamEnvironment.getProperty( > > "org.ops4j.pax.exam.container.karaf.unpackDir" > > ) > ) > ) > .useDeployFolder( false ), > editConfigurationFileExtend( > > "org.ops4j.pax.url.mvn.cfg", > > "org.ops4j.pax.url.mvn.repositories", > " > https://repository.jboss.org/nexus/content/groups/public/" > ), > > configureConsole().ignoreLocalConsole().ignoreRemoteShell(), > // when( debug ).useOptions( > keepRuntimeFolder() ), > keepRuntimeFolder(), > logLevel( LogLevelOption.LogLevel.INFO ), > features( featureXmlUrl( > paxExamEnvironment ), "hibernate-native", > "hibernate-jpa" ), > features( testingFeatureXmlUrl(), > "hibernate-osgi-testing" ) > ); > } > > P.S. `paxExamEnvironment` is a Properties I load from a prop file I create > in Gradle in order to be able to test within my IDE as well as from Gradle. > Those values are all accurate. > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Add-additional-local-maven-repository-how-tp4028299p4040643.html > Sent from the Karaf - User mailing list archive at Nabble.com. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master
