changeset 365:5990033f24ae

Disable annotation processors in the final JARs (JMH subprojects part)
author shade
date Thu, 23 Jan 2014 02:39:17 +0400
parents d664e79b3c0b
children 9d70c6308d91
files jmh-api-samples/pom.xml jmh-core-benchmarks/pom.xml jmh-core-it/pom.xml jmh-samples/pom.xml
diffstat 4 files changed, 32 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-api-samples/pom.xml	Thu Jan 23 02:22:10 2014 +0400
+++ b/jmh-api-samples/pom.xml	Thu Jan 23 02:39:17 2014 +0400
@@ -98,6 +98,14 @@
                                     <mainClass>org.openjdk.jmh.SimpleTest</mainClass>
                                 </transformer>
                             </transformers>
+                            <filters>
+                                <filter>
+                                    <artifact>*:*</artifact>
+                                    <excludes>
+                                        <exclude>META-INF/services/javax.annotation.processing.Processor</exclude>
+                                    </excludes>
+                                </filter>
+                            </filters>
                         </configuration>
                     </execution>
                 </executions>
--- a/jmh-core-benchmarks/pom.xml	Thu Jan 23 02:22:10 2014 +0400
+++ b/jmh-core-benchmarks/pom.xml	Thu Jan 23 02:39:17 2014 +0400
@@ -99,6 +99,14 @@
                                     <mainClass>org.openjdk.jmh.Main</mainClass>
                                 </transformer>
                             </transformers>
+                            <filters>
+                                <filter>
+                                    <artifact>*:*</artifact>
+                                    <excludes>
+                                        <exclude>META-INF/services/javax.annotation.processing.Processor</exclude>
+                                    </excludes>
+                                </filter>
+                            </filters>
                         </configuration>
                     </execution>
                     <execution>
@@ -115,6 +123,14 @@
                                     <mainClass>org.openjdk.jmh.MainValidation</mainClass>
                                 </transformer>
                             </transformers>
+                            <filters>
+                                <filter>
+                                    <artifact>*:*</artifact>
+                                    <excludes>
+                                        <exclude>META-INF/services/javax.annotation.processing.Processor</exclude>
+                                    </excludes>
+                                </filter>
+                            </filters>
                         </configuration>
                     </execution>
                 </executions>
--- a/jmh-core-it/pom.xml	Thu Jan 23 02:22:10 2014 +0400
+++ b/jmh-core-it/pom.xml	Thu Jan 23 02:39:17 2014 +0400
@@ -87,28 +87,6 @@
                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
                 </configuration>
             </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-shade-plugin</artifactId>
-                <version>2.0</version>
-                <executions>
-                    <execution>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>shade</goal>
-                        </goals>
-                        <configuration>
-                            <finalName>microbenchmarks</finalName>
-                            <transformers>
-                                <transformer
-                                        implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-                                    <mainClass>org.openjdk.jmh.Main</mainClass>
-                                </transformer>
-                            </transformers>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
 
             <plugin>
                 <groupId>com.mycila.maven-license-plugin</groupId>
--- a/jmh-samples/pom.xml	Thu Jan 23 02:22:10 2014 +0400
+++ b/jmh-samples/pom.xml	Thu Jan 23 02:39:17 2014 +0400
@@ -98,6 +98,14 @@
                                     <mainClass>org.openjdk.jmh.Main</mainClass>
                                 </transformer>
                             </transformers>
+                            <filters>
+                                <filter>
+                                    <artifact>*:*</artifact>
+                                    <excludes>
+                                        <exclude>META-INF/services/javax.annotation.processing.Processor</exclude>
+                                    </excludes>
+                                </filter>
+                            </filters>
                         </configuration>
                     </execution>
                 </executions>