You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Andrew Cottrell <an...@gmail.com> on 2015/11/14 13:23:07 UTC

POM for oak-core should exclude junit in dependency on json-simple

json-simple has a 'compile' scope dependency on junit. This is a bug,
but there is no fixed release. oak-core can easily work-around this by
adding an exclusion in its POM, otherwise everyone who has a
dependency on either oak-jcr or oak-core has to implement the
work-around in their POMs.

Original:

<dependency>
      <groupId>com.googlecode.json-simple</groupId>
      <artifactId>json-simple</artifactId>
      <version>1.1.1</version>
      <!--<optional>true</optional>-->
</dependency>

Fixed:

<dependency>
      <groupId>com.googlecode.json-simple</groupId>
      <artifactId>json-simple</artifactId>
      <version>1.1.1</version>
      <!--<optional>true</optional>-->
      <exclusion>
          <artifactId>junit</artifactId>
          <groupId>junit</groupId>
      </exclusion>
</dependency>

Re: POM for oak-core should exclude junit in dependency on json-simple

Posted by Marcel Reutegger <mr...@adobe.com>.
Hi Andrew,

thanks for reporting this problem. We didn't notice this problem
because oak-core has an explicit dependency on junit with scope
'test'.

It turns out oak-core doesn't even need a compile time dependency
on json-simple. See: https://issues.apache.org/jira/browse/OAK-3636

Regards
 Marcel

On 14/11/15 13:23, "Andrew Cottrell" wrote:

>json-simple has a 'compile' scope dependency on junit. This is a bug,
>but there is no fixed release. oak-core can easily work-around this by
>adding an exclusion in its POM, otherwise everyone who has a
>dependency on either oak-jcr or oak-core has to implement the
>work-around in their POMs.
>
>Original:
>
><dependency>
>      <groupId>com.googlecode.json-simple</groupId>
>      <artifactId>json-simple</artifactId>
>      <version>1.1.1</version>
>      <!--<optional>true</optional>-->
></dependency>
>
>Fixed:
>
><dependency>
>      <groupId>com.googlecode.json-simple</groupId>
>      <artifactId>json-simple</artifactId>
>      <version>1.1.1</version>
>      <!--<optional>true</optional>-->
>      <exclusion>
>          <artifactId>junit</artifactId>
>          <groupId>junit</groupId>
>      </exclusion>
></dependency>