| <?xml version="1.0"?> |
| |
| <!-- |
| 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.mnemonic</groupId> |
| <artifactId>mnemonic-memory-services</artifactId> |
| <version>0.12.0</version> |
| </parent> |
| |
| <artifactId>mnemonic-nvml-vmem-service</artifactId> |
| <name>mnemonic-nvml-vmem-service</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/native/dist</directory> |
| </resource> |
| <resource> |
| <directory>src/main/resources</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>build-native</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <echo>Java Home: ${java.home}</echo> |
| <mkdir dir="src/main/native/build" /> |
| <exec dir="src/main/native/build" executable="cmake" failonerror="true"> |
| <arg value=".." /> |
| </exec> |
| <exec dir="src/main/native/build" executable="make" failonerror="true"> |
| <env key="JAVA_HOME" value="${java.home}/.." /> |
| </exec> |
| </target> |
| </configuration> |
| </execution> |
| <execution> |
| <id>clean-native</id> |
| <phase>clean</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <delete dir="src/main/native/build" /> |
| <delete dir="src/main/native/dist" /> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-scm-publish-plugin</artifactId> |
| <configuration> |
| <checkoutDirectory>${project.build.directory}/scmpublish</checkoutDirectory> |
| <checkinComment>Publishing javadoc for ${project.artifactId}:${project.version}</checkinComment> |
| <content>${project.reporting.outputDirectory}/apidocs</content> |
| <skipDeletedFiles>true</skipDeletedFiles> |
| <pubScmUrl>scm:git:https://github.com/bigdata-memory/mnenomic-project.git</pubScmUrl> |
| <scmBranch>gh-pages</scmBranch> <!-- branch with static site --> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>doc</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <aggregate>true</aggregate> |
| <show>public</show> |
| <nohelp>true</nohelp> |
| <header>Mnenomic-VMemAllocator, ${project.version}</header> |
| <footer>Mnenomic-VMemAllocator, ${project.version}</footer> |
| <doctitle>Mnenomic, ${project.version}</doctitle> |
| <links> |
| <link>http://static.springsource.org/spring/docs/3.0.x/javadoc-api/</link> |
| <additionalparam>-Xdoclint:all -Xdoclint:-missing</additionalparam> |
| </links> |
| </configuration> |
| <executions> |
| <execution> |
| <id>attach-javadocs</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>test</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <argLine>-Xmx2g -XX:MaxPermSize=1g</argLine> |
| <suiteXmlFiles> |
| <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile> |
| </suiteXmlFiles> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| |
| </project> |