Hi,

I am new to Maven and I need to patch Surefire to support JUnit4. Therefore, I applied patches as mentioned at http://jira.codehaus.org/browse/SUREFIRE-31#action_76833. After applying the patches, I am able to build maven-surefire-plugin as well as surefire-junit. However, I need to share the patch with others in my company as well as make the patched artifacts available for use on other machines.

Therefore, I decided to create an internal repository to host these patched artifacts (call it internal.plugins). I chased down the "dragon's tail" and deployed the maven-surefire-plugin as well as surefire (and its child) projects on this internal repository. I named this version as 2.1-INTERNAL-r486153-pSUREFIRE-31 for surefire, and 2.3-INTERNAL-r486153-pSUREFIRE-31 for maven-surefire-plugin. All went fine up until this point.

The trouble starts, however, when I try to use with these new artifacts by adding internal.plugins to the pluginRepositories of my project. Maven resolves maven-surefire-plugin as shown in the following debug output to central:

[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from internal.plugins [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from apache.snapshots [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from central [DEBUG] maven-surefire-plugin: resolved to version 2.3-INTERNAL-r486153-pSUREFIRE-31 from repository central
[DEBUG] Trying repository central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.3-INTERNAL-r486153-pSUREFIRE-31/maven-surefire-plugin-2.3-INTERNAL-r486153-pSUREFIRE-31.pom [DEBUG] Artifact not found - using stub model: Unable to locate resource in repository

org.apache.maven.plugins:maven-surefire-plugin:pom:2.3-INTERNAL-r486153-pSUREFIRE-31

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 internal.plugins (.....maven/internal-plugins),
 apache.snapshots (http://cvs.apache.org/maven-snapshot-repository/)

This appears to be erroneous because the version in question is only in internal.plugins. Can someone explain why this might be happening? What can I do to get the expected behavior: maven-surefire-plugin is resolved to internal.plugins and the surefire project artifacts are also resolved to internal.plugins?

Thanks for helping.

Nikunj Mehta

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to