我想生成一个简单的 rpm,但 rpm 目标失败并出现以下错误
[INFO] --- rpm-maven-plugin:2.1x:rpm (default) @ private ---
[INFO] Creating spec file C:\apps\eclipse\workspaces\algo-ws-new\private\target\rpm\SPECS\private.spec
SHARDA. in buildPackage....
ERROR!!!!SGSBASE value is not set.Hence exitting
这是插件配置
<build>
<plugins>
<!-- create RPM -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.1x</version>
<extensions>true</extensions>
<executions>
<execution>
<phase>package</phase>
<configuration>
<copyright>2012</copyright>
<distribution>myproj</distribution>
<group>System</group>
<packager>Internal</packager>
<version>1.0</version>
<release>1.0.1</release>
<prefix>/opt/myproj</prefix>
<mappings>
</mappings>
</configuration>
<goals>
<goal>rpm</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Java 版本:1.6.0_27,供应商:Sun Microsystems Inc.
Java 主页:C:\Program Files\Java\jdk1.6.0_27\jre
默认语言环境:en_GB,平台编码:Cp1252
操作系统名称:“windows xp”,版本:“5.1”,arch:“x86”,系列:“windows”