forked from geonetwork/core-geonetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
184 lines (176 loc) · 8.72 KB
/
Copy pathpom.xml
File metadata and controls
184 lines (176 loc) · 8.72 KB
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
179
180
181
182
183
184
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.geonetwork-opensource</groupId>
<artifactId>geonetwork</artifactId>
<version>3.1.0-SNAPSHOT</version>
</parent>
<groupId>org.geonetwork-opensource</groupId>
<artifactId>web-ui</artifactId>
<packaging>jar</packaging>
<name>GeoNetwork user interface module</name>
<description/>
<licenses>
<license>
<name>General Public License (GPL)</name>
<url>http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jslint-maven-plugin</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
<build>
<resources>
<!-- The resource that are filtered should only be the fewest possible because
It makes the build take longer and if a file that should not have replacements done is filtered
the resulting file in the webapp can be wrong.
So only include the specific files to be filtered to keep the build as performant as possible
and reduce potential for bugs
-->
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/web-ui-wro-sources.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>**/web-ui-wro-sources.xml</exclude>
</excludes>
</resource>
</resources>
</build>
<properties>
<geonetwork.build.dir>${project.build.directory}/${project.build.finalName}</geonetwork.build.dir>
<closure.compile.level/>
</properties>
<profiles>
<profile>
<id>jslint</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<!-- Fix JS style based on fixjsstyle.
See https://developers.google.com/closure/utilities/docs/linter_howto for installation -->
<execution>
<id>fixjsstyle</id>
<phase>validate</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>fixjsstyle</executable>
<arguments>
<argument>--strict</argument>
<argument>-r</argument>
<argument>src/main/resources/catalog/js</argument>
<argument>-r</argument>
<argument>src/main/resources/catalog/components</argument>
</arguments>
</configuration>
</execution>
<!-- Check JS style based on gjslint.
See https://developers.google.com/closure/utilities/docs/linter_howto for installation -->
<execution>
<id>gjslint</id>
<phase>validate</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>gjslint</executable>
<arguments>
<argument>--strict</argument>
<argument>--custom_jsdoc_tags</argument>
<argument>ngdoc,methodOf,deprecated,restrict,requires,kind,name,function,description,example</argument>
<argument>-r</argument>
<!-- Each source file in this directory will be checked. -->
<argument>src/main/resources/catalog/js</argument>
<argument>-r</argument>
<argument>src/main/resources/catalog/components</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>tests-and-static-analysis</id>
<activation>
<property><name>!skipTests</name></property>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.github.searls</groupId>
<artifactId>jasmine-maven-plugin</artifactId>
<version>1.3.1.3</version>
<executions>
<execution>
<id>jasmine-javascript-tests</id>
<phase>test</phase>
<!-- disable for now
<goals>
<goal>test</goal>
</goals> -->
</execution>
</executions>
<configuration>
<preloadSources></preloadSources>
<jsSrcDir>${project.basedir}/src/main/resources/catalog/js</jsSrcDir>
<jsTestSrcDir>${project.basedir}/src/test/jasmine</jsTestSrcDir>
<browserVersion>INTERNET_EXPLORER_9</browserVersion>
<debug>true</debug>
</configuration>
</plugin>
<!--<plugin>-->
<!--<groupId>org.codehaus.mojo</groupId>-->
<!--<artifactId>jslint-maven-plugin</artifactId>-->
<!--<executions>-->
<!--<execution>-->
<!--<goals>-->
<!--<goal>jslint</goal>-->
<!--</goals>-->
<!--<configuration>-->
<!--<excludes>-->
<!--<exclude>**/catalog/lib/**</exclude>-->
<!--<exclude>**/catalog/components/admin/dbtranslation/DbTranslationDirective.js</exclude>-->
<!--</excludes>-->
<!--<assumeABrowser>true</assumeABrowser>-->
<!--<failOnIssues>true</failOnIssues>-->
<!--<sourceJsFolder>${project.basedir}/src/main/resources</sourceJsFolder>-->
<!--<encoding>UTF-8</encoding>-->
<!--<allowOneVarStatementPerFunction>false</allowOneVarStatementPerFunction>-->
<!--<disallowBitwiseOperators>false</disallowBitwiseOperators>-->
<!--<disallowDanglingUnderbarInIdentifiers>false</disallowDanglingUnderbarInIdentifiers>-->
<!--<predefinedVars>goog,angular,loadLogo,$,loadLogoError</predefinedVars>-->
<!--<assumeConsoleAlertEtc>true</assumeConsoleAlertEtc>-->
<!--<disallowUndefinedVariables>false</disallowUndefinedVariables>-->
<!--<assumeABrowser>true</assumeABrowser>-->
<!--<disallowInsecureCharsInRegExp>true</disallowInsecureCharsInRegExp>-->
<!--</configuration>-->
<!--</execution>-->
<!--</executions>-->
<!--<configuration>-->
<!--</configuration>-->
<!--</plugin>-->
</plugins>
</build>
</profile>
</profiles>
</project>