[ https://issues.apache.org/jira/browse/MDEP-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17686800#comment-17686800 ]
John Patrick commented on MDEP-844: ----------------------------------- Yes if you have a Nexus Firewall blocking an optional dependency, and they won't approve it. So it go-offline fails due to missing dependency that is excluded. > Go Offline doesn't honor exclusions. > ------------------------------------ > > Key: MDEP-844 > URL: https://issues.apache.org/jira/browse/MDEP-844 > Project: Maven Dependency Plugin > Issue Type: Bug > Affects Versions: 3.5.0 > Environment: Linux and Mac > Reporter: John Patrick > Priority: Major > > Using the example below; > > {code:java} > <dependencyMangement> > <dependencies> > <dependency> > <groupId>org.apache.commons</groupId> > <artifactId>commons-configuration2</artifactId> > <version>2.8.0</version> > <exclusions> > <exclusion> > <groupId>org.apache.commons</groupId> > <artifactId>commons-vfs2</artifactId> > </exclusion> > </exclusions> > </dependency> > </dependencies> > </dependencyMangement>{code} > > When executing `./mvnw > org.apache.maven.plugins:maven-dependency-plugin:3.5.0:go-offline > -Dmaven.repo.local=new-dir`. > I wouldn't expect `commons-vfs2` to be attempted to be downloads or appear in > `new-dir`. -- This message was sent by Atlassian Jira (v8.20.10#820010)