Skip to content

Commit

Permalink
Generate legal files
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 11, 2019
1 parent 0ebc2a4 commit 7886540
Show file tree
Hide file tree
Showing 478 changed files with 197 additions and 50,733 deletions.
61 changes: 33 additions & 28 deletions camel-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -371,38 +371,20 @@
<shadedPattern>org.apache.camel.json.simple</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/NOTICE</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>

<!-- include additional metadata from target/generated into the camel-core JAR -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>include-metadata</id>
<phase>package</phase>
<configuration>
<target>
<echo>Including metadata properties files in camel-core.jar</echo>
<jar destfile="${project.build.directory}/${project.artifactId}-${project.version}.jar"
update="true">
<fileset dir="${basedir}/target/generated/camel/components/" includes="**/*"/>
<fileset dir="${basedir}/target/generated/camel/dataformats/" includes="**/*"/>
<fileset dir="${basedir}/target/generated/camel/languages/" includes="**/*"/>
<fileset dir="${basedir}/target/generated/camel/models/" includes="**/*"/>
</jar>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- generate the attached tests jar -->
<plugin>
<artifactId>maven-jar-plugin</artifactId>
Expand Down Expand Up @@ -476,12 +458,20 @@
</execution>
<!-- camel-core needs to generate jaxb.index files -->
<execution>
<id>jaxb-list</id>
<id>generate-jaxb-list</id>
<goals>
<goal>generate-jaxb-list</goal>
</goals>
<phase>process-classes</phase>
</execution>
<!-- camel-core needs to generate legal files -->
<execution>
<id>generate-legal</id>
<goals>
<goal>generate-legal</goal>
</goals>
<phase>process-classes</phase>
</execution>
<!-- camel-core needs to validate before packaging -->
<execution>
<id>validate</id>
Expand Down Expand Up @@ -512,9 +502,24 @@
<phase>process-classes</phase>
<configuration>
<resources>
<resource>
<directory>${basedir}/target/generated/camel/components</directory>
</resource>
<resource>
<directory>${basedir}/target/generated/camel/dataformats</directory>
</resource>
<resource>
<directory>${basedir}/target/generated/camel/languages</directory>
</resource>
<resource>
<directory>${basedir}/target/generated/camel/models</directory>
</resource>
<resource>
<directory>${basedir}/target/generated/camel/jaxb</directory>
</resource>
<resource>
<directory>${basedir}/target/generated/camel/legal</directory>
</resource>
</resources>
</configuration>
</execution>
Expand Down
203 changes: 0 additions & 203 deletions components/camel-ahc-ws/src/main/resources/META-INF/LICENSE.txt

This file was deleted.

11 changes: 0 additions & 11 deletions components/camel-ahc-ws/src/main/resources/META-INF/NOTICE.txt

This file was deleted.

0 comments on commit 7886540

Please sign in to comment.