2009/4/16 Stephen Connolly <[email protected]>:
> when writing a mojo that acts on dependencies.... which is the nicer
> way to handle includes and excludes
> dependency:purge-local-repository has a
> -Dexclude=groupId:artifactId,groupId:artifactId style
> while
> dependency:copy-dependencies has a -DexcludeGroupIds=groupId,groupId
> -DexcludeArtifactIds=artifactId,artifactId
> of course if there was no existing pattern i'd probably use the
> -Dexclude=g:a,g:a,g:a style only allowing wildcards
> e.g. -Dexclude=g1:*,g2:a2,*:a3,g4.*:a4-*
> but the fun there is shell escaping is a pain for cross-platform and
> Java expects quoting to behave differently
> Anyone???

I used the latter syntax for dependency:tree filtering, see:

http://maven.apache.org/plugins/maven-dependency-plugin/examples/filtering-the-dependency-tree.html

Although I went for 'excludes' rather than 'exclude'.  I agree that
some consistency between plugins would be helpful.

Mark

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to