Hello everyone.
Using Jdeveloper 12.1.3 with "BC4J JUnit Integration" and "JUnit Integration" extensions
I have created a maven project which uses JUnit in order to create unit testing. Following is the dependency configuration added to my pom.xml file by JDeveloper after creating the first unit test:
<dependency>
<groupId>com.oracle.adf.library</groupId>
<artifactId>JUnit-4-Runtime</artifactId>
<version>12.1.3-0-0</version>
<type>pom</type>
<scope>test</scope>
</dependency>
If I compile and run my tests right from JDeveloper eveything works, but once I checkout my sourcecode and build the project from Hudson (Continuous Integration server), it fails. The error shown in Hudson's console is (CommonCode is the name of the project I'm trying to build):
[ERROR] Failed to execute goal on project CommonCode: Could not resolve dependencies for project com.company.project.common:CommonCode:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.oracle.adf.library:JUnit-4-Runtime:pom:12.1.3-0-0 -> com.oracle.adf:junit:jar:[12.1.3,12.1.4): No versions available for com.oracle.adf:junit:jar:[12.1.3,12.1.4) within specified range -> [Help 1]
I have already installed the oracle-maven-sync plugin and have populated my private repository (Artifactory) as stated in this document. However, when I browse my private repository I can't find the com.oracle.adf:junit:jar:[12.1.3,12.1.4) artifact and I guess that's why my build is failing.
Why would JDeveloper add a dependency that is not included when the oracle-maven-sync plugin is pushed to the maven repository?
I forgot to mention that when using the following dependency for JUnit instead of the one provided by Jdeveloper, the project compiles in my continuous integration server:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
<type>jar</type>
</dependency>
Any clues about why Jdeveloper adds a dependency that can't be satisfied by the oracle-maven-sync plugin?
Thanks.
Alexis