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


<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.0modelVersion>

    <groupId>JMeterTestgroupId>
    <artifactId>JMeterTestartifactId>
    <version>1.0-SNAPSHOTversion>

    <dependencies>
        <dependency>
            <groupId>junitgroupId>
            <artifactId>junitartifactId>
            <version>4.11version>
            <scope>testscope>
        dependency>
        <dependency>
            <groupId>org.apache.jmetergroupId>
            <artifactId>ApacheJMeter_javaartifactId>
            <version>2.12version>
        dependency>
    dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.pluginsgroupId>
                <artifactId>maven-surefire-pluginartifactId>
            plugin>
            <plugin>
                <artifactId>maven-compiler-pluginartifactId>
                <configuration>
                    <source>1.5source>
                    <target>1.5target>
                configuration>
            plugin>
            <plugin>
                <groupId>org.apache.maven.pluginsgroupId>
                <artifactId>maven-compiler-pluginartifactId>
                <configuration>
                    <source>1.7source>
                    <target>1.7target>
                configuration>
            plugin>
            <plugin>
                <groupId>com.lazerycode.jmetergroupId>
                <artifactId>jmeter-maven-pluginartifactId>
                <version>2.0.3version>
                <configuration>
                    
                    <appendResultsTimestamp>trueappendResultsTimestamp>
                configuration>
                <executions>
                    <execution>
                        <id>jmeter-testsid>
                        <phase>verifyphase>
                        <goals>
                            <goal>jmetergoal>
                        goals>
                    execution>
                executions>
            plugin>
        plugins>
    build>

    <repositories>
        <repository>
            <id>saucelabs-repositoryid>
            <url>https://repository-saucelabs.forge.cloudbees.com/releaseurl>
            <releases>
                <enabled>trueenabled>
            releases>
            <snapshots>
                <enabled>trueenabled>
            snapshots>
        repository>
    repositories>

project>

你可能感兴趣的:(杂项)