|
24 | 24 | <properties>
|
25 | 25 | <findbugs.onlyAnalyze>org.apache.ibatis.*</findbugs.onlyAnalyze>
|
26 | 26 | <clirr.comparisonVersion>3.0.2</clirr.comparisonVersion>
|
| 27 | + <osgi.import>!net.sf.cglib.proxy,!org.apache.commons.logging,!org.apache.log4j,!org.slf4j,*</osgi.import> |
27 | 28 | </properties>
|
28 | 29 | <reporting>
|
29 | 30 | <plugins>
|
|
42 | 43 | </reporting>
|
43 | 44 | <build>
|
44 | 45 | <plugins>
|
| 46 | + <plugin> |
| 47 | + <groupId>org.sonatype.plugins</groupId> |
| 48 | + <artifactId>jarjar-maven-plugin</artifactId> |
| 49 | + <version>1.3</version> |
| 50 | + <configuration> |
| 51 | + <includes> |
| 52 | + <include>*:asm</include> |
| 53 | + <include>*:cglib</include> |
| 54 | + </includes> |
| 55 | + <rules> |
| 56 | + <!-- |
| 57 | + | relocate CGLIB + ASM as internal stuff |
| 58 | + --> |
| 59 | + <rule> |
| 60 | + <pattern>net.sf.cglib.*</pattern> |
| 61 | + <result>org.apache.ibatis.internal.cglib.$@1</result> |
| 62 | + </rule> |
| 63 | + <rule> |
| 64 | + <pattern>net.sf.cglib.**.*</pattern> |
| 65 | + <result>org.apache.ibatis.internal.cglib.@1.$@2</result> |
| 66 | + </rule> |
| 67 | + <rule> |
| 68 | + <pattern>org.objectweb.asm.*</pattern> |
| 69 | + <result>org.apache.ibatis.internal.asm.$@1</result> |
| 70 | + </rule> |
| 71 | + <rule> |
| 72 | + <pattern>org.objectweb.asm.**.*</pattern> |
| 73 | + <result>org.apache.ibatis.internal.asm.@1.$@2</result> |
| 74 | + </rule> |
| 75 | + <!-- |
| 76 | + | keep original source |
| 77 | + --> |
| 78 | + <keep> |
| 79 | + <pattern>org.apache.ibatis.**</pattern> |
| 80 | + </keep> |
| 81 | + <!-- |
| 82 | + | keep test source |
| 83 | + --> |
| 84 | + <keep> |
| 85 | + <pattern>com.**</pattern> |
| 86 | + </keep> |
| 87 | + <keep> |
| 88 | + <pattern>databases.**</pattern> |
| 89 | + </keep> |
| 90 | + <keep> |
| 91 | + <pattern>domain.**</pattern> |
| 92 | + </keep> |
| 93 | + </rules> |
| 94 | + </configuration> |
| 95 | + <!-- |
| 96 | + | JarJar all classes before running tests |
| 97 | + --> |
| 98 | + <executions> |
| 99 | + <execution> |
| 100 | + <id>jarjar-classes</id> |
| 101 | + <phase>process-test-classes</phase> |
| 102 | + <goals> |
| 103 | + <goal>jarjar</goal> |
| 104 | + </goals> |
| 105 | + <configuration> |
| 106 | + <input>{classes}</input> |
| 107 | + </configuration> |
| 108 | + </execution> |
| 109 | + <execution> |
| 110 | + <id>jarjar-test-classes</id> |
| 111 | + <phase>process-test-classes</phase> |
| 112 | + <goals> |
| 113 | + <goal>jarjar</goal> |
| 114 | + </goals> |
| 115 | + <configuration> |
| 116 | + <input>{test-classes}</input> |
| 117 | + </configuration> |
| 118 | + </execution> |
| 119 | + </executions> |
| 120 | + </plugin> |
45 | 121 | <plugin>
|
46 | 122 | <groupId>org.apache.maven.plugins</groupId>
|
47 | 123 | <artifactId>maven-assembly-plugin</artifactId>
|
|
71 | 147 | </goals>
|
72 | 148 | <configuration>
|
73 | 149 | <uploads>
|
74 |
| - <!-- Core --> |
| 150 | + <!-- |
| 151 | + | Core |
| 152 | + --> |
75 | 153 | <upload>
|
76 | 154 | <file>${project.build.directory}/${project.artifactId}-${project.version}-bundle.zip</file>
|
77 | 155 | <summary>MyBatis Persistence Framework ${project.version}</summary>
|
|
102 | 180 | <label>Version-${project.version}</label>
|
103 | 181 | </labels>
|
104 | 182 | </upload>
|
105 |
| - <!-- Migrations --> |
| 183 | + <!-- |
| 184 | + | Migrations |
| 185 | + --> |
106 | 186 | <upload>
|
107 | 187 | <file>${project.build.directory}/${project.artifactId}-${project.version}-migrations.zip</file>
|
108 | 188 | <summary>MyBatis Schema Migrations ${project.version}</summary>
|
|
150 | 230 | </execution>
|
151 | 231 | </executions>
|
152 | 232 | </plugin>
|
153 |
| - <plugin> |
154 |
| - <groupId>org.apache.maven.plugins</groupId> |
155 |
| - <artifactId>maven-surefire-plugin</artifactId> |
156 |
| - <configuration> |
157 |
| - <forkMode>always</forkMode> |
158 |
| - </configuration> |
159 |
| - </plugin> |
160 | 233 | </plugins>
|
161 | 234 | <resources>
|
162 | 235 | <resource>
|
163 |
| - <directory>.</directory> |
| 236 | + <directory>${basedir}</directory> |
164 | 237 | <targetPath>META-INF</targetPath>
|
165 | 238 | <includes>
|
166 | 239 | <include>LICENSE</include>
|
|
209 | 282 | <optional>true</optional>
|
210 | 283 | </dependency>
|
211 | 284 | <dependency>
|
212 |
| - <groupId>cglib</groupId> |
| 285 | + <groupId>org.sonatype.sisu.inject</groupId> |
213 | 286 | <artifactId>cglib</artifactId>
|
214 |
| - <version>2.1_3</version> |
215 |
| - <optional>true</optional> |
| 287 | + <version>2.2.1</version> |
| 288 | + <scope>provided</scope> |
216 | 289 | </dependency>
|
217 | 290 | <!-- Test dependencies -->
|
218 | 291 | <dependency>
|
219 | 292 | <groupId>junit</groupId>
|
220 | 293 | <artifactId>junit</artifactId>
|
221 |
| - <version>4.8.2</version> |
| 294 | + <version>4.3.1</version> |
222 | 295 | <scope>test</scope>
|
223 | 296 | </dependency>
|
224 | 297 | <dependency>
|
|
0 commit comments