Skip to content

Commit c3e6137

Browse files
essobedogsmet
authored andcommitted
Ref apache/camel-quarkus#4434: Unpack the required JS module
1 parent 5bc0019 commit c3e6137

File tree

2 files changed

+50
-0
lines changed
  • generated-platform-project/quarkus-camel/integration-tests/camel-quarkus-integration-test-js-dsl
  • src/main/resources/xslt/camel

2 files changed

+50
-0
lines changed

generated-platform-project/quarkus-camel/integration-tests/camel-quarkus-integration-test-js-dsl/pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,30 @@
9797
</systemPropertyVariables>
9898
</configuration>
9999
</plugin>
100+
<plugin>
101+
<groupId>org.apache.maven.plugins</groupId>
102+
<artifactId>maven-dependency-plugin</artifactId>
103+
<executions>
104+
<execution>
105+
<id>unpack-test-resources</id>
106+
<phase>process-test-resources</phase>
107+
<goals>
108+
<goal>unpack</goal>
109+
</goals>
110+
<configuration>
111+
<artifactItems>
112+
<artifactItem>
113+
<groupId>org.apache.camel.quarkus</groupId>
114+
<artifactId>camel-quarkus-integration-test-js-dsl</artifactId>
115+
<version>${camel-quarkus.version}</version>
116+
<outputDirectory>${project.basedir}/src/main/resources</outputDirectory>
117+
<includes>**/*.mjs</includes>
118+
</artifactItem>
119+
</artifactItems>
120+
</configuration>
121+
</execution>
122+
</executions>
123+
</plugin>
100124
<plugin>
101125
<groupId>org.codehaus.mojo</groupId>
102126
<artifactId>build-helper-maven-plugin</artifactId>

src/main/resources/xslt/camel/test-pom.xsl

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,32 @@
8888
</dependencies>
8989
</plugin>
9090
</xsl:if>
91+
<xsl:if test="/pom:project/pom:artifactId/text() = 'camel-quarkus-integration-test-js-dsl'">
92+
<plugin>
93+
<groupId>org.apache.maven.plugins</groupId>
94+
<artifactId>maven-dependency-plugin</artifactId>
95+
<executions>
96+
<execution>
97+
<id>unpack-test-resources</id>
98+
<phase>process-test-resources</phase>
99+
<goals>
100+
<goal>unpack</goal>
101+
</goals>
102+
<configuration>
103+
<artifactItems>
104+
<artifactItem>
105+
<groupId>org.apache.camel.quarkus</groupId>
106+
<artifactId>camel-quarkus-integration-test-js-dsl</artifactId>
107+
<version>${camel-quarkus.version}</version>
108+
<outputDirectory>${project.basedir}/src/main/resources</outputDirectory>
109+
<includes>**/*.mjs</includes>
110+
</artifactItem>
111+
</artifactItems>
112+
</configuration>
113+
</execution>
114+
</executions>
115+
</plugin>
116+
</xsl:if>
91117
<plugin>
92118
<groupId>org.codehaus.mojo</groupId>
93119
<artifactId>build-helper-maven-plugin</artifactId>

0 commit comments

Comments
 (0)