This is an automated email from the ASF dual-hosted git repository. cdutz pushed a commit to branch feat/rust-s7-implementation in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit ed8b658eefb73e55241dd81fc2dfceb3069f907c Author: Christofer Dutz <[email protected]> AuthorDate: Thu Mar 6 18:58:44 2025 +0100 feat: Added the pom for building plc4rs with maven --- plc4x-rust/pom.xml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 7 +++++++ 2 files changed, 67 insertions(+) diff --git a/plc4x-rust/pom.xml b/plc4x-rust/pom.xml new file mode 100644 index 0000000000..6398af11f6 --- /dev/null +++ b/plc4x-rust/pom.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + 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"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.plc4x</groupId> + <artifactId>plc4x-parent</artifactId> + <version>0.13.0-SNAPSHOT</version> + </parent> + + <artifactId>plc4x-rust</artifactId> + <packaging>pom</packaging> + + <name>PLC4Rust</name> + <description>Implementation of the protocol adapters for usage as Rust module.</description> + + <build> + <plugins> + <!-- Build the project --> + <plugin> + <groupId>org.questdb</groupId> + <artifactId>rust-maven-plugin</artifactId> + <version>1.2.0</version> + <executions> + <execution> + <id>rust-build-id</id> + <goals> + <goal>build</goal> + </goals> + <configuration> + <path>${project.basedir}</path> + <!--copyTo>${project.build.directory}/classes/io/questdb/jni/example/rust/libs</copyTo--> + <copyWithPlatformDir>true</copyWithPlatformDir> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> \ No newline at end of file diff --git a/pom.xml b/pom.xml index 0bcdca6525..ba6df92ee4 100644 --- a/pom.xml +++ b/pom.xml @@ -1445,6 +1445,13 @@ </modules> </profile> + <profile> + <id>with-rust</id> + <modules> + <module>plc4x-rust</module> + </modules> + </profile> + <!-- Profile for linux x86_64 (mainly Intel Processors) (Self-Enabling) --> <profile> <id>.os-linux-x86_64</id>
