Marc Kupietz | a37cc9f | 2020-07-20 09:12:20 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | |
| 7 | <groupId>groupId</groupId> |
| 8 | <artifactId>nGrammFoldCount</artifactId> |
| 9 | <version>1.0-SNAPSHOT</version> |
| 10 | |
| 11 | <properties> |
| 12 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 13 | <maven.compiler.release>11</maven.compiler.release> |
| 14 | <jackson.version>[2.10.3,)</jackson.version> |
| 15 | </properties> |
| 16 | |
| 17 | <build> |
| 18 | <resources> |
| 19 | <resource> |
| 20 | <directory>src/main/xml</directory> |
| 21 | <includes> |
| 22 | <include>**/*.xml</include> |
| 23 | </includes> |
| 24 | </resource> |
Marc Kupietz | bd62aa0 | 2020-07-22 08:48:40 +0200 | [diff] [blame^] | 25 | <resource> |
| 26 | <directory>src/main/resources</directory> |
| 27 | <includes> |
| 28 | <include>**/*.properties</include> |
| 29 | </includes> |
| 30 | </resource> |
Marc Kupietz | a37cc9f | 2020-07-20 09:12:20 +0200 | [diff] [blame] | 31 | </resources> |
| 32 | <plugins> |
| 33 | <plugin> |
| 34 | <groupId>org.apache.maven.plugins</groupId> |
| 35 | <artifactId>maven-javadoc-plugin</artifactId> |
| 36 | <version>3.1.1</version> |
| 37 | <configuration> |
| 38 | <failOnError>false</failOnError> |
| 39 | <source>${maven.compiler.release}</source> |
| 40 | <javadocExecutable>${java.home}/bin/javadoc |
| 41 | </javadocExecutable> |
| 42 | </configuration> |
| 43 | <executions> |
| 44 | <execution> |
| 45 | <id>attach-javadocs</id> |
| 46 | <goals> |
| 47 | <goal>javadoc-no-fork</goal> |
| 48 | <goal>jar</goal> |
| 49 | </goals> |
| 50 | <configuration> |
| 51 | <failOnError>false</failOnError> |
| 52 | </configuration> |
| 53 | </execution> |
| 54 | </executions> |
| 55 | </plugin> |
| 56 | <plugin> |
| 57 | <groupId>org.apache.maven.plugins</groupId> |
| 58 | <artifactId>maven-jar-plugin</artifactId> |
| 59 | <version>3.2.0</version> |
| 60 | <configuration> |
| 61 | <archive> |
| 62 | <index>true</index> |
| 63 | <manifest> |
| 64 | <addClasspath>true</addClasspath> |
| 65 | <classpathPrefix>dependency/</classpathPrefix> |
| 66 | <mainClass>org.ids_mannheim.TotalNGram</mainClass> |
| 67 | </manifest> |
| 68 | </archive> |
| 69 | </configuration> |
| 70 | </plugin> |
| 71 | <plugin> |
| 72 | <groupId>org.apache.maven.plugins</groupId> |
| 73 | <artifactId>maven-compiler-plugin</artifactId> |
| 74 | <version>3.8.1</version> |
| 75 | <configuration> |
| 76 | <!-- or whatever version you use --> |
| 77 | <release>${maven.compiler.release}</release> |
| 78 | <source>${maven.compiler.release}</source> |
| 79 | <target>${maven.compiler.release}</target> |
| 80 | <showDeprecation>true</showDeprecation> |
| 81 | <annotationProcessorPaths> |
| 82 | <path> |
| 83 | <groupId>info.picocli</groupId> |
| 84 | <artifactId>picocli-codegen</artifactId> |
| 85 | <version>4.2.0</version> |
| 86 | </path> |
| 87 | </annotationProcessorPaths> |
| 88 | <compilerArgs> |
| 89 | <arg>-Aproject=${project.groupId}/${project.artifactId} |
| 90 | </arg> |
| 91 | </compilerArgs> |
| 92 | </configuration> |
| 93 | <executions> |
| 94 | <!-- Replacing default-compile as it is treated specially by maven --> |
| 95 | <execution> |
| 96 | <id>default-compile</id> |
| 97 | <phase>none</phase> |
| 98 | </execution> |
| 99 | <!-- Replacing default-testCompile as it is treated specially by |
| 100 | maven --> |
| 101 | <execution> |
| 102 | <id>default-testCompile</id> |
| 103 | <phase>none</phase> |
| 104 | </execution> |
| 105 | <execution> |
| 106 | <id>java-compile</id> |
| 107 | <phase>compile</phase> |
| 108 | <goals> |
| 109 | <goal>compile</goal> |
| 110 | </goals> |
| 111 | </execution> |
| 112 | <execution> |
| 113 | <id>java-test-compile</id> |
| 114 | <phase>test-compile</phase> |
| 115 | <goals> |
| 116 | <goal>testCompile</goal> |
| 117 | </goals> |
| 118 | </execution> |
| 119 | </executions> |
| 120 | </plugin> |
| 121 | <plugin> |
| 122 | <artifactId>maven-assembly-plugin</artifactId> |
| 123 | <executions> |
| 124 | <execution> |
| 125 | <phase>package</phase> |
| 126 | <goals> |
| 127 | <goal>single</goal> |
| 128 | </goals> |
| 129 | </execution> |
| 130 | </executions> |
| 131 | <configuration> |
| 132 | <archive> |
| 133 | <index>true</index> |
| 134 | <manifest> |
| 135 | <addClasspath>true</addClasspath> |
| 136 | <classpathPrefix>dependency/</classpathPrefix> |
| 137 | <mainClass>org.ids_mannheim.TotalNGram</mainClass> |
| 138 | </manifest> |
| 139 | </archive> |
| 140 | <descriptorRefs> |
| 141 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 142 | </descriptorRefs> |
| 143 | </configuration> |
| 144 | </plugin> |
| 145 | </plugins> |
| 146 | </build> |
| 147 | <dependencies> |
Marc Kupietz | a37cc9f | 2020-07-20 09:12:20 +0200 | [diff] [blame] | 148 | <dependency> |
| 149 | <groupId>info.picocli</groupId> |
| 150 | <artifactId>picocli</artifactId> |
| 151 | <version>4.2.0</version> |
| 152 | </dependency> |
Marc Kupietz | a37cc9f | 2020-07-20 09:12:20 +0200 | [diff] [blame] | 153 | </dependencies> |
| 154 | </project> |