| <?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.examples</groupId> |
| <artifactId>plc4j-hello-webapp</artifactId> |
| <version>0.4.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>plc4j-hello-webapp-webapp</artifactId> |
| <packaging>war</packaging> |
| |
| <name>PLC4J: Examples: Hello-Webapp: Spring-Boot WAR</name> |
| |
| <properties> |
| <start.class>org.apache.plc4x.examples.robot.Application</start.class> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| <version>${spring-boot.version}</version> |
| <executions> |
| <execution> |
| <id>repackage</id> |
| <goals> |
| <goal>repackage</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <mainClass>${start.class}</mainClass> |
| <executable>true</executable> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <!-- Unpack the client content into this module in order to be able to serve the client too. --> |
| <execution> |
| <id>copy-client</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.plc4x.examples</groupId> |
| <artifactId>plc4j-hello-webapp-client</artifactId> |
| <version>0.4.0-SNAPSHOT</version> |
| <type>war</type> |
| <outputDirectory>${project.build.outputDirectory}/static/</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| <configuration> |
| <usedDependencies> |
| <usedDependency>org.springframework.boot:spring-boot-starter-web</usedDependency> |
| <usedDependency>org.apache.plc4x.examples:plc4j-hello-webapp-service</usedDependency> |
| <usedDependency>org.apache.plc4x.examples:plc4j-hello-webapp-client</usedDependency> |
| </usedDependencies> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifest> |
| <mainClass>${start.class}</mainClass> |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| </manifest> |
| </archive> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.plc4x.examples</groupId> |
| <artifactId>plc4j-hello-webapp-service</artifactId> |
| <version>0.4.0-SNAPSHOT</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-web</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-autoconfigure</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.plc4x.examples</groupId> |
| <artifactId>plc4j-hello-webapp-client</artifactId> |
| <version>0.4.0-SNAPSHOT</version> |
| <type>war</type> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| |
| |
| </project> |