|
18 | 18 | </properties> |
19 | 19 | <profiles> |
20 | 20 | <profile> |
21 | | - <id>frontend-no-prebuild</id> |
| 21 | + <id>frontend-no-prebuilt</id> |
22 | 22 | <properties> |
23 | 23 | <ui.include.resource>/admin-ui=-build/</ui.include.resource> |
24 | 24 | </properties> |
|
63 | 63 | </execution> |
64 | 64 | </executions> |
65 | 65 | </plugin> |
| 66 | + <plugin> |
| 67 | + <groupId>org.codehaus.mojo</groupId> |
| 68 | + <artifactId>buildnumber-maven-plugin</artifactId> |
| 69 | + <version>3.3.0</version> |
| 70 | + <executions> |
| 71 | + <execution> |
| 72 | + <phase>validate</phase> |
| 73 | + <goals> |
| 74 | + <goal>create</goal> |
| 75 | + </goals> |
| 76 | + </execution> |
| 77 | + </executions> |
| 78 | + <configuration> |
| 79 | + <doCheck>true</doCheck> |
| 80 | + <doUpdate>false</doUpdate> |
| 81 | + <failTheBuild>false</failTheBuild> |
| 82 | + <shortRevisionLength>7</shortRevisionLength> |
| 83 | + <buildNumberPropertyName>submoduleHash</buildNumberPropertyName> |
| 84 | + </configuration> |
| 85 | + </plugin> |
66 | 86 | </plugins> |
67 | 87 | </build> |
68 | 88 | </profile> |
|
131 | 151 | </filesets> |
132 | 152 | </configuration> |
133 | 153 | </plugin> |
| 154 | + <plugin> |
| 155 | + <groupId>org.codehaus.mojo</groupId> |
| 156 | + <artifactId>buildnumber-maven-plugin</artifactId> |
| 157 | + <version>3.3.0</version> |
| 158 | + <executions> |
| 159 | + <execution> |
| 160 | + <phase>validate</phase> |
| 161 | + <goals> |
| 162 | + <goal>create</goal> |
| 163 | + </goals> |
| 164 | + </execution> |
| 165 | + </executions> |
| 166 | + <configuration> |
| 167 | + <doCheck>true</doCheck> |
| 168 | + <doUpdate>false</doUpdate> |
| 169 | + <failTheBuild>false</failTheBuild> |
| 170 | + <shortRevisionLength>7</shortRevisionLength> |
| 171 | + <buildNumberPropertyName>submoduleHash</buildNumberPropertyName> |
| 172 | + </configuration> |
| 173 | + </plugin> |
134 | 174 | </plugins> |
135 | 175 | </build> |
136 | 176 | </profile> |
|
148 | 188 | <configuration> |
149 | 189 | <instructions> |
150 | 190 | <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> |
| 191 | + <!-- NOTE: This property is defined in the parent/main pom, at runtime. |
| 192 | + Building this module directly will leave this blank and thus it will be omitted from the built jar. |
| 193 | + Look up building specific maven project (-pl) if you need to build this module and care about this. |
| 194 | + --> |
151 | 195 | <Build-Number>${buildNumber}</Build-Number> |
| 196 | + <Submodule-Hash>${submoduleHash}</Submodule-Hash> |
| 197 | + <!-- NOTE: This flag is showing if there are any un-committed modifications in the submodule. |
| 198 | + It does *not* check to see if you have modified the submodule relative to the branch. |
| 199 | + Adopters modifying their local forks should expect that this reads false. |
| 200 | + Developers modifying their local copies for testing should expect this could read true. |
| 201 | + --> |
| 202 | + <Submodule-Tainted>${buildIsTainted}</Submodule-Tainted> |
152 | 203 | <Include-Resource>${ui.include.resource}</Include-Resource> |
153 | 204 | <Private-Package>admin-ui.*</Private-Package> |
154 | 205 | <Http-Alias>/admin-ui</Http-Alias> |
|
0 commit comments