跳过maven项目中集成测试的编译
在安装maven项目时,如何跳过集成测试的编译? 我只找到了-DskipITs和-dskiptest,但它们只跳过执行,不跳过编译。 我想删除所需的测试依赖项跳过maven项目中集成测试的编译,maven,integration-testing,Maven,Integration Testing,在安装maven项目时,如何跳过集成测试的编译? 我只找到了-DskipITs和-dskiptest,但它们只跳过执行,不跳过编译。 我想删除所需的测试依赖项 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocatio
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.example.confluence</groupId>
<artifactId>qspaRest</artifactId>
<packaging>atlassian-plugin</packaging>
<name>qspaRest</name>
<version>3.0.4-SNAPSHOT</version>
<description>REST resources needed by the QSPA backend importer for
* getting meta information from a space (name, description, homepage, permissions, ...)</description>
<build>
<sourceDirectory>/Users/example/git/qsparest/qsparest/src/main/java</sourceDirectory>
<scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
<testSourceDirectory>/Users/example/git/qsparest/qsparest/src/test/java</testSourceDirectory>
<outputDirectory>/Users/example/git/qsparest/qsparest/target/classes</outputDirectory>
<testOutputDirectory>/Users/example/git/qsparest/qsparest/target/test-classes</testOutputDirectory>
<resources>
<resource>
<directory>/Users/example/git/qsparest/qsparest/src/main/resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>/Users/example/git/qsparest/qsparest/src/test/resources</directory>
</testResource>
</testResources>
<directory>/Users/example/git/qsparest/qsparest/target</directory>
<!-- <finalName>qspaRest-3.0.3-SNAPSHOT</finalName>-->
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
</plugin>
<!-- For install:install-file-->
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
-->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-2</version>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.0</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<version>2.3.1</version>
</plugin>
<plugin>
<artifactId>maven-ejb-plugin</artifactId>
<version>2.1</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>2.4.3</version>
</plugin>
<plugin>
<artifactId>maven-rar-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-8</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.3</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>2.0-beta-7</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.0.4</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-alpha-2</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<!-- delete directories that will be generated when you
start the develpment server/client in eclipse
-->
<fileset>
<directory>target</directory>
<includes>
<include>**/*</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-confluence-plugin</artifactId>
<version>3.9</version>
<extensions>true</extensions>
<configuration>
<allowGoogleTracking>false</allowGoogleTracking>
<productVersion>${confluence.version}</productVersion>
<productDataVersion>3.5</productDataVersion>
<productDataPath>${basedir}/src/test/resources/generated-test-resources.zip</productDataPath>
<instructions />
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<releases>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<id>atlassian-public</id>
<url>https://m2proxy.atlassian.com/repository/public</url>
</repository>
<repository>
<releases>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>atlassian-plugin-sdk</id>
<url>file:///Users/example/Desktop/atlassian-plugin-sdk-3.9/repository</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Maven Repository Switchboard</name>
<url>http://repo1.maven.org/maven2</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<id>atlassian-public</id>
<url>https://m2proxy.atlassian.com/repository/public</url>
</pluginRepository>
<pluginRepository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Maven Plugin Repository</name>
<url>http://repo1.maven.org/maven2</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sourceforge.jwebunit</groupId>
<artifactId>jwebunit-htmlunit-plugin</artifactId>
<version>2.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.atlassian.confluence.plugin</groupId>
<artifactId>func-test</artifactId>
<version>2.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.confluence</groupId>
<artifactId>confluence</artifactId>
<version>${confluence.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.wink</groupId>
<artifactId>wink-client</artifactId>
<version>1.1.3-incubating</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.8.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<!--
<dependency>
<groupId>de.example</groupId>
<artifactId>qspaBackend</artifactId>
<version>3.0.3-SNAPSHOT</version>
</dependency>
-->
<!-- TODO: There is no separate confluence artifact, so we depend on the complete backend at the moment
-->
<dependency>
<groupId>de.example</groupId>
<artifactId>qspaJiraModel</artifactId>
<version>3.0.3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.example</groupId>
<artifactId>qspaConfluenceModel</artifactId>
<version>3.0.4-SNAPSHOT</version>
</dependency>
<!--
-->
</dependencies>
<reporting>
<outputDirectory>/Users/example/git/qsparest/qsparest/target/site</outputDirectory>
</reporting>
<properties>
<amps.version>3.9</amps.version>
<downloadSources>true</downloadSources>
<confluence.data.version>3.5</confluence.data.version>
<downloadJavadocs>true</downloadJavadocs>
<confluence.version>4.1.4</confluence.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<skipTests>true</skipTests>
<!-- Settings for install:install-file-->
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<packaging>${project.packaging}</packaging>
<file>${project.build.directory}/${project.build.finalName}.jar</file>
</properties>
</project>
4.0.0
汇合
qspaRest
大西洋插件
qspaRest
3.0.4-快照
QSPA后端导入程序需要的REST资源
*从空间获取元信息(名称、描述、主页、权限等)
/Users/example/git/qsparest/qsparest/src/main/java
src/main/scripts
/Users/example/git/qsparest/qsparest/src/test/java
/用户/example/git/qsparest/qsparest/target/classes
/用户/example/git/qsparest/qsparest/target/test类
/Users/example/git/qsparest/qsparest/src/main/resources
/Users/example/git/qsparest/qsparest/src/test/resources
/用户/example/git/qsparest/qsparest/target
maven编译器插件
2.0.2
maven antrun插件
1.3
maven汇编插件
2.2-β-2
maven清洁插件
2.5
maven依赖插件
2
maven部署插件
2.4
maven耳朵插件
2.3.1
maven ejb插件
2.1
maven安装插件
2.2
maven jar插件
2.2
maven javadoc插件
2.5
maven插件
2.4.3
maven rar插件
2.2
maven发布插件
2.0-beta-8
maven资源插件
2.3
maven站点插件
2.0-beta-7
maven源插件
2.0.4
maven surefire插件
2.4.3
maven战争插件
2.1-α-2
maven清洁插件
真的
目标
**/*
com.atlassian.maven.plugins
maven汇流插件
3.9
真的
假的
${confluence.version}
3.5
${basedir}/src/test/resources/generated-test-resources.zip
maven编译器插件
2.0.2
1.6
1.6
警告
假的
每日的
警告
大西洋公众
https://m2proxy.atlassian.com/repository/public
警告
假的
atlassian插件sdk
file:///Users/example/Desktop/atlassian-plugin-sdk-3.9/repository
假的
中心的
Maven存储库交换机
http://repo1.maven.org/maven2
警告
假的
警告
大西洋公众
https://m2proxy.atlassian.com/repository/public
从未
假的
中心的
Maven插件库
http://repo1.maven.org/maven2
org.slf4j
slf4j api
1.6.4
假如
朱尼特
朱尼特
4.6
测试
net.sourceforge.jwebunit
jwebunit htmlunit插件
2.2
测试
com.atlassian.confluence.plugin
func检验
2.3
假如
合流
汇流
${confluence.version}
假如
org.apache.wink
眨眼客户端
1.1.3-孵化
测试
org.mockito
莫基托所有
1.8.5
测试
javax.ws.rs
jsr311 api
1
假如
例如
qspaJiraModel
3.0.3-快照
例如
qspaConfluenceModel
3.0.4-快照
/用户/example/git/qsparest/qsparest/target/site
3.9
真的
3.5
真的
4.1.4
UTF-8
真的
${project.groupId}
${project.artifactId}
${project.version}
${project.packaging}
${project.build.directory}/${project.build.finalName}.jar
属性-Dmaven.test.skip=true
将跳过所有测试和所有测试编译,因为它被failsafe、surefire和编译器插件接受。所有其他属性,如-DskipTests
只会跳过测试的执行,但仍会编译文件。可能的重复项