2
我试图在rpm-maven-plugin的帮助下创建一个rpm包。Maven RPM插件不会生成指定的脚本
一切顺利,直到我试图把它生成%的预小脚本(或任何与此有关的scriptlet)
pom.xml中摘录:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.0-beta-2</version>
<executions>
<execution>
<goals>
<goal>attached-rpm</goal>
</goals>
</execution>
</executions>
<configuration>
<copyright>Copyright 2010 XXX, Inc. All rights reserved</copyright>
<vendor>XXX, Inc.</vendor>
<group>Applications/System</group>
<packager>${env.USER}</packager>
<needarch>true</needarch>
<prefix>/usr/xxx</prefix>
<mappings></mappings>
<preinstallScriptlet>
<script>echo "installing now"</script>
</preinstallScriptlet>
</configuration>
</plugin>
...而产生规范文件是:
Name: Server
Version: 1.0.0.0
Release: 01_1
Summary: Server Maven Webapp
License: Copyright 2010 XXX, Inc. All rights reserved
Vendor: XXX, Inc.
Group: Applications/System
Packager: yaneeve
Prefix: /usr/xxx
BuildRoot: ....../target/rpm/buildroot
%description
Server
%files
注意:映射标记确实会生成相关映射,但为清晰起见,此处已删除。无论哪种方式 - sciptlets不会生成。
任何输入?
感谢所有
EDIT 1:
内置既Maven的2和3 - 结果是相同的。