-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpom.xml
195 lines (190 loc) · 7.68 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<?xml version="1.0" encoding="UTF-8"?>
<!--
The MIT License (MIT)
Copyright (c) 2016-2023 Objectionary.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<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>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<!--
The version of 3.2.0 and similar requires rather high java
version: 17 or higher. So we intentionally use the version 2.7.18
here that requires java 11 since our plugin should be compatible with
java 11.
-->
<version>2.7.18</version>
<relativePath/>
</parent>
<groupId>org.eolang</groupId>
<artifactId>opeo-spring-fat-it</artifactId>
<version>@project.version@</version>
<packaging>jar</packaging>
<description>
This integration test verifies all the phases of the `opeo-maven-plugin` along
with the `jeo-maven-plugin` and `ineo-maven-plugin`. In this test, we use a
Spring Framework-based application, build a fat jar application, and then apply
all the transformations and optimizations to it.
If you need to run only this test, use the following command:
"mvn clean integration-test invoker:run -Dinvoker.test=spring-fat -DskipTests"
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<jeo.version>0.4.2</jeo.version>
<ineo.version>0.2.1</ineo.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.6.1</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eolang</groupId>
<artifactId>jeo-maven-plugin</artifactId>
<version>${jeo.version}</version>
<executions>
<execution>
<id>bytecode-to-eo</id>
<goals>
<goal>disassemble</goal>
</goals>
<configuration>
<outputDir>${project.build.directory}/generated-sources/jeo-disassemble-xmir</outputDir>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eolang</groupId>
<artifactId>opeo-maven-plugin</artifactId>
<version>@project.version@</version>
<!--
@todo #219:90min Enable Opeo Spring Fat Integration Test.
The test is disabled because it fails in many places.
We have to fix all the tests steps and enable this test.
Don't forget to add this test to the merge workflow.
see .github/workflows/maven.test.yaml
Also don't forget to remove the disabled tag from the configuration.
-->
<configuration>
<disabled>true</disabled>
</configuration>
<executions>
<execution>
<id>opeo-decompile</id>
<goals>
<goal>decompile</goal>
</goals>
<configuration>
<sourcesDir>${project.build.directory}/generated-sources/jeo-disassemble-xmir</sourcesDir>
<outputDir>${project.build.directory}/generated-sources/opeo-decompile-xmir</outputDir>
</configuration>
</execution>
<execution>
<id>opeo-compile</id>
<phase>generate-test-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<sourcesDir>${project.build.directory}/generated-sources/ineo-staticize-xmir</sourcesDir>
<outputDir>${project.build.directory}/generated-sources/opeo-compile-xmir</outputDir>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eolang</groupId>
<artifactId>ineo-maven-plugin</artifactId>
<version>${ineo.version}</version>
<executions>
<execution>
<id>ineo-staticize</id>
<phase>process-classes</phase>
<goals>
<goal>staticize</goal>
</goals>
<configuration>
<sourcesDir>${project.build.directory}/generated-sources/opeo-decompile-xmir</sourcesDir>
<outputDir>${project.build.directory}/generated-sources/ineo-staticize-xmir</outputDir>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<executable>mvn</executable>
</configuration>
<executions>
<execution>
<id>jeo-to-bytecode</id>
<phase>generate-test-sources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<arguments combine.children="append">
<argument>org.eolang:jeo-maven-plugin:${jeo.version}:assemble</argument>
<argument>-Djeo.assemble.sourcesDir=${project.build.directory}/generated-sources/opeo-compile-xmir</argument>
<!--
@todo #200:90min Enable Bytecode Verification For Spring Fat Integration Test.
We skip verification because the Spring Framework uses many classes that
are not in the classpath and the plugin cannot verify the correctness of
the transformation. For not it's not so crucial, but in the future, we
should enable it.
-->
<argument>-Djeo.assemble.skipVerification=true</argument>
<argument>-e</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>