[
https://issues.apache.org/jira/browse/MDEP-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17511801#comment-17511801
]
Slawomir Jaranowski commented on MDEP-794:
------------------------------------------
Can you simplify your example project a little?
Should only contains minimal dependencies list, no profiles no configurations
for other plugin.
eg.
After execute {{mvn dependency:tree}} in deps2 I have ...
{code}
ERROR] Failed to execute goal on project test-deps2: Could not resolve
dependencies for project test:test-deps2:jar:0.0.1-SNAPSHOT:
Could not find artifact org.apache.hbase:hbase-client:jar:1.1.2.2.6.5.0-292 in
central (https://repo.maven.apache.org/maven2)
{code}
> It is not respecting the includeScope and excludeScope
> ------------------------------------------------------
>
> Key: MDEP-794
> URL: https://issues.apache.org/jira/browse/MDEP-794
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: copy-dependencies
> Affects Versions: 3.2.0
> Environment: Both Windows and Linux
> Reporter: Cristiano Gavião
> Priority: Critical
> Attachments: Deps.7z
>
>
> I'm using the copyDependencies to build a distribution package and I'm
> getting junit.jar and others on it.
> {code:java}
> <plugin>
> <artifactId>maven-dependency-plugin</artifactId>
> <version>3.2.0</version>
> <configuration>
> <excludeClassifiers>sources,javadoc,full,pom</excludeClassifiers>
> <excludeScope>system</excludeScope>
> <includeScope>compile</includeScope>
> </configuration>
> </plugin> {code}
>
> {code:java}
> [DEBUG] Configuring mojo
> org.apache.maven.plugins:maven-dependency-plugin:3.2.0:copy-dependencies from
> plugin realm
> ClassRealm[plugin>org.apache.maven.plugins:maven-dependency-plugin:3.2.0,
> parent: sun.misc.Launcher$AppClassLoader@18b4aac2]
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-dependency-plugin:3.2.0:copy-dependencies'
> with basic configurator -->
> [DEBUG] (f) addParentPoms = false
> [DEBUG] (s) copyPom = false
> [DEBUG] (f) excludeArtifactIds = jdk.tools
> [DEBUG] (f) excludeClassifiers = sources,javadoc,full,pom
> [DEBUG] (f) excludeScope = system
> [DEBUG] (f) excludeTransitive = false
> [DEBUG] (s) failOnMissingClassifierArtifact = false
> [DEBUG] (f) includeScope = compile
> [DEBUG] (s) markersDirectory =
> C:\Users\cristianoga\git-code\p-stripping\target\dependency-maven-plugin-markers
> [DEBUG] (f) outputAbsoluteArtifactFilename = false
> [DEBUG] (s) outputDirectory =
> C:\Users\cristianoga\git-code\p-stripping\target\dependency
> [DEBUG] (f) overWriteIfNewer = true
> [DEBUG] (f) overWriteReleases = false
> [DEBUG] (f) overWriteSnapshots = false
> [DEBUG] (s) prependGroupId = false {code}
> {code:java}
> [INFO] Copying junit-4.13.2.jar to
> C:\Users\cristianoga\git-code\p-stripping\target\dependency\junit-4.13.2.jar
> [INFO] Copying hamcrest-core-1.3.jar to
> C:\Users\cristianoga\git-code\p-stripping\target\dependency\hamcrest-core-1.3.jar
> [INFO] Copying mockito-core-3.12.4.jar to
> C:\Users\cristianoga\git-code\p-stripping\target\dependency\mockito-core-3.12.4.jar
> [INFO] Copying byte-buddy-1.11.13.jar to
> C:\Users\cristianoga\git-code\p-stripping\target\dependency\byte-buddy-1.11.13.jar
> [INFO] Copying byte-buddy-agent-1.11.13.jar to
> C:\Users\cristianoga\git-code\p-stripping\target\dependency\byte-buddy-agent-1.11.13.jar
> [INFO] Copying objenesis-3.2.jar to
> C:\Users\cristianoga\git-code\p-stripping\target\dependency\objenesis-3.2.jar
> [INFO] Copying dbunit-2.7.2.jar to
> C:\Users\cristianoga\git-code\p-stripping\target\dependency\dbunit-2.7.2.jar
> [INFO] Copying h2-1.4.200.jar to
> C:\Users\cristianoga\git-code\p-stripping\target\dependency\h2-1.4.200.jar
> [INFO] Copying assertj-core-3.21.0.jar to
> C:\Users\cristianoga\git-code\p-stripping\target\dependency\assertj-core-3.21.0.jar
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)