|
135 | 135 | </build> |
136 | 136 | </profile> |
137 | 137 | <profile> |
138 | | - <id>generate-graalvm-files</id> |
139 | | - <dependencies> |
140 | | - <dependency> |
141 | | - <groupId>org.mockito</groupId> |
142 | | - <artifactId>mockito-subclass</artifactId> |
143 | | - <scope>test</scope> |
144 | | - </dependency> |
145 | | - </dependencies> |
146 | | - <build> |
147 | | - <plugins> |
148 | | - <plugin> |
149 | | - <groupId>org.apache.maven.plugins</groupId> |
150 | | - <artifactId>maven-surefire-plugin</artifactId> |
151 | | - <configuration> |
152 | | - <argLine> |
153 | | - -Dorg.graalvm.nativeimage.imagecode=agent |
154 | | - -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image/software.amazon.lambda/powertools-lambda-metadata,experimental-class-define-support |
155 | | - --add-opens java.base/java.util=ALL-UNNAMED |
156 | | - --add-opens java.base/java.lang=ALL-UNNAMED |
157 | | - </argLine> |
158 | | - </configuration> |
159 | | - </plugin> |
160 | | - </plugins> |
161 | | - </build> |
162 | | - </profile> |
163 | | - <profile> |
164 | | - <id>graalvm-native</id> |
| 138 | + <id>native</id> |
165 | 139 | <dependencies> |
166 | 140 | <dependency> |
167 | 141 | <groupId>org.mockito</groupId> |
|
174 | 148 | <plugin> |
175 | 149 | <groupId>org.graalvm.buildtools</groupId> |
176 | 150 | <artifactId>native-maven-plugin</artifactId> |
177 | | - <version>0.11.2</version> |
178 | | - <extensions>true</extensions> |
179 | | - <executions> |
180 | | - <execution> |
181 | | - <id>test-native</id> |
182 | | - <goals> |
183 | | - <goal>test</goal> |
184 | | - </goals> |
185 | | - <phase>test</phase> |
186 | | - </execution> |
187 | | - </executions> |
188 | 151 | <configuration> |
189 | 152 | <imageName>powertools-lambda-metadata</imageName> |
190 | | - <buildArgs> |
191 | | - <buildArg>--add-opens java.base/java.util=ALL-UNNAMED</buildArg> |
192 | | - <buildArg>--add-opens java.base/java.lang=ALL-UNNAMED</buildArg> |
| 153 | + <agent> |
| 154 | + <metadataCopy> |
| 155 | + <outputDirectory>src/main/resources/META-INF/native-image/software.amazon.lambda/powertools-lambda-metadata</outputDirectory> |
| 156 | + </metadataCopy> |
| 157 | + </agent> |
| 158 | + <buildArgs combine.children="append"> |
193 | 159 | <buildArg>--enable-url-protocols=http</buildArg> |
194 | | - <buildArg>--no-fallback</buildArg> |
195 | | - <buildArg>--verbose</buildArg> |
196 | | - <buildArg>--native-image-info</buildArg> |
197 | | - <buildArg>-H:+UnlockExperimentalVMOptions</buildArg> |
198 | | - <buildArg>-H:+ReportExceptionStackTraces</buildArg> |
199 | 160 | </buildArgs> |
200 | 161 | </configuration> |
201 | 162 | </plugin> |
|
0 commit comments