1 <?xml version="1.0" encoding="UTF-8"?> 2 <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"> 3 <parent> 4 <artifactId>javaparser-parent</artifactId> 5 <groupId>com.github.javaparser</groupId> 6 <version>3.5.16-SNAPSHOT</version> 7 </parent> 8 <modelVersion>4.0.0</modelVersion> 9 10 <artifactId>javaparser-symbol-solver-testing</artifactId> 11 <description>A Symbol Solver for Java, built on top of JavaParser (tests)</description> 12 13 <licenses> 14 <license> 15 <name>GNU Lesser General Public License</name> 16 <url>http://www.gnu.org/licenses/lgpl-3.0.html</url> 17 <distribution>repo</distribution> 18 </license> 19 <license> 20 <name>Apache License, Version 2.0</name> 21 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 22 <distribution>repo</distribution> 23 <comments>A business-friendly OSS license</comments> 24 </license> 25 </licenses> 26 27 <profiles> 28 <profile> 29 <id>NonSlowTests</id> 30 <activation> 31 <activeByDefault>true</activeByDefault> 32 </activation> 33 <build> 34 <plugins> 35 <plugin> 36 <groupId>org.apache.maven.plugins</groupId> 37 <artifactId>maven-surefire-plugin</artifactId> 38 <configuration> 39 <excludedGroups>com.github.javaparser.SlowTest</excludedGroups> 40 <parallel>methods</parallel> 41 <threadCount>4</threadCount> 42 </configuration> 43 </plugin> 44 </plugins> 45 46 </build> 47 </profile> 48 <profile> 49 <id>AlsoSlowTests</id> 50 <build> 51 <plugins> 52 <plugin> 53 <groupId>org.apache.maven.plugins</groupId> 54 <artifactId>maven-surefire-plugin</artifactId> 55 <configuration> 56 <parallel>methods</parallel> 57 <threadCount>4</threadCount> 58 </configuration> 59 </plugin> 60 </plugins> 61 </build> 62 </profile> 63 </profiles> 64 65 66 <build> 67 <plugins> 68 <plugin> 69 <groupId>org.jacoco</groupId> 70 <artifactId>jacoco-maven-plugin</artifactId> 71 <executions> 72 <execution> 73 <id>jacoco-initialize</id> 74 <goals> 75 <goal>prepare-agent</goal> 76 </goals> 77 </execution> 78 <execution> 79 <id>jacoco-site</id> 80 <phase>package</phase> 81 <goals> 82 <goal>report</goal> 83 </goals> 84 </execution> 85 </executions> 86 </plugin> 87 <plugin> 88 <artifactId>maven-resources-plugin</artifactId> 89 <executions> 90 <execution> 91 <id>copy-resources</id> 92 <phase>pre-integration-test</phase> 93 <goals> 94 <goal>copy-resources</goal> 95 </goals> 96 <configuration> 97 <encoding>UTF-8</encoding> 98 <outputDirectory>${basedir}/target/classes</outputDirectory> 99 <resources> 100 <resource> 101 <directory>../javaparser-core/target/classes</directory> 102 <filtering>false</filtering> 103 </resource> 104 </resources> 105 </configuration> 106 </execution> 107 </executions> 108 </plugin> 109 <plugin> 110 <groupId>org.apache.maven.plugins</groupId> 111 <artifactId>maven-dependency-plugin</artifactId> 112 <executions> 113 <execution> 114 <id>unpack-test-jss-sources</id> 115 <phase>test-compile</phase> 116 <goals> 117 <goal>unpack</goal> 118 </goals> 119 <configuration> 120 <artifactItems> 121 <artifactItem> 122 <groupId>com.github.javaparser</groupId> 123 <artifactId>java-symbol-solver-core</artifactId> 124 <version>0.6.0</version> 125 <classifier>sources</classifier> 126 <outputDirectory> 127 ${project.build.directory}/test-classes/javasymbolsolver_0_6_0/src/java-symbol-solver-core 128 </outputDirectory> 129 </artifactItem> 130 <artifactItem> 131 <groupId>com.github.javaparser</groupId> 132 <artifactId>java-symbol-solver-logic</artifactId> 133 <version>0.6.0</version> 134 <classifier>sources</classifier> 135 <outputDirectory> 136 ${project.build.directory}/test-classes/javasymbolsolver_0_6_0/src/java-symbol-solver-logic 137 </outputDirectory> 138 </artifactItem> 139 <artifactItem> 140 <groupId>com.github.javaparser</groupId> 141 <artifactId>java-symbol-solver-model</artifactId> 142 <version>0.6.0</version> 143 <classifier>sources</classifier> 144 <outputDirectory> 145 ${project.build.directory}/test-classes/javasymbolsolver_0_6_0/src/java-symbol-solver-model 146 </outputDirectory> 147 </artifactItem> 148 </artifactItems> 149 </configuration> 150 </execution> 151 <execution> 152 <id>copy-test-jss-libs</id> 153 <phase>test-compile</phase> 154 <goals> 155 <goal>copy</goal> 156 </goals> 157 <configuration> 158 <artifactItems> 159 <artifactItem> 160 <groupId>com.google.guava</groupId> 161 <artifactId>guava</artifactId> 162 <version>21.0</version> 163 <outputDirectory> 164 ${project.build.directory}/test-classes/javasymbolsolver_0_6_0/lib 165 </outputDirectory> 166 </artifactItem> 167 <artifactItem> 168 <groupId>com.github.javaparser</groupId> 169 <artifactId>javaparser-core</artifactId> 170 <version>3.5.10</version> 171 <outputDirectory> 172 ${project.build.directory}/test-classes/javasymbolsolver_0_6_0/lib 173 </outputDirectory> 174 </artifactItem> 175 <artifactItem> 176 <groupId>io.javaslang</groupId> 177 <artifactId>javaslang</artifactId> 178 <version>2.0.3</version> 179 <outputDirectory> 180 ${project.build.directory}/test-classes/javasymbolsolver_0_6_0/lib 181 </outputDirectory> 182 </artifactItem> 183 <artifactItem> 184 <groupId>org.javassist</groupId> 185 <artifactId>javassist</artifactId> 186 <version>3.19.0-GA</version> 187 <outputDirectory> 188 ${project.build.directory}/test-classes/javasymbolsolver_0_6_0/lib 189 </outputDirectory> 190 </artifactItem> 191 </artifactItems> 192 </configuration> 193 </execution> 194 </executions> 195 </plugin> 196 <plugin> 197 <groupId>org.apache.maven.plugins</groupId> 198 <artifactId>maven-deploy-plugin</artifactId> 199 <configuration> 200 <!-- no need to release this module --> 201 <skip>true</skip> 202 </configuration> 203 </plugin> 204 </plugins> 205 </build> 206 <dependencies> 207 <dependency> 208 <groupId>junit</groupId> 209 <artifactId>junit</artifactId> 210 </dependency> 211 <dependency> 212 <groupId>com.github.javaparser</groupId> 213 <artifactId>javaparser-symbol-solver-logic</artifactId> 214 <version>${project.version}</version> 215 </dependency> 216 <dependency> 217 <groupId>org.mockito</groupId> 218 <artifactId>mockito-core</artifactId> 219 </dependency> 220 <dependency> 221 <groupId>com.github.javaparser</groupId> 222 <artifactId>javaparser-symbol-solver-model</artifactId> 223 <version>${project.version}</version> 224 </dependency> 225 <dependency> 226 <groupId>com.github.javaparser</groupId> 227 <artifactId>javaparser-symbol-solver-core</artifactId> 228 <version>${project.version}</version> 229 </dependency> 230 </dependencies> 231 232 </project> 233