cavis/contrib/attic/pydatavec/pom.xml

164 lines
6.8 KiB
XML
Raw Normal View History

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.
~ *
~ * 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"
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">
2021-02-01 06:31:20 +01:00
<modelVersion>4.0.0</modelVersion>
2019-06-06 14:21:15 +02:00
<parent>
<groupId>org.deeplearning4j</groupId>
<artifactId>deeplearning4j</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>pydatavec</artifactId>
<name>pydatavec</name>
<properties>
<pydatavec.compile.skip>false</pydatavec.compile.skip>
<pydatavec.version>0.1</pydatavec.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
2021-02-01 06:31:20 +01:00
<version>${maven-shade-plugin.version}</version>
2019-06-06 14:21:15 +02:00
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.deeplearning4j.example.App</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
2021-02-01 06:31:20 +01:00
<version>${maven-jar-plugin.version}</version>
2019-06-06 14:21:15 +02:00
<configuration>
<forceCreation>true</forceCreation>
</configuration>
<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>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
2021-02-01 06:31:20 +01:00
<version>${exec-maven-plugin.version}</version>
2019-06-06 14:21:15 +02:00
<executions>
<execution>
<id>python-install-cython</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>pip</executable>
<workingDirectory>${basedir}</workingDirectory>
<arguments>
<argument>install</argument>
<argument>--user</argument>
<argument>Cython</argument>
<argument>--install-option=--no-cython-compile</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>python-build</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>pip</executable>
<workingDirectory>${basedir}</workingDirectory>
<arguments>
<argument>install</argument>
<argument>--user</argument>
<argument>-e</argument>
<argument>.[tests, spark]</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>python-test</id>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>python</executable>
<workingDirectory>${basedir}</workingDirectory>
<skip>${pydatavec.test.skip}</skip>
<arguments>
<argument>-m</argument>
<argument>pytest</argument>
<argument>--pep8</argument>
<argument>-m</argument>
<argument>pep8</argument>
<argument>tests/</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>