How do you use maven-simian-plugin in Maven2?

I am looking for a plugin to create Maven2 for Simian , and the closest to the post I found is this . The problem is that the documentation for it is for Maven 1. Why is the Maven 1 plugin stored in the Maven 2 repository? I suppose that means I can use it ... but how to use it? The site mentions reporting, but if I don’t src/main/site, then I can’t use it? I kind of hoped for something like mvn simian:simian, similar to mvn checkstyle:checkstyleand mvn pmd:pmd. I do not want to create a website just for reporting. Sites take too long to generate when all I want is enough xml report.

+3
source share
1 answer

The Simian plugin listed in the center is actually for Maven 1 (if you check the contents, you will see the project.xml file and plugin.jelly). Therefore, this explains why this does not work. This is trash and should be removed in my opinion.

As far as I can tell, there is no public Maven 2 plugin, this may have something to do with the license (Simian isn't open source ).

Alternatively, take a look at the PMD CPD plugin , it may not be as full-featured as simian, but I know that it works in Maven 2 it creates and detects copypasta pretty well.

PMD, POM - :

<reporting>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-pmd-plugin</artifactId>
      <version>2.4</version>
    </plugin>
  </plugins>
</reporting>
+1

Source: https://habr.com/ru/post/1711783/


All Articles