mathout编译

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zxl1033394132/article/details/53011475

1、获取源码
从apache.fayea.com下获取mathout的的tar包:
wget http://apache.fayea.com/mahout/0.12.2/apache-mahout-distribution-0.12.2.tar.gz
2、解压
tar -zxvf apache-mahout-distribution-0.12.2.tar.gz
3、重命名 mv apache-mahout-distribution-0.12.2.tar.gz mahout
4、编辑pom.xml

<?xml version="1.0" encoding="UTF-8"?>

-<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">


-<properties>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

</properties>

<modelVersion>4.0.0</modelVersion>

<groupId>com.mathout</groupId>

<artifactId>mathout</artifactId>

<version>0.12.2</version>

<packaging>pom</packaging>


-<build>


-<plugins>


-<plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>rpm-maven-plugin</artifactId>

<version>2.1.2</version>


-<executions>


-<execution>

<!-- unbinds rpm creation from maven lifecycle -->


<id>generate-rpm</id>


-<goals>

<goal>rpm</goal>

</goals>

</execution>

</executions>


-<configuration>

<copyright>2012, Apache Software Foundation</copyright>

<group>Development</group>

<defaultFilemode>755</defaultFilemode>

<defaultDirmode>755</defaultDirmode>

<group>Developer</group>


-<mappings>


-<mapping>

<directory>/usr/lib/mathout</directory>

<username>mathout</username>

<groupname>hadoop</groupname>


-<sources>


-<source>

<location>./mathout</location>

</source>

</sources>

</mapping>


-<mapping>

<directory>/etc/mathout/conf</directory>

<username>mathout</username>

<groupname>hadoop</groupname>


-<sources>


-<source>

<location>./mathout/conf</location>

</source>

</sources>

</mapping>


-<mapping>

<directory>/var/run/mathout</directory>

<username>mathout</username>

<groupname>hadoop</groupname>


-<sources>


-<source>

<location>./mathout/run</location>

</source>

</sources>

</mapping>


-<mapping>

<directory>/var/log/mathout</directory>

<username>mathout</username>

<groupname>hadoop</groupname>


-<sources>


-<source>

<location>./mathout/log</location>

</source>

</sources>

</mapping>


-<mapping>

<directory>/usr/bin</directory>

<username>mathout</username>

<groupname>hadoop</groupname>


-<sources>


-<softlinkSource>

<location>/usr/lib/mathout/bin/mathout</location>

</softlinkSource>

</sources>

</mapping>

</mappings>

</configuration>

</plugin>

</plugins>

</build>

</project>

4.执行编译命令;mvn rpm:rpm;
5、rpm包在target/rpm/mathout/RPMS/noarch下

猜你喜欢

转载自blog.csdn.net/zxl1033394132/article/details/53011475
今日推荐