File tree Expand file tree Collapse file tree 3 files changed +67
-47
lines changed Expand file tree Collapse file tree 3 files changed +67
-47
lines changed Original file line number Diff line number Diff line change 5050 </dependencies >
5151
5252 <build >
53- <!-- GIT COMMIT ID PLUGIN CONFIGURATION -->
5453 <plugins >
55- <plugin >
56- <groupId >pl.project13.maven</groupId >
57- <artifactId >git-commit-id-plugin</artifactId >
58- <version >${git-commit-id-version} </version >
59- <executions >
60- <execution >
61- <goals >
62- <goal >revision</goal >
63- </goals >
64- </execution >
65- </executions >
66- <configuration >
67- <prefix >git</prefix >
68- <verbose >true</verbose >
69- <skipPoms >false</skipPoms >
70- <runOnlyOnce >true</runOnlyOnce >
71- <dotGitDirectory >${project.basedir} /.git</dotGitDirectory >
72- <injectAllReactorProjects >true</injectAllReactorProjects >
73- <generateGitPropertiesFile >true</generateGitPropertiesFile >
74- <!-- <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename> -->
75- <generateGitPropertiesFilename >target/classes/git.properties</generateGitPropertiesFilename >
76- </configuration >
77- </plugin >
78-
7954 <!-- Setting built-in java compiler properties -->
8055 <plugin >
8156 <groupId >org.apache.maven.plugins</groupId >
8762 <target >${java.target} </target >
8863 </configuration >
8964 </plugin >
90-
91- <plugin >
92- <artifactId >maven-antrun-plugin</artifactId >
93- <version >1.8</version >
94- <executions >
95- <execution >
96- <phase >package</phase >
97- <configuration >
98- <target >
99- <echo >user.dir: ${user.dir} </echo >
100- <echo >basedir: ${basedir} </echo >
101- <echo >project.basedir: ${project.basedir} </echo >
102- <echo >Git-Infos: ${git.commit.id} </echo >
103- </target >
104- </configuration >
105- <goals >
106- <goal >run</goal >
107- </goals >
108- </execution >
109- </executions >
110- </plugin >
11165 </plugins >
11266 </build >
11367</project >
Original file line number Diff line number Diff line change 1919 </properties >
2020
2121 <build >
22+ <resources >
23+ <resource >
24+ <directory >src/main/resources</directory >
25+ <filtering >true</filtering >
26+ </resource >
27+ </resources >
28+
2229 <plugins >
23-
30+ <!-- GIT COMMIT ID PLUGIN CONFIGURATION -->
31+ <plugin >
32+ <groupId >pl.project13.maven</groupId >
33+ <artifactId >git-commit-id-plugin</artifactId >
34+ <version >${git-commit-id-version} </version >
35+ <executions >
36+ <execution >
37+ <goals >
38+ <goal >revision</goal >
39+ </goals >
40+ </execution >
41+ </executions >
42+ <configuration >
43+ <prefix >git</prefix >
44+ <verbose >true</verbose >
45+ <skipPoms >false</skipPoms >
46+ <!-- <runOnlyOnce>true</runOnlyOnce> -->
47+ <reactorRootDir >${project.basedir} /../.git</reactorRootDir >
48+ <injectAllReactorProjects >true</injectAllReactorProjects >
49+ <generateGitPropertiesFile >false</generateGitPropertiesFile >
50+ <!-- <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>-->
51+ <!-- <generateGitPropertiesFilename>target/classes/git.properties</generateGitPropertiesFilename>-->
52+ </configuration >
53+ </plugin >
54+
55+ <plugin >
56+ <artifactId >maven-antrun-plugin</artifactId >
57+ <version >1.8</version >
58+ <executions >
59+ <execution >
60+ <phase >package</phase >
61+ <configuration >
62+ <target >
63+ <echo >user.dir: ${user.dir} </echo >
64+ <echo >basedir: ${basedir} </echo >
65+ <echo >project.basedir: ${project.basedir} </echo >
66+ <echo >Git-Infos: ${git.commit.id} </echo >
67+ </target >
68+ </configuration >
69+ <goals >
70+ <goal >run</goal >
71+ </goals >
72+ </execution >
73+ </executions >
74+ </plugin >
2475 </plugins >
2576 </build >
2677</project >
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ #
4+ # Project version: ${project.version}
5+ # Built by : ${user.name}
6+ # Build time : ${git.build.time}
7+ # Build on : ${git.build.host} running ${os.name} (${os.version} and ${os.arch})
8+ # Built using : ${java.version}
9+ #
10+ # Version info (GIT):
11+ # Commit ID : ${git.commit.id}
12+ # Branch: : ${git.branch}
13+ # Commit time : ${git.commit.time}
14+ # Committed by: ${git.commit.user.name}
15+ #
You can’t perform that action at this time.
0 commit comments