I’m using the maven-dependency-plugin to search for SNAPSHOT dependencies in a 
multi-module project. I am filtering out dependencies having the same groupId 
as the maven project. Here’s the command I use:

mvn dependency:tree -Dincludes=:::*-SNAPSHOT -Dexcludes=${project.groupId}

Unfortunately, this command produces the error below:

-bash: -Dexcludes=${project.groupId}: bad substitution


If I use the “old”, non-prefixed property name as shown below, the command 
works fine:

mvn dependency:tree -Dincludes=:::*-SNAPSHOT -Dexcludes=${groupId}


Is this a known issue? I would expect the "${project.groupId}” to work (and I 
think this is the “preferred” property syntax, no?)

The effective pom shows maven-dependency-plugin version 2.8.

More info: 
mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 
2014-12-14T12:29:23-05:00)
Maven home: /Users/bhamail/devtools/apache-maven-3.2.5
Java version: 1.8.0_40, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.3", arch: "x86_64", family: “mac"

Thanks!
Dan


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to