depgraph filters don't seem to work

Help
2009-10-26
2013-05-02
  • Renier Morales

    Renier Morales - 2009-10-26

    When using the depgraph plugin, the groupFilter/artifactFilter/versionFilter parameters don't seem to be used by the execution. The resulting graph ends up with has artifacts that do not match the filters given. Is this a known problem?

    Example of filters used with depgraph:fullgraph:
    -DgroupFilter='^com\.company\..*$' -DartifactFilter='^.*$' -DversionFilter='^.*$'

    Will appreciate any clues. Thanks.

     
  • Renier Morales

    Renier Morales - 2009-10-26

    The forum mangled my groupFilter. It should have a slash escaping the dots, except for the last dot.

     
  • Martin Zeltner

    Martin Zeltner - 2009-10-26

    Hi

    You have missed the prefix of the system properties. Here an example:

    mvn depgraph:fullgraph -Ddepgraph.groupFilter='^ch\\..\*$' -Ddepgraph.artifactFilter='^srk.\*$' -Ddepgraph.versionFilter
    ='^.*$'

    Have a look at the "expression" entries of the plugin doc page:
    http://el4j.sourceforge.net/plugins/maven-depgraph-plugin/fullgraph-mojo.html

    Cheers,
    Martin

     
  • Renier Morales

    Renier Morales - 2009-10-26

    Martin, thanks a lot! I completely missed that. Its working as expected now.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks