forked from tobert/websocket-terminal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom.xml
178 lines (175 loc) · 7.7 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012-2016 Codenvy, S.A.
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:
Codenvy, S.A. - initial API and implementation
-->
<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>
<artifactId>maven-depmgt-pom</artifactId>
<groupId>org.eclipse.che.depmgt</groupId>
<version>4.0.0-RC4-SNAPSHOT</version>
</parent>
<groupId>org.eclipse.che.terminal</groupId>
<artifactId>che-websocket-terminal</artifactId>
<version>4.0.0-RC4-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Che Terminal</name>
<scm>
<connection>scm:git:[email protected]:codenvy/websocket-terminal.git</connection>
<developerConnection>scm:git:[email protected]:codenvy/websocket-terminal.git</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/codenvy/websocket-terminal</url>
</scm>
<properties>
<project.go.build.dir>${project.build.directory}/go</project.go.build.dir>
<project.zip.dir>${project.build.directory}/dir/terminal</project.zip.dir>
</properties>
<repositories>
<repository>
<id>codenvy-public-repo</id>
<name>codenvy public</name>
<url>https://maven.codenvycorp.com/content/groups/public/</url>
</repository>
<repository>
<id>codenvy-public-snapshots-repo</id>
<name>codenvy public snapshots</name>
<url>https://maven.codenvycorp.com/content/repositories/codenvy-public-snapshots/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>codenvy-public-repo</id>
<name>codenvy public</name>
<url>https://maven.codenvycorp.com/content/groups/public/</url>
</pluginRepository>
<pluginRepository>
<id>codenvy-public-snapshots-repo</id>
<name>codenvy public snapshots</name>
<url>https://maven.codenvycorp.com/content/repositories/codenvy-public-snapshots/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<updateOnly>false</updateOnly>
<descriptor>${project.basedir}/src/assembly/assembly.xml</descriptor>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy file="src/main/resources/index.html" todir="${project.zip.dir}" />
<copy file="src/main/resources/term.js" todir="${project.zip.dir}" />
<copy file="src/main/go/server.go" todir="${project.go.build.dir}" />
</target>
</configuration>
</execution>
<execution>
<id>copy-terminal-bin</id>
<phase>process-classes</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy file="${project.go.build.dir}/terminal" todir="${project.zip.dir}" />
<chmod file="${project.zip.dir}/terminal" perm="+x" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>compile-websocket</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>go</executable>
<workingDirectory>${project.go.build.dir}</workingDirectory>
<arguments>
<argument>get</argument>
<argument>github.com/codenvy/websocket</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>compile-pty</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>go</executable>
<workingDirectory>${project.go.build.dir}</workingDirectory>
<arguments>
<argument>get</argument>
<argument>github.com/codenvy/pty</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>compile-server</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>go</executable>
<workingDirectory>${project.go.build.dir}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-o</argument>
<argument>terminal</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>src/main/go/server.go</exclude>
<exclude>src/main/resources/index.html</exclude>
<exclude>src/main/resources/term.js</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>