You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Cristiano Gavião (Jira)" <ji...@apache.org> on 2022/05/02 13:50:00 UTC
[jira] [Commented] (MDEP-794) It is not respecting the includeScope and excludeScope
[ https://issues.apache.org/jira/browse/MDEP-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17530741#comment-17530741 ]
Cristiano Gavião commented on MDEP-794:
---------------------------------------
[~sjaranowski] , any news ?
> 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, Deps2.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.7#820007)