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 - 結果是相同的。