Bloc-note 'maven2'
Le 1 avril 2007, à 15:8 par Ulhume...

Bloc-Note sur Maven

Générer la documentation dans le site

Contexte : pom.xml/project/reporting/plugins

  1. <plugin>
  2.            <artifactId>maven-surefire-plugin</artifactId>
  3.            <configuration>
  4.               <test>**/*Test</test>
  5.            </configuration>
  6.         </plugin>

Générer lun rapport CheckStyle dans le site

Contexte : pom.xml/project/reporting/plugins

  1. <plugin>
  2.    <groupId>org.apache.maven.plugins</groupId>
  3.    <artifactId>maven-checkstyle-plugin</artifactId>
  4.    <version>2.0-beta-1</version>
  5.    <configuration>
  6.       <configLocation>./janus.checkstyle.xml</configLocation>
  7.       <linkXref>true</linkXref>
  8.       <sourceEncoding>utf-8</sourceEncoding>
  9.       <minimumTokens>100</minimumTokens>
  10.       <!--                                    <propertiesURL>http://localhost/conf/checkstyle.xml</propertiesURL> -->
  11.    </configuration>
  12. </plugin>

Déployer sous tomcat

Contexte : pom.xml/project/buid/plugins

  1. <plugin>
  2.        <groupId>org.codehaus.mojo</groupId>
  3.        <artifactId>tomcat-maven-plugin</artifactId>
  4.        <version>1.0-SNAPSHOT</version>
  5.        <configuration>
  6.           <url>http://www.serverTomcat.com:8080/manager</url>
  7.           <server>serverTomcat</server>
  8.        </configuration>
  9.     </plugin>

Commentaires

Poster un nouveau commentaire

Le contenu de ce champ est gardé secret et ne sera pas montré publiquement.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • To highlight piece of code, just surround them with <code type="language"> Your code &tl;/code>>. Language can be java,c++,bash,etc... Everything Geshi support.
  • Les lignes et les paragraphes vont à la ligne automatiquement.
  • Textual smileys will be replaced with graphical ones.
  • Les adresses de pages web et de messagerie électronique sont transformées en liens automatiquement.

Plus d'informations sur les options de formatage

Connexion utilisateur
Sommaire
Commentaires récents