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.

Reply via email to