Daniel Espen | be80b3c | 2020-02-10 08:43:47 +0100 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | <modelVersion>4.0.0</modelVersion> |
Daniel Espen | e9fd695 | 2019-10-11 11:01:16 +0200 | [diff] [blame] | 5 | |
Daniel Espen | be80b3c | 2020-02-10 08:43:47 +0100 | [diff] [blame] | 6 | <groupId>org.eclipse.basyx</groupId> |
| 7 | <artifactId>basyx.components</artifactId> |
| 8 | <version>0.0.1-SNAPSHOT</version> |
| 9 | <name>BaSyx Components</name> |
| 10 | |
| 11 | <packaging>pom</packaging> |
| 12 | |
| 13 | <properties> |
| 14 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 15 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 16 | </properties> |
| 17 | |
| 18 | <!-- Includes all components in this project as separated modules --> |
| 19 | <modules> |
| 20 | <module>basyx.components.lib</module> |
| 21 | <module>basyx.components.docker</module> |
| 22 | </modules> |
| 23 | |
| 24 | <build> |
| 25 | <!-- Specifies plugin settings that are common for all submodules --> |
| 26 | <pluginManagement> |
| 27 | <plugins> |
| 28 | <!-- Compile Java sources using Java 8 --> |
| 29 | <plugin> |
| 30 | <groupId>org.apache.maven.plugins</groupId> |
| 31 | <artifactId>maven-compiler-plugin</artifactId> |
| 32 | <version>3.8.1</version> |
| 33 | <configuration> |
| 34 | <source>1.8</source> |
| 35 | <target>1.8</target> |
| 36 | </configuration> |
| 37 | </plugin> |
| 38 | |
| 39 | <!-- Attach sources to jar file --> |
| 40 | <plugin> |
| 41 | <groupId>org.apache.maven.plugins</groupId> |
| 42 | <artifactId>maven-source-plugin</artifactId> |
| 43 | <version>3.2.1</version> |
| 44 | <executions> |
| 45 | <execution> |
| 46 | <id>attach-sources</id> |
| 47 | <goals> |
| 48 | <goal>jar-no-fork</goal> |
| 49 | </goals> |
| 50 | </execution> |
| 51 | </executions> |
| 52 | </plugin> |
| 53 | |
| 54 | <!-- Generate separate jar for tests and exclude logback.xml from generated jars --> |
| 55 | <plugin> |
| 56 | <groupId>org.apache.maven.plugins</groupId> |
| 57 | <artifactId>maven-jar-plugin</artifactId> |
| 58 | <version>3.1.1</version> |
| 59 | <configuration> |
| 60 | <excludes> |
| 61 | <exclude>**/logback.xml</exclude> |
| 62 | </excludes> |
| 63 | </configuration> |
| 64 | <executions> |
| 65 | <execution> |
| 66 | <goals> |
| 67 | <goal>test-jar</goal> |
| 68 | </goals> |
| 69 | </execution> |
| 70 | </executions> |
| 71 | </plugin> |
| 72 | |
| 73 | <!-- Run unit tests (Test*.java, *Test.java, *Tests.java and *TestCase.java excluding HTTP and TCP tests) --> |
| 74 | <plugin> |
| 75 | <groupId>org.apache.maven.plugins</groupId> |
| 76 | <artifactId>maven-surefire-plugin</artifactId> |
| 77 | <version>3.0.0-M3</version> |
| 78 | <configuration> |
| 79 | <excludes> |
| 80 | <exclude>**/*HTTP*</exclude> |
| 81 | <exclude>**/*TCP*</exclude> |
| 82 | </excludes> |
| 83 | </configuration> |
| 84 | </plugin> |
| 85 | |
| 86 | <!-- Run integration tests (IT*.java, *IT.java and *ITCase.java) --> |
| 87 | <plugin> |
| 88 | <groupId>org.apache.maven.plugins</groupId> |
| 89 | <artifactId>maven-failsafe-plugin</artifactId> |
| 90 | <version>3.0.0-M3</version> |
| 91 | <executions> |
| 92 | <execution> |
| 93 | <goals> |
| 94 | <goal>integration-test</goal> |
| 95 | <goal>verify</goal> |
| 96 | </goals> |
| 97 | </execution> |
| 98 | </executions> |
| 99 | </plugin> |
| 100 | </plugins> |
| 101 | </pluginManagement> |
| 102 | </build> |
| 103 | |
| 104 | <!-- Every submodule depends on these dependencies --> |
| 105 | <dependencies> |
| 106 | <!-- JUnit 4 for running JUnit tests --> |
Daniel Espen | e9fd695 | 2019-10-11 11:01:16 +0200 | [diff] [blame] | 107 | <dependency> |
Daniel Espen | be80b3c | 2020-02-10 08:43:47 +0100 | [diff] [blame] | 108 | <groupId>junit</groupId> |
| 109 | <artifactId>junit</artifactId> |
| 110 | <version>4.12</version> |
Daniel Espen | 44a8500 | 2019-10-16 16:28:11 +0200 | [diff] [blame] | 111 | <scope>test</scope> |
| 112 | </dependency> |
Daniel Espen | e9fd695 | 2019-10-11 11:01:16 +0200 | [diff] [blame] | 113 | </dependencies> |
Daniel Espen | be80b3c | 2020-02-10 08:43:47 +0100 | [diff] [blame] | 114 | |
| 115 | <!-- Specifies dependency settings for all submodules using these dependencies --> |
| 116 | <dependencyManagement> |
| 117 | <dependencies> |
| 118 | <!-- BaSyx SDK --> |
| 119 | <dependency> |
| 120 | <groupId>org.eclipse.basyx</groupId> |
| 121 | <artifactId>basyx.sdk</artifactId> |
| 122 | <version>0.0.1-SNAPSHOT</version> |
| 123 | </dependency> |
| 124 | |
| 125 | <!-- BaSyx SDK tests --> |
| 126 | <dependency> |
| 127 | <groupId>org.eclipse.basyx</groupId> |
| 128 | <artifactId>basyx.sdk</artifactId> |
| 129 | <version>0.0.1-SNAPSHOT</version> |
| 130 | <classifier>tests</classifier> |
| 131 | <scope>test</scope> |
| 132 | </dependency> |
| 133 | </dependencies> |
| 134 | </dependencyManagement> |
Patrick Pschorn | 3aa3485 | 2019-01-28 15:45:22 +0100 | [diff] [blame] | 135 | </project> |