我正在尝试使用cygwin maven来构建一个rpm(按照http://tim-perry.co.uk/blog/2012/11/22/building_rpms_on_windows_with_maven中的步骤进行操作),并得到以下错误:
[ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-3:rpm (default-rpm) on project my-project: RPM query for default vendor returned: '-1073741819' executing 'cmd.exe /X /C "rpm -E %{_host_vendor}"' -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-3:rpm (default-rpm) on project my-project: RPM query for default vendor returned: '-1073741819' executing 'cmd.exe /X /C "rpm -E %{_host_vendor}"'
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
...
Caused by: org.apache.maven.plugin.MojoExecutionException: RPM query for default vendor returned: '-1073741819' executing 'cmd.exe /X /C "rpm -E %{_host_vendor}"'
at org.codehaus.mojo.rpm.RPMHelper.getHostVendor(RPMHelper.java:76)
at org.codehaus.mojo.rpm.AbstractRPMMojo.checkParams(AbstractRPMMojo.java:971)
at org.codehaus.mojo.rpm.AbstractRPMMojo.execute(AbstractRPMMojo.java:770)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
所以我尝试在cygwin中直接执行cmd以下并获得“Segmentation fault”:
$ cmd.exe /X /C "rpm -E %{_host_vendor}"
Segmentation fault
知道出了什么问题吗?似乎它可以找到rpm,但却无法执行命令。
感谢。
答案 0 :(得分:0)
我有完全相同的问题。
我有64位Win7,这个错误来自64位cygwin。当我安装cygwin 32bit时,它开始工作。