1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>linux-${project.version}</id>
<formats>
<format>tar.gz</format>
</formats>
<baseDirectory>${project.build.finalName}-${project.version}</baseDirectory>
<fileSets>
<fileSet>
<directory>${rootdir}/server/target/lib</directory>
<outputDirectory>server/target/lib</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${rootdir}/main/webapp</directory>
<outputDirectory>webapp</outputDirectory>
<excludes>
<exclude>node_modules/**</exclude>
<exclude>package.json</exclude>
<exclude>package-lock.json</exclude>
<exclude>dependencies.json</exclude>
<exclude>copy-dependencies.js</exclude>
<exclude>README.md</exclude>
<exclude>**/*.java</exclude>
<exclude>**/butterfly.properties</exclude>
<exclude>**/lib-local/**</exclude>
<exclude>*/lib-local-src/**</exclude>
<exclude>**/pom.xml</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/.project</exclude>
<exclude>licenses/**</exclude> <!-- added below, separately -->
</excludes>
</fileSet>
<fileSet> <!-- licenses for the frontend -->
<directory>${rootdir}/main/webapp/licenses</directory>
<outputDirectory>licenses</outputDirectory>
</fileSet>
<fileSet> <!-- this copies the licenses for the backend -->
<directory>${project.build.directory}/generated-resources</directory>
<outputDirectory>.</outputDirectory>
</fileSet>
<fileSet>
<directory>${rootdir}/extensions</directory>
<outputDirectory>webapp/extensions</outputDirectory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/target/**</exclude>
<exclude>**/tests/**</exclude>
<exclude>**/test-output/**</exclude>
<exclude>**/src/**</exclude>
<exclude>**/*.java</exclude>
<exclude>**/lib-src/**</exclude>
<exclude>**/pom.xml</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/.project</exclude>
<exclude>**/lib-local/**</exclude>
<exclude>*/lib-local-src/**</exclude>
</excludes>
</fileSet>
</fileSets>
<!-- TODO replace $VERSION by ${project.version} in WEB-INF/web.xml -->
<files>
<file>
<source>${rootdir}/refine</source>
<fileMode>755</fileMode>
</file>
<file>
<source>${rootdir}/refine.ini</source>
</file>
<file>
<source>${rootdir}/README.md</source>
</file>
<file>
<source>${rootdir}/LICENSE.txt</source>
</file>
<file>
<source>${rootdir}/packaging/butterfly.properties</source>
<outputDirectory>webapp/WEB-INF</outputDirectory>
</file>
<file>
<source>${rootdir}/server/target/openrefine-${project.version}-server.jar</source>
<outputDirectory>server/target/lib</outputDirectory>
</file>
</files>
</assembly>
|