Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-beta-2
-
Component/s: rpm
-
Labels:None
Description
the maven-rpm-plugin should allow users to specify the target architecure. needsarch is insufficient.
Issue Links
- supercedes
-
MRPM-22
Various solutions for: MOJO-929, MOJO-972, MOJO-931
-
I have a fix for this (http://jira.codehaus.org/browse/MOJO-1125).
Under <configuaration> you can add a <targetArch> element:
<configuration>
...
<targetArch>x86_64</targetArch>
...
Also, each source element can be filtered by arch as well, like so:
...
<source>
<location>src/main/native/x86_64</location>
<targetArch>x86_64</targetArch>
</source>
<source>
<location>src/main/native/i586</location>
<targetArch>i586</targetArch>
</source>
...
This can be useful if you set a property for your targetArch (e.g. <targetArch>${target_arch}</targetArch>) and then pass the value in during build time.