-
Notifications
You must be signed in to change notification settings - Fork 305
/
pom.xml
92 lines (86 loc) · 2.65 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2017, 2022 Eurotech and/or its affiliates All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v1.0 which accompanies this distribution,
and is available at http://www.eclipse.org/legal/epl-v10.html
Contributors:
Eurotech
Amit Kumar Mondal (admin@amitinside.com)
-->
<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.eclipse.kura</groupId>
<artifactId>kura</artifactId>
<version>4.1.4-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.kura.driver.s7plc.provider</artifactId>
<version>1.0.301-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<properties>
<optimizer.version>1.0.0</optimizer.version>
<kura.basedir>${project.basedir}/..</kura.basedir>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>org.eclipse.kura</groupId>
<artifactId>org.eclipse.kura.driver.block</artifactId>
<version>${optimizer.version}</version>
</artifactItem>
</artifactItems>
</configuration>
<goals>
<goal>copy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>generate-sources</phase>
<id>copy-optimizer-jar</id>
<configuration>
<target>
<copy
file="${project.build.directory}/org.eclipse.kura.driver.block-${optimizer.version}.jar"
tofile="lib/org.eclipse.kura.driver.block.jar" overwrite="true" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<phase>clean</phase>
<id>clean-optimizer-jar</id>
<configuration>
<target>
<delete file="lib/org.eclipse.kura.driver.block.optimizer.jar"></delete>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>