kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 7eb9c897460081b99861496927c07e71c6d0c97e471ada0d935f527753fa53a7 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-02-20 21:48 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-03-02 10:53 -08:00 |
| Parents | 58ff038658ac |
2 files changed
modified driver-core/pom.xml +32 −10
| @@ -126,21 +126,16 @@ | ||
| 126 | 126 | <artifactId>maven-bundle-plugin</artifactId> |
| 127 | 127 | <extensions>true</extensions> |
| 128 | 128 | <version>2.4.0</version> |
| 129 | - <executions> | |
| 130 | - <execution> | |
| 131 | - <id>bundle-manifest</id> | |
| 132 | - <phase>process-classes</phase> | |
| 133 | - <goals> | |
| 134 | - <goal>manifest</goal> | |
| 135 | - </goals> | |
| 136 | - </execution> | |
| 137 | - </executions> | |
| 129 | + <!-- | |
| 130 | + Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase | |
| 131 | + (because the project uses the `bundle` packaging) | |
| 132 | + --> | |
| 138 | 133 | <configuration> |
| 139 | 134 | <instructions> |
| 140 | 135 | <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName> |
| 141 | 136 | <Bundle-Version>${project.version}</Bundle-Version> |
| 142 | 137 | <_include>-osgi.bnd</_include> |
| 143 | - <Import-Package><![CDATA[com.google.common.*;version="[14.0,19)",*]]></Import-Package> | |
| 138 | + <Import-Package><![CDATA[com.google.common*;version="[14.0,19)",*]]></Import-Package> | |
| 144 | 139 | </instructions> |
| 145 | 140 | <supportedProjectTypes> |
| 146 | 141 | <supportedProjectType>jar</supportedProjectType> |
| @@ -148,6 +143,23 @@ | ||
| 148 | 143 | <supportedProjectType>pom</supportedProjectType> |
| 149 | 144 | </supportedProjectTypes> |
| 150 | 145 | </configuration> |
| 146 | + <executions> | |
| 147 | + <!-- Alternate execution to generate the shaded JAR's manifest --> | |
| 148 | + <execution> | |
| 149 | + <id>bundle-manifest-shaded</id> | |
| 150 | + <phase>prepare-package</phase> | |
| 151 | + <goals> | |
| 152 | + <goal>manifest</goal> | |
| 153 | + </goals> | |
| 154 | + <configuration> | |
| 155 | + <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation> | |
| 156 | + <instructions> | |
| 157 | + <Import-Package><![CDATA[com.google.common.*;version="[14.0,19)",!org.jboss.netty.*,*]]></Import-Package> | |
| 158 | + <Private-Package>com.datastax.shaded.*</Private-Package> | |
| 159 | + </instructions> | |
| 160 | + </configuration> | |
| 161 | + </execution> | |
| 162 | + </executions> | |
| 151 | 163 | </plugin> |
| 152 | 164 | <plugin> |
| 153 | 165 | <artifactId>maven-shade-plugin</artifactId> |
| @@ -169,6 +181,16 @@ | ||
| 169 | 181 | <shadedPattern>com.datastax.shaded.netty</shadedPattern> |
| 170 | 182 | </relocation> |
| 171 | 183 | </relocations> |
| 184 | + <transformers> | |
| 185 | + <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> | |
| 186 | + <resource>META-INF/MANIFEST.MF</resource> | |
| 187 | + </transformer> | |
| 188 | + <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin --> | |
| 189 | + <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> | |
| 190 | + <resource>META-INF/MANIFEST.MF</resource> | |
| 191 | + <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file> | |
| 192 | + </transformer> | |
| 193 | + </transformers> | |
| 172 | 194 | </configuration> |
| 173 | 195 | </execution> |
| 174 | 196 | </executions> |
modified driver-dse/pom.xml +0 −9
| @@ -41,15 +41,6 @@ | ||
| 41 | 41 | <artifactId>maven-bundle-plugin</artifactId> |
| 42 | 42 | <extensions>true</extensions> |
| 43 | 43 | <version>2.4.0</version> |
| 44 | - <executions> | |
| 45 | - <execution> | |
| 46 | - <id>bundle-manifest</id> | |
| 47 | - <phase>process-classes</phase> | |
| 48 | - <goals> | |
| 49 | - <goal>manifest</goal> | |
| 50 | - </goals> | |
| 51 | - </execution> | |
| 52 | - </executions> | |
| 53 | 44 | <configuration> |
| 54 | 45 | <instructions> |
| 55 | 46 | <Bundle-SymbolicName>com.datastax.driver.dse</Bundle-SymbolicName> |