blob: a4fd6af30027874bcec958a8186a7a7dcf8bcc6e [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<name>Apache Jena - Fuseki Basic Server</name>
<artifactId>jena-fuseki-basic</artifactId>
<parent>
<groupId>org.apache.jena</groupId>
<artifactId>jena-fuseki</artifactId>
<version>3.4.0</version>
</parent>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-cmds</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-text</artifactId>
<version>3.4.0</version>
</dependency>
<!-- Add logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<optional>true</optional>
</dependency>
<!-- This depends on jena-fuseki-core -->
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-fuseki-embedded</artifactId>
<version>3.4.0</version>
<!-- No specific logging - leave to the application -->
<exclusions>
<exclusion>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-web</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/TS_*.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<overWriteReleases>false</overWriteReleases>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</plugin>
<!-- Use <build><finalName> for chnage of artifact produced. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<!--
<finalName>fuseki-basic</finalName>
<shadedArtifactAttached>false</shadedArtifactAttached>
-->
<shadedArtifactAttached>true</shadedArtifactAttached>
<!-- Does not deploy? - ->
<shadedArtifactId></shadedArtifactId>
-->
<shadedClassifierName>server</shadedClassifierName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.apache.jena.fuseki.cmds.FusekiBasicCmd</mainClass>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
<addHeader>false</addHeader>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<!-- Some jars are signed but shading breaks that.
Don't include signing files.
-->
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<phase>package</phase>
<!--<phase /><!- - Switch off -->
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<executions>
<execution>
<id>rat-checks</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<excludeSubProjects>true</excludeSubProjects>
<excludes>
<exclude>**/sparqler/**</exclude>
<exclude>**/.project</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/*.log</exclude>
<exclude>**/README.*</exclude>
<exclude>**/META-INF/services/*</exclude>
<!--
Javadoc add-ons files are required to be simple and our javadoc configuration
will ensure appropriate license and copyright statements are inserted
into generated documentation anyway so no need to put license statements in these
files
-->
<exclude>**/src/main/**/*.html</exclude>
<exclude>**/DEPENDENCIES</exclude>
<!--
Text and Markdown files are typically used only for documentation purposes
and license declarations are usually spurious in these files since often they
will refer to the LICENSE/NOTICE for users to find the actual licenses
-->
<exclude>**/*.txt</exclude>
<exclude>**/*.md</exclude>
<exclude>**/*.mdtext</exclude>
<!--
META-INF services files can include comments but a license header would be
unecessarily clutter so we exclude these
-->
<exclude>**/META-INF/services/*</exclude>
<!--
Jena historically has large numbers of small test file
with no license headers. Such small files are not required
to have headers.
In addition, there are files with different Licenses
(e.g. W3C Software Licence, W3C Test Suite License) as
noted in the code tree.
-->
<exclude>**/testing/**/*</exclude>
<exclude>**/log4j.properties</exclude>
<exclude>**/log4j-testing.properties</exclude>
<exclude>**/DB/**/*</exclude>
<!-- TDB config files JSON - no comments allowed -->
<exclude>**/tdb*.cfg</exclude>
<!-- Exclude anything created during the build (plugin generated files) ->-->
<exclude>**/target/**/*</exclude>
<!-- MSHADE-124 -->
<exclude>**/dependency-reduced-pom.xml</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>