I would think the way you specified the repository isn't intended to be
used the way you are trying.

Think about it, the point of an integration test is to simulate running the
project as if it was deployed to a server and running in a normal
environment.  So, if that repository is needed as part of the configuration
of Karaf at runtime, you wouldn't configure it usong pax-exam, because it
won't be available.  The repo would have to be specified in the karaf
configuration files or added manually at the console.......

Make sense?  Feel free to point out if I'm off my rocker, JB.

Ryan
On Jan 17, 2014 3:29 PM, "Christoph Emmersberger" <[email protected]>
wrote:

> Hi Jean-Baptiste,
>
> the version of PAX-EXAM is 3.3.0
>
>  <pax-exam-version>3.3.0</pax-exam-version>
>
> Kind regards,
>
> Christoph
>
> On 17 Jan 2014, at 16:42, Jean-Baptiste Onofré <[email protected]> wrote:
>
> > 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
>
>

Reply via email to