|
1 |
| -<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"> |
| 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/xsd/maven-4.0.0.xsd"> |
2 | 3 | <modelVersion>4.0.0</modelVersion>
|
3 | 4 | <groupId>org.culturegraph</groupId>
|
4 | 5 | <artifactId>metafacture-core</artifactId>
|
|
75 | 76 | <build>
|
76 | 77 | <testResources>
|
77 | 78 | <testResource>
|
78 |
| - <directory>src/test/java</directory> |
| 79 | + <directory>${basedir}/src/test/java</directory> |
79 | 80 | <excludes>
|
80 | 81 | <exclude>**/*.java</exclude>
|
81 | 82 | </excludes>
|
82 | 83 | </testResource>
|
83 | 84 | <testResource>
|
84 |
| - <directory>src/test/resources</directory> |
| 85 | + <directory>${basedir}/src/test/resources</directory> |
85 | 86 | </testResource>
|
86 | 87 | </testResources>
|
87 | 88 |
|
| 89 | + <resources> |
| 90 | + <resource> |
| 91 | + <directory>${basedir}/src/main/resources</directory> |
| 92 | + <filtering>true</filtering> |
| 93 | + </resource> |
| 94 | + </resources> |
| 95 | + |
88 | 96 | <plugins>
|
89 | 97 | <plugin>
|
90 | 98 | <groupId>org.apache.maven.plugins</groupId>
|
|
111 | 119 | <!-- Specifies the main class of the application -->
|
112 | 120 | <mainClass>org.culturegraph.mf.Flux</mainClass>
|
113 | 121 | </manifest>
|
| 122 | + <manifestEntries> |
| 123 | + <git-commit>${buildNumber}</git-commit> |
| 124 | + </manifestEntries> |
114 | 125 | </archive>
|
115 | 126 | </configuration>
|
116 | 127 | </plugin>
|
117 | 128 |
|
| 129 | + |
| 130 | + |
| 131 | + <plugin> |
| 132 | + <groupId>org.codehaus.mojo</groupId> |
| 133 | + <artifactId>buildnumber-maven-plugin</artifactId> |
| 134 | + <version>1.1</version> |
| 135 | + <executions> |
| 136 | + <execution> |
| 137 | + <phase>validate</phase> |
| 138 | + <goals> |
| 139 | + <goal>create</goal> |
| 140 | + </goals> |
| 141 | + </execution> |
| 142 | + </executions> |
| 143 | + </plugin> |
| 144 | + |
118 | 145 |
|
119 | 146 | <plugin>
|
120 | 147 | <artifactId>maven-assembly-plugin</artifactId>
|
|
129 | 156 | <addClasspath>true</addClasspath>
|
130 | 157 | <classpathPrefix>lib/</classpathPrefix>
|
131 | 158 | </manifest>
|
| 159 | + <manifestEntries> |
| 160 | + <git-commit>${buildNumber}</git-commit> |
| 161 | + </manifestEntries> |
132 | 162 | </archive>
|
133 | 163 | </configuration>
|
134 | 164 | </plugin>
|
|
157 | 187 | <plugin>
|
158 | 188 | <groupId>org.apache.maven.plugins</groupId>
|
159 | 189 | <artifactId>maven-release-plugin</artifactId>
|
160 |
| - <version>2.4</version><!--$NO-MVN-MAN-VER$--> |
161 |
| - <!-- m2e complains about a different plugin version |
162 |
| - being specified in the parent pom. However, |
163 |
| - this is not actually problem for maven. So, |
164 |
| - we can ignore the warning. --> |
| 190 | + <version>2.4</version><!--$NO-MVN-MAN-VER$ --> |
| 191 | + <!-- m2e complains about a different plugin version being specified in |
| 192 | + the parent pom. However, this is not actually problem for maven. So, we can |
| 193 | + ignore the warning. --> |
165 | 194 | </plugin>
|
166 | 195 |
|
167 | 196 | </plugins>
|
|
0 commit comments