Commit 2e845c186a2e6e47da18369d2c7e828dc115a3d5

Authored by Paul Brodner
1 parent 27d92d3400
Exists in master

all dependencies

Showing 2 changed files with 83 additions and 0 deletions   Show diff stats
... ... @@ -115,6 +115,65 @@
115 115 </arguments>
116 116 </configuration>
117 117 </plugin>
  118 +
  119 + <plugin>
  120 + <groupId>org.apache.maven.plugins</groupId>
  121 + <artifactId>maven-dependency-plugin</artifactId>
  122 + <version>2.8</version>
  123 + <executions>
  124 + <execution>
  125 + <id>copy-dependencies</id>
  126 + <phase>package</phase>
  127 + <goals>
  128 + <goal>copy-dependencies</goal>
  129 + </goals>
  130 + <configuration>
  131 + <overWriteReleases>true</overWriteReleases>
  132 + <overWriteSnapshots>true</overWriteSnapshots>
  133 + <overWriteIfNewer>true</overWriteIfNewer>
  134 + <prependGroupId>true</prependGroupId>
  135 + </configuration>
  136 + </execution>
  137 + </executions>
  138 + </plugin>
  139 +
  140 + <!-- maven assembly for tests -->
  141 + <plugin>
  142 + <groupId>org.apache.maven.plugins</groupId>
  143 + <artifactId>maven-assembly-plugin</artifactId>
  144 + <version>2.4</version>
  145 + <executions>
  146 + <execution>
  147 + <id>assembly:package</id>
  148 + <phase>package</phase>
  149 + <goals>
  150 + <goal>single</goal>
  151 + </goals>
  152 + <configuration>
  153 + <appendAssemblyId>false</appendAssemblyId>
  154 + <descriptors>
  155 + <descriptor>src/main/resources/assembly.xml</descriptor>
  156 + </descriptors>
  157 + </configuration>
  158 + </execution>
  159 + </executions>
  160 + </plugin>
  161 + <plugin>
  162 + <groupId>org.apache.maven.plugins</groupId>
  163 + <artifactId>maven-jar-plugin</artifactId>
  164 + <version>2.4</version>
  165 + <configuration>
  166 + <archive>
  167 + <manifest>
  168 + <addClasspath>true</addClasspath>
  169 + <mainClass>org.alfresco.tasenvironment.App</mainClass>
  170 + <classpathLayoutType>custom</classpathLayoutType>
  171 + <customClasspathLayout>lib/${artifact.groupId}.${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</customClasspathLayout>
  172 + </manifest>
  173 + </archive>
  174 + </configuration>
  175 + </plugin>
  176 +
118 177 </plugins>
119 178  
120 179 </build>
... ...
src/main/resources/assembly.xml
... ... @@ -0,0 +1,24 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<assembly>
  3 + <id>package</id>
  4 + <formats>
  5 + <format>zip</format>
  6 + </formats>
  7 + <includeBaseDirectory>true</includeBaseDirectory>
  8 + <fileSets>
  9 + <fileSet>
  10 + <directory>target/dependency</directory>
  11 + <outputDirectory>/lib</outputDirectory>
  12 + <includes>
  13 + <include>**/*</include>
  14 + </includes>
  15 + </fileSet>
  16 + <fileSet>
  17 + <directory>${project.build.directory}/</directory>
  18 + <outputDirectory>/</outputDirectory>
  19 + <includes>
  20 + <include>*.jar</include>
  21 + </includes>
  22 + </fileSet>
  23 + </fileSets>
  24 +</assembly>
0 25 \ No newline at end of file
... ...