|
6 | 6 | <properties>
|
7 | 7 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
8 | 8 | <build.revision></build.revision>
|
| 9 | + <bundle.name>${project.groupId}.${project.artifactId}</bundle.name> |
| 10 | + <maven.build.timestamp.format>'v'yyyyMMdd-HHmm</maven.build.timestamp.format> |
9 | 11 | </properties>
|
10 | 12 |
|
11 | 13 | <parent>
|
|
118 | 120 | <goals>
|
119 | 121 | <goal>jar</goal>
|
120 | 122 | </goals>
|
| 123 | + <configuration> |
| 124 | + <archive> |
| 125 | + <manifestEntries> |
| 126 | + <Bundle-Name>${project.name} (Source)</Bundle-Name> |
| 127 | + <Bundle-SymbolicName>${bundle.name}.source</Bundle-SymbolicName> |
| 128 | + <Bundle-Version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${build.timestamp}</Bundle-Version> |
| 129 | + <Eclipse-SourceBundle>${bundle.name};version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${build.timestamp}";roots:="."</Eclipse-SourceBundle> |
| 130 | + </manifestEntries> |
| 131 | + </archive> |
| 132 | + </configuration> |
121 | 133 | </execution>
|
122 | 134 | </executions>
|
123 | 135 | </plugin>
|
|
147 | 159 | <configuration>
|
148 | 160 | <archive>
|
149 | 161 | <index>true</index>
|
| 162 | + <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> |
150 | 163 | <manifest>
|
151 | 164 | <packageName>org/neo4j/driver</packageName>
|
152 | 165 | </manifest>
|
|
157 | 170 | </archive>
|
158 | 171 | </configuration>
|
159 | 172 | </plugin>
|
| 173 | + <plugin> |
| 174 | + <groupId>org.codehaus.mojo</groupId> |
| 175 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 176 | + <version>1.12</version> |
| 177 | + <executions> |
| 178 | + <execution> |
| 179 | + <id>set-osgi-version</id> |
| 180 | + <phase>validate</phase> |
| 181 | + <goals> |
| 182 | + <goal>parse-version</goal> |
| 183 | + </goals> |
| 184 | + </execution> |
| 185 | + </executions> |
| 186 | + </plugin> |
| 187 | + <plugin> |
| 188 | + <groupId>org.apache.felix</groupId> |
| 189 | + <artifactId>maven-bundle-plugin</artifactId> |
| 190 | + <version>3.2.0</version> |
| 191 | + <extensions>true</extensions> |
| 192 | + <executions> |
| 193 | + <execution> |
| 194 | + <id>bundle-manifest</id> |
| 195 | + <phase>process-classes</phase> |
| 196 | + <goals> |
| 197 | + <goal>manifest</goal> |
| 198 | + </goals> |
| 199 | + </execution> |
| 200 | + </executions> |
| 201 | + <configuration> |
| 202 | + <instructions> |
| 203 | + <Bundle-SymbolicName>${bundle.name}</Bundle-SymbolicName> |
| 204 | + <Bundle-Version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${build.timestamp}</Bundle-Version> |
| 205 | + <_snapshot>${maven.build.timestamp}</_snapshot> |
| 206 | + <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy> |
| 207 | + <_removeheaders>Bnd-*,Private-Package</_removeheaders> |
| 208 | + <_nouses>true</_nouses> |
| 209 | + <!-- each module can override these defaults in their osgi.bnd file --> |
| 210 | + <_include>-osgi.bnd</_include> |
| 211 | + </instructions> |
| 212 | + </configuration> |
| 213 | + </plugin> |
160 | 214 | <plugin>
|
161 | 215 | <groupId>org.apache.maven.plugins</groupId>
|
162 | 216 | <artifactId>maven-surefire-plugin</artifactId>
|
|
0 commit comments