Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         <git.branch>master</git.branch>
  2.  
  3.         <wadl.project.version>3.1.4.Final</wadl.project.version>
  4.         <agent.version>1.48</agent.version>
  5.     </properties>
  6.  
  7.     <dependencyManagement>
  8.                     </execution>
  9.                 </executions>
  10.             </plugin>
  11.  
  12.  
  13.             <plugin>
  14.                 <groupId>org.apache.maven.plugins</groupId>
  15.                 <artifactId>maven-dependency-plugin</artifactId>
  16.                 <version>3.1.1</version>
  17.                 <executions>
  18.                     <execution>
  19.                         <id>unpack</id>
  20.                         <phase>prepare-package</phase>
  21.                         <goals>
  22.                             <goal>unpack</goal>
  23.                         </goals>
  24.                         <configuration>
  25.                             <artifactItems>
  26.                                 <artifactItem>
  27.                                     <groupId>ru.sc</groupId>
  28.                                     <artifactId>smartAgent</artifactId>
  29.                                     <version>${agent.version}</version>
  30.                                     <type>zip</type>
  31.                                     <overWrite>true</overWrite>
  32.                                     <outputDirectory>${project.build.directory}/${war.name}/agent</outputDirectory>
  33.                                     <destFileName>smartAgent.zip</destFileName>
  34.                                     <excludes>**/*.xml,**/*.pom</excludes>
  35.                                 </artifactItem>
  36.                             </artifactItems>
  37.                             <!--<includes>**/*.java</includes>-->
  38.                             <!--<excludes>**/*.properties</excludes>-->
  39.                             <!--<outputDirectory>${project.build.directory}/wars</outputDirectory>-->
  40.                             <!--<overWriteReleases>false</overWriteReleases>-->
  41.                             <!--<overWriteSnapshots>true</overWriteSnapshots>-->
  42.                         </configuration>
  43.                     </execution>
  44.                 </executions>
  45.             </plugin>
  46.             <plugin>
  47.                 <groupId>org.apache.maven.plugins</groupId>
  48.                 <artifactId>maven-resources-plugin</artifactId>
  49.                 <version>3.1.0</version>
  50.                 <executions>
  51.                     <execution>
  52.                         <id>copy-resources</id>
  53.                         <!-- here the phase you need -->
  54.                         <phase>prepare-package</phase>
  55.                         <goals>
  56.                             <goal>copy-resources</goal>
  57.                         </goals>
  58.                         <configuration>
  59.                             <outputDirectory>${project.build.directory}/${war.name}/WEB-INF/classes</outputDirectory>
  60.                             <resources>
  61.                                 <resource>
  62.                                     <directory>${project.build.directory}/${war.name}/agent/</directory>
  63.                                     <filtering>true</filtering>
  64.                                     <includes>
  65.                                         <include>smart-agent.jnlp</include>
  66.                                     </includes>
  67.                                 </resource>
  68.                             </resources>
  69.                         </configuration>
  70.                     </execution>
  71.                 </executions>
  72.  
  73.             </plugin>
  74.         </plugins>
  75.         <resources>
  76.             <resource>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement