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";).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://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

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to