| <?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 (SPARQL 1.1 Server)</name> |
| <artifactId>jena-fuseki2</artifactId> |
| <version>2.0.0.M5-SNAPSHOT</version> |
| |
| <parent> |
| <groupId>org.apache.jena</groupId> |
| <artifactId>jena-parent</artifactId> |
| <version>11-SNAPSHOT</version> |
| <relativePath>../jena-parent</relativePath> |
| </parent> |
| |
| <!-- We make the JAR file so that the shade plugin includes it. |
| The war:war goal is added to the package phase. |
| --> |
| <packaging>jar</packaging> |
| <description>Fuseki is a SPARQL 1.1 Server which provides query, update and graph store protocol endpoints that can be used to expose triple stores over HTTP</description> |
| <url>http://jena.apache.org/</url> |
| |
| |
| <!-- Need if the parent is a snapshot --> |
| <repositories> |
| <repository> |
| <id>apache.snapshots</id> |
| <name>Apache Snapshot Repository</name> |
| <url>http://repository.apache.org/snapshots</url> |
| <releases> |
| <enabled>false</enabled> |
| </releases> |
| </repository> |
| </repositories> |
| |
| <organization> |
| <name>Apache Jena</name> |
| <url>http://jena.apache.org/</url> |
| </organization> |
| |
| <licenses> |
| <license> |
| <name>Apache 2.0 License</name> |
| <url>http://www.apache.org/licenses/LICENSE-2.0</url> |
| </license> |
| </licenses> |
| |
| <scm> |
| <connection>scm:svn:https://svn.apache.org/repos/asf/jena/tags/jena-2.11.2-SNAPSHOT/jena-fuseki</connection> |
| <developerConnection>scm:svn:https://svn.apache.org/repos/asf/jena/tags/jena-2.11.2-SNAPSHOT/jena-fuseki</developerConnection> |
| <url>https://svn.apache.org/repos/asf/jena/tags/jena-2.11.2-SNAPSHOT/jena-fuseki</url> |
| </scm> |
| |
| <properties> |
| <this.root>${project.artifactId}-${project.version}</this.root> |
| <server.jar.name>${this.root}-server</server.jar.name> |
| <!-- Eventually, move to jena-parent --> |
| <ver.jetty>9.1.1.v20140108</ver.jetty> |
| <ver.shiro>1.2.2</ver.shiro> |
| |
| <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ssZ</maven.build.timestamp.format> |
| <build.time.xsd>${maven.build.timestamp}</build.time.xsd> |
| </properties> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>org.apache.jena</groupId> |
| <artifactId>jena-arq</artifactId> |
| <version>2.12.1-SNAPSHOT</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.jena</groupId> |
| <artifactId>jena-arq</artifactId> |
| <version>2.12.1-SNAPSHOT</version> |
| <classifier>tests</classifier> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.jena</groupId> |
| <artifactId>jena-core</artifactId> |
| <version>2.12.1-SNAPSHOT</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.jena</groupId> |
| <artifactId>jena-tdb</artifactId> |
| <version>1.1.1-SNAPSHOT</version> |
| </dependency> |
| |
| <!-- |
| <dependency> |
| <groupId>org.apache.jena</groupId> |
| <artifactId>sdb</artifactId> |
| <version>${ver.sdb}</version> |
| <optional>true</optional> |
| </dependency> |
| --> |
| |
| <dependency> |
| <groupId>org.apache.jena</groupId> |
| <artifactId>jena-text</artifactId> |
| <version>1.1.1-SNAPSHOT</version> |
| <exclusions> |
| <!-- |
| Get this via commons-fileupload and also via jena-text/sol4j |
| --> |
| <exclusion> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.jena</groupId> |
| <artifactId>jena-spatial</artifactId> |
| <version>1.1.1-SNAPSHOT</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.shiro</groupId> |
| <artifactId>shiro-core</artifactId> |
| <version>${ver.shiro}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.shiro</groupId> |
| <artifactId>shiro-web</artifactId> |
| <version>${ver.shiro}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <exclusions> |
| <!-- Replace with slf4j adapter --> |
| <exclusion> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-fileupload</groupId> |
| <artifactId>commons-fileupload</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-webapp</artifactId> |
| <version>${ver.jetty}</version> |
| </dependency> |
| |
| |
| <!-- |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-runner</artifactId> |
| <version>${ver.jetty}</version> |
| </dependency> |
| --> |
| |
| <!-- Development and standalone jar (if built) --> |
| <!-- Jetty's useful servlets, inc compression --> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-servlets</artifactId> |
| <version>${ver.jetty}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </dependency> |
| |
| <!-- Intercept any uses of Jakarta Commons Logging e.g. Apache Common HTTP client. --> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jcl-over-slf4j</artifactId> |
| </dependency> |
| |
| <!-- Needed because the Fuseki command line and the test suite reset logging levels --> |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.jms</groupId> |
| <artifactId>jms</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jdmk</groupId> |
| <artifactId>jmxtools</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jmx</groupId> |
| <artifactId>jmxri</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.mail</groupId> |
| <artifactId>mail</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <filtering>false</filtering> |
| <directory>src/main/resources</directory> |
| <excludes> |
| <exclude>org/apache/jena/fuseki/fuseki-properties.xml</exclude> |
| </excludes> |
| </resource> |
| <resource> |
| <filtering>true</filtering> |
| <directory>src/main/resources</directory> |
| <includes> |
| <include>org/apache/jena/fuseki/fuseki-properties.xml</include> |
| </includes> |
| </resource> |
| </resources> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <encoding>UTF-8</encoding> |
| <optimize>true</optimize> |
| <debug>true</debug> |
| <debuglevel>source,lines,vars</debuglevel> |
| <source>1.7</source> |
| <target>1.7</target> |
| </configuration> |
| </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-javadoc-plugin</artifactId> |
| <configuration> |
| <version>true</version> |
| <show>public</show> |
| <quiet>true</quiet> |
| <encoding>UTF-8</encoding> |
| <windowtitle>Apache Jena Fuseki</windowtitle> |
| <doctitle>Apache Jena Fuseki ${project.version}</doctitle> |
| <bottom>Licenced under the Apache License, Version 2.0</bottom> |
| </configuration> |
| </plugin> |
| --> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</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-dependency-plugin</artifactId> |
| <configuration> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>2.1</version> |
| <configuration> |
| <shadedArtifactAttached>true</shadedArtifactAttached> |
| <shadedClassifierName>server</shadedClassifierName> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <mainClass>org.apache.jena.fuseki.FusekiCmd</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.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.4</version> |
| <executions> |
| <execution> |
| <id>generate-webapp</id> |
| <phase>package</phase> |
| <goals><goal>war</goal></goals> |
| </execution> |
| </executions> |
| <configuration> |
| <webappDirectory>${project.build.webappDirectory}</webappDirectory> |
| <!-- This can't be set because then maven will not install/deploy the war file --> |
| <!--<warName>${webapp.name}</warName>--> |
| <!-- Don't put in the Jetty dependency nor javax.servlet --> |
| <packagingExcludes>WEB-INF/lib/jetty-*,WEB-INF/lib/javax.servlet*</packagingExcludes> |
| </configuration> |
| </plugin> |
| |
| <!-- Untested. |
| <plugin> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| <version>${ver.jetty}</version> |
| <configuration> |
| <war>target/${this.root}.war</war> |
| </configuration> |
| </plugin> |
| --> |
| |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <!-- After shaded jar, after war file - same phase --> |
| <executions> |
| <execution> |
| <id>create-zip-assembly</id> |
| <phase>package</phase> |
| <!--<phase/>--> |
| <goals><goal>single</goal></goals> |
| <configuration> |
| <!-- |
| <finalName>${assembly.zip.name}</finalName> |
| <appendAssemblyId>false</appendAssemblyId> |
| --> |
| <descriptors> |
| <descriptor>assembly-dist.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <configuration> |
| <encoding>UTF-8</encoding> |
| </configuration> |
| </plugin> |
| |
| </plugins> |
| |
| </build> |
| |
| </project> |