Sling mock, maven dep point at wrong coordinates:

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Sling mock, maven dep point at wrong coordinates:

nino martinez wael
https://sling.apache.org/documentation/development/sling-mock.html#maven-dependency

is wrong at least for 2.x:

<dependency> <groupId>org.apache.sling</groupId> <artifactId>
org.apache.sling.testing.sling-mock</artifactId> </dependency>

should be

<dependency>
    <groupId>org.apache.sling</groupId>
    <artifactId>org.apache.sling.testing.osgi-mock</artifactId>
</dependency>




--
Best regards / Med venlig hilsen
Nino Martinez
Reply | Threaded
Open this post in threaded view
|

Re: Sling mock, maven dep point at wrong coordinates:

Robert Munteanu-2
Hi,

On Thu, 2017-10-26 at 14:30 +0200, nino martinez wael wrote:

> https://sling.apache.org/documentation/development/sling-mock.html#ma
> ven-dependency
>
> is wrong at least for 2.x:
>
> <dependency> <groupId>org.apache.sling</groupId> <artifactId>
> org.apache.sling.testing.sling-mock</artifactId> </dependency>
>
> should be
>
> <dependency>
>     <groupId>org.apache.sling</groupId>
>     <artifactId>org.apache.sling.testing.osgi-mock</artifactId>
> </dependency>

Looks correct to me, we have different artifact ids for OSGi, Sling and
JCR mocks.

- https://sling.apache.org/documentation/development/osgi-mock.html
- https://sling.apache.org/documentation/development/sling-mock.html
- https://sling.apache.org/documentation/development/jcr-mock.html