sonar

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>

<groupId>com.huayang.xiang</groupId>

<artifactId>xiangla</artifactId>

<version>2.0.1-SNAPSHOT</version>

</parent>

<artifactId>xiangwap</artifactId>

<packaging>war</packaging>

<name>xiangwap</name>

<url>http://maven.apache.org</url>

<dependencies>

<dependency>

<groupId>com.huayang.xiang</groupId>

<artifactId>xiang-service</artifactId>

<version>${project.version}</version>

</dependency>

</dependencies>

<profiles>

<profile>

<id>dev</id>

<properties>

<env>dev</env>

<finalName>xiangwap</finalName>

</properties>

<activation>

<activeByDefault>true</activeByDefault>

</activation>

</profile>

<profile>

<id>test</id>

<properties>

<env>test</env>

<finalName>ROOT</finalName>

</properties>

</profile>

<profile>

<id>qa</id>

<properties>

<env>qa</env>

<finalName>ROOT</finalName>

</properties>

</profile>

<profile>

<id>pre</id>

<properties>

<env>pre</env>

<finalName>ROOT</finalName>

</properties>

</profile>

<profile>

<id>prod</id>

<properties>

<env>prod</env>

<finalName>ROOT</finalName>

</properties>

</profile>

<profile>

<id>hudson-test</id>

<properties>

<env>hudson-test</env>

<finalName>xiangwap</finalName>

</properties>

<build>

<plugins>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-surefire-plugin</artifactId>

<version>2.7.2</version>

<configuration>

<skip>true</skip>

<forkMode>once</forkMode>

<argLine>-Dfile.encoding=UTF-8</argLine>

</configuration>

<executions>

<execution>

<id>run-integration-test</id>

<phase>integration-test</phase>

<goals>

<goal>test</goal>

</goals>

<configuration>

<skip>false</skip>

<includes>

<include>**/FeedbackManagerV2IT.java</include>

</includes>

</configuration>

</execution>

<!--

<execution> <id>run-test</id> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <skip>false</skip> <includes> <include>**/*UT.java</include> </includes> </configuration> </execution>

-->

</executions>

</plugin>

<plugin>

<groupId>org.mortbay.jetty</groupId>

<artifactId>jetty-maven-plugin</artifactId>

<version>${jetty.version}</version>

<configuration>

<stopPort>9966</stopPort>

<stopKey>stop-jetty-for-it</stopKey>

</configuration>

<executions>

<execution>

<id>start-jetty</id>

<phase>pre-integration-test</phase>

<goals>

<goal>run</goal>

</goals>

<configuration>

<daemon>true</daemon>

</configuration>

</execution>

<execution>

<id>stop-jetty</id>

<phase>post-integration-test</phase>

<goals>

<goal>stop</goal>

</goals>

</execution>

</executions>

</plugin>

<plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>sql-maven-plugin</artifactId>

<version>1.5</version>

<dependencies>

<dependency>

<groupId>mysql</groupId>

<artifactId>mysql-connector-java</artifactId>

<version>5.1.25</version>

</dependency>

</dependencies>

<!-- common configuration shared by all executions -->

<configuration>

<driver>com.mysql.jdbc.Driver</driver>

<url>jdbc:mysql://localhost:3306/xiangla</url>

<username>root</username>

<password>123456</password>

<settingsKey>sensibleKey</settingsKey>

<skip>${maven.test.skip}</skip>

</configuration>

<executions>

<execution>

<id>drop-db-before-test-if-any</id>

<phase>process-test-resources</phase>

<goals>

<goal>execute</goal>

</goals>

<configuration>

<url>jdbc:mysql://localhost:3306/test</url>

<autocommit>true</autocommit>

<sqlCommand>drop database xiangla</sqlCommand>

<onError>continue</onError>

</configuration>

</execution>

<execution>

<id>create-db</id>

<phase>process-test-resources</phase>

<goals>

<goal>execute</goal>

</goals>

<configuration>

<url>jdbc:mysql://localhost:3306/test</url>

<!-- no transaction -->

<autocommit>true</autocommit>

<sqlCommand>create database xiangla</sqlCommand>

</configuration>

</execution>

<execution>

<id>create-schema</id>

<phase>process-test-resources</phase>

<goals>

<goal>execute</goal>

</goals>

<configuration>

<autocommit>true</autocommit>

<srcFiles>

<srcFile>src/main/sql/1.sql</srcFile>

</srcFiles>

</configuration>

</execution>

<execution>

<id>create-data</id>

<phase>process-test-resources</phase>

<goals>

<goal>execute</goal>

</goals>

<configuration>

<orderFile>ascending</orderFile>

<fileset>

<basedir>${basedir}</basedir>

<includes>

<include>src/test/sql/data.sql</include>

</includes>

</fileset>

</configuration>

</execution>

<!-- drop db after test -->

<execution>

<id>drop-db-after-test</id>

<phase>test</phase>

<goals>

<goal>execute</goal>

</goals>

<configuration>

<autocommit>true</autocommit>

<sqlCommand>drop database xiangla</sqlCommand>

</configuration>

</execution>

</executions>

</plugin>

</plugins>

</build>

</profile>

</profiles>

<build>

<finalName>${finalName}</finalName>

<filters>

<filter>config/${env}.properties</filter>

</filters>

<resources>

<resource>

<directory>src/main/resources</directory>

<filtering>true</filtering>

<includes>

<include>**/*.properties</include>

<include>struts.xml</include>

<include>sysconf.xml</include>

<include>SelectCode.xml</include>

</includes>

</resource>

<resource>

<directory>src/main/resources</directory>

<filtering>false</filtering>

</resource>

</resources>

<plugins>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-surefire-plugin</artifactId>

<version>2.7.2</version>

<configuration></configuration>

</plugin>

</plugins>

</build>

</project>

你可能感兴趣的:(Sonar)