Skip to content

Latest commit

 

History

History
executable file
·
75 lines (60 loc) · 2.54 KB

README.md

File metadata and controls

executable file
·
75 lines (60 loc) · 2.54 KB

dsm-maven-plugin Bitdeli Badge Coverage Status Travis

Maven plugin to create HTML report to show dependecies in DSM view.

How to use plugin:

  1. Edit your pom.xml like this:
    <project>
        ...
        <reporting>
            <plugins>
                <plugin>
                    <groupId>org.sevntu</groupId>
                    <artifactId>dsm-maven-plugin</artifactId>
                    <version>2.1</version>
                </plugin>
                <!--  other reportin plugins  -->
            </plugins>
        </reporting>
        ...
    </project>
  1. Then execute following commands:
    mvn clean install site

Instead of install you can use copmile, package or other stage, that generates class files.

DSM site part will be placed in target/site/dsm directory

  1. You can run only this plugin instead of all site plugins:
    mvn org.sevntu:dsm-maven-plugin:dsm
  1. Also you can use option obfuscatePackageNames, that truncates package names to more short form (com.mysite.oneproject.somemodule.package -> c.m.o.somemodule.package for example). It is switched off by default.

There are two way to use it:

a) Edit yours pom.xml and add configuration section:

     <project>
            ...
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.sevntu</groupId>
                        <artifactId>dsm-maven-plugin</artifactId>
                        <version>2.1</version>
                        <configurations>
                            <obfuscatePackageNames>true</obfuscatePackageNames>
                        </configurations>
                    </plugin>
                    <!--  other reportin plugins  -->
                </plugins>
            </reporting>
            ...
        </project>

b) Run maven with -DobfuscatePackageNames=true (false)

         mvn org.sevntu:dsm-maven-plugin:dsm -DobfuscatePackageNames=true

If you don't use it and have long package name they will be just cutted (com.mysite.oneproject.somemodule.package -> ..project.somemodule.package)

Enjoy :)