| <?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-protocols</artifactId> |
| <version>0.8.0</version> |
| </parent> |
| |
| <artifactId>plc4x-protocols-knxnetip</artifactId> |
| |
| <name>Protocols: KNXNet/IP</name> |
| <description>Base protocol specifications for the KNXNet/IP protocol</description> |
| |
| <build> |
| <plugins> |
| <!-- Fetch the master-data which will be used to translate manufacturer ids to readable names --> |
| <plugin> |
| <groupId>com.googlecode.maven-download-plugin</groupId> |
| <artifactId>download-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>fetch-knx-manufacturer-data</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>wget</goal> |
| </goals> |
| <configuration> |
| <url>https://update.knx.org/data/XML/project-20/knx_master.xml</url> |
| <unpack>false</unpack> |
| <outputDirectory>${project.build.directory}/downloads</outputDirectory> |
| <outputFileName>knx-master-data.xml</outputFileName> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>xml-maven-plugin</artifactId> |
| <version>1.0.2</version> |
| <executions> |
| <execution> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>transform</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <transformationSets> |
| <transformationSet> |
| <dir>${project.build.directory}/downloads</dir> |
| <includes>*.xml</includes> |
| <stylesheet>src/main/xslt/knx-types.xsl</stylesheet> |
| <outputDir>${project.build.outputDirectory}/protocols/knxnetip</outputDir> |
| <fileMappers> |
| <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper"> |
| <targetExtension>.mspec</targetExtension> |
| </fileMapper> |
| </fileMappers> |
| </transformationSet> |
| </transformationSets> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>net.sourceforge.saxon</groupId> |
| <artifactId>saxon</artifactId> |
| <version>9.1.0.8</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.plc4x</groupId> |
| <artifactId>plc4x-build-utils-protocol-base-mspec</artifactId> |
| <version>0.8.0</version> |
| </dependency> |
| </dependencies> |
| |
| </project> |