Skip to content

Commit 891af02

Browse files
authored
Merge pull request #13 from turing85/bugfix/cannot-start-http-server
Bugfix: cannot start http server
2 parents 60fe52c + cda71a6 commit 891af02

File tree

3 files changed

+36
-35
lines changed

3 files changed

+36
-35
lines changed

citrus-remote-maven-plugin/src/main/resources/assemblies/test-jar.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,9 @@
3030
<scope>test</scope>
3131
</dependencySet>
3232
</dependencySets>
33+
<containerDescriptorHandlers>
34+
<containerDescriptorHandler>
35+
<handlerName>metaInf-spring</handlerName>
36+
</containerDescriptorHandler>
37+
</containerDescriptorHandlers>
3338
</assembly>

citrus-remote-maven-plugin/src/main/resources/assemblies/test-war.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,9 @@
4444
</includes>
4545
</fileSet>
4646
</fileSets>
47+
<containerDescriptorHandlers>
48+
<containerDescriptorHandler>
49+
<handlerName>metaInf-spring</handlerName>
50+
</containerDescriptorHandler>
51+
</containerDescriptorHandlers>
4752
</assembly>

citrus-remote-sample/pom.xml

Lines changed: 26 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@
2222
<spring.version>6.1.12</spring.version>
2323

2424
<!-- Project setup -->
25-
<citrus.remote.phase>none</citrus.remote.phase>
25+
<citrus.remote.report.directory>citrus-remote</citrus.remote.report.directory>
26+
<citrus.remote.test.phase>none</citrus.remote.test.phase>
27+
<citrus.remote.verify.phase>none</citrus.remote.verify.phase>
2628

2729
<docker.build.phase>none</docker.build.phase>
30+
<docker.copy.phase>none</docker.copy.phase>
2831
<docker.remove.phase>none</docker.remove.phase>
2932
<docker.start.phase>none</docker.start.phase>
3033
<docker.stop.phase>none</docker.stop.phase>
@@ -56,44 +59,15 @@
5659
</goals>
5760
<phase>package</phase>
5861
<configuration>
59-
<assembly>
60-
<descriptor>
61-
<inline>
62-
<id>citrus-tests</id>
63-
<formats>
64-
<format>jar</format>
65-
</formats>
66-
<includeBaseDirectory>false</includeBaseDirectory>
67-
<dependencySets>
68-
<dependencySet>
69-
<outputDirectory>/</outputDirectory>
70-
<useProjectArtifact>false</useProjectArtifact>
71-
<useProjectAttachments>true</useProjectAttachments>
72-
<unpack>true</unpack>
73-
<scope>test</scope>
74-
</dependencySet>
75-
</dependencySets>
76-
<!-- Workaround for -->
77-
<!-- https://github.com/citrusframework/citrus-remote/issues/2 -->
78-
<!-- if the issue is fixed, the whole descriptor-section can be removed. -->
79-
<containerDescriptorHandlers>
80-
<containerDescriptorHandler>
81-
<handlerName>metaInf-spring</handlerName>
82-
</containerDescriptorHandler>
83-
</containerDescriptorHandlers>
84-
</inline>
85-
</descriptor>
86-
</assembly>
8762
<mainClass>org.citrusframework.remote.sample.entrypoint.CustomEntrypoint</mainClass>
8863
</configuration>
8964
</execution>
9065
<execution>
9166
<id>trigger-citrus-remote</id>
9267
<goals>
9368
<goal>test</goal>
94-
<goal>verify</goal>
9569
</goals>
96-
<phase>${citrus.remote.phase}</phase>
70+
<phase>${citrus.remote.test.phase}</phase>
9771
<configuration>
9872
<server>
9973
<url>http://localhost:4567</url>
@@ -104,7 +78,19 @@
10478
<pollingInterval>15000</pollingInterval>
10579
</run>
10680
<report>
107-
<directory>citrus-remote</directory>
81+
<directory>${citrus.remote.report.directory}</directory>
82+
</report>
83+
</configuration>
84+
</execution>
85+
<execution>
86+
<id>verify-citrus-remote-tests</id>
87+
<goals>
88+
<goal>verify</goal>
89+
</goals>
90+
<phase>${citrus.remote.verify.phase}</phase>
91+
<configuration>
92+
<report>
93+
<directory>${citrus.remote.report.directory}</directory>
10894
</report>
10995
</configuration>
11096
</execution>
@@ -190,7 +176,7 @@
190176
<goals>
191177
<goal>copy</goal>
192178
</goals>
193-
<phase>${citrus.remote.phase}</phase>
179+
<phase>${docker.copy.phase}</phase>
194180
</execution>
195181
<execution>
196182
<id>stop-container</id>
@@ -322,9 +308,11 @@
322308
<profile>
323309
<id>docker</id>
324310
<properties>
325-
<citrus.remote.phase>integration-test</citrus.remote.phase>
311+
<citrus.remote.test.phase>integration-test</citrus.remote.test.phase>
312+
<citrus.remote.verify.phase>verify</citrus.remote.verify.phase>
326313

327314
<docker.build.phase>pre-integration-test</docker.build.phase>
315+
<docker.copy.phase>post-integration-test</docker.copy.phase>
328316
<docker.remove.phase>post-integration-test</docker.remove.phase>
329317
<docker.start.phase>pre-integration-test</docker.start.phase>
330318
<docker.stop.phase>post-integration-test</docker.stop.phase>
@@ -335,7 +323,10 @@
335323
<profile>
336324
<id>skip-citrus-remote</id>
337325
<properties>
338-
<citrus.remote.phase>none</citrus.remote.phase>
326+
<citrus.remote.test.phase>none</citrus.remote.test.phase>
327+
<citrus.remote.verify.phase>none</citrus.remote.verify.phase>
328+
329+
<docker.copy.phase>none</docker.copy.phase>
339330
</properties>
340331
</profile>
341332
<profile>

0 commit comments

Comments
 (0)