Advertisement
Guest User

Untitled

a guest
May 13th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 28.03 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  3.         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4.     <modelVersion>4.0.0</modelVersion>
  5.  
  6.     <!-- =============================================================== -->
  7.     <!-- Project informations -->
  8.     <!-- =============================================================== -->
  9.     <!-- ===== Maven ===== -->
  10.     <groupId>com.dummy.myerp</groupId>
  11.     <artifactId>myerp</artifactId>
  12.     <version>1.x.x-SNAPSHOT</version>
  13.     <packaging>pom</packaging>
  14.  
  15.     <!-- ===== General information ===== -->
  16.     <name>MyERP</name>
  17.     <description>
  18.         ERP sur-mesure pour Dummy...
  19.     </description>
  20.     <url>http://www.dummy.com/projects/myerp</url>
  21.  
  22.     <!-- ===== Organization ===== -->
  23.     <organization>
  24.         <name>Dummy</name>
  25.         <url>http://www.dummy.com</url>
  26.     </organization>
  27.  
  28.  
  29.     <!-- =============================================================== -->
  30.     <!-- Distrubution management -->
  31.     <!-- =============================================================== -->
  32.     <distributionManagement>
  33.         <site>
  34.             <id>site</id>
  35.             <name>site-doc</name>
  36.             <url>file://${project.build.directory}/site-doc/</url>
  37.         </site>
  38.     </distributionManagement>
  39.  
  40.  
  41.     <!-- =============================================================== -->
  42.     <!-- Properties -->
  43.     <!-- =============================================================== -->
  44.     <properties>
  45.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  46.         <java.version>1.8</java.version>
  47.         <maven.build.timestamp.format>dd/MM/yyyy</maven.build.timestamp.format>
  48.         <buildTime>${maven.build.timestamp}</buildTime>
  49.  
  50.         <!-- ===== Application properties ===== -->
  51.         <application.name>MyERP</application.name>
  52.  
  53.         <!-- ===== Version properties ===== -->
  54.         <log4j.version>2.8.1</log4j.version>
  55.         <spring.version>4.3.7.RELEASE</spring.version>
  56.         <!-- Sonar -->
  57.         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
  58.         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
  59.         <sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
  60.         <sonar.language>java</sonar.language>
  61.     </properties>
  62.  
  63.  
  64.     <!-- =============================================================== -->
  65.     <!-- Modules -->
  66.     <!-- =============================================================== -->
  67.     <modules>
  68.         <module>myerp-technical</module>
  69.         <module>myerp-model</module>
  70.         <module>myerp-consumer</module>
  71.         <module>myerp-business</module>
  72.     </modules>
  73.  
  74.  
  75.     <!-- =============================================================== -->
  76.     <!-- Profiles -->
  77.     <!-- =============================================================== -->
  78.     <profiles>
  79.         <!-- Profile utilisé par le plugin m2e d'Eclipse -->
  80.         <profile>
  81.             <id>m2e</id>
  82.             <activation>
  83.                 <property>
  84.                     <name>m2e.version</name>
  85.                 </property>
  86.             </activation>
  87.             <properties>
  88.                 <maven.build.timestamp>DD/MM/YYYY</maven.build.timestamp>
  89.             </properties>
  90.         </profile>
  91.  
  92.         <!-- Profile utilisé pour lancer les tests d'intégration de la couche Business -->
  93.         <profile>
  94.             <id>test-business</id>
  95.         </profile>
  96.  
  97.         <!-- Profile utilisé pour lancer les tests d'intégration de la couche Consumer -->
  98.         <profile>
  99.             <id>test-consumer</id>
  100.         </profile>
  101.  
  102.         <profile>
  103.             <id>sonar</id>
  104.             <activation>
  105.                 <activeByDefault>true</activeByDefault>
  106.             </activation>
  107.             <properties>
  108.                 <!-- Optional URL to server. Default value is http://localhost:9000 -->
  109.                 <sonar.host.url>
  110.                     http://localhost:9000
  111.                 </sonar.host.url>
  112.             </properties>
  113.         </profile>
  114.     </profiles>
  115.  
  116.  
  117.     <!-- =============================================================== -->
  118.     <!-- Repositories -->
  119.     <!-- =============================================================== -->
  120.     <repositories>
  121.         <!-- ===== Project local repository ===== -->
  122.         <repository>
  123.             <id>project.local</id>
  124.             <name>project.local</name>
  125.             <url>file://${basedir}/../src/lib/</url>
  126.             <releases>
  127.                 <updatePolicy>always</updatePolicy>
  128.             </releases>
  129.         </repository>
  130.     </repositories>
  131.  
  132.  
  133.     <!-- =============================================================== -->
  134.     <!-- Dependency managment -->
  135.     <!-- =============================================================== -->
  136.     <dependencyManagement>
  137.         <dependencies>
  138.             <!-- ========== Modules ========== -->
  139.             <dependency>
  140.                 <groupId>${project.groupId}</groupId>
  141.                 <artifactId>myerp-technical</artifactId>
  142.                 <version>${project.version}</version>
  143.             </dependency>
  144.             <dependency>
  145.                 <groupId>${project.groupId}</groupId>
  146.                 <artifactId>myerp-model</artifactId>
  147.                 <version>${project.version}</version>
  148.             </dependency>
  149.             <dependency>
  150.                 <groupId>${project.groupId}</groupId>
  151.                 <artifactId>myerp-consumer</artifactId>
  152.                 <version>${project.version}</version>
  153.             </dependency>
  154.             <dependency>
  155.                 <groupId>${project.groupId}</groupId>
  156.                 <artifactId>myerp-business</artifactId>
  157.                 <version>${project.version}</version>
  158.             </dependency>
  159.  
  160.  
  161.             <!-- ========== Libraries ========== -->
  162.             <!-- ===== Log4j ===== -->
  163.             <dependency>
  164.                 <groupId>org.apache.logging.log4j</groupId>
  165.                 <artifactId>log4j-api</artifactId>
  166.                 <version>${log4j.version}</version>
  167.             </dependency>
  168.             <dependency>
  169.                 <groupId>org.apache.logging.log4j</groupId>
  170.                 <artifactId>log4j-core</artifactId>
  171.                 <version>${log4j.version}</version>
  172.             </dependency>
  173.             <!-- Commons Logging Bridge -->
  174.             <dependency>
  175.                 <groupId>org.apache.logging.log4j</groupId>
  176.                 <artifactId>log4j-jcl</artifactId>
  177.                 <version>${log4j.version}</version>
  178.             </dependency>
  179.             <!-- Log4j 2 SLF4J Binding -->
  180.             <dependency>
  181.                 <groupId>org.apache.logging.log4j</groupId>
  182.                 <artifactId>log4j-slf4j-impl</artifactId>
  183.                 <version>${log4j.version}</version>
  184.             </dependency>
  185.  
  186.             <!-- ===== JSR 303 - Bean validation ===== -->
  187.             <!-- interface -->
  188.             <dependency>
  189.                 <groupId>javax.validation</groupId>
  190.                 <artifactId>validation-api</artifactId>
  191.                 <version>1.1.0.Final</version>
  192.             </dependency>
  193.             <!-- implementation -->
  194.             <dependency>
  195.                 <groupId>org.hibernate</groupId>
  196.                 <artifactId>hibernate-validator</artifactId>
  197.                 <version>4.2.0.Final</version>
  198.             </dependency>
  199.  
  200.             <!-- ===== Apache Commons ===== -->
  201.             <dependency>
  202.                 <groupId>org.apache.commons</groupId>
  203.                 <artifactId>commons-collections4</artifactId>
  204.                 <version>4.1</version>
  205.             </dependency>
  206.             <dependency>
  207.                 <groupId>org.apache.commons</groupId>
  208.                 <artifactId>commons-lang3</artifactId>
  209.                 <version>3.5</version>
  210.             </dependency>
  211.  
  212.             <!-- ===== Spring IOC ===== -->
  213.             <dependency>
  214.                 <groupId>org.springframework</groupId>
  215.                 <artifactId>spring-core</artifactId>
  216.                 <version>${spring.version}</version>
  217.                 <scope>compile</scope>
  218.             </dependency>
  219.             <dependency>
  220.                 <groupId>org.springframework</groupId>
  221.                 <artifactId>spring-context</artifactId>
  222.                 <version>${spring.version}</version>
  223.                 <scope>compile</scope>
  224.             </dependency>
  225.             <dependency>
  226.                 <groupId>org.springframework</groupId>
  227.                 <artifactId>spring-beans</artifactId>
  228.                 <version>${spring.version}</version>
  229.                 <scope>compile</scope>
  230.             </dependency>
  231.  
  232.             <!-- ===== Spring JDBC/Tx ===== -->
  233.             <!-- spring-tx : transaction, JCA, DAO -->
  234.             <dependency>
  235.                 <groupId>org.springframework</groupId>
  236.                 <artifactId>spring-tx</artifactId>
  237.                 <version>${spring.version}</version>
  238.                 <scope>compile</scope>
  239.             </dependency>
  240.             <!-- spring-jdbc : commons-exceptions, datasource management -->
  241.             <dependency>
  242.                 <groupId>org.springframework</groupId>
  243.                 <artifactId>spring-jdbc</artifactId>
  244.                 <version>${spring.version}</version>
  245.                 <scope>compile</scope>
  246.             </dependency>
  247.  
  248.             <!-- ===== Database ===== -->
  249.             <!-- DB Connection pool -->
  250.             <dependency>
  251.                 <groupId>org.apache.commons</groupId>
  252.                 <artifactId>commons-dbcp2</artifactId>
  253.                 <version>2.1.1</version>
  254.             </dependency>
  255.             <!-- JDBC Drivers : PostgreSQL -->
  256.             <dependency>
  257.                 <groupId>org.postgresql</groupId>
  258.                 <artifactId>postgresql</artifactId>
  259.                 <version>9.4.1212</version>
  260.                 <scope>runtime</scope>
  261.             </dependency>
  262.  
  263.             <!-- ===== Test unitaires ===== -->
  264.             <dependency>
  265.                 <groupId>junit</groupId>
  266.                 <artifactId>junit</artifactId>
  267.                 <version>4.12</version>
  268.                 <scope>test</scope>
  269.             </dependency>
  270.             <dependency>
  271.                 <groupId>org.springframework</groupId>
  272.                 <artifactId>spring-test</artifactId>
  273.                 <scope>test</scope>
  274.                 <version>4.3.7.RELEASE</version>
  275.             </dependency>
  276.  
  277.             <!-- ===== JaxB API ===== -->
  278.             <!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
  279.             <dependency>
  280.                 <groupId>javax.xml.bind</groupId>
  281.                 <artifactId>jaxb-api</artifactId>
  282.                 <version>2.4.0-b180830.0359</version>
  283.             </dependency>
  284.  
  285.  
  286.             <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-report-plugin -->
  287.             <dependency>
  288.                 <groupId>org.apache.maven.plugins</groupId>
  289.                 <artifactId>maven-surefire-report-plugin</artifactId>
  290.                 <version>3.0.0-M3</version>
  291.             </dependency>
  292.  
  293.             <!-- =============================================================== -->
  294.             <!-- Dependencies -->
  295.             <!-- =============================================================== -->
  296.  
  297.             <!--&lt;!&ndash; Mockito&ndash;&gt;
  298.             &lt;!&ndash; https://mvnrepository.com/artifact/org.mockito/mockito-all &ndash;&gt;
  299.             <dependency>
  300.                 <groupId>org.mockito</groupId>
  301.                 <artifactId>mockito-all</artifactId>
  302.                 <version>1.9.5</version>
  303.                 <scope>test</scope>
  304.             </dependency>-->
  305.             <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
  306.             <dependency>
  307.                 <groupId>org.sonarsource.scanner.maven</groupId>
  308.                 <artifactId>sonar-maven-plugin</artifactId>
  309.                 <version>3.2</version>
  310.             </dependency>
  311.  
  312.         </dependencies>
  313.     </dependencyManagement>
  314.  
  315.     <!-- =============================================================== -->
  316.     <!-- Build -->
  317.     <!-- =============================================================== -->
  318.     <build>
  319.         <!-- =============================================================== -->
  320.         <!-- pluginManagement -->
  321.         <!-- =============================================================== -->
  322.         <pluginManagement>
  323.             <plugins>
  324.                 <!-- ===== Java compilation ===== -->
  325.                 <plugin>
  326.                     <groupId>org.apache.maven.plugins</groupId>
  327.                     <artifactId>maven-compiler-plugin</artifactId>
  328.                     <version>3.6.1</version>
  329.                     <configuration>
  330.                         <source>${java.version}</source>
  331.                         <target>${java.version}</target>
  332.                     </configuration>
  333.                 </plugin>
  334.  
  335.                 <!-- ===== "Filtrage/Parsing" des resources ===== -->
  336.                 <plugin>
  337.                     <groupId>org.apache.maven.plugins</groupId>
  338.                     <artifactId>maven-resources-plugin</artifactId>
  339.                     <version>3.0.2</version>
  340.                     <configuration>
  341.                         <encoding>${project.build.sourceEncoding}</encoding>
  342.                     </configuration>
  343.                 </plugin>
  344.  
  345.                 <!-- ===== Gestion des dépendences ===== -->
  346.                 <plugin>
  347.                     <groupId>org.apache.maven.plugins</groupId>
  348.                     <artifactId>maven-dependency-plugin</artifactId>
  349.                     <version>3.0</version>
  350.                 </plugin>
  351.  
  352.                 <!-- ===== Création des JAR ===== -->
  353.                 <plugin>
  354.                     <groupId>org.apache.maven.plugins</groupId>
  355.                     <artifactId>maven-jar-plugin</artifactId>
  356.                     <version>3.0.2</version>
  357.                 </plugin>
  358.  
  359.                 <!-- ===== Création des WAR (webapp) ===== -->
  360.                 <plugin>
  361.                     <groupId>org.apache.maven.plugins</groupId>
  362.                     <artifactId>maven-war-plugin</artifactId>
  363.                     <version>3.0.0</version>
  364.                 </plugin>
  365.  
  366.                 <!-- ===== Assemblage d'éléments (ex: génération du ZIP de déploiement des batches) ===== -->
  367.                 <plugin>
  368.                     <groupId>org.apache.maven.plugins</groupId>
  369.                     <artifactId>maven-assembly-plugin</artifactId>
  370.                     <version>3.0.0</version>
  371.                 </plugin>
  372.  
  373.                 <!-- ===== Déploiement des artifacts ===== -->
  374.                 <plugin>
  375.                     <groupId>org.apache.maven.plugins</groupId>
  376.                     <artifactId>maven-deploy-plugin</artifactId>
  377.                     <version>2.8.2</version>
  378.                 </plugin>
  379.  
  380.                 <!-- ===== Test / Reporting ===== -->
  381.                 <plugin>
  382.                     <groupId>org.apache.maven.plugins</groupId>
  383.                     <artifactId>maven-surefire-plugin</artifactId>
  384.                     <version>3.0.0-M3</version>
  385.                 </plugin>
  386.  
  387.                 <plugin>
  388.                     <groupId>org.sonarsource.scanner.maven</groupId>
  389.                     <artifactId>sonar-maven-plugin</artifactId>
  390.                     <version>3.6.0.1398</version>
  391.                 </plugin>
  392.  
  393.                 <!-- ===== Plugin d'analyse de code Checkstyle ===== -->
  394.                 <plugin>
  395.                     <groupId>org.apache.maven.plugins</groupId>
  396.                     <artifactId>maven-checkstyle-plugin</artifactId>
  397.                     <version>2.17</version>
  398.                     <configuration>
  399.                         <configLocation>src/build/checkstyle.xml</configLocation>
  400.                     </configuration>
  401.                 </plugin>
  402.                 <plugin>
  403.                     <groupId>org.apache.maven.plugins</groupId>
  404.                     <artifactId>maven-failsafe-plugin</artifactId>
  405.                     <version>3.0.0-M3</version>
  406.                 </plugin>
  407.  
  408.                 <!-- ===== Plugin de génération d'un site de documentation du projet ===== -->
  409.                 <plugin>
  410.                     <groupId>org.apache.maven.plugins</groupId>
  411.                     <artifactId>maven-site-plugin</artifactId>
  412.                     <version>3.6</version>
  413.                     <inherited>true</inherited>
  414.                     <configuration>
  415.                         <locales>fr</locales>
  416.                         <relativizeDecorationLinks>false</relativizeDecorationLinks>
  417.                     </configuration>
  418.                 </plugin>
  419.  
  420.                 <!-- ===== Project info ===== -->
  421.                 <plugin>
  422.                     <groupId>org.apache.maven.plugins</groupId>
  423.                     <artifactId>maven-project-info-reports-plugin</artifactId>
  424.                     <version>2.9</version>
  425.                 </plugin>
  426.  
  427.                 <!-- ===== Javadoc ===== -->
  428.                 <plugin>
  429.                     <groupId>org.apache.maven.plugins</groupId>
  430.                     <artifactId>maven-javadoc-plugin</artifactId>
  431.                     <version>2.10.4</version>
  432.                 </plugin>
  433.  
  434.                 <!-- ===== Aide au constructions particulières ===== -->
  435.                 <!-- Ex : Ajout de répertoire de sources générées en tant que source d'un module -->
  436.                 <plugin>
  437.                     <groupId>org.codehaus.mojo</groupId>
  438.                     <artifactId>build-helper-maven-plugin</artifactId>
  439.                     <version>1.10</version>
  440.                 </plugin>
  441.                 <!--<plugin>
  442.                    <groupId>org.jacoco</groupId>
  443.                    <artifactId>jacoco-maven-plugin</artifactId>
  444.                    <version>0.8.3</version>
  445.                    <executions>
  446.                        <execution>
  447.                            <id>default-prepare-agent</id>
  448.                            <goals>
  449.                                <goal>prepare-agent</goal>
  450.                            </goals>
  451.                        </execution>
  452.                        <execution>
  453.                            <id>default-report</id>
  454.                            <goals>
  455.                                <goal>report</goal>
  456.                            </goals>
  457.                        </execution>
  458.                        <execution>
  459.                            <id>default-check</id>
  460.                            <goals>
  461.                                <goal>check</goal>
  462.                            </goals>
  463.                            <configuration>
  464.                                <rules>
  465.                                    &lt;!&ndash;  implementation is needed only for Maven 2  &ndash;&gt;
  466.                                    <rule implementation="org.jacoco.maven.RuleConfiguration">
  467.                                        <element>BUNDLE</element>
  468.                                        <limits>
  469.                                            &lt;!&ndash;  implementation is needed only for Maven 2  &ndash;&gt;
  470.                                            <limit implementation="org.jacoco.report.check.Limit">
  471.                                                <counter>COMPLEXITY</counter>
  472.                                                <value>COVEREDRATIO</value>
  473.                                                <minimum>0.60</minimum>
  474.                                            </limit>
  475.                                        </limits>
  476.                                    </rule>
  477.                                </rules>
  478.                            </configuration>
  479.                        </execution>
  480.                        <execution>
  481.                            <id>merge</id>
  482.                            <goals>
  483.                                <goal>merge</goal>
  484.                            </goals>
  485.                            <configuration>
  486.                                <fileSets>
  487.                                    <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
  488.                                        <directory>${project.basedir}</directory>
  489.                                        <includes>
  490.                                            <include>**/*.exec</include>
  491.                                        </includes>
  492.                                    </fileSet>
  493.                                </fileSets>
  494.                            </configuration>
  495.                        </execution>
  496.                    </executions>
  497.                </plugin>-->
  498.                 <plugin>
  499.                     <groupId>org.jacoco</groupId>
  500.                     <artifactId>jacoco-maven-plugin</artifactId>
  501.                     <version>0.8.3</version>
  502.                     <configuration>
  503.                         <destFile>${sonar.jacoco.reportPath}</destFile>
  504.                         <append>true</append>
  505.                     </configuration>
  506.                     <executions>
  507.                         <execution>
  508.                             <id>agent</id>
  509.                             <goals>
  510.                                 <goal>prepare-agent</goal>
  511.                             </goals>
  512.                         </execution>
  513.                     </executions>
  514.                 </plugin>
  515.             </plugins>
  516.         </pluginManagement>
  517.     </build>
  518.  
  519.  
  520.     <!-- =============================================================== -->
  521.     <!-- Reporting -->
  522.     <!-- =============================================================== -->
  523.     <reporting>
  524.         <excludeDefaults>true</excludeDefaults>
  525.         <outputDirectory>${project.build.directory}/site</outputDirectory>
  526.         <plugins>
  527.             <!-- ===== Génération du site de documentation de base avec les "rapports génériques" ===== -->
  528.             <plugin>
  529.                 <groupId>org.apache.maven.plugins</groupId>
  530.                 <artifactId>maven-project-info-reports-plugin</artifactId>
  531.                 <version>2.9</version>
  532.                 <configuration>
  533.                     <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
  534.                 </configuration>
  535.                 <reportSets>
  536.                     <reportSet>
  537.                         <reports>
  538.                             <report>index</report>
  539.                             <report>summary</report>
  540.                             <report>license</report>
  541.                             <report>modules</report>
  542.                             <report>dependencies</report>
  543.                             <report>dependency-convergence</report>
  544.                             <report>dependency-management</report>
  545.                             <report>plugin-management</report>
  546.                             <report>plugins</report>
  547.                             <report>project-team</report>
  548.                             <report>scm</report>
  549.                         </reports>
  550.                     </reportSet>
  551.                 </reportSets>
  552.             </plugin>
  553.  
  554.             <!-- ===== Création du rapport des tests unitaires (JUnit) ===== -->
  555.             <plugin>
  556.                 <groupId>org.apache.maven.plugins</groupId>
  557.                 <artifactId>maven-surefire-report-plugin</artifactId>
  558.                 <version>3.0.0-M3</version>
  559.                 <configuration>
  560.                     <linkXRef>false</linkXRef>
  561.                 </configuration>
  562.                 <reportSets>
  563.                     <!-- reportSet par défaut, exécuté dans tous les modules (non-aggregate reports) -->
  564.                     <reportSet>
  565.                         <reports>
  566.                             <!-- goal "report-only" afin de ne pas relancer les tests unitaires
  567.                                 car normalement ils ont été lancés par la phase compile -->
  568.                             <report>report-only</report>
  569.                         </reports>
  570.                     </reportSet>
  571.                     <reportSet>
  572.                         <!-- reportSet d'agrégation des rapports des sous-modules -->
  573.                         <id>aggregate</id>
  574.                         <!-- don't run aggregate in child modules -->
  575.                         <inherited>false</inherited>
  576.                         <reports>
  577.                             <!-- goal "report-only" afin de ne pas relancer les tests unitaires
  578.                                 car normalement ils ont été lancés par la phase compile -->
  579.                             <report>report-only</report>
  580.                         </reports>
  581.                         <configuration>
  582.                             <aggregate>true</aggregate>
  583.                         </configuration>
  584.                     </reportSet>
  585.                 </reportSets>
  586.             </plugin>
  587.  
  588.             <!-- ===== Génération de la Javadoc ===== -->
  589.             <plugin>
  590.                 <groupId>org.apache.maven.plugins</groupId>
  591.                 <artifactId>maven-javadoc-plugin</artifactId>
  592.                 <version>2.10.4</version>
  593.                 <configuration>
  594.                     <!-- Définition de l'exécutable de javadoc à utiliser si on ne prend pas celui par défaut -->
  595.                     <!--javadocExecutable>/opt/java/jdk8/bin/javadoc</javadocExecutable -->
  596.                     <quiet>true</quiet>
  597.                     <locale>fr</locale>
  598.                     <!-- Définition des "groupes" de javadoc -->
  599.                     <groups>
  600.                         <group>
  601.                             <title>Application</title>
  602.                             <packages>com.dummy.myerp*</packages>
  603.                         </group>
  604.                     </groups>
  605.                 </configuration>
  606.                 <reportSets>
  607.                     <!-- reportSet par défaut, exécuté dans tous les modules (non-aggregate reports) -->
  608.                     <reportSet>
  609.                         <reports>
  610.                             <report>javadoc</report>
  611.                         </reports>
  612.                     </reportSet>
  613.                     <!-- reportSet d'agrégation des rapports des sous-modules -->
  614.                     <reportSet>
  615.                         <id>aggregate</id>
  616.                         <!-- don't run aggregate in child modules -->
  617.                         <inherited>false</inherited>
  618.                         <reports>
  619.                             <report>aggregate</report>
  620.                         </reports>
  621.                     </reportSet>
  622.                 </reportSets>
  623.             </plugin>
  624.  
  625.             <!-- ===== Création du rapport d'analyse du code par Checkstyle ===== -->
  626.             <plugin>
  627.                 <groupId>org.apache.maven.plugins</groupId>
  628.                 <artifactId>maven-checkstyle-plugin</artifactId>
  629.                 <version>2.17</version>
  630.                 <configuration>
  631.                     <configLocation>src/build/checkstyle.xml</configLocation>
  632.                     <linkXRef>false</linkXRef>
  633.                 </configuration>
  634.                 <reportSets>
  635.                     <!-- reportSet par défaut, exécuté dans tous les modules (non-aggregate reports) -->
  636.                     <reportSet>
  637.                         <reports>
  638.                             <report>checkstyle</report>
  639.                         </reports>
  640.                     </reportSet>
  641.                     <!-- reportSet d'agrégation des rapports des sous-modules -->
  642.                     <reportSet>
  643.                         <id>checkstyle-aggregate</id>
  644.                         <!-- don't run aggregate in child modules -->
  645.                         <inherited>false</inherited>
  646.                         <configuration>
  647.                             <!-- Skip checktyle execution will only scan the outputFile. -->
  648.                             <skipExec>true</skipExec>
  649.                         </configuration>
  650.                         <reports>
  651.                             <report>checkstyle-aggregate</report>
  652.                         </reports>
  653.                     </reportSet>
  654.                 </reportSets>
  655.             </plugin>
  656.         </plugins>
  657.     </reporting>
  658. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement