pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
  2. license agreements. See the NOTICE file distributed with this work for additional
  3. information regarding copyright ownership. The ASF licenses this file to
  4. You under the Apache License, Version 2.0 (the "License"); you may not use
  5. this file except in compliance with the License. You may obtain a copy of
  6. the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
  7. by applicable law or agreed to in writing, software distributed under the
  8. License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
  9. OF ANY KIND, either express or implied. See the License for the specific
  10. language governing permissions and limitations under the License. -->
  11. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  12. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  13. <modelVersion>4.0.0</modelVersion>
  14. <groupId>org.apache.ambari.contrib.views</groupId>
  15. <artifactId>slider</artifactId>
  16. <version>2.5.0.0.0</version>
  17. <name>Slider</name>
  18. <parent>
  19. <groupId>org.apache.ambari.contrib.views</groupId>
  20. <artifactId>ambari-contrib-views</artifactId>
  21. <version>2.5.0.0.0</version>
  22. </parent>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.apache.slider</groupId>
  26. <artifactId>slider-core</artifactId>
  27. <version>${slider.version}</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.apache.slider</groupId>
  31. <artifactId>slider-agent</artifactId>
  32. <version>${slider.version}</version>
  33. <type>tar.gz</type>
  34. </dependency>
  35. <dependency>
  36. <groupId>junit</groupId>
  37. <artifactId>junit</artifactId>
  38. <scope>test</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.easymock</groupId>
  42. <artifactId>easymock</artifactId>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>commons-configuration</groupId>
  47. <artifactId>commons-configuration</artifactId>
  48. <version>${commons-configuration.version}</version>
  49. <exclusions>
  50. <exclusion>
  51. <groupId>commons-logging</groupId>
  52. <artifactId>commons-logging</artifactId>
  53. </exclusion>
  54. <exclusion>
  55. <groupId>commons-lang</groupId>
  56. <artifactId>commons-lang</artifactId>
  57. </exclusion>
  58. <exclusion>
  59. <groupId>commons-logging</groupId>
  60. <artifactId>commons-logging</artifactId>
  61. </exclusion>
  62. </exclusions>
  63. </dependency>
  64. <dependency>
  65. <groupId>commons-lang</groupId>
  66. <artifactId>commons-lang</artifactId>
  67. <version>${commons-lang.version}</version>
  68. <exclusions>
  69. </exclusions>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.httpcomponents</groupId>
  73. <artifactId>httpclient</artifactId>
  74. <version>${httpclient.version}</version>
  75. <exclusions>
  76. </exclusions>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.ambari</groupId>
  80. <artifactId>ambari-views</artifactId>
  81. <scope>provided</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.commons</groupId>
  85. <artifactId>commons-compress</artifactId>
  86. <version>${commons-compress.version}</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.google.inject</groupId>
  90. <artifactId>guice</artifactId>
  91. <version>${guice.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.googlecode.json-simple</groupId>
  95. <artifactId>json-simple</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.sun.jersey</groupId>
  99. <artifactId>jersey-core</artifactId>
  100. <version>${jersey.version}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.sun.jersey</groupId>
  104. <artifactId>jersey-client</artifactId>
  105. <version>${jersey.version}</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.sun.jersey.contribs</groupId>
  109. <artifactId>jersey-guice</artifactId>
  110. <version>${jersey.version}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.sun.jersey</groupId>
  114. <artifactId>jersey-json</artifactId>
  115. <version>${jersey.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.sun.jersey</groupId>
  119. <artifactId>jersey-server</artifactId>
  120. <version>${jersey.version}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>commons-io</groupId>
  124. <artifactId>commons-io</artifactId>
  125. <version>${commons-io.version}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.apache.ambari.contrib.views</groupId>
  129. <artifactId>ambari-views-utils</artifactId>
  130. <version>2.5.0.0.0</version>
  131. </dependency>
  132. </dependencies>
  133. <properties>
  134. <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir>
  135. <nodejs.directory>${basedir}/target/nodejs</nodejs.directory>
  136. <npm.version>1.4.3</npm.version>
  137. <ui.directory>${basedir}/src/main/resources/ui</ui.directory>
  138. <commons-configuration.version>1.6</commons-configuration.version>
  139. <commons-lang.version>2.6</commons-lang.version>
  140. <commons-compress.version>1.9</commons-compress.version>
  141. <httpclient.version>4.5.2</httpclient.version>
  142. <slider.version>0.81.0-incubating-SNAPSHOT</slider.version>
  143. <guice.version>3.0</guice.version>
  144. <jackson.version>1.9.13</jackson.version>
  145. <jersey.version>1.9</jersey.version>
  146. <commons-io.version>2.4</commons-io.version>
  147. </properties>
  148. <build>
  149. <plugins>
  150. <plugin>
  151. <groupId>org.codehaus.mojo</groupId>
  152. <artifactId>exec-maven-plugin</artifactId>
  153. <version>1.2.1</version>
  154. <executions>
  155. <execution>
  156. <id>clean-rmdir</id>
  157. <phase>clean</phase>
  158. <goals>
  159. <goal>exec</goal>
  160. </goals>
  161. <configuration>
  162. <executable>${executable.rmdir}</executable>
  163. <workingDirectory>${ui.directory}</workingDirectory>
  164. <commandlineArgs>${args.rm.clean} public node_modules</commandlineArgs>
  165. <successCodes>
  166. <successCode>0</successCode>
  167. <successCode>1</successCode>
  168. <successCode>2</successCode>
  169. </successCodes>
  170. </configuration>
  171. </execution>
  172. <execution>
  173. <id>clean-mkdir</id>
  174. <phase>clean</phase>
  175. <goals>
  176. <goal>exec</goal>
  177. </goals>
  178. <configuration>
  179. <executable>${executable.mkdir}</executable>
  180. <workingDirectory>${ui.directory}</workingDirectory>
  181. <commandlineArgs>${args.mkdir} public</commandlineArgs>
  182. </configuration>
  183. </execution>
  184. <execution>
  185. <id>slider-ui-compile-npm</id>
  186. <phase>generate-resources</phase>
  187. <goals>
  188. <goal>exec</goal>
  189. </goals>
  190. <configuration>
  191. <executable>${executable.npm}</executable>
  192. <workingDirectory>${ui.directory}</workingDirectory>
  193. <commandlineArgs>${args.npm} install</commandlineArgs>
  194. </configuration>
  195. </execution>
  196. <execution>
  197. <id>slider-ui-compile-brunch</id>
  198. <phase>generate-resources</phase>
  199. <goals>
  200. <goal>exec</goal>
  201. </goals>
  202. <configuration>
  203. <executable>${executable.brunch}</executable>
  204. <workingDirectory>${ui.directory}</workingDirectory>
  205. <commandlineArgs>${args.brunch} build</commandlineArgs>
  206. </configuration>
  207. </execution>
  208. <execution>
  209. <id>slider-ui-test</id>
  210. <phase>test</phase>
  211. <goals>
  212. <goal>exec</goal>
  213. </goals>
  214. <configuration>
  215. <skip>${skipTests}</skip>
  216. <executable>${executable.npm}</executable>
  217. <workingDirectory>${ui.directory}</workingDirectory>
  218. <commandlineArgs>${args.npm} test</commandlineArgs>
  219. <environmentVariables>
  220. <PYTHON>${executable.python}</PYTHON>
  221. </environmentVariables>
  222. </configuration>
  223. </execution>
  224. <execution>
  225. <id>gzip ambari-web content</id>
  226. <phase>prepare-package</phase>
  227. <goals>
  228. <goal>exec</goal>
  229. </goals>
  230. <configuration>
  231. <executable>${executable.gzip}</executable>
  232. <workingDirectory>${ui.directory}</workingDirectory>
  233. <arguments>
  234. <argument>-f</argument>
  235. <argument>public/javascripts/app.js</argument>
  236. <argument>public/javascripts/vendor.js</argument>
  237. <argument>public/stylesheets/app.css</argument>
  238. </arguments>
  239. </configuration>
  240. </execution>
  241. </executions>
  242. </plugin>
  243. <!--
  244. <plugin>
  245. <groupId>org.apache.maven.plugins</groupId>
  246. <artifactId>maven-antrun-plugin</artifactId>
  247. <version>1.7</version>
  248. <executions>
  249. <execution>
  250. <id>prepare-package</id>
  251. <phase>prepare-package</phase>
  252. <goals>
  253. <goal>run</goal>
  254. </goals>
  255. <configuration>
  256. <target name="slider-ui-prepare-package">
  257. <copy toDir="${project.build.directory}/ambari-server-${project.version}-dist/ambari-server-${project.version}/web/">
  258. <fileset dir="${ui.directory}/../ambari-web/public"/> </copy>
  259. </target>
  260. </configuration>
  261. </execution>
  262. </executions>
  263. </plugin>
  264. -->
  265. <plugin>
  266. <groupId>org.apache.maven.plugins</groupId>
  267. <artifactId>maven-compiler-plugin</artifactId>
  268. <version>3.1</version>
  269. <configuration>
  270. <source>1.6</source>
  271. <target>1.6</target>
  272. </configuration>
  273. </plugin>
  274. <plugin>
  275. <artifactId>maven-dependency-plugin</artifactId>
  276. <executions>
  277. <execution>
  278. <id>copy-dependencies</id>
  279. <phase>generate-resources</phase>
  280. <goals>
  281. <goal>copy-dependencies</goal>
  282. </goals>
  283. <configuration>
  284. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  285. <includeScope>runtime</includeScope>
  286. <excludeArtifactIds>slider-agent</excludeArtifactIds>
  287. </configuration>
  288. </execution>
  289. <execution>
  290. <id>copy-slider-agent-with-rename</id>
  291. <phase>generate-resources</phase>
  292. <goals>
  293. <goal>copy-dependencies</goal>
  294. </goals>
  295. <configuration>
  296. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  297. <includeScope>runtime</includeScope>
  298. <stripVersion>true</stripVersion>
  299. <includeArtifactIds>slider-agent</includeArtifactIds>
  300. </configuration>
  301. </execution>
  302. <execution>
  303. <id>copy-artifact</id>
  304. <phase>package</phase>
  305. <goals>
  306. <goal>copy</goal>
  307. </goals>
  308. <configuration>
  309. <artifactItems>
  310. <artifactItem>
  311. <groupId>${project.groupId}</groupId>
  312. <artifactId>${project.artifactId}</artifactId>
  313. <version>${project.version}</version>
  314. <type>${project.packaging}</type>
  315. </artifactItem>
  316. </artifactItems>
  317. <outputDirectory>${views.jars.dir.rel}</outputDirectory>
  318. </configuration>
  319. </execution>
  320. </executions>
  321. </plugin>
  322. <plugin>
  323. <groupId>org.vafer</groupId>
  324. <artifactId>jdeb</artifactId>
  325. <version>1.0.1</version>
  326. <executions>
  327. <execution>
  328. <phase>none</phase>
  329. <goals>
  330. <goal>jdeb</goal>
  331. </goals>
  332. </execution>
  333. </executions>
  334. <configuration>
  335. <skip>true</skip>
  336. <submodules>false</submodules>
  337. </configuration>
  338. </plugin>
  339. </plugins>
  340. <resources>
  341. <resource>
  342. <directory>src/main/resources</directory>
  343. <filtering>true</filtering>
  344. <includes>
  345. <include>slider.properties</include>
  346. </includes>
  347. </resource>
  348. <resource>
  349. <directory>src/main/resources/</directory>
  350. <filtering>false</filtering>
  351. <includes>
  352. <include>view.xml</include>
  353. <include>view.log4j.properties</include>
  354. </includes>
  355. </resource>
  356. <resource>
  357. <directory>src/main/resources/ui/public</directory>
  358. <filtering>false</filtering>
  359. </resource>
  360. <resource>
  361. <targetPath>WEB-INF/lib</targetPath>
  362. <filtering>false</filtering>
  363. <directory>target/lib</directory>
  364. </resource>
  365. </resources>
  366. <pluginManagement>
  367. <plugins>
  368. <!--This plugin's configuration is used to store Eclipse m2e settings
  369. only. It has no influence on the Maven build itself. -->
  370. <plugin>
  371. <groupId>org.eclipse.m2e</groupId>
  372. <artifactId>lifecycle-mapping</artifactId>
  373. <version>1.0.0</version>
  374. <configuration>
  375. <lifecycleMappingMetadata>
  376. <pluginExecutions>
  377. <pluginExecution>
  378. <pluginExecutionFilter>
  379. <groupId>
  380. org.codehaus.mojo
  381. </groupId>
  382. <artifactId>
  383. exec-maven-plugin
  384. </artifactId>
  385. <versionRange>
  386. [1.2.1,)
  387. </versionRange>
  388. <goals>
  389. <goal>exec</goal>
  390. </goals>
  391. </pluginExecutionFilter>
  392. <action>
  393. <ignore></ignore>
  394. </action>
  395. </pluginExecution>
  396. </pluginExecutions>
  397. </lifecycleMappingMetadata>
  398. </configuration>
  399. </plugin>
  400. </plugins>
  401. </pluginManagement>
  402. </build>
  403. <profiles>
  404. <profile>
  405. <id>windows</id>
  406. <activation>
  407. <os>
  408. <family>win</family>
  409. </os>
  410. </activation>
  411. <properties>
  412. <envClassifier>win</envClassifier>
  413. <dirsep>\</dirsep>
  414. <executable.python>python</executable.python>
  415. <executable.brunch>cmd</executable.brunch>
  416. <args.brunch>/C brunch</args.brunch>
  417. <executable.gzip>${project.basedir}\gzip-content.cmd</executable.gzip>
  418. <executable.mkdir>cmd</executable.mkdir>
  419. <args.mkdir>/C mkdir</args.mkdir>
  420. <executable.npm>cmd</executable.npm>
  421. <args.npm>/C npm</args.npm>
  422. <executable.rmdir>cmd</executable.rmdir>
  423. <args.rm.clean>/C rmdir /S /Q</args.rm.clean>
  424. <executable.shell>cmd</executable.shell>
  425. <fileextension.shell>cmd</fileextension.shell>
  426. </properties>
  427. </profile>
  428. <profile>
  429. <id>linux</id>
  430. <activation>
  431. <os>
  432. <family>unix</family>
  433. </os>
  434. </activation>
  435. <properties>
  436. <envClassifier>linux</envClassifier>
  437. <dirsep>/</dirsep>
  438. <executable.python>${project.basedir}/../ambari-common/src/main/unix/ambari-python-wrap</executable.python>
  439. <executable.brunch>brunch</executable.brunch>
  440. <args.brunch></args.brunch>
  441. <executable.gzip>gzip</executable.gzip>
  442. <executable.mkdir>mkdir</executable.mkdir>
  443. <args.mkdir></args.mkdir>
  444. <executable.npm>npm</executable.npm>
  445. <args.npm></args.npm>
  446. <executable.rmdir>rm</executable.rmdir>
  447. <args.rm.clean>-rf</args.rm.clean>
  448. <executable.shell>sh</executable.shell>
  449. <fileextension.shell>sh</fileextension.shell>
  450. </properties>
  451. </profile>
  452. </profiles>
  453. </project>