2019-06-06 14:21:15 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2021-02-01 06:31:20 +01:00
|
|
|
<!--
|
|
|
|
~ /* ******************************************************************************
|
|
|
|
~ *
|
|
|
|
~ *
|
|
|
|
~ * This program and the accompanying materials are made available under the
|
|
|
|
~ * terms of the Apache License, Version 2.0 which is available at
|
|
|
|
~ * https://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
~ *
|
2021-02-01 09:47:29 +01:00
|
|
|
~ * See the NOTICE file distributed with this work for additional
|
|
|
|
~ * information regarding copyright ownership.
|
2021-02-01 06:31:20 +01:00
|
|
|
~ * 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.
|
|
|
|
~ *
|
|
|
|
~ * SPDX-License-Identifier: Apache-2.0
|
|
|
|
~ ******************************************************************************/
|
|
|
|
-->
|
2019-06-06 14:21:15 +02:00
|
|
|
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2021-02-01 06:31:20 +01:00
|
|
|
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>
|
|
|
|
|
2019-06-06 14:21:15 +02:00
|
|
|
<parent>
|
|
|
|
<groupId>org.deeplearning4j</groupId>
|
2021-02-01 06:31:20 +01:00
|
|
|
<artifactId>deeplearning4j-ui-parent</artifactId>
|
2019-06-06 14:21:15 +02:00
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<artifactId>deeplearning4j-ui-standalone</artifactId>
|
|
|
|
|
2021-02-01 06:31:20 +01:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.deeplearning4j</groupId>
|
|
|
|
<artifactId>deeplearning4j-ui</artifactId>
|
|
|
|
<version>${deeplearning4j.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
2019-06-06 14:21:15 +02:00
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Use Maven Shade plugin to create an uber-jar of the UI and all dependencies (and specify entry point to make runnable jar)
|
|
|
|
-->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
<version>${maven-shade-plugin.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformers>
|
2021-02-01 06:31:20 +01:00
|
|
|
<transformer
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
2019-06-06 14:21:15 +02:00
|
|
|
<resource>reference.conf</resource>
|
|
|
|
</transformer>
|
2021-02-01 06:31:20 +01:00
|
|
|
<transformer
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
|
|
|
<transformer
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
2019-06-06 14:21:15 +02:00
|
|
|
<mainClass>org.deeplearning4j.ui.play.PlayUIServer</mainClass>
|
|
|
|
</transformer>
|
|
|
|
</transformers>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
|
|
|
|
<configuration>
|
|
|
|
<!--
|
|
|
|
Important configuration options here:
|
|
|
|
createDependencyReducedPom: remove the shaded artifacts from the module dependencies. Without this, the
|
|
|
|
original dependencies will be shaded, AND still included as transitive deps
|
|
|
|
in the final POM. This is not what we want.
|
|
|
|
shadedArtifactAttached: If true, the shaded artifact will be a separate JAR file for install, with
|
|
|
|
the original un-shaded JAR being separate. With this being set to false,
|
|
|
|
the original JAR will be modified, and no extra jar will be produced.
|
|
|
|
promoteTransitiveDependencies: This will promote the transitive dependencies of the shaded dependencies
|
|
|
|
to direct dependencies. Without this, we need to manually manage the transitive
|
|
|
|
dependencies of the shaded artifacts.
|
|
|
|
|
|
|
|
Note that using <optional>true</optional> in the dependencies also allows the deps to be shaded (and
|
|
|
|
original dependencies to not be included), but does NOT work with promoteTransitiveDependencies
|
|
|
|
-->
|
|
|
|
<shadedArtifactAttached>false</shadedArtifactAttached>
|
|
|
|
<createDependencyReducedPom>true</createDependencyReducedPom>
|
|
|
|
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
|
|
|
|
|
|
|
|
<filters>
|
|
|
|
<filter>
|
|
|
|
<artifact>*:*</artifact>
|
|
|
|
<excludes>
|
|
|
|
<exclude>org/datanucleus/**</exclude>
|
|
|
|
<exclude>META-INF/*.SF</exclude>
|
|
|
|
<exclude>META-INF/*.DSA</exclude>
|
|
|
|
<exclude>META-INF/*.RSA</exclude>
|
|
|
|
</excludes>
|
|
|
|
</filter>
|
|
|
|
</filters>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<version>${maven-jar-plugin.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>empty-javadoc-jar</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<classifier>javadoc</classifier>
|
|
|
|
<classesDirectory>${basedir}/javadoc</classesDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>empty-sources-jar</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<classifier>sources</classifier>
|
|
|
|
<classesDirectory>${basedir}/src</classesDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
2021-02-01 06:31:20 +01:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>test-nd4j-native</id>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>test-nd4j-cuda-11.0</id>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2019-06-06 14:21:15 +02:00
|
|
|
</project>
|