trying my chance, because you prepared a perfect demo then we should be able 
to find where the issue is...

Here are my findings:
mvn depencendy:go-offline output for maven-resources-plugin:

[INFO] Plugin Resolved: maven-resources-plugin-2.6.jar
[INFO]     Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar
[INFO]     Plugin Dependency Resolved: maven-project-2.0.6.jar
[INFO]     Plugin Dependency Resolved: maven-core-2.0.6.jar
[INFO]     Plugin Dependency Resolved: maven-artifact-2.0.6.jar
[INFO]     Plugin Dependency Resolved: maven-settings-2.0.6.jar
[INFO]     Plugin Dependency Resolved: maven-model-2.0.6.jar
[INFO]     Plugin Dependency Resolved: maven-monitor-2.0.6.jar
[INFO]     Plugin Dependency Resolved: plexus-container-default-1.0-alpha-9-
stable-1.jar
[INFO]     Plugin Dependency Resolved: plexus-utils-2.0.5.jar
[INFO]     Plugin Dependency Resolved: maven-filtering-1.1.jar
[INFO]     Plugin Dependency Resolved: plexus-interpolation-1.13.jar


then on the failure: mvn -X -o compile

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
dependency-plugin-bug ---
[DEBUG] Using mirror central (http://localhost:8081/nexus/content/groups/
public) for central (http://repo1.maven.org/maven2).
[WARNING] The POM for org.apache.maven:maven-core:jar:2.0.6 is missing, no 
dependency information available
[WARNING] The POM for org.apache.maven:maven-monitor:jar:2.0.6 is missing, no 
dependency information available
[WARNING] The POM for org.codehaus.plexus:plexus-utils:jar:2.0.5 is missing, 
no dependency information available
[WARNING] The POM for org.apache.maven.shared:maven-filtering:jar:1.1 is 
missing, no dependency information available
[WARNING] The POM for org.codehaus.plexus:plexus-interpolation:jar:1.13 is 
missing, no dependency information available
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, 
ConflictMarker.markTime=0, ConflictMarker.nodeCount=41, 
ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, 
ConflictIdSorter.conflictIdCount=18, ConflictIdSorter.conflictIdCycleCount=0, 
ConflictResolver.totalTime=1, ConflictResolver.conflictItemCount=38, 
DefaultDependencyCollector.collectTime=58, 
DefaultDependencyCollector.transformTime=1}
[DEBUG] org.apache.maven.plugins:maven-resources-plugin:jar:2.6:
[DEBUG]    org.apache.maven:maven-plugin-api:jar:2.0.6:compile
[DEBUG]    org.apache.maven:maven-project:jar:2.0.6:compile
[DEBUG]       org.apache.maven:maven-profile:jar:2.0.6:compile
[DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
[DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
[DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
[DEBUG]    org.apache.maven:maven-core:jar:2.0.6:compile
[DEBUG]    org.apache.maven:maven-artifact:jar:2.0.6:compile
[DEBUG]    org.apache.maven:maven-settings:jar:2.0.6:compile
[DEBUG]    org.apache.maven:maven-model:jar:2.0.6:compile
[DEBUG]    org.apache.maven:maven-monitor:jar:2.0.6:compile
[DEBUG]    org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-
stable-1:compile
[DEBUG]       junit:junit:jar:3.8.1:compile
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:compile
[DEBUG]    org.codehaus.plexus:plexus-utils:jar:2.0.5:compile
[DEBUG]    org.apache.maven.shared:maven-filtering:jar:1.1:compile
[DEBUG]    org.codehaus.plexus:plexus-interpolation:jar:1.13:compile


As you can see, the missing files maven-profile-2.0.6.jar, maven-artifact-
manager-2.0.6.jar, maven-repository-metadata-2.0.6.jar, maven-plugin-
registry-2.0.6.jar and classworlds-1.1-alpha-2.jar are in the maven-resources-
plugin effective dependencies but not detected by dependency plugin


Then you're right, it's a dependency plugin bug.

I remarked that the plugin version used was 2.8 but not the latest 3.0.2

Then I added a pluginManagement section to select version 3.0.2 and re-ran the 
test: you'll see the output is completely different.

And there is no issue any more

Regards,

Hervé

Le mercredi 20 septembre 2017, 22:48:15 CEST Benedikt Ritter a écrit :
> Hi,
> 
> as far as I understand it should be possible to call mvn
> dependency:go-offline and from there on work in offline mode (mvn -o). 
> I’ve put a minimal example together [1] that demonstrates that this
> currently does not work. Am I missing anything?
> 
> Thank you!
> Benedikt
> 
> [1] https://github.com/britter/dependency-plugin-bug
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to