-
Notifications
You must be signed in to change notification settings - Fork 15
/
pom.xml
118 lines (114 loc) · 4.44 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.contrastsecurity</groupId>
<artifactId>contrast-rO0</artifactId>
<version>1.0.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-debug-all</artifactId>
<version>5.0.3</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.2.3.RELEASE</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>contrast-rO0</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<includes>
<include>com/contrastsecurity/rO0/**</include>
<include>org/objectweb/**</include>
<include>META-INF/MANIFEST.MF</include>
</includes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>org.objectweb</pattern>
<shadedPattern>com.contrastsecurity.rO0.thirdparty.org.objectweb</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<archive>
<manifest>
<mainClass>
com.contrastsecurity.rO0.RO0Agent
</mainClass>
</manifest>
<manifestEntries>
<Premain-Class>com.contrastsecurity.rO0.RO0Agent</Premain-Class>
<Agent-Class>com.contrastsecurity.rO0.RO0Agent</Agent-Class>
<Boot-Class-Path>${build.finalName}.jar</Boot-Class-Path>
<Can-Redefine-Classes>true</Can-Redefine-Classes>
<Can-Retransform-Classes>true</Can-Retransform-Classes>
<Can-Set-Native-Method-Prefix>true</Can-Set-Native-Method-Prefix>
<Build-Time>${maven.build.timestamp}</Build-Time>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.9</version>
<configuration>
<skip>false</skip>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<argLine>
-javaagent:${project.build.directory}/${build.finalName}.jar=rO0.reporting:false,rO0.blacklist:true,rO0.lists:${basedir}/config/blacklist-default
</argLine>
</configuration>
<executions>
<execution>
<id>verify-serialization-security</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<runOrder>alphabetical</runOrder>
<skip>false</skip>
<forkMode>once</forkMode>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>