|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + <groupId>com.wordnik</groupId> |
| 5 | + <artifactId>swagger-petstore</artifactId> |
| 6 | + <packaging>jar</packaging> |
| 7 | + <name>swagger-petstore</name> |
| 8 | + <version>1.0.0</version> |
| 9 | + <scm> |
| 10 | + < connection>scm:git: [email protected]:wordnik/swagger-mustache.git</ connection> |
| 11 | + < developerConnection>scm:git: [email protected]:wordnik/swagger-codegen.git</ developerConnection> |
| 12 | + <url>https://github.com/wordnik/swagger-codegen</url> |
| 13 | + </scm> |
| 14 | + <prerequisites> |
| 15 | + <maven>2.2.0</maven> |
| 16 | + </prerequisites> |
| 17 | + |
| 18 | + <build> |
| 19 | + <plugins> |
| 20 | + <plugin> |
| 21 | + <groupId>org.apache.maven.plugins</groupId> |
| 22 | + <artifactId>maven-surefire-plugin</artifactId> |
| 23 | + <version>2.12</version> |
| 24 | + <configuration> |
| 25 | + <systemProperties> |
| 26 | + <property> |
| 27 | + <name>loggerPath</name> |
| 28 | + <value>conf/log4j.properties</value> |
| 29 | + </property> |
| 30 | + </systemProperties> |
| 31 | + <argLine>-Xms512m -Xmx1500m</argLine> |
| 32 | + <parallel>methods</parallel> |
| 33 | + <forkMode>pertest</forkMode> |
| 34 | + </configuration> |
| 35 | + </plugin> |
| 36 | + <plugin> |
| 37 | + <artifactId>maven-dependency-plugin</artifactId> |
| 38 | + <executions> |
| 39 | + <execution> |
| 40 | + <phase>package</phase> |
| 41 | + <goals> |
| 42 | + <goal>copy-dependencies</goal> |
| 43 | + </goals> |
| 44 | + <configuration> |
| 45 | + <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| 46 | + </configuration> |
| 47 | + </execution> |
| 48 | + </executions> |
| 49 | + </plugin> |
| 50 | + |
| 51 | + <!-- attach test jar --> |
| 52 | + <plugin> |
| 53 | + <groupId>org.apache.maven.plugins</groupId> |
| 54 | + <artifactId>maven-jar-plugin</artifactId> |
| 55 | + <version>2.2</version> |
| 56 | + <executions> |
| 57 | + <execution> |
| 58 | + <goals> |
| 59 | + <goal>jar</goal> |
| 60 | + <goal>test-jar</goal> |
| 61 | + </goals> |
| 62 | + </execution> |
| 63 | + </executions> |
| 64 | + <configuration> |
| 65 | + </configuration> |
| 66 | + </plugin> |
| 67 | + |
| 68 | + <plugin> |
| 69 | + <groupId>org.codehaus.mojo</groupId> |
| 70 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 71 | + <executions> |
| 72 | + <execution> |
| 73 | + <id>add_sources</id> |
| 74 | + <phase>generate-sources</phase> |
| 75 | + <goals> |
| 76 | + <goal>add-source</goal> |
| 77 | + </goals> |
| 78 | + <configuration> |
| 79 | + <sources> |
| 80 | + <source>src/main/java</source> |
| 81 | + </sources> |
| 82 | + </configuration> |
| 83 | + </execution> |
| 84 | + <execution> |
| 85 | + <id>add_test_sources</id> |
| 86 | + <phase>generate-test-sources</phase> |
| 87 | + <goals> |
| 88 | + <goal>add-test-source</goal> |
| 89 | + </goals> |
| 90 | + <configuration> |
| 91 | + <sources> |
| 92 | + <source>src/test/java</source> |
| 93 | + </sources> |
| 94 | + </configuration> |
| 95 | + </execution> |
| 96 | + </executions> |
| 97 | + </plugin> |
| 98 | + <plugin> |
| 99 | + <groupId>org.apache.maven.plugins</groupId> |
| 100 | + <artifactId>maven-compiler-plugin</artifactId> |
| 101 | + <version>2.3.2</version> |
| 102 | + <configuration> |
| 103 | + <source>1.6</source> |
| 104 | + <target>1.6</target> |
| 105 | + </configuration> |
| 106 | + </plugin> |
| 107 | + <plugin> |
| 108 | + <groupId>net.alchim31.maven</groupId> |
| 109 | + <artifactId>scala-maven-plugin</artifactId> |
| 110 | + <version>${scala-maven-plugin-version}</version> |
| 111 | + <executions> |
| 112 | + <execution> |
| 113 | + <goals> |
| 114 | + <goal>compile</goal> |
| 115 | + <goal>testCompile</goal> |
| 116 | + </goals> |
| 117 | + </execution> |
| 118 | + </executions> |
| 119 | + <configuration> |
| 120 | + <configuration> |
| 121 | + <recompileMode>incremental</recompileMode> |
| 122 | + </configuration> |
| 123 | + <jvmArgs> |
| 124 | + <jvmArg>-Xmx384m</jvmArg> |
| 125 | + </jvmArgs> |
| 126 | + <args> |
| 127 | + <arg>-target:jvm-1.5</arg> |
| 128 | + <arg>-deprecation</arg> |
| 129 | + </args> |
| 130 | + <launchers> |
| 131 | + <launcher> |
| 132 | + <id>run-scalatest</id> |
| 133 | + <mainClass>org.scalatest.tools.Runner</mainClass> |
| 134 | + <args> |
| 135 | + <arg>-p</arg> |
| 136 | + <arg>${project.build.testOutputDirectory}</arg> |
| 137 | + </args> |
| 138 | + <jvmArgs> |
| 139 | + <jvmArg>-Xmx512m</jvmArg> |
| 140 | + </jvmArgs> |
| 141 | + </launcher> |
| 142 | + </launchers> |
| 143 | + </configuration> |
| 144 | + </plugin> |
| 145 | + </plugins> |
| 146 | + </build> |
| 147 | + <reporting> |
| 148 | + <plugins> |
| 149 | + <plugin> |
| 150 | + <groupId>net.alchim31.maven</groupId> |
| 151 | + <artifactId>scala-maven-plugin</artifactId> |
| 152 | + <version>${scala-maven-plugin-version}</version> |
| 153 | + </plugin> |
| 154 | + </plugins> |
| 155 | + </reporting> |
| 156 | + <dependencies> |
| 157 | + <dependency> |
| 158 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 159 | + <artifactId>jackson-core</artifactId> |
| 160 | + <version>${jackson-version}</version> |
| 161 | + <scope>compile</scope> |
| 162 | + </dependency> |
| 163 | + <dependency> |
| 164 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 165 | + <artifactId>jackson-annotations</artifactId> |
| 166 | + <version>${jackson-version}</version> |
| 167 | + <scope>compile</scope> |
| 168 | + </dependency> |
| 169 | + <dependency> |
| 170 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 171 | + <artifactId>jackson-databind</artifactId> |
| 172 | + <version>${jackson-version}</version> |
| 173 | + <scope>compile</scope> |
| 174 | + </dependency> |
| 175 | + <dependency> |
| 176 | + <groupId>org.apache.httpcomponents</groupId> |
| 177 | + <artifactId>httpclient</artifactId> |
| 178 | + <version>${httpclient-version}</version> |
| 179 | + <scope>compile</scope> |
| 180 | + </dependency> |
| 181 | + |
| 182 | + <!-- test dependencies --> |
| 183 | + <dependency> |
| 184 | + <groupId>org.scala-lang</groupId> |
| 185 | + <artifactId>scala-library</artifactId> |
| 186 | + <version>${scala-version}</version> |
| 187 | + <scope>test</scope> |
| 188 | + </dependency> |
| 189 | + <dependency> |
| 190 | + <groupId>org.scalatest</groupId> |
| 191 | + <artifactId>scalatest_2.9.1</artifactId> |
| 192 | + <version>${scala-test-version}</version> |
| 193 | + <scope>test</scope> |
| 194 | + </dependency> |
| 195 | + <dependency> |
| 196 | + <groupId>junit</groupId> |
| 197 | + <artifactId>junit</artifactId> |
| 198 | + <version>${junit-version}</version> |
| 199 | + <scope>test</scope> |
| 200 | + </dependency> |
| 201 | + </dependencies> |
| 202 | + |
| 203 | + <properties> |
| 204 | + <jackson-version>2.1.4</jackson-version> |
| 205 | + <scala-version>2.9.1-1</scala-version> |
| 206 | + <junit-version>4.8.1</junit-version> |
| 207 | + <maven-plugin-version>1.0.0</maven-plugin-version> |
| 208 | + <junit-version>4.8.1</junit-version> |
| 209 | + <scala-test-version>1.6.1</scala-test-version> |
| 210 | + <httpclient-version>4.2.3</httpclient-version> |
| 211 | + <scala-maven-plugin-version>3.1.5</scala-maven-plugin-version> |
| 212 | + </properties> |
| 213 | +</project> |
| 214 | + |
0 commit comments