Skip to content

Commit

Permalink
xrootd4j: Add Maven archtype for channel handler plugins
Browse files Browse the repository at this point in the history
This was written years ago and has been available within the dCache Nexus
snapshot repository.

Target: master
Acked-by: Paul Millar <[email protected]>

Reviewed at https://rb.dcache.org/r/9463/
  • Loading branch information
gbehrmann committed Jul 1, 2016
1 parent 9a6058f commit 24c8b17
Show file tree
Hide file tree
Showing 15 changed files with 1,308 additions and 0 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -331,5 +331,6 @@
<module>xrootd4j-standalone</module>
<module>xrootd4j-gsi</module>
<module>xrootd4j-authz-archetype</module>
<module>xrootd4j-channelhandler-archetype</module>
</modules>
</project>
95 changes: 95 additions & 0 deletions xrootd4j-channelhandler-archetype/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2011-2016 dCache.org <[email protected]>
This file is part of xrootd4j.
xrootd4j is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
xrootd4j is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with xrootd4j. If not, see http://www.gnu.org/licenses/.
-->
<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>
<groupId>org.dcache</groupId>
<artifactId>xrootd4j-parent</artifactId>
<version>3.2.0-SNAPSHOT</version>
</parent>

<artifactId>xrootd4j-channelhandler-plugin-archetype</artifactId>
<packaging>maven-archetype</packaging>

<name>xrootd4j channel handler plugin archetype</name>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<escapeString>\</escapeString>
</configuration>
</plugin>
</plugins>
</pluginManagement>

<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/resources-filtered</directory>
<filtering>true</filtering>
</resource>
</resources>

<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
</testResource>
</testResources>

<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
</extension>
</extensions>

<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<strictCheck>true</strictCheck>
<excludes>
<exclude>src/main/resources/archetype-resources/**</exclude>
<exclude>src/test/resources/projects/basic/goal.txt</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2011-2016 dCache.org <[email protected]>
This file is part of xrootd4j.
xrootd4j is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
xrootd4j is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with xrootd4j. If not, see http://www.gnu.org/licenses/.
-->
<archetype-descriptor
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
name="xrootd4j-channelhandler-plugin"
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<requiredProperties>
<requiredProperty key="xrootd4j">
<defaultValue>${project.parent.version}</defaultValue>
</requiredProperty>
<requiredProperty key="name">
<defaultValue>\${package}.\${artifactId}</defaultValue>
</requiredProperty>
<requiredProperty key="description"/>
</requiredProperties>
<fileSets>
<fileSet filtered="true" packaged="true" encoding="UTF-8">
<directory>src/main/java</directory>
<includes>
<include>**/*.java</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/main/assembly</directory>
<includes>
<include>**/*.xml</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/main/defaults</directory>
<includes>
<include>**/*.properties</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
<directory></directory>
<includes>
<include>**/*.md</include>
</includes>
</fileSet>
<fileSet encoding="UTF-8">
<directory></directory>
<includes>
<include>LICENSE.txt</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/main/resources</directory>
<includes>
<include>**/org.dcache.xrootd.plugins.ChannelHandlerProvider</include>
</includes>
</fileSet>
</fileSets>
</archetype-descriptor>
Loading

0 comments on commit 24c8b17

Please sign in to comment.