Maven plugin to create HTML report to show dependecies in DSM view. Author Yurij Balahonov.
Java CSS
Pull request Compare This branch is 44 commits behind sevntu-checkstyle:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/dtangler/dtangler-core
src
.classpath
.gitignore
.project
.travis.yml
README.md
pom.xml

README.md

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>

2) 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

3) You can run only this plugin instead of all site plugins:

    mvn org.sevntu:dsm-maven-plugin:dsm

4) 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 :)