Skip to content

Commit

Permalink
Fixed licenses inside distribution zip
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Sep 9, 2015
1 parent 6ef07d4 commit ea3cb01
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
12 changes: 7 additions & 5 deletions dist/pom.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- ~ Copyright 2012 Red Hat, Inc. and/or its affiliates. ~ ~ Licensed under the Eclipse Public License version 1.0, available at ~ http://www.eclipse.org/legal/epl-v10.html -->
<!-- ~ Copyright 2012 Red Hat, Inc. and/or its affiliates. ~ ~ Licensed under the Eclipse Public License version 1.0, available
at ~ http://www.eclipse.org/legal/epl-v10.html -->

<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">
<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">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down Expand Up @@ -106,13 +108,13 @@
<goals>
<goal>download-licenses</goal>
</goals>
<phase>package</phase>
<phase>prepare-package</phase>
<configuration>
<licensesOutputDirectory>
${project.build.directory}/forge-distribution-${forge.release.version}/docs/licenses
${project.build.directory}/docs/licenses
</licensesOutputDirectory>
<licensesOutputFile>
${project.build.directory}/forge-distribution-${forge.release.version}/docs/licenses/licenses.xml
${project.build.directory}/docs/licenses/licenses.xml
</licensesOutputFile>
</configuration>
</execution>
Expand Down
8 changes: 7 additions & 1 deletion dist/src/main/assembly/assembly-offline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@
<include>**</include>
</includes>
</fileSet>

<fileSet>
<directory>${project.build.directory}/docs</directory>
<outputDirectory>docs</outputDirectory>
<includes>
<include>**</include>
</includes>
</fileSet>
</fileSets>

<dependencySets>
Expand Down
7 changes: 7 additions & 0 deletions dist/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
<include>**</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.build.directory}/docs</directory>
<outputDirectory>docs</outputDirectory>
<includes>
<include>**</include>
</includes>
</fileSet>
</fileSets>

<dependencySets>
Expand Down

0 comments on commit ea3cb01

Please sign in to comment.