|
| 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" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <groupId>it.scala-maven-plugin</groupId> |
| 7 | + <artifactId>includesExcludes</artifactId> |
| 8 | + <version>1.0-SNAPSHOT</version> |
| 9 | + <name>Test compilation using excludes/includes</name> |
| 10 | + <description>Test compilation pulls version from dependency</description> |
| 11 | + <packaging>jar</packaging> |
| 12 | + <dependencies> |
| 13 | + <dependency> |
| 14 | + <groupId>org.scala-lang</groupId> |
| 15 | + <artifactId>scala-library</artifactId> |
| 16 | + <version>${scala.version.lastrelease}</version> |
| 17 | + </dependency> |
| 18 | + </dependencies> |
| 19 | + |
| 20 | + <reporting> |
| 21 | + <plugins> |
| 22 | + <plugin> |
| 23 | + <groupId>@project.groupId@</groupId> |
| 24 | + <artifactId>@project.artifactId@</artifactId> |
| 25 | + <version>@project.version@</version> |
| 26 | + <configuration> |
| 27 | + <includes> |
| 28 | + <include>**/*.scala</include> |
| 29 | + <include>**/TestClass.java</include> |
| 30 | + </includes> |
| 31 | + <excludes> |
| 32 | + <exclude>bad.scala</exclude> |
| 33 | + </excludes> |
| 34 | + </configuration> |
| 35 | + </plugin> |
| 36 | + </plugins> |
| 37 | + </reporting> |
| 38 | + |
| 39 | + <build> |
| 40 | + <plugins> |
| 41 | + <plugin> |
| 42 | + <groupId>@project.groupId@</groupId> |
| 43 | + <artifactId>@project.artifactId@</artifactId> |
| 44 | + <version>@project.version@</version> |
| 45 | + <executions> |
| 46 | + <execution> |
| 47 | + <goals> |
| 48 | + <goal>compile</goal> |
| 49 | + <goal>testCompile</goal> |
| 50 | + </goals> |
| 51 | + </execution> |
| 52 | + </executions> |
| 53 | + <configuration> |
| 54 | + <includes> |
| 55 | + <include>**/*.scala</include> |
| 56 | + <include>**/TestClass.java</include> |
| 57 | + </includes> |
| 58 | + <excludes> |
| 59 | + <exclude>bad.scala</exclude> |
| 60 | + </excludes> |
| 61 | + </configuration> |
| 62 | + </plugin> |
| 63 | + <plugin> |
| 64 | + <groupId>org.apache.maven.plugins</groupId> |
| 65 | + <artifactId>maven-site-plugin</artifactId> |
| 66 | + <version>3.21.0</version> |
| 67 | + </plugin> |
| 68 | + <plugin> |
| 69 | + <groupId>org.apache.maven.plugins</groupId> |
| 70 | + <artifactId>maven-compiler-plugin</artifactId> |
| 71 | + <version>3.13.0</version> |
| 72 | + <configuration> |
| 73 | + <source>1.8</source> |
| 74 | + <target>1.8</target> |
| 75 | + </configuration> |
| 76 | + </plugin> |
| 77 | + </plugins> |
| 78 | + </build> |
| 79 | +</project> |
0 commit comments