Hi Christoph,
probably a bug in Pax Exam (Karaf container). What is the Pax Exam version ?
Regards
JB
On 01/17/2014 04:40 PM, Christoph Emmersberger wrote:
Dear all
I recently encountered an issue when configuring a new repository as
KarafDistributionBaseConfigurationOption (see [1]).
What did not work was the following code snippet:
public Option[] commonOptions() {
return new Option[]{
karafDistributionConfiguration()
...,
repository("http://repository.apache.org/content/groups/snapshots-group
<http://repository.apache.org/content/groups/snapshots-group>").allowSnapshots().disableReleases().id("apache")
}
}
Instead I had to introduce a workaround via editing the config file with:
editConfigurationFilePut("etc/org.ops4j.pax.url.mvn.cfg",
"org.ops4j.pax.url.mvn.repositories",
"http://repo1.maven.org/maven2@id=central
<http://repo1.maven.org/maven2@id=central>, "
+ ...
+"http://repository.apache.org/content/groups/snapshots-group@snapshots@noreleases@id=apache
<http://repository.apache.org/content/groups/snapshots-group@snapshots@noreleases@id=apache>")
Any ideas, why the repository method does not work?
Best,
Christoph
[1]
https://ops4j1.jira.com/browse/PAXEXAM-590?jql=project%20%3D%20PAXEXAM
<https://ops4j1.jira.com/browse/PAXEXAM-590?jql=project%20=%20PAXEXAM>
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com