pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  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.0.0-SNAPSHOT</version>
  17. <name>Slider</name>
  18. <parent>
  19. <groupId>org.apache.ambari.contrib.views</groupId>
  20. <artifactId>ambari-contrib-views</artifactId>
  21. <version>2.0.0-SNAPSHOT</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. </dependencies>
  123. <properties>
  124. <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir>
  125. <nodejs.directory>${basedir}/target/nodejs</nodejs.directory>
  126. <npm.version>1.4.3</npm.version>
  127. <ui.directory>${basedir}/src/main/resources/ui</ui.directory>
  128. <commons-configuration.version>1.6</commons-configuration.version>
  129. <commons-lang.version>2.6</commons-lang.version>
  130. <commons-compress.version>1.9</commons-compress.version>
  131. <httpclient.version>4.2.5</httpclient.version>
  132. <slider.version>0.61.0-SNAPSHOT</slider.version>
  133. <guice.version>3.0</guice.version>
  134. <jackson.version>1.9.13</jackson.version>
  135. <jersey.version>1.9</jersey.version>
  136. </properties>
  137. <build>
  138. <plugins>
  139. <plugin>
  140. <groupId>org.codehaus.mojo</groupId>
  141. <artifactId>exec-maven-plugin</artifactId>
  142. <version>1.2.1</version>
  143. <executions>
  144. <execution>
  145. <id>clean-rmdir</id>
  146. <phase>clean</phase>
  147. <goals>
  148. <goal>exec</goal>
  149. </goals>
  150. <configuration>
  151. <executable>${executable.rmdir}</executable>
  152. <workingDirectory>${basedir}</workingDirectory>
  153. <commandlineArgs>${args.rm.clean} public node_modules</commandlineArgs>
  154. <successCodes>
  155. <successCode>0</successCode>
  156. <successCode>1</successCode>
  157. <successCode>2</successCode>
  158. </successCodes>
  159. </configuration>
  160. </execution>
  161. <execution>
  162. <id>clean-mkdir</id>
  163. <phase>clean</phase>
  164. <goals>
  165. <goal>exec</goal>
  166. </goals>
  167. <configuration>
  168. <executable>${executable.mkdir}</executable>
  169. <workingDirectory>${basedir}</workingDirectory>
  170. <commandlineArgs>${args.mkdir} public</commandlineArgs>
  171. </configuration>
  172. </execution>
  173. <execution>
  174. <id>slider-ui-compile-npm</id>
  175. <phase>generate-resources</phase>
  176. <goals>
  177. <goal>exec</goal>
  178. </goals>
  179. <configuration>
  180. <executable>${executable.npm}</executable>
  181. <workingDirectory>${basedir}</workingDirectory>
  182. <commandlineArgs>${args.npm} install</commandlineArgs>
  183. </configuration>
  184. </execution>
  185. <execution>
  186. <id>slider-ui-compile-brunch</id>
  187. <phase>compile</phase>
  188. <goals>
  189. <goal>exec</goal>
  190. </goals>
  191. <configuration>
  192. <executable>${executable.brunch}</executable>
  193. <workingDirectory>${basedir}</workingDirectory>
  194. <commandlineArgs>${args.brunch} build</commandlineArgs>
  195. </configuration>
  196. </execution>
  197. <execution>
  198. <id>slider-ui-test</id>
  199. <phase>test</phase>
  200. <goals>
  201. <goal>exec</goal>
  202. </goals>
  203. <configuration>
  204. <skip>${skipTests}</skip>
  205. <executable>${executable.npm}</executable>
  206. <workingDirectory>${ui.directory}</workingDirectory>
  207. <commandlineArgs>${args.npm} test</commandlineArgs>
  208. <environmentVariables>
  209. <PYTHON>${executable.python}</PYTHON>
  210. </environmentVariables>
  211. </configuration>
  212. </execution>
  213. <execution>
  214. <id>gzip ambari-web content</id>
  215. <phase>prepare-package</phase>
  216. <goals>
  217. <goal>exec</goal>
  218. </goals>
  219. <configuration>
  220. <executable>${executable.gzip}</executable>
  221. <workingDirectory>${basedir}</workingDirectory>
  222. <arguments>
  223. <argument>-f</argument>
  224. <argument>public/javascripts/app.js</argument>
  225. <argument>public/javascripts/vendor.js</argument>
  226. <argument>public/stylesheets/app.css</argument>
  227. </arguments>
  228. </configuration>
  229. </execution>
  230. </executions>
  231. </plugin>
  232. <!--
  233. <plugin>
  234. <groupId>org.apache.maven.plugins</groupId>
  235. <artifactId>maven-antrun-plugin</artifactId>
  236. <version>1.7</version>
  237. <executions>
  238. <execution>
  239. <id>prepare-package</id>
  240. <phase>prepare-package</phase>
  241. <goals>
  242. <goal>run</goal>
  243. </goals>
  244. <configuration>
  245. <target name="slider-ui-prepare-package">
  246. <copy toDir="${project.build.directory}/ambari-server-${project.version}-dist/ambari-server-${project.version}/web/">
  247. <fileset dir="${ui.directory}/../ambari-web/public"/> </copy>
  248. </target>
  249. </configuration>
  250. </execution>
  251. </executions>
  252. </plugin>
  253. -->
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-compiler-plugin</artifactId>
  257. <version>3.1</version>
  258. <configuration>
  259. <source>1.6</source>
  260. <target>1.6</target>
  261. </configuration>
  262. </plugin>
  263. <plugin>
  264. <artifactId>maven-dependency-plugin</artifactId>
  265. <executions>
  266. <execution>
  267. <id>copy-dependencies</id>
  268. <phase>generate-resources</phase>
  269. <goals>
  270. <goal>copy-dependencies</goal>
  271. </goals>
  272. <configuration>
  273. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  274. <includeScope>runtime</includeScope>
  275. <excludeArtifactIds>slider-agent</excludeArtifactIds>
  276. </configuration>
  277. </execution>
  278. <execution>
  279. <id>copy-slider-agent-with-rename</id>
  280. <phase>generate-resources</phase>
  281. <goals>
  282. <goal>copy-dependencies</goal>
  283. </goals>
  284. <configuration>
  285. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  286. <includeScope>runtime</includeScope>
  287. <stripVersion>true</stripVersion>
  288. <includeArtifactIds>slider-agent</includeArtifactIds>
  289. </configuration>
  290. </execution>
  291. </executions>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.vafer</groupId>
  295. <artifactId>jdeb</artifactId>
  296. <version>1.0.1</version>
  297. <executions>
  298. <execution>
  299. <phase>none</phase>
  300. <goals>
  301. <goal>jdeb</goal>
  302. </goals>
  303. </execution>
  304. </executions>
  305. <configuration>
  306. <skip>true</skip>
  307. <submodules>false</submodules>
  308. </configuration>
  309. </plugin>
  310. </plugins>
  311. <resources>
  312. <resource>
  313. <directory>src/main/resources</directory>
  314. <filtering>true</filtering>
  315. <includes>
  316. <include>slider.properties</include>
  317. </includes>
  318. </resource>
  319. <resource>
  320. <directory>src/main/resources/</directory>
  321. <filtering>false</filtering>
  322. <includes>
  323. <include>view.xml</include>
  324. </includes>
  325. </resource>
  326. <resource>
  327. <directory>src/main/resources/ui/public</directory>
  328. <filtering>false</filtering>
  329. </resource>
  330. <resource>
  331. <targetPath>WEB-INF/lib</targetPath>
  332. <filtering>false</filtering>
  333. <directory>target/lib</directory>
  334. </resource>
  335. </resources>
  336. <pluginManagement>
  337. <plugins>
  338. <!--This plugin's configuration is used to store Eclipse m2e settings
  339. only. It has no influence on the Maven build itself. -->
  340. <plugin>
  341. <groupId>org.eclipse.m2e</groupId>
  342. <artifactId>lifecycle-mapping</artifactId>
  343. <version>1.0.0</version>
  344. <configuration>
  345. <lifecycleMappingMetadata>
  346. <pluginExecutions>
  347. <pluginExecution>
  348. <pluginExecutionFilter>
  349. <groupId>
  350. org.codehaus.mojo
  351. </groupId>
  352. <artifactId>
  353. exec-maven-plugin
  354. </artifactId>
  355. <versionRange>
  356. [1.2.1,)
  357. </versionRange>
  358. <goals>
  359. <goal>exec</goal>
  360. </goals>
  361. </pluginExecutionFilter>
  362. <action>
  363. <ignore></ignore>
  364. </action>
  365. </pluginExecution>
  366. </pluginExecutions>
  367. </lifecycleMappingMetadata>
  368. </configuration>
  369. </plugin>
  370. </plugins>
  371. </pluginManagement>
  372. </build>
  373. <profiles>
  374. <profile>
  375. <id>windows</id>
  376. <activation>
  377. <os>
  378. <family>win</family>
  379. </os>
  380. </activation>
  381. <properties>
  382. <envClassifier>win</envClassifier>
  383. <dirsep>\</dirsep>
  384. <executable.python>${project.basedir}/../ambari-common/src/main/unix/ambari-python-wrap</executable.python>
  385. <executable.brunch>cmd</executable.brunch>
  386. <args.brunch>/C brunch</args.brunch>
  387. <executable.gzip>gzip</executable.gzip>
  388. <executable.mkdir>cmd</executable.mkdir>
  389. <args.mkdir.clean>/C mkdir public</args.mkdir.clean>
  390. <executable.npm>cmd</executable.npm>
  391. <args.npm>/C npm</args.npm>
  392. <executable.rmdir>cmd</executable.rmdir>
  393. <args.rm.clean>/C rmdir /S /Q</args.rm.clean>
  394. <executable.shell>cmd</executable.shell>
  395. <fileextension.shell>cmd</fileextension.shell>
  396. </properties>
  397. </profile>
  398. <profile>
  399. <id>linux</id>
  400. <activation>
  401. <os>
  402. <family>unix</family>
  403. </os>
  404. </activation>
  405. <properties>
  406. <envClassifier>linux</envClassifier>
  407. <dirsep>/</dirsep>
  408. <executable.python>python</executable.python>
  409. <executable.brunch>brunch</executable.brunch>
  410. <args.brunch></args.brunch>
  411. <executable.gzip>gzip</executable.gzip>
  412. <executable.mkdir>mkdir</executable.mkdir>
  413. <args.mkdir.clean>public</args.mkdir.clean>
  414. <executable.npm>npm</executable.npm>
  415. <args.npm></args.npm>
  416. <executable.rmdir>rm</executable.rmdir>
  417. <args.rm.clean>-rf</args.rm.clean>
  418. <executable.shell>sh</executable.shell>
  419. <fileextension.shell>sh</fileextension.shell>
  420. </properties>
  421. </profile>
  422. </profiles>
  423. </project>