Advertisement
Guest User

Untitled

a guest
Feb 5th, 2017
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.62 KB | None | 0 0
  1.  
  2. <!--            <plugin> -->
  3. <!--                <groupId>org.apache.maven.plugins</groupId> -->
  4. <!--                <artifactId>maven-dependency-plugin</artifactId> -->
  5. <!--                <executions> -->
  6. <!--                    <execution> -->
  7. <!--                        <id>copy</id> -->
  8. <!--                        <phase>prepare-package</phase> -->
  9. <!--                        <goals> -->
  10. <!--                            <goal>copy</goal> -->
  11. <!--                        </goals> -->
  12. <!--                        <configuration> -->
  13. <!--                            <artifactItems> -->
  14. <!--                                <artifactItem> -->
  15. <!--                                    <groupId>org.ema.server</groupId> -->
  16. <!--                                    <artifactId>web</artifactId> -->
  17. <!--                                    <version>0.0.1-SNAPSHOT</version> -->
  18. <!--                                    <type>war</type> -->
  19. <!--                                    <outputDirectory>${project.build.directory}/${project.artifactId}</outputDirectory> -->
  20. <!--                                </artifactItem> -->
  21. <!--                            </artifactItems> -->
  22. <!--                        </configuration> -->
  23. <!--                    </execution> -->
  24. <!--                </executions> -->
  25. <!--            </plugin> -->
  26.  
  27.  
  28. <!--            <plugin> -->
  29. <!--                <groupId>org.springframework.boot</groupId> -->
  30. <!--                <artifactId>spring-boot-maven-plugin</artifactId> -->
  31. <!--                <configuration> -->
  32. <!--                    <fork>true</fork> -->
  33. <!--                    <mainClass>org.ema.server.EasyModelAccessServer</mainClass> -->
  34. <!--                </configuration> -->
  35. <!--                <executions> -->
  36. <!--                    <execution> -->
  37. <!--                        <goals> -->
  38. <!--                            <goal>repackage</goal> -->
  39. <!--                        </goals> -->
  40. <!--                    </execution> -->
  41. <!--                </executions> -->
  42. <!--            </plugin> -->
  43.            
  44. <!--            <plugin> -->
  45. <!--                <groupId>org.apache.maven.plugins</groupId> -->
  46. <!--                <artifactId>maven-assembly-plugin</artifactId> -->
  47. <!--                <version>2.4.1</version> -->
  48. <!--                <configuration> -->
  49. <!--                    <descriptorRefs> -->
  50. <!--                        <descriptorRef>jar-with-dependencies</descriptorRef> -->
  51. <!--                    </descriptorRefs> -->
  52. <!--                    <archive> -->
  53. <!--                        <manifest> -->
  54. <!--                            <mainClass>org.ema.server.Server</mainClass> -->
  55. <!--                        </manifest> -->
  56. <!--                    </archive> -->
  57. <!--                </configuration> -->
  58. <!--                <executions> -->
  59. <!--                    <execution> -->
  60. <!--                        <id>make-assembly</id> -->
  61. <!--                        <phase>package</phase> -->
  62. <!--                        <goals> -->
  63. <!--                            <goal>single</goal> -->
  64. <!--                        </goals> -->
  65. <!--                    </execution> -->
  66. <!--                </executions> -->
  67. <!--            </plugin> -->
  68.        
  69. <!--            <plugin> -->
  70. <!--                <groupId>org.apache.maven.plugins</groupId> -->
  71. <!--                <artifactId>maven-war-plugin</artifactId> -->
  72. <!--                <configuration> -->
  73. <!--                    <webResources> -->
  74. <!--                        <resource> -->
  75. <!--                            <directory>${project.build.directory}</directory> -->
  76. <!--                            <targetPath>WEB-INF</targetPath> introduced in plugin v 2.1 -->
  77. <!--                            <includes> -->
  78. <!--                                <include>release.txt</include> -->
  79. <!--                            </includes> -->
  80. <!--                        </resource> -->
  81. <!--                    </webResources> -->
  82. <!--                </configuration>  -->
  83. <!--            </plugin>  -->
  84.  
  85.  
  86. <!--            <plugin> -->
  87. <!--                <groupId>org.apache.maven.plugins</groupId> -->
  88. <!--                <artifactId>maven-shade-plugin</artifactId> -->
  89. <!--                <version>3.0.0</version> -->
  90. <!--                <configuration> -->
  91. <!--                    <transformers> -->
  92. <!--                        <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> -->
  93. <!--                            <mainClass>org.ema.server.Server</mainClass> -->
  94. <!--                        </transformer> -->
  95. <!--                    </transformers> -->
  96. <!--                </configuration> -->
  97. <!--                <executions> -->
  98. <!--                    <execution> -->
  99. <!--                        <phase>package</phase> -->
  100. <!--                        <goals> -->
  101. <!--                            <goal>shade</goal> -->
  102. <!--                        </goals> -->
  103. <!--                    </execution> -->
  104. <!--                </executions> -->
  105. <!--            </plugin> -->
  106.  
  107.                 <plugin>
  108.                     <groupId>org.springframework.boot</groupId>
  109.                     <artifactId>spring-boot-maven-plugin</artifactId>
  110.                     <configuration>
  111.                         <fork>true</fork>
  112.                         <mainClass>org.ema.server.Server</mainClass>
  113.                     </configuration>
  114.                     <executions>
  115.                         <execution>
  116.                             <goals>
  117.                                 <goal>repackage</goal>
  118.                             </goals>
  119.                         </execution>
  120.                     </executions>
  121.                 </plugin>
  122.                 <plugin>
  123.                     <artifactId>maven-assembly-plugin</artifactId>
  124.                     <version>2.2-beta-5</version>
  125.                     <configuration>
  126.                         <archive>
  127.                             <manifest>
  128.                                 <addClasspath>true</addClasspath>
  129.                                 <mainClass>org.ema.server.Server</mainClass>
  130.                             </manifest>
  131.                         </archive>
  132.                         <descriptorRefs>
  133.                             <descriptorRef>jar-with-dependencies</descriptorRef>
  134.                         </descriptorRefs>
  135.                     </configuration>
  136.                     <executions>
  137.                         <execution>
  138.                             <id>assemble-all</id>
  139.                             <phase>package</phase>
  140.                             <goals>
  141.                                 <goal>single</goal>
  142.                             </goals>
  143.                         </execution>
  144.                     </executions>
  145.                 </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement