| <?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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache</groupId> |
| <artifactId>apache</artifactId> |
| <version>18</version> |
| </parent> |
| <groupId>org.apache.systemml</groupId> |
| <version>0.11.0-incubating</version> |
| <artifactId>systemml</artifactId> |
| <packaging>jar</packaging> |
| <name>SystemML</name> |
| <description>Declarative Machine Learning</description> |
| <url>http://systemml.apache.org/</url> |
| <licenses> |
| <license> |
| <name>Apache 2.0 License</name> |
| <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> |
| </license> |
| </licenses> |
| <scm> |
| <connection>scm:git:git@github.com:apache/incubator-systemml</connection> |
| <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-systemml</developerConnection> |
| <url>https://git-wip-us.apache.org/repos/asf?p=incubator-systemml.git</url> |
| <tag>v0.11.0-incubating-rc5</tag> |
| </scm> |
| <issueManagement> |
| <system>JIRA</system> |
| <url>https://issues.apache.org/jira/browse/SYSTEMML</url> |
| </issueManagement> |
| <mailingLists> |
| <mailingList> |
| <name>Dev Mailing List</name> |
| <post>dev@systemml.incubator.apache.org</post> |
| <subscribe>dev-subscribe@systemml.incubator.apache.org</subscribe> |
| <unsubscribe>dev-unsubscribe@systemml.incubator.apache.org</unsubscribe> |
| </mailingList> |
| <mailingList> |
| <name>Commits Mailing List</name> |
| <post>commits@systemml.incubator.apache.org</post> |
| <subscribe>commits-subscribe@systemml.incubator.apache.org</subscribe> |
| <unsubscribe>commits-unsubscribe@systemml.incubator.apache.org</unsubscribe> |
| </mailingList> |
| </mailingLists> |
| |
| <properties> |
| <hadoop.version>2.4.1</hadoop.version> |
| <antlr.version>4.5.3</antlr.version> |
| <spark.version>1.4.1</spark.version> |
| <scala.version>2.10.5</scala.version> |
| <scala.binary.version>2.10</scala.binary.version> |
| <scala.test.version>2.2.6</scala.test.version> |
| <!-- OS-specific JVM arguments for running integration tests --> |
| <integrationTestExtraJVMArgs /> |
| </properties> |
| |
| <repositories> |
| <repository> |
| <id>central</id> |
| <url>https://repo1.maven.org/maven2</url> |
| <releases> |
| <enabled>true</enabled> |
| </releases> |
| </repository> |
| <repository> |
| <id>mavenized-jcuda-mvn-repo</id> |
| <url>https://raw.github.com/niketanpansare/mavenized-jcuda/mvn-repo/</url> |
| <snapshots> |
| <enabled>true</enabled> |
| <updatePolicy>always</updatePolicy> |
| </snapshots> |
| </repository> |
| </repositories> |
| |
| <build> |
| |
| <!-- Adds scripts to main jar, in-memory jar, sources jar, and standalone jar --> |
| <resources> |
| <resource> |
| <directory>scripts</directory> |
| <excludes> |
| <exclude>algorithms/obsolete/*</exclude> |
| <exclude>algorithms/obsolete</exclude> |
| <exclude>perftest/*</exclude> |
| <exclude>perftest</exclude> |
| <exclude>staging/**/*</exclude> |
| <exclude>staging</exclude> |
| <!-- <exclude>*.sh</exclude> --> <!-- applies to sparkDML.sh --> |
| </excludes> |
| <targetPath>scripts</targetPath> |
| </resource> |
| </resources> |
| |
| <plugins> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.1.1</version> |
| <executions> |
| <execution> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>java</goal> |
| </goals> |
| <configuration> |
| <mainClass>org.apache.sysml.utils.InstallDependencyForIntegrationTests</mainClass> |
| <arguments> |
| <argument>${skipTests}</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>2.4</version><!--$NO-MVN-MAN-VER$--> |
| <executions> |
| <execution> |
| <id>unpack</id> |
| <phase>package</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-test</artifactId> |
| <version>1.2.1</version> |
| <type>jar</type> |
| <overWrite>true</overWrite> |
| <outputDirectory>${project.build.directory}/hadoop-test</outputDirectory> |
| <includes>**/*</includes> |
| </artifactItem> |
| </artifactItems> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>true</overWriteSnapshots> |
| </configuration> |
| </execution> |
| <execution> |
| <phase>compile</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- PLEASE DO NOT REMOVE! NEEDED to "PACKAGE" ANTLR RUNTIME INTO SYSTEMML.JAR --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>2.3</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| </execution> |
| </executions> |
| |
| <configuration> |
| <!-- Include signature files so that recent versions of Java will run |
| the resulting jar without complaining about "Invalid signature file digest |
| for Manifest main attributes". --> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.8</version> |
| <executions> |
| <execution> |
| <id>add-test-source</id> |
| <phase>generate-test-sources</phase> |
| <goals> |
| <goal>add-test-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <!-- Test suite classes kept in a separate folder for compatibility |
| with the Eclipse JUnit test runner. --> |
| <source>${basedir}/src/test_suites/java</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>1.6</source> |
| <target>1.6</target> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>net.alchim31.maven</groupId> |
| <artifactId>scala-maven-plugin</artifactId> |
| <version>3.2.2</version> |
| <executions> |
| <execution> |
| <id>eclipse-add-source</id> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>scala-compile-first</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>scala-test-compile-first</id> |
| <phase>process-test-resources</phase> |
| <goals> |
| <goal>testCompile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>2.4</version><!--$NO-MVN-MAN-VER$--> |
| <configuration> |
| <archive> |
| <index>true</index> |
| <!-- <manifest> --> |
| <!-- <addClasspath>true</addClasspath> --> |
| <!-- </manifest> --> |
| <manifestEntries> |
| <Build-Timestamp>${maven.build.timestamp}</Build-Timestamp> |
| <Main-Class>org.apache.sysml.api.DMLScript</Main-Class> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.4</version> |
| <executions> |
| <execution> |
| <id>copy-resources</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <resources> |
| <resource> |
| <directory>${basedir}/src/test/config/hadoop_bin_windows/bin</directory> |
| <filtering>false</filtering> |
| <includes> |
| <include>*.*</include> |
| </includes> |
| </resource> |
| </resources> |
| <outputDirectory>${basedir}/target/lib/hadoop/bin</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.antlr</groupId> |
| <artifactId>antlr4-maven-plugin</artifactId> |
| <configuration> |
| <sourceDirectory>${basedir}/src/main/java</sourceDirectory> |
| <outputDirectory>${basedir}/src/main/java</outputDirectory> |
| </configuration> |
| <version>${antlr.version}</version> |
| <executions> |
| <execution> |
| <id>antlr</id> |
| <goals> |
| <goal>antlr4</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- Currently, all tests are integration tests. --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.18</version><!--$NO-MVN-MAN-VER$--> |
| <configuration> |
| |
| <!-- STDERR/STDOUT to individual .txt files instead of console --> |
| <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| |
| <!-- Run (num cores) test harness classes in parallel, each in a separate |
| process --> |
| <forkCount>1C</forkCount> |
| <reuseForks>true</reuseForks> |
| |
| <!-- Third argument prevents Java from popping up lots of windows on |
| MacOS --> |
| <argLine>-Dfile.encoding=UTF-8 -Xmx2g -Xms2g -Xmn200m -Djava.awt.headless=true</argLine> |
| |
| <includes> |
| <!-- All tests are integration tests as far as Maven is concerned. --> |
| </includes> |
| |
| <excludes> |
| <exclude>**/slowtest/**</exclude> |
| <exclude>**/integration/**</exclude> |
| </excludes> |
| |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| |
| <!-- *** HACK ALERT *** HACK ALERT *** HACK ALERT *** --> |
| <!-- Failsafe 2.18 has a bug in computing # cores, so use 2.17 --> |
| <version>2.17</version><!--$NO-MVN-MAN-VER$--> |
| <!-- *** END HACK *** --> |
| |
| <executions> |
| <execution> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| |
| <!-- STDERR/STDOUT to individual .txt files instead of console --> |
| <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| |
| <!-- Tests are grouped into suites, one suite per package. --> |
| <parallel>suites</parallel> |
| <threadCount>1</threadCount> |
| |
| <!-- 2 processes per test --> |
| <forkCount>0.5C</forkCount> |
| <reuseForks>false</reuseForks> |
| |
| <!-- Last argument prevents Java from popping up lots of windows on |
| MacOS --> |
| <argLine>-Dfile.encoding=UTF-8 -Xmx2g -Xms2g -Xmn200m |
| ${integrationTestExtraJVMArgs} |
| -Djava.awt.headless=true</argLine> |
| |
| <includes> |
| <include>**/integration/applications/**/*Suite.java</include> |
| <include>**/integration/functions/gdfo/*Suite.java</include> |
| <include>**/integration/functions/sparse/*Suite.java</include> |
| <include>**/integration/functions/**/*Test*.java</include> |
| <include>**/integration/mlcontext/*Suite.java</include> |
| <include>**/integration/scalability/**/*Test.java</include> |
| </includes> |
| |
| <excludes> |
| <exclude>**/slowtest/**</exclude> |
| </excludes> |
| |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-clean-plugin</artifactId> |
| <version>3.0.0</version> |
| <executions> |
| <execution> |
| <id>clean-original-jar</id> |
| <phase>package</phase> |
| <goals> |
| <goal>clean</goal> |
| </goals> |
| <configuration> |
| <excludeDefaultDirectories>true</excludeDefaultDirectories> |
| <filesets> |
| <fileset> |
| <directory>${project.build.directory}</directory> |
| <includes> |
| <include>original-*.jar</include> |
| </includes> |
| </fileset> |
| </filesets> |
| </configuration> |
| </execution> |
| <execution> |
| <!-- remove antlr tokens files during initialize phase so antlr4 --> |
| <!-- plugin can regenerate them during generate-sources phase --> |
| <id>remove-antlr-tokens-files</id> |
| <phase>initialize</phase> |
| <goals> |
| <goal>clean</goal> |
| </goals> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>src/main/java</directory> |
| <includes> |
| <include>*.tokens</include> |
| </includes> |
| </fileset> |
| </filesets> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.4</version><!--$NO-MVN-MAN-VER$--> |
| <configuration> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| </configuration> |
| <executions> |
| <execution> |
| <id>create-main-jar</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/assembly/jar.xml</descriptor> |
| </descriptors> |
| <appendAssemblyId>false</appendAssemblyId> |
| <archive> |
| <manifest> |
| <mainClass>org.apache.sysml.api.DMLScript</mainClass> |
| </manifest> |
| </archive> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.8</version> |
| <executions> |
| <execution> |
| <id>copy</id> |
| <phase>package</phase> |
| <configuration> |
| <target name="copy and rename JAR"> |
| <copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar" tofile="${project.build.directory}/SystemML.jar" /> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| </plugins> |
| |
| </build> |
| |
| |
| <profiles> |
| <profile> |
| <id>scala-2.10</id> |
| <properties> |
| <scala.version>2.10.5</scala.version> |
| <scala.binary.version>2.10</scala.binary.version> |
| </properties> |
| </profile> |
| |
| <profile> |
| <id>scala-2.11</id> |
| <properties> |
| <scala.version>2.11.8</scala.version> |
| <scala.binary.version>2.11</scala.binary.version> |
| </properties> |
| </profile> |
| |
| <profile> |
| <!-- Profile for Windows builds. Not currently needed, but might be needed |
| in the future. --> |
| <id>platform-windows</id> |
| <activation> |
| <os> |
| <family>windows</family> |
| </os> |
| </activation> |
| <properties> |
| <!-- Extra JVM args for Windows go here.--> |
| <integrationTestExtraJVMArgs /> |
| </properties> |
| </profile> |
| |
| <profile> |
| <id>eclipse-only</id> |
| <activation> |
| <property> |
| <name>m2e.version</name> |
| </property> |
| </activation> |
| <build> |
| <pluginManagement> |
| <plugins> |
| <!-- Prevent m2e warnings about the use of maven-remote-resources-plugin |
| in the Maven archetype that we currently use for this project. --> |
| <plugin> |
| <groupId>org.eclipse.m2e</groupId> |
| <artifactId>lifecycle-mapping</artifactId> |
| <version>1.0.0</version> |
| <configuration> |
| <lifecycleMappingMetadata> |
| <pluginExecutions> |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-remote-resources-plugin</artifactId> |
| <versionRange>[1.0,)</versionRange> |
| <goals> |
| <goal>process</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore> |
| </ignore> |
| </action> |
| </pluginExecution> |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| <versionRange>[3.0.0,)</versionRange> |
| <goals> |
| <goal>clean</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore> |
| </ignore> |
| </action> |
| </pluginExecution> |
| </pluginExecutions> |
| </lifecycleMappingMetadata> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>rat</id> |
| <build> |
| <defaultGoal>clean org.apache.rat:apache-rat-plugin:check</defaultGoal> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <version>0.11</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <excludes> |
| <exclude>.gitignore</exclude> |
| <exclude>.repository/</exclude> |
| <exclude>.idea/</exclude> |
| <exclude>.git</exclude> |
| <exclude>.settings</exclude> |
| <exclude>.classpath</exclude> |
| <exclude>.project</exclude> |
| <exclude>docs</exclude> |
| <exclude>**/docs/**</exclude> |
| <exclude>**/*.csv</exclude> |
| <exclude>**/*.ijv</exclude> |
| <exclude>**/*.json</exclude> |
| <exclude>**/*.mtx</exclude> |
| <exclude>**/*.mtd</exclude> |
| <exclude>**/target/**</exclude> |
| <exclude>**/README.md</exclude> |
| <!-- Jupyter Notebooks --> |
| <exclude>**/*.ipynb</exclude> |
| <!-- Generated antlr files --> |
| <exclude>src/main/java/*.tokens</exclude> |
| <!-- Test Validation files --> |
| <exclude>src/test/scripts/functions/external/kMeans/kMeansWrapperOutput</exclude> |
| <exclude>src/test/scripts/functions/external/kMeans2/kMeansWrapperOutput1</exclude> |
| <exclude>src/test/scripts/functions/external/kMeans2/kMeansWrapperOutput2</exclude> |
| <exclude>src/test/scripts/functions/external/seqMiner/FreqSeqFile</exclude> |
| <exclude>src/test/scripts/functions/external/seqMiner/FreqSeqSupportFile</exclude> |
| <exclude>src/test/scripts/functions/io/csv/in/transfusion_1.data</exclude> |
| <exclude>src/test/scripts/functions/io/csv/in/transfusion_1.data.single</exclude> |
| <exclude>src/test/scripts/functions/io/csv/in/transfusion_2.data/part-0</exclude> |
| <exclude>src/test/scripts/functions/io/csv/in/transfusion_2.data/part-1</exclude> |
| <exclude>src/test/scripts/functions/io/csv/in/transfusion_2.data.single</exclude> |
| <exclude>src/test/scripts/functions/io/csv/in/transfusion_3.data/part-0</exclude> |
| <exclude>src/test/scripts/functions/io/csv/in/transfusion_3.data/part-1</exclude> |
| <exclude>src/test/scripts/functions/io/csv/in/transfusion_3.data.single</exclude> |
| <exclude>src/test/scripts/functions/jmlc/**/*.impute</exclude> |
| <exclude>src/test/scripts/functions/jmlc/**/*.map</exclude> |
| <exclude>src/test/scripts/functions/jmlc/**/*.mode</exclude> |
| <exclude>src/test/scripts/functions/jmlc/**/*.ndistinct</exclude> |
| <exclude>src/test/scripts/functions/jmlc/**/*.node</exclude> |
| <exclude>src/test/scripts/functions/jmlc/tfmtd_example/Bin/saleprice.bin</exclude> |
| <exclude>src/test/scripts/functions/jmlc/tfmtd_example/Bin/sqft.bin</exclude> |
| <exclude>src/test/scripts/functions/jmlc/tfmtd_example/column.names</exclude> |
| <exclude>src/test/scripts/functions/jmlc/tfmtd_example/dummycoded.column.names</exclude> |
| <exclude>src/test/scripts/functions/jmlc/tfmtd_example2/column.names</exclude> |
| <exclude>src/test/scripts/functions/jmlc/tfmtd_frame_example/tfmtd_frame</exclude> |
| <exclude>src/test/scripts/functions/transform/input/homes/homesNAN.csv.colnames</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <!-- Need to ignore doclint warnings for javadocs generated on Java 8 until warnings are fixed --> |
| <id>ignore-doclint-warnings-for-javadocs-on-java-8</id> |
| <activation> |
| <jdk>[1.8,)</jdk> |
| </activation> |
| <properties> |
| <javadoc.opts>-Xdoclint:none</javadoc.opts> |
| </properties> |
| </profile> |
| |
| <profile> |
| <!-- Profile to create binary distributions. |
| Execute with `mvn clean package -P distribution` --> |
| <id>distribution</id> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.4</version><!--$NO-MVN-MAN-VER$--> |
| <configuration> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| </configuration> |
| <executions> |
| <execution> |
| <id>create-source-distribution-assembly</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/assembly/source.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| |
| <execution> |
| <id>create-binary-cluster-distribution-assembly</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/assembly/distrib.xml</descriptor> |
| </descriptors> |
| <appendAssemblyId>false</appendAssemblyId> |
| </configuration> |
| </execution> |
| |
| <execution> |
| <id>create-binary-standalone-distribution-assembly</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/assembly/standalone.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| |
| <!--execution> |
| <id>create-inmemory-jar</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/assembly/inmemory.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution--> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-gpg-plugin</artifactId> |
| <version>1.6</version> |
| <executions> |
| <execution> |
| <phase>verify</phase> |
| <goals> |
| <goal>sign</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>2.4</version> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <goals> |
| <goal>jar-no-fork</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-remote-resources-plugin</artifactId> |
| <version>1.4</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>process</goal> |
| </goals> |
| <configuration> |
| <resourceBundles> |
| <!-- Will generate META-INF/DEPENDENCIES META-INF/LICENSE META-INF/NOTICE --> |
| <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle> |
| <!-- Will generate META-INF/DISCLAIMER --> |
| <resourceBundle>org.apache:apache-incubator-disclaimer-resource-bundle:1.1</resourceBundle> |
| </resourceBundles> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>2.10.3</version> |
| <configuration> |
| <!-- Need to include the following packages, so exclude others: |
| org.apache.sysml.api |
| org.apache.sysml.runtime.instructions.spark.utils (for RDDConverterUtils, etc) |
| org.apache.sysml.runtime.matrix (for MatrixCharacteristics, etc) |
| org.apache.sysml.runtime.matrix.data (for MatrixIndexes, MatrixBlock, etc) |
| org.apache.sysml.udf |
| --> |
| <excludePackageNames>org.apache.sysml.conf:org.apache.sysml.debug:org.apache.sysml.hops:org.apache.sysml.lops:org.apache.sysml.parser:org.apache.sysml.runtime.controlprogram:org.apache.sysml.runtime.functionobjects:org.apache.sysml.runtime.instructions.cp:org.apache.sysml.runtime.instructions.cpfile:org.apache.sysml.runtime.instructions.mr:org.apache.sysml.runtime.instructions.spark.data:org.apache.sysml.runtime.instructions.spark.functions:org.apache.sysml.runtime.io:org.apache.sysml.runtime.matrix.data.hadoopfix:org.apache.sysml.runtime.matrix.mapred:org.apache.sysml.runtime.matrix.operators:org.apache.sysml.runtime.matrix.sort:org.apache.sysml.runtime.transform:org.apache.sysml.runtime.util:org.apache.sysml.utils:org.apache.sysml.yarn</excludePackageNames> |
| <additionalparam>${javadoc.opts}</additionalparam> |
| </configuration> |
| <executions> |
| <execution> |
| <id>attach-javadocs</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| |
| <profile> |
| <!-- Profile to create standalone jar. |
| Execute with `mvn clean package -P standalone-jar` --> |
| <id>standalone-jar</id> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.4</version><!--$NO-MVN-MAN-VER$--> |
| <configuration> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| </configuration> |
| <executions> |
| <execution> |
| <id>create-standalone-jar</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/assembly/standalone-jar.xml</descriptor> |
| </descriptors> |
| <archive> |
| <index>true</index> |
| <manifest> |
| <mainClass>org.apache.sysml.api.DMLScript</mainClass> |
| </manifest> |
| </archive> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| |
| <dependencies> |
| |
| <!-- For GPU backend |
| Use org.mystic:mavenized-jcuda until Alan puts org.jcuda:* |
| --> |
| <dependency> |
| <groupId>org.mystic</groupId> |
| <artifactId>mavenized-jcuda</artifactId> |
| <version>0.7.5b</version> |
| <type>jar</type> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- Since there is no mvn repo for jcuda |
| <dependency> |
| <groupId>org.jcuda</groupId> |
| <artifactId>jcuda</artifactId> |
| <version>0.7.5b</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jcuda</groupId> |
| <artifactId>jcublas</artifactId> |
| <version>0.7.5b</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jcuda</groupId> |
| <artifactId>jcusparse</artifactId> |
| <version>0.7.5b</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jcuda</groupId> |
| <artifactId>jcudnn</artifactId> |
| <version>0.7.5</version> |
| <scope>provided</scope> |
| </dependency> |
| --> |
| <!-- ************************* --> |
| |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-core_${scala.binary.version}</artifactId> |
| <version>${spark.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-mllib_${scala.binary.version}</artifactId> |
| <version>${spark.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- To support dataframe in mlcontext --> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-sql_${scala.binary.version}</artifactId> |
| <version>${spark.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Adding Gauva version 14.0.1 to workaround conflict between spark and hadoop dependency --> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>14.0.1</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| <version>${hadoop.version}</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-hdfs</artifactId> |
| <version>${hadoop.version}</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-client</artifactId> |
| <version>${hadoop.version}</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-mapreduce-client-app</artifactId> |
| <version>${hadoop.version}</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-mapreduce-client-jobclient</artifactId> |
| <version>${hadoop.version}</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| <version>1.1.1</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-math3</artifactId> |
| <version>3.1.1</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <version>1.2.15</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>com.sun.jmx</groupId> |
| <artifactId>jmxri</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jdmk</groupId> |
| <artifactId>jmxtools</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.jms</groupId> |
| <artifactId>jms</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>net.sf.opencsv</groupId> |
| <artifactId>opencsv</artifactId> |
| <version>1.8</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.wink</groupId> |
| <artifactId>wink-json4j</artifactId> |
| <version>1.4</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.11</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>stax</groupId> |
| <artifactId>stax-api</artifactId> |
| <version>1.0.1</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>commons-collections</groupId> |
| <artifactId>commons-collections</artifactId> |
| <version>3.2.1</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.antlr</groupId> |
| <artifactId>antlr4</artifactId> |
| <version>${antlr.version}</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <artifactId>antlr-runtime</artifactId> |
| <groupId>org.antlr</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.antlr</groupId> |
| <artifactId>antlr4-runtime</artifactId> |
| <version>${antlr.version}</version> |
| </dependency> |
| |
| <!-- Libraries for yarn integration --> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-yarn-api</artifactId> |
| <version>${hadoop.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-yarn-common</artifactId> |
| <version>${hadoop.version}</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-yarn-client</artifactId> |
| <version>${hadoop.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-mapreduce-client-common</artifactId> |
| <version>${hadoop.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scala-library</artifactId> |
| <version>${scala.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scalap</artifactId> |
| <version>${scala.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.scalatest</groupId> |
| <artifactId>scalatest_${scala.binary.version}</artifactId> |
| <version>${scala.test.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>1.9.5</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| </project> |