设置Jmeter的maven依赖,及maven编译的设置

来源:互联网 发布:淘宝主营率是什么意思 编辑:程序博客网 时间:2024/05/17 23:02
<?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/xsd/maven-4.0.0.xsd">    <modelVersion>4.0.0</modelVersion>    <groupId>JMeterTest</groupId>    <artifactId>JMeterTest</artifactId>    <version>1.0-SNAPSHOT</version>    <dependencies>        <dependency>            <groupId>junit</groupId>            <artifactId>junit</artifactId>            <version>4.11</version>            <scope>test</scope>        </dependency>        <dependency>            <groupId>org.apache.jmeter</groupId>            <artifactId>ApacheJMeter_java</artifactId>            <version>2.12</version>        </dependency>    </dependencies>    <build>        <plugins>            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-surefire-plugin</artifactId>            </plugin>            <plugin>                <artifactId>maven-compiler-plugin</artifactId>                <configuration>                    <source>1.5</source>                    <target>1.5</target>                </configuration>            </plugin>            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-compiler-plugin</artifactId>                <configuration>                    <source>1.7</source>                    <target>1.7</target>                </configuration>            </plugin>            <plugin>                <groupId>com.lazerycode.jmeter</groupId>                <artifactId>jmeter-maven-plugin</artifactId>                <version>2.0.3</version>                <configuration>                    <!--报告文件尾部输出时间 -->                    <appendResultsTimestamp>true</appendResultsTimestamp>                </configuration>                <executions>                    <execution>                        <id>jmeter-tests</id>                        <phase>verify</phase>                        <goals>                            <goal>jmeter</goal>                        </goals>                    </execution>                </executions>            </plugin>        </plugins>    </build>    <repositories>        <repository>            <id>saucelabs-repository</id>            <url>https://repository-saucelabs.forge.cloudbees.com/release</url>            <releases>                <enabled>true</enabled>            </releases>            <snapshots>                <enabled>true</enabled>            </snapshots>        </repository>    </repositories></project>
原创粉丝点击