forked from sharpie7/circuitjs1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
173 lines (168 loc) · 5.61 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
<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>
<groupId>com.lushprojects.circuitjs1</groupId>
<artifactId>circuitjs</artifactId>
<version>2.1.15</version>
<packaging>gwt-app</packaging>
<distributionManagement>
<site>
<id>circuitjs</id>
<url>scm:git:https://git@github.com/ggeorgovassilis/circuitjs1.git</url>
</site>
</distributionManagement>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt</artifactId>
<version>2.8.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<dependency.locations.enabled>false</dependency.locations.enabled><!--
generating dependency report is slow; disable it -->
</properties>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <!-- artifact with sources is easier to handle during development -->
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <!-- declaring only in order to skip during site deployment -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.7</version>
<executions>
<execution>
<id>deploy</id>
<phase>deploy</phase>
<configuration>
<skip>true</skip>
</configuration>
</execution>
</executions>
<configuration>
<skip>true</skip>
<siteDirectory>site</siteDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.9</version>
<configuration><!-- we don't need those reports; disabling speeds up
build -->
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
</configuration>
</plugin>
<plugin> <!-- gwt compiler -->
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0-rc-9</version>
<extensions>true</extensions>
<configuration>
<moduleName>com.lushprojects.circuitjs1.circuitjs1</moduleName>
<localWorkers>0.5C</localWorkers><!-- this is the best setting for a
laptop with 2 cores and HT -->
<warName>circuitjs</warName>
<optimize>9</optimize>
<compilerArgs>
<compilerArg>-style</compilerArg>
<compilerArg>PRETTY</compilerArg>
</compilerArgs>
<codeServerPort>8888</codeServerPort>
</configuration>
</plugin>
<plugin> <!-- copy a few things around before packaging the website -->
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>install</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/site</outputDirectory>
<resources>
<resource>
<directory>war</directory>
</resource>
<resource>
<directory>${project.build.directory}/${project.name}-${project.version}/circuitjs1</directory>
<targetPath>circuitjs1</targetPath>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin> <!-- publish html and javascript to github page -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>publish</id>
<phase>site-deploy</phase>
<goals>
<goal>publish-scm</goal>
</goals>
</execution>
</executions>
<configuration>
<scmBranch>gh-pages</scmBranch>
<serverId>github</serverId>
<content>${project.build.directory}/site</content>
<siteOutputEncoding>UTF-8</siteOutputEncoding>
<extraNormalizeExtensions>html,ms</extraNormalizeExtensions>
</configuration>
</plugin>
<!-- github site plugin is too slow, using site publish instead -->
<!-- <plugin> <groupId>com.github.github</groupId> <artifactId>site-maven-plugin</artifactId>
<version>0.12</version> <executions> <execution> <goals> <goal>site</goal>
</goals> <phase>site-deploy</phase> <configuration> <server>github</server>
<message>Building site for my project</message> <path>${site.path}</path>
<merge>true</merge> <branch>refs/heads/gh-pages</branch> <repositoryName>circuitjs1</repositoryName>
<repositoryOwner>ggeorgovassilis</repositoryOwner> </configuration> </execution>
</executions> </plugin> -->
</plugins>
</build>
</project>