|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + |
| 5 | + <groupId>com.irit</groupId> |
| 6 | + <artifactId>Java_Arduino_Adapter</artifactId> |
| 7 | + <version>1.0-SNAPSHOT</version> |
| 8 | + <packaging>jar</packaging> |
| 9 | + |
| 10 | + <name>Java_Arduino_Adapter</name> |
| 11 | + <url>http://maven.apache.org</url> |
| 12 | + |
| 13 | + <properties> |
| 14 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 15 | + </properties> |
| 16 | + |
| 17 | + <build> |
| 18 | + <sourceDirectory>src</sourceDirectory> |
| 19 | + <resources> |
| 20 | + <resource> |
| 21 | + <directory>src</directory> |
| 22 | + <excludes> |
| 23 | + <exclude>**/*.java</exclude> |
| 24 | + </excludes> |
| 25 | + </resource> |
| 26 | + </resources> |
| 27 | + <plugins> |
| 28 | + <plugin> |
| 29 | + <artifactId>maven-compiler-plugin</artifactId> |
| 30 | + <version>3.5.1</version> |
| 31 | + <configuration> |
| 32 | + <source>1.8</source> |
| 33 | + <target>1.8</target> |
| 34 | + </configuration> |
| 35 | + </plugin> |
| 36 | + <plugin> |
| 37 | + <groupId>org.apache.maven.plugins</groupId> |
| 38 | + <artifactId>maven-assembly-plugin</artifactId> |
| 39 | + <executions> |
| 40 | + <execution> |
| 41 | + <id>executable</id> |
| 42 | + <phase>package</phase> |
| 43 | + <goals> |
| 44 | + <goal>single</goal> |
| 45 | + </goals> |
| 46 | + <configuration> |
| 47 | + <descriptors> |
| 48 | + <descriptor>${basedir}/src/com/irit/assembly/jar.xml</descriptor> |
| 49 | + </descriptors> |
| 50 | + <archive> |
| 51 | + <manifest> |
| 52 | + <mainClass>com.irit.main.App</mainClass> |
| 53 | + </manifest> |
| 54 | + </archive> |
| 55 | + </configuration> |
| 56 | + </execution> |
| 57 | + </executions> |
| 58 | + </plugin> |
| 59 | + </plugins> |
| 60 | + </build> |
| 61 | + <repositories> |
| 62 | + <repository> |
| 63 | + <id>4thline.org-repo</id> |
| 64 | + <url>http://4thline.org/m2</url> |
| 65 | + <snapshots> |
| 66 | + <enabled>false</enabled> |
| 67 | + </snapshots> |
| 68 | + </repository> |
| 69 | + </repositories> |
| 70 | + <dependencies> |
| 71 | + <dependency> |
| 72 | + <groupId>org.fourthline.cling</groupId> |
| 73 | + <artifactId>cling-core</artifactId> |
| 74 | + <version>2.1.0</version> |
| 75 | + </dependency> |
| 76 | + |
| 77 | + <dependency> |
| 78 | + <groupId>junit</groupId> |
| 79 | + <artifactId>junit</artifactId> |
| 80 | + <version>4.12</version> |
| 81 | + </dependency> |
| 82 | + |
| 83 | + <dependency> |
| 84 | + <groupId>org.mockito</groupId> |
| 85 | + <artifactId>mockito-all</artifactId> |
| 86 | + <version>1.9.5</version> |
| 87 | + </dependency> |
| 88 | + |
| 89 | + </dependencies> |
| 90 | + |
| 91 | + |
| 92 | + <profiles> |
| 93 | + <profile> |
| 94 | + <id>windows</id> |
| 95 | + <activation> |
| 96 | + <activeByDefault>false</activeByDefault> |
| 97 | + </activation> |
| 98 | + <build> |
| 99 | + <plugins> |
| 100 | + <plugin> |
| 101 | + <artifactId>maven-assembly-plugin</artifactId> |
| 102 | + <executions> |
| 103 | + <execution> |
| 104 | + <id>zip</id> |
| 105 | + <phase>install</phase> |
| 106 | + <goals> |
| 107 | + <goal>single</goal> |
| 108 | + </goals> |
| 109 | + <configuration> |
| 110 | + <descriptors> |
| 111 | + <descriptor>${basedir}/src/com/irit/assembly/zip.xml</descriptor> |
| 112 | + </descriptors> |
| 113 | + </configuration> |
| 114 | + </execution> |
| 115 | + </executions> |
| 116 | + </plugin> |
| 117 | + </plugins> |
| 118 | + </build> |
| 119 | + </profile> |
| 120 | + <profile> |
| 121 | + <id>linux</id> |
| 122 | + <activation> |
| 123 | + <activeByDefault>false</activeByDefault> |
| 124 | + </activation> |
| 125 | + <build> |
| 126 | + <plugins> |
| 127 | + <plugin> |
| 128 | + <artifactId>maven-assembly-plugin</artifactId> |
| 129 | + <executions> |
| 130 | + <execution> |
| 131 | + <id>tar-gz</id> |
| 132 | + <phase>install</phase> |
| 133 | + <goals> |
| 134 | + <goal>single</goal> |
| 135 | + </goals> |
| 136 | + <configuration> |
| 137 | + <descriptors> |
| 138 | + <descriptor>${basedir}/src/com/irit/assembly/sh.xml</descriptor> |
| 139 | + </descriptors> |
| 140 | + </configuration> |
| 141 | + </execution> |
| 142 | + </executions> |
| 143 | + </plugin> |
| 144 | + </plugins> |
| 145 | + </build> |
| 146 | + </profile> |
| 147 | + </profiles> |
| 148 | +</project> |
0 commit comments