|
122 | 122 | </dependency> |
123 | 123 |
|
124 | 124 | <!-- JGit --> |
125 | | - |
126 | 125 | <dependency> |
127 | 126 | <groupId>org.eclipse.jgit</groupId> |
128 | 127 | <artifactId>org.eclipse.jgit</artifactId> |
|
188 | 187 | </resources> |
189 | 188 |
|
190 | 189 | <plugins> |
191 | | - <!--<plugin>--> |
192 | | - <!--<groupId>pl.project13.maven</groupId>--> |
193 | | - <!--<artifactId>git-commit-id-plugin</artifactId>--> |
194 | | - <!--<version>${project.version}</version>--> |
195 | | - <!--<executions>--> |
196 | | - <!--<execution>--> |
197 | | - <!--<goals>--> |
198 | | - <!--<goal>revision</goal>--> |
199 | | - <!--</goals>--> |
200 | | - <!--</execution>--> |
201 | | - <!--</executions>--> |
202 | | - <!--<configuration>--> |
203 | | - <!--<verbose>true</verbose>--> |
204 | | - <!--<skip>false</skip>--> |
205 | | - <!--<prefix>git</prefix>--> |
206 | | - <!--<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>--> |
207 | | - <!--<generateGitPropertiesFile>true</generateGitPropertiesFile>--> |
208 | | - <!--<generateGitPropertiesFilename>target/testing.properties</generateGitPropertiesFilename>--> |
209 | | - |
210 | | - <!--<dateFormat>dd.MM.yyyy '@' HH:mm:ss z</dateFormat>--> |
211 | | - <!--<useNativeGit>false</useNativeGit>--> |
212 | | - <!--<abbrevLength>7</abbrevLength>--> |
213 | | - <!--<format>properties</format>--> |
214 | | - |
215 | | - <!--<gitDescribe>--> |
216 | | - <!--<skip>false</skip>--> |
217 | | - <!--<always>false</always>--> |
218 | | - <!--<abbrev>7</abbrev>--> |
219 | | - <!--<match>*</match>--> |
220 | | - <!--<dirty>-DEVEL</dirty>--> |
221 | | - <!--<forceLongFormat>false</forceLongFormat>--> |
222 | | - <!--</gitDescribe>--> |
223 | | - |
224 | | - <!--<excludeProperties>--> |
225 | | - <!--<excludeProperty>git.commit.*</excludeProperty>--> |
226 | | - <!--<excludeProperty>git.remote.origin.url</excludeProperty>--> |
227 | | - <!--</excludeProperties>--> |
228 | | - |
229 | | - <!--<failOnNoGitDirectory>true</failOnNoGitDirectory>--> |
230 | | - <!--<failOnUnableToExtractRepoInfo>true</failOnUnableToExtractRepoInfo>--> |
231 | | - <!--</configuration>--> |
232 | | - <!--</plugin>--> |
| 190 | + <!-- if you would like to run the git-commit-id-plugin for your build, you could also include it here instead using a profile (see README.md) --> |
233 | 191 | <!-- Setting built-in java compiler properties --> |
234 | 192 | <plugin> |
235 | 193 | <groupId>org.apache.maven.plugins</groupId> |
|
294 | 252 | </plugins> |
295 | 253 | </build> |
296 | 254 | </profile> |
| 255 | + <profile> |
| 256 | + <id>demo</id> |
| 257 | + <build> |
| 258 | + <plugins> |
| 259 | + <plugin> |
| 260 | + <groupId>pl.project13.maven</groupId> |
| 261 | + <artifactId>git-commit-id-plugin</artifactId> |
| 262 | + <version>${project.version}</version> |
| 263 | + <executions> |
| 264 | + <execution> |
| 265 | + <goals> |
| 266 | + <goal>revision</goal> |
| 267 | + </goals> |
| 268 | + </execution> |
| 269 | + </executions> |
| 270 | + <configuration> |
| 271 | + <verbose>true</verbose> |
| 272 | + <skip>false</skip> |
| 273 | + <prefix>git</prefix> |
| 274 | + <dotGitDirectory>${project.basedir}/.git</dotGitDirectory> |
| 275 | + <generateGitPropertiesFile>true</generateGitPropertiesFile> |
| 276 | + <generateGitPropertiesFilename>target/testing.properties</generateGitPropertiesFilename> |
| 277 | + <dateFormat>dd.MM.yyyy '@' HH:mm:ss z</dateFormat> |
| 278 | + <useNativeGit>false</useNativeGit> |
| 279 | + <abbrevLength>7</abbrevLength> |
| 280 | + <format>properties</format> |
| 281 | + <gitDescribe> |
| 282 | + <skip>false</skip> |
| 283 | + <always>false</always> |
| 284 | + <abbrev>7</abbrev> |
| 285 | + <match>*</match> |
| 286 | + <dirty>-DEVEL</dirty> |
| 287 | + <forceLongFormat>false</forceLongFormat> |
| 288 | + </gitDescribe> |
| 289 | + <excludeProperties> |
| 290 | + <excludeProperty>git.commit.*</excludeProperty> |
| 291 | + <excludeProperty>git.remote.origin.url</excludeProperty> |
| 292 | + </excludeProperties> |
| 293 | + <failOnNoGitDirectory>false</failOnNoGitDirectory> |
| 294 | + <failOnUnableToExtractRepoInfo>true</failOnUnableToExtractRepoInfo> |
| 295 | + </configuration> |
| 296 | + </plugin> |
| 297 | + </plugins> |
| 298 | + </build> |
| 299 | + </profile> |
297 | 300 | </profiles> |
298 | 301 | </project> |
299 | 302 |
|
0 commit comments