|
26 | 26 |
|
27 | 27 | <plugins> |
28 | 28 | <!-- GIT COMMIT ID PLUGIN CONFIGURATION --> |
29 | | - <plugin> |
30 | | - <groupId>pl.project13.maven</groupId> |
31 | | - <artifactId>git-commit-id-plugin</artifactId> |
32 | | - <version>${git-commit-id-version}</version> |
33 | | - <executions> |
34 | | - <execution> |
35 | | - <id>get-the-git-infos-validate</id> |
36 | | - <goals> |
37 | | - <goal>revision</goal> |
38 | | - </goals> |
39 | | - </execution> |
40 | | - </executions> |
41 | | - <configuration> |
42 | | - <!-- |
43 | | - <excludeProperties> |
44 | | - <excludeProperty>git.*.user.*</excludeProperty> |
45 | | - </excludeProperties> |
46 | | - --> |
47 | | - <prefix>git</prefix> |
48 | | - <verbose>true</verbose> |
49 | | - <skipPoms>false</skipPoms> |
50 | | - <!-- <runOnlyOnce>true</runOnlyOnce> --> |
51 | | - <dotGitDirectory>${project.basedir}/../.git</dotGitDirectory> |
52 | | - <injectAllReactorProjects>true</injectAllReactorProjects> |
53 | | - <generateGitPropertiesFile>true</generateGitPropertiesFile> |
54 | | - <evaluateOnCommit>HEAD^1</evaluateOnCommit> |
55 | | - <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename> |
56 | | - </configuration> |
57 | | - </plugin> |
58 | | - |
59 | | - <plugin> |
60 | | - <groupId>org.apache.maven.plugins</groupId> |
61 | | - <artifactId>maven-assembly-plugin</artifactId> |
62 | | - <version>3.1.1</version> |
63 | | - <configuration> |
64 | | - <descriptorRefs> |
65 | | - <descriptorRef>jar-with-dependencies</descriptorRef> |
66 | | - </descriptorRefs> |
67 | | - </configuration> |
68 | | - <executions> |
69 | | - <execution> |
70 | | - <id>make-assembly</id> <!-- this is used for inheritance merges --> |
71 | | - <phase>package</phase> <!-- bind to the packaging phase --> |
72 | | - <goals> |
73 | | - <goal>single</goal> |
74 | | - </goals> |
75 | | - </execution> |
76 | | - </executions> |
77 | | - </plugin> |
| 29 | +<!-- |
78 | 30 |
|
| 31 | +--> |
79 | 32 | <plugin> |
80 | 33 | <groupId>org.apache.maven.plugins</groupId> |
81 | 34 | <artifactId>maven-antrun-plugin</artifactId> |
|
99 | 52 | </plugin> |
100 | 53 | </plugins> |
101 | 54 | </build> |
| 55 | + <profiles> |
| 56 | + <profile> |
| 57 | + <id>git-with-submodule</id> |
| 58 | + <build> |
| 59 | + <plugins> |
| 60 | + <plugin> |
| 61 | + <groupId>pl.project13.maven</groupId> |
| 62 | + <artifactId>git-commit-id-plugin</artifactId> |
| 63 | + <version>${git-commit-id-version}</version> |
| 64 | + <executions> |
| 65 | + <execution> |
| 66 | + <phase>initialize</phase> |
| 67 | + <id>get-the-git-infos-for-repository-one</id> |
| 68 | + <goals> |
| 69 | + <goal>revision</goal> |
| 70 | + </goals> |
| 71 | + <configuration> |
| 72 | + <prefix>git1</prefix> |
| 73 | + <dotGitDirectory>${project.basedir}/../.git</dotGitDirectory> |
| 74 | + <generateGitPropertiesFilename>${project.build.outputDirectory}/repository_one_git.properties</generateGitPropertiesFilename> |
| 75 | + </configuration> |
| 76 | + </execution> |
| 77 | + <execution> |
| 78 | + <phase>initialize</phase> |
| 79 | + <id>get-the-git-infos-for-repository-two</id> |
| 80 | + <goals> |
| 81 | + <goal>revision</goal> |
| 82 | + </goals> |
| 83 | + <configuration> |
| 84 | + <prefix>git2</prefix> |
| 85 | + <dotGitDirectory>${project.basedir}/../.git</dotGitDirectory> |
| 86 | + <generateGitPropertiesFilename>${project.build.outputDirectory}/repository_two_git.properties</generateGitPropertiesFilename> |
| 87 | + </configuration> |
| 88 | + </execution> |
| 89 | + </executions> |
| 90 | + <configuration> |
| 91 | + <prefix>git</prefix> |
| 92 | + <verbose>true</verbose> |
| 93 | + <skipPoms>false</skipPoms> |
| 94 | + <dotGitDirectory>${project.basedir}/../.git</dotGitDirectory> |
| 95 | + <injectAllReactorProjects>true</injectAllReactorProjects> |
| 96 | + <generateGitPropertiesFile>true</generateGitPropertiesFile> |
| 97 | + <evaluateOnCommit>HEAD</evaluateOnCommit> |
| 98 | + <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename> |
| 99 | + </configuration> |
| 100 | + </plugin> |
| 101 | + </plugins> |
| 102 | + </build> |
| 103 | + </profile> |
| 104 | + </profiles> |
102 | 105 | </project> |
0 commit comments