maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: Minimum RPM Version for rpm-maven-plugin?
Date Thu, 09 Apr 2015 20:04:36 GMT
On Thursday, April 9, 2015, Steve Cohen <scohen@javactivity.org> wrote:

> I think that both of these solutions (Karl's and Stephen's) fall short
> because the redline:rpm ant task does some opaque magic to name the rpm.
> Therefore it is impossible to specify other than by hardcoding the name of
> the archive you want to attach and the maven plugins (buildhelper and
> antrun) aren't flexible enough to accept wildcards.


I think you can do some trickery with ant's properties (as they are write
once) and use the antrun built in support as a stop-gap


>
> See  http://redline-rpm.org/usage.html under Ant where it states:
> "this build script creates a new RPM file named test-1.2.3-1.noarch.rpm".
>
> The "-1" appears to be added to the name by redline-rpm (how you would
> make it something else like -2 isn't stated) as is "noarch" but that isn't
> a problem as noarch can probably be assumed for most java projects.
>
> This would be much better, I think, if the redline rpm logic were released
> as a maven mojo.


I agree, but for now you'll just have to up your ANT foo


>
> Unless I'm missing something ... which I very well could be.
>
> On 04/09/2015 02:13 PM, Stephen Connolly wrote:
>
>> If you are using antrun anyway you might as well just use the ant task it
>> injects to ant to allow attaching artifacts...
>>
>> http://maven.apache.org/plugins/maven-antrun-plugin/
>> tasks/attachArtifact.html
>>
>> On Thursday, April 9, 2015, Karl Heinz Marbaise <khmarbaise@gmx.de>
>> wrote:
>>
>>  Hi Steve,
>>>
>>> simplest solution would be to use buildhelper-maven-plugin to attach the
>>> artifact and it will be deployed to a repository...
>>>
>>> Kind regards
>>> Karl Heinz Marbaise
>>> On 4/9/15 3:57 PM, Steve Cohen wrote:
>>>
>>>  Thanks for this tip, Mark.  It meets the need even though it is a bit
>>>> rough around the edges, the need to involve ant at this point, etc.
>>>> One question I have: is there a way to have the rpm that gets built
>>>> installed into the repo, deployed, etc.  As it stands now, only the
>>>> intermediate archives (jar) are being installed in my setup.
>>>>
>>>> On 04/06/2015 09:16 PM, Mark Derricutt wrote:
>>>>
>>>>  On 7 Apr 2015, at 10:07, Dan Tran wrote:
>>>>>
>>>>>   I can run rpm-m-p at Linux sles 11 and 12,  and rpmbuild executable
>>>>> is
>>>>>
>>>>>> required
>>>>>>
>>>>>>
>>>>> We use redline-rpm ant tasks - pure-jvm RPM implementation.  The
>>>>> forums mention 3-4 people have in the past made 'private' maven
>>>>> plugins, but no ones yet open sources one.
>>>>>
>>>>> http://redline-rpm.org/usage.html
>>>>>
>>>>>
>>>>>
>>>>>  ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

-- 
Sent from my phone

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message