This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 00939be8bb chore(build): repair test pom
00939be8bb is described below
commit 00939be8bbd7da78c2ac9ec25b6971341391c10c
Author: Sebastian Rühl <[email protected]>
AuthorDate: Fri Feb 13 09:31:17 2026 +0100
chore(build): repair test pom
---
.../language/go/src/test/resources/plc4go/pom.xml | 415 ++++++++++-----------
1 file changed, 196 insertions(+), 219 deletions(-)
diff --git a/code-generation/language/go/src/test/resources/plc4go/pom.xml
b/code-generation/language/go/src/test/resources/plc4go/pom.xml
index 3e47a6a7bf..1aed670d08 100644
--- a/code-generation/language/go/src/test/resources/plc4go/pom.xml
+++ b/code-generation/language/go/src/test/resources/plc4go/pom.xml
@@ -17,7 +17,8 @@
specific language governing permissions and limitations
under the License.
-->
-<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">
+<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>
@@ -31,230 +32,206 @@
<name>PLC4J: Driver: Go Mspec Test</name>
<description></description>
-<build>
- <plugins>
- <!--
- First copy parts of the PLC4Go code here:
- This is a workaround for the hen-eg-problem of needing the language in
order to compile the drivers
- -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>3.3.0</version>
- <executions>
- <execution>
- <id>go-pkg</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>./pkg</outputDirectory>
- <resources>
- <resource>
- <targetPath>.</targetPath>
- <directory>../../../../../../plc4go/pkg</directory>
- <filtering>false</filtering>
- </resource>
- </resources>
- <encoding>UTF-8</encoding>
- </configuration>
- </execution>
- <execution>
- <id>go-spi</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>./spi</outputDirectory>
- <resources>
- <resource>
- <targetPath>.</targetPath>
- <directory>../../../../../../plc4go/spi</directory>
- <excludes>
- <exclude>testutils/**</exclude>
- </excludes>
- <filtering>true</filtering>
- </resource>
- </resources>
- <encoding>UTF-8</encoding>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.plc4x.plugins</groupId>
- <artifactId>plc4x-maven-plugin</artifactId>
- <version>${plc4x-code-generation.version}</version>
- <executions>
- <execution>
- <id>generate-driver</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>generate-driver</goal>
- </goals>
- <configuration>
- <protocolName>test</protocolName>
- <languageName>go</languageName>
- <outputFlavor>read-write</outputFlavor>
- <outputDir>${project.basedir}/protocols</outputDir>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.karaf.tooling</groupId>
- <artifactId>karaf-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>generate-feature-xml</id>
- <phase>compile</phase>
- <goals>
- <!-- Generate the feature.xml -->
- <goal>features-generate-descriptor</goal>
- <!-- Check the feature.xml -->
- <goal>verify</goal>
- </goals>
- <configuration>
- <enableGeneration>true</enableGeneration>
- <aggregateFeatures>true</aggregateFeatures>
- </configuration>
- </execution>
- <execution>
- <id>build-kar</id>
- <phase>package</phase>
- <goals>
- <!--
- Build a kar archive (Jar containing the feature.xml
- as well as the module content and it's dependencies.
- -->
- <goal>kar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <instructions>
-
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
-
<Bundle-Activator>org.apache.plc4x.java.osgi.DriverActivator</Bundle-Activator>
-
<Export-Service>org.apache.plc4x.java.api.PlcDriver,org.apache.plc4x.protocol.test
- </Export-Service>
- <Import-Package>
- *
- </Import-Package>
- </instructions>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <configuration>
- <usedDependencies combine.children="append">
-
<usedDependency>org.apache.plc4x:plc4x-code-generation-language-go</usedDependency>
-
<usedDependency>org.apache.plc4x:plc4x-code-generation-protocol-test</usedDependency>
- </usedDependencies>
- </configuration>
- </plugin>
+ <properties>
+ <go.version>1.26.0</go.version>
+ </properties>
- <plugin>
- <groupId>com.igormaznitsa</groupId>
- <artifactId>mvn-golang-wrapper</artifactId>
- <version>2.3.9</version>
- <extensions>true</extensions>
- <executions>
- <execution>
- <id>default-fix</id>
- <!-- Move the execution of this after the code generation -->
- <phase>process-sources</phase>
- <goals>
- <goal>fix</goal>
- </goals>
- </execution>
- <!-- Move the execution of this after the code generation -->
- <execution>
- <id>default-get</id>
- <phase>process-sources</phase>
- <goals>
- <goal>get</goal>
- </goals>
- </execution>
- <execution>
- <id>run-go-vet</id>
- <phase>verify</phase>
- <goals>
- <goal>vet</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <goVersion>1.19</goVersion>
- <packages>
- <!-- We want to format every package here so we don't get dirty
commits -->
- <package>./internal/...</package>
- </packages>
- </configuration>
- </plugin>
+ <build>
+ <plugins>
+ <!--
+ First copy parts of the PLC4Go code here:
+ This is a workaround for the hen-eg-problem of needing the language in
order to compile the drivers
+ -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>3.3.0</version>
+ <executions>
+ <execution>
+ <id>go-pkg</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>./pkg</outputDirectory>
+ <resources>
+ <resource>
+ <targetPath>.</targetPath>
+ <directory>../../../../../../plc4go/pkg</directory>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ </execution>
+ <execution>
+ <id>go-spi</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>./spi</outputDirectory>
+ <resources>
+ <resource>
+ <targetPath>.</targetPath>
+ <directory>../../../../../../plc4go/spi</directory>
+ <excludes>
+ <exclude>testutils/**</exclude>
+ </excludes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.plc4x.plugins</groupId>
+ <artifactId>plc4x-maven-plugin</artifactId>
+ <version>${plc4x-code-generation.version}</version>
+ <executions>
+ <execution>
+ <id>generate-driver</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate-driver</goal>
+ </goals>
+ <configuration>
+ <protocolName>test</protocolName>
+ <languageName>go</languageName>
+ <outputFlavor>read-write</outputFlavor>
+ <outputDir>${project.basedir}/protocols</outputDir>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.karaf.tooling</groupId>
+ <artifactId>karaf-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-feature-xml</id>
+ <phase>compile</phase>
+ <goals>
+ <!-- Generate the feature.xml -->
+ <goal>features-generate-descriptor</goal>
+ <!-- Check the feature.xml -->
+ <goal>verify</goal>
+ </goals>
+ <configuration>
+ <enableGeneration>true</enableGeneration>
+ <aggregateFeatures>true</aggregateFeatures>
+ </configuration>
+ </execution>
+ <execution>
+ <id>build-kar</id>
+ <phase>package</phase>
+ <goals>
+ <!--
+ Build a kar archive (Jar containing the feature.xml
+ as well as the module content and it's dependencies.
+ -->
+ <goal>kar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
+
<Bundle-Activator>org.apache.plc4x.java.osgi.DriverActivator</Bundle-Activator>
+
<Export-Service>org.apache.plc4x.java.api.PlcDriver,org.apache.plc4x.protocol.test
+ </Export-Service>
+ <Import-Package>
+ *
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <configuration>
+ <usedDependencies combine.children="append">
+
<usedDependency>org.apache.plc4x:plc4x-code-generation-language-go</usedDependency>
+
<usedDependency>org.apache.plc4x:plc4x-code-generation-protocol-test</usedDependency>
+ </usedDependencies>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>com.igormaznitsa</groupId>
+ <artifactId>gosdk-wrapper-maven-plugin</artifactId>
+ <version>1.1.2</version>
+ <configuration>
+ <goVersion>${go.version}</goVersion>
+ <workDir>${project.basedir}</workDir>
+ <sdkSite>GOSDK_SITE</sdkSite>
+ </configuration>
+ </plugin>
- <!--
- Make the failsafe execute all integration-tests
- -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-failsafe-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>integration-test</goal>
- <goal>verify</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <!--
- Notice the @ instead of the $ as prefix? That's late evaluation.
+
+ <!--
+ Make the failsafe execute all integration-tests
-->
- <!--argLine>@{failsafeArgLine}</argLine-->
- </configuration>
- </plugin>
- </plugins>
-</build>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <!--
+ Notice the @ instead of the $ as prefix? That's late
evaluation.
+ -->
+ <!--argLine>@{failsafeArgLine}</argLine-->
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
-<dependencies>
- <dependency>
- <groupId>org.apache.plc4x</groupId>
- <artifactId>plc4x-code-generation-language-go</artifactId>
- <version>@project.version@</version>
- <!-- Scope is 'provided' as this way it's not shipped with the driver -->
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.plc4x</groupId>
- <artifactId>plc4x-code-generation-protocol-test</artifactId>
- <version>@project.version@</version>
- <!-- Scope is 'provided' as this way it's not shipped with the driver -->
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.plc4x</groupId>
- <artifactId>plc4x-code-generation-protocol-test</artifactId>
- <version>@project.version@</version>
- <classifier>tests</classifier>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.plc4x</groupId>
+ <artifactId>plc4x-code-generation-language-go</artifactId>
+ <version>@project.version@</version>
+ <!-- Scope is 'provided' as this way it's not shipped with the driver -->
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.plc4x</groupId>
+ <artifactId>plc4x-code-generation-protocol-test</artifactId>
+ <version>@project.version@</version>
+ <!-- Scope is 'provided' as this way it's not shipped with the driver -->
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.plc4x</groupId>
+ <artifactId>plc4x-code-generation-protocol-test</artifactId>
+ <version>@project.version@</version>
+ <classifier>tests</classifier>
+ <type>test-jar</type>
+ <scope>test</scope>
+ </dependency>
- <dependency>
- <groupId>org.junit.platform</groupId>
- <artifactId>junit-platform-launcher</artifactId>
- <scope>test</scope>
- </dependency>
-</dependencies>
+ <dependency>
+ <groupId>org.junit.platform</groupId>
+ <artifactId>junit-platform-launcher</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
</project>