pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.scytl.products.ov.sdm</groupId>
  6. <artifactId>ov-secure-data-manager</artifactId>
  7. <version>2.1.6</version>
  8. </parent>
  9. <groupId>com.scytl.products.ov.sdm.frontend</groupId>
  10. <artifactId>ov-sdm-frontend</artifactId>
  11. <name>Secure Data Manager Frontend</name>
  12. <packaging>pom</packaging>
  13. <profiles>
  14. <!-- DEFAULT ONLINE PROFILE-->
  15. <profile>
  16. <id>default</id>
  17. <activation>
  18. <activeByDefault>true</activeByDefault>
  19. </activation>
  20. <build>
  21. <plugins>
  22. <plugin>
  23. <artifactId>maven-assembly-plugin</artifactId>
  24. <configuration>
  25. <descriptor>assembly/package.xml</descriptor>
  26. <appendAssemblyId>false</appendAssemblyId>
  27. </configuration>
  28. <executions>
  29. <execution>
  30. <id>create-archive</id>
  31. <phase>package</phase>
  32. <goals>
  33. <goal>single</goal>
  34. </goals>
  35. </execution>
  36. </executions>
  37. </plugin>
  38. <plugin>
  39. <artifactId>maven-antrun-plugin</artifactId>
  40. <executions>
  41. <execution>
  42. <phase>generate-sources</phase>
  43. <configuration>
  44. <target name="building">
  45. <!-- WINDOWS EXEC -->
  46. <exec executable="cmd" dir="${project.basedir}" osfamily="windows" failonerror="true">
  47. <arg line="/c npm install --unsafe-perm --no-optional" />
  48. </exec>
  49. <exec executable="cmd" dir="${project.basedir}" osfamily="windows" failonerror="true">
  50. <arg line="/c bower install --allow-root" />
  51. </exec>
  52. <exec executable="cmd" dir="${project.basedir}" osfamily="windows" failonerror="true">
  53. <arg line="/c grunt app" />
  54. </exec>
  55. <!-- LINUX EXEC -->
  56. <exec executable="npm" dir="${project.basedir}" osfamily="unix" failonerror="true">
  57. <arg line="install --unsafe-perm --no-optional" />
  58. </exec>
  59. <exec executable="./node_modules/bower/bin/bower" dir="${project.basedir}" osfamily="unix" failonerror="true">
  60. <arg line="install --allow-root" />
  61. </exec>
  62. <exec executable="./node_modules/grunt-cli/bin/grunt" dir="${project.basedir}" osfamily="unix" failonerror="true">
  63. <arg line="app" />
  64. </exec>
  65. </target>
  66. </configuration>
  67. <goals>
  68. <goal>run</goal>
  69. </goals>
  70. </execution>
  71. </executions>
  72. </plugin>
  73. </plugins>
  74. </build>
  75. </profile>
  76. <!-- OFFLINE PROFILE-->
  77. <profile>
  78. <id>offline</id>
  79. <build>
  80. <plugins>
  81. <plugin>
  82. <artifactId>maven-assembly-plugin</artifactId>
  83. <configuration>
  84. <descriptor>assembly/package.xml</descriptor>
  85. <appendAssemblyId>false</appendAssemblyId>
  86. </configuration>
  87. <executions>
  88. <execution>
  89. <id>create-archive</id>
  90. <phase>package</phase>
  91. <goals>
  92. <goal>single</goal>
  93. </goals>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <plugin>
  98. <artifactId>maven-antrun-plugin</artifactId>
  99. <executions>
  100. <execution>
  101. <phase>generate-sources</phase>
  102. <configuration>
  103. <target name="building">
  104. <!-- WINDOWS EXEC -->
  105. <exec executable="cmd" dir="${project.basedir}" osfamily="windows" failonerror="true">
  106. <arg line="/c grunt app" />
  107. </exec>
  108. <!-- LINUX EXEC -->
  109. <exec executable="./node_modules/grunt-cli/bin/grunt" dir="${project.basedir}" osfamily="unix" failonerror="true">
  110. <arg line="app" />
  111. </exec>
  112. </target>
  113. </configuration>
  114. <goals>
  115. <goal>run</goal>
  116. </goals>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. </plugins>
  121. </build>
  122. </profile>
  123. </profiles>
  124. </project>