|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
3 | 4 | <modelVersion>4.0.0</modelVersion> |
4 | 5 |
|
5 | 6 | <parent> |
|
18 | 19 | <packages.list>net.bytebuddy.agent,net.bytebuddy.agent.utility.nullability</packages.list> |
19 | 20 | <native.compiler.32>i686-w64-mingw32-gcc</native.compiler.32> |
20 | 21 | <native.compiler.64>x86_64-w64-mingw32-gcc</native.compiler.64> |
21 | | - <net.bytebuddy.test.jnapath /> |
| 22 | + <net.bytebuddy.test.jnapath/> |
22 | 23 | </properties> |
23 | 24 |
|
24 | 25 | <name>Byte Buddy agent</name> |
25 | | - <description>The Byte Buddy agent offers convenience for attaching an agent to the local or a remote VM.</description> |
| 26 | + <description>The Byte Buddy agent offers convenience for attaching an agent to the local or a remote VM. |
| 27 | + </description> |
26 | 28 |
|
27 | 29 | <!-- |
28 | 30 | The JNA dependency can be excluded safely. Byte Buddy will safely discover the |
|
207 | 209 | <arguments> |
208 | 210 | <argument>-shared</argument> |
209 | 211 | <argument>-o</argument> |
210 | | - <argument>${project.basedir}/src/main/resources/win32-x86/attach_hotspot_windows.dll</argument> |
| 212 | + <argument> |
| 213 | + ${project.basedir}/src/main/resources/win32-x86/attach_hotspot_windows.dll |
| 214 | + </argument> |
211 | 215 | <argument>${project.basedir}/src/main/c/attach_hotspot_windows.c</argument> |
212 | 216 | </arguments> |
213 | 217 | </configuration> |
|
223 | 227 | <arguments> |
224 | 228 | <argument>-shared</argument> |
225 | 229 | <argument>-o</argument> |
226 | | - <argument>${project.basedir}/src/main/resources/win32-x86-64/attach_hotspot_windows.dll</argument> |
| 230 | + <argument> |
| 231 | + ${project.basedir}/src/main/resources/win32-x86-64/attach_hotspot_windows.dll |
| 232 | + </argument> |
227 | 233 | <argument>${project.basedir}/src/main/c/attach_hotspot_windows.c</argument> |
228 | 234 | </arguments> |
229 | 235 | </configuration> |
|
252 | 258 | </goals> |
253 | 259 | <phase>prepare-package</phase> |
254 | 260 | <configuration> |
255 | | - <outputDirectory>${project.build.outputDirectory}/META-INF/versions/9</outputDirectory> |
| 261 | + <outputDirectory>${project.build.outputDirectory}/META-INF/versions/9 |
| 262 | + </outputDirectory> |
256 | 263 | <target>1.8</target> |
257 | 264 | </configuration> |
258 | 265 | </execution> |
259 | 266 | </executions> |
260 | 267 | </plugin> |
| 268 | + <plugin> |
| 269 | + <groupId>org.apache.maven.plugins</groupId> |
| 270 | + <artifactId>maven-antrun-plugin</artifactId> |
| 271 | + <version>${version.plugin.antrun}</version> |
| 272 | + <executions> |
| 273 | + <execution> |
| 274 | + <id>modify-source-jar</id> |
| 275 | + <phase>verify</phase> |
| 276 | + <goals> |
| 277 | + <goal>run</goal> |
| 278 | + </goals> |
| 279 | + <configuration> |
| 280 | + <skip>${bytebuddy.original-sources}</skip> |
| 281 | + <target> |
| 282 | + <delete dir="${project.build.directory}/sources-copy" failonerror="false"/> |
| 283 | + <unzip src="${project.build.directory}/byte-buddy-agent-${project.version}-sources.jar" dest="${project.build.directory}/sources-copy"/> |
| 284 | + <copy todir="${project.build.directory}/sources-copy/META-INF/versions/9"> |
| 285 | + <fileset dir="${project.build.directory}/sources-copy"> |
| 286 | + <include name="net/bytebuddy/**/*.java"/> |
| 287 | + </fileset> |
| 288 | + </copy> |
| 289 | + <delete file="${project.build.directory}/byte-buddy-agent-${project.version}-sources.jar"/> |
| 290 | + <zip basedir="${project.build.directory}/sources-copy" destfile="${project.build.directory}/byte-buddy-agent-${project.version}-sources.jar"/> |
| 291 | + </target> |
| 292 | + </configuration> |
| 293 | + </execution> |
| 294 | + </executions> |
| 295 | + </plugin> |
261 | 296 | </plugins> |
262 | 297 | </build> |
263 | 298 | </profile> |
|
0 commit comments