Build Requires tag

2012-03-16 Thread enarkri

Hi,
I am creating an RPM package using rpm-maven-plugin.
During the generation of the SPEC file,  I would want to have the 
BUILDREQUIRES tag also to be printed in the SPEC file.  Is it 
possible? If so how?



Naren


Re: RPMs for Maven 3?

2012-03-16 Thread Stanislav Ochotnicky
Quoting Jos Backus (2012-03-15 21:04:00)
Hi,

I'm trying to install Maven 3 in automatically generated CentOS VM
images, and having Maven 3 and plugins available as RPMs would help
greatly with this effort.

How hard would it be to augment the CI setup that creates the Maven
packages today to also generate RPMs for RHEL/CentOS? Perhaps the
Maven RPM plugin (http://mojo.codehaus.org/rpm-maven-plugin/) can be
used for this purpose?

I looked at jpackage.org but the latest Maven version there is too old (2.0.7).

Depending on your needs for using exact upstream (meaning Apache)
version or not you *might* have luck trying to use Fedora binary rpms on
your CentOS machine. I haven't tried this, but with a 1 or 2 rebuilds it
might work. You'd have to create your own rpm repo for this probably and
do a few tweaks here and there. Biggest issue would probably be that
some of our current binary rpms in F17 and rawhide are built using
OpenJDK 7 with target set to 1.7 so you won't be able to use them with
1.6 VM.

We do have 3.0.4 currently and quite a few plugins, but if you go this
way I'd suggest to ask questions on java-devel at lists.fedoraproject.org. 

-- 
Stanislav Ochotnicky sochotni...@redhat.com
Software Engineer - Base Operating Systems Brno

PGP: 7B087241
Red Hat Inc.   http://cz.redhat.com

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: Build Requires tag

2012-03-16 Thread Stanislav Ochotnicky
Quoting enarkri (2012-03-16 09:27:12)
Hi,
I am creating an RPM package using rpm-maven-plugin.
During the generation of the SPEC file,  I would want to have the 
BUILDREQUIRES tag also to be printed in the SPEC file.  Is it 
possible? If so how?

From maven-rpm-plugin docs:
  In particular, source RPMs can not be generated and the spec files which
  are used do not do any build process (the plugin collects the files and
  installs them for packaging).

This would suggest that resulting spec files are not suitable for
rebuilding the package from scratch and therefore BuildRequires tag is
pointless in them. 

I assume you have a specific use-case, but it doesn't seem valid from
the information you provided. Why do you want to rebuild the rpm after
the maven-rpm-plugin is done with it?


-- 
Stanislav Ochotnicky sochotni...@redhat.com
Software Engineer - Base Operating Systems Brno

PGP: 7B087241
Red Hat Inc.   http://cz.redhat.com

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: [VOTE] Apache Maven Shade Plugin 1.6

2012-03-16 Thread Benson Margulies
+1

On Thu, Mar 15, 2012 at 9:02 PM, Hervé BOUTEMY herve.bout...@free.fr wrote:
 +1

 Hervé

 Le jeudi 15 mars 2012 10:56:34 Olivier Lamy a écrit :
 Hello,
 I'd like to release Apache Maven Shade Plugin 1.6.

 We fixed 6 issues:

 https://jira.codehaus.org/secure/ReleaseNote.jspa?version=18042styleName=Te
 xtprojectId=11540Create=Create

 Staging repo: https://repository.apache.org/content/repositories/maven-078/
 Staged site: http://maven.apache.org/plugins/maven-shade-plugin-1.6

 [-1]
 [0]
 [+1]



 Thanks,

 -
 To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
 For additional commands, e-mail: dev-h...@maven.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: RPMs for Maven 3?

2012-03-16 Thread Chris Graham
I would also point out that the plugins do not need packaging, as maven will 
download them. Only the base distribution needs to be RPM'd.

Sent from my iPhone

On 16/03/2012, at 9:46 PM, Stanislav Ochotnicky sochotni...@redhat.com wrote:

 Quoting Jos Backus (2012-03-15 21:04:00)
 Hi,
 
 I'm trying to install Maven 3 in automatically generated CentOS VM
 images, and having Maven 3 and plugins available as RPMs would help
 greatly with this effort.
 
 How hard would it be to augment the CI setup that creates the Maven
 packages today to also generate RPMs for RHEL/CentOS? Perhaps the
 Maven RPM plugin (http://mojo.codehaus.org/rpm-maven-plugin/) can be
 used for this purpose?
 
 I looked at jpackage.org but the latest Maven version there is too old 
 (2.0.7).
 
 Depending on your needs for using exact upstream (meaning Apache)
 version or not you *might* have luck trying to use Fedora binary rpms on
 your CentOS machine. I haven't tried this, but with a 1 or 2 rebuilds it
 might work. You'd have to create your own rpm repo for this probably and
 do a few tweaks here and there. Biggest issue would probably be that
 some of our current binary rpms in F17 and rawhide are built using
 OpenJDK 7 with target set to 1.7 so you won't be able to use them with
 1.6 VM.
 
 We do have 3.0.4 currently and quite a few plugins, but if you go this
 way I'd suggest to ask questions on java-devel at lists.fedoraproject.org. 
 
 -- 
 Stanislav Ochotnicky sochotni...@redhat.com
 Software Engineer - Base Operating Systems Brno
 
 PGP: 7B087241
 Red Hat Inc.   http://cz.redhat.com
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
 For additional commands, e-mail: dev-h...@maven.apache.org
 

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: [VOTE] Apache Maven Shade Plugin 1.6

2012-03-16 Thread Stephen Connolly
+1

-Stephen

On 15 March 2012 09:56, Olivier Lamy ol...@apache.org wrote:
 Hello,
 I'd like to release Apache Maven Shade Plugin 1.6.

 We fixed 6 issues:

 https://jira.codehaus.org/secure/ReleaseNote.jspa?version=18042styleName=TextprojectId=11540Create=Create

 Staging repo: https://repository.apache.org/content/repositories/maven-078/
 Staged site: http://maven.apache.org/plugins/maven-shade-plugin-1.6

 [-1]
 [0]
 [+1]



 Thanks,
 --
 Olivier Lamy
 Talend: http://coders.talend.com
 http://twitter.com/olamy | http://linkedin.com/in/olamy

 -
 To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
 For additional commands, e-mail: dev-h...@maven.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: RPMs for Maven 3?

2012-03-16 Thread Aleksandar Kurtakov


- Original Message -
 From: Chris Graham chrisgw...@gmail.com
 To: Maven Developers List dev@maven.apache.org
 Sent: Friday, March 16, 2012 1:42:37 PM
 Subject: Re: RPMs for Maven 3?
 
 I would also point out that the plugins do not need packaging, as
 maven will download them. Only the base distribution needs to be
 RPM'd.

Well, there are variety of cases when builds are required to happen offline in 
which case having the plugins packaged is mandatory. Not for every use case but 
this needs to be pointed out too.

Alex

 
 Sent from my iPhone
 
 On 16/03/2012, at 9:46 PM, Stanislav Ochotnicky
 sochotni...@redhat.com wrote:
 
  Quoting Jos Backus (2012-03-15 21:04:00)
  Hi,
  
  I'm trying to install Maven 3 in automatically generated CentOS VM
  images, and having Maven 3 and plugins available as RPMs would
  help
  greatly with this effort.
  
  How hard would it be to augment the CI setup that creates the
  Maven
  packages today to also generate RPMs for RHEL/CentOS? Perhaps the
  Maven RPM plugin (http://mojo.codehaus.org/rpm-maven-plugin/) can
  be
  used for this purpose?
  
  I looked at jpackage.org but the latest Maven version there is too
  old (2.0.7).
  
  Depending on your needs for using exact upstream (meaning Apache)
  version or not you *might* have luck trying to use Fedora binary
  rpms on
  your CentOS machine. I haven't tried this, but with a 1 or 2
  rebuilds it
  might work. You'd have to create your own rpm repo for this
  probably and
  do a few tweaks here and there. Biggest issue would probably be
  that
  some of our current binary rpms in F17 and rawhide are built using
  OpenJDK 7 with target set to 1.7 so you won't be able to use them
  with
  1.6 VM.
  
  We do have 3.0.4 currently and quite a few plugins, but if you go
  this
  way I'd suggest to ask questions on java-devel at
  lists.fedoraproject.org.
  
  --
  Stanislav Ochotnicky sochotni...@redhat.com
  Software Engineer - Base Operating Systems Brno
  
  PGP: 7B087241
  Red Hat Inc.   http://cz.redhat.com
  
  -
  To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
  For additional commands, e-mail: dev-h...@maven.apache.org
  
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
 For additional commands, e-mail: dev-h...@maven.apache.org
 
 

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: [VOTE] Apache Maven Shade Plugin 1.6

2012-03-16 Thread Mark Struberg
+1

LieGrue,
strub



- Original Message -
 From: Stephen Connolly stephen.alan.conno...@gmail.com
 To: Maven Developers List dev@maven.apache.org
 Cc: 
 Sent: Friday, March 16, 2012 1:10 PM
 Subject: Re: [VOTE] Apache Maven Shade Plugin 1.6
 
 +1
 
 -Stephen
 
 On 15 March 2012 09:56, Olivier Lamy ol...@apache.org wrote:
  Hello,
  I'd like to release Apache Maven Shade Plugin 1.6.
 
  We fixed 6 issues:
 
 
 https://jira.codehaus.org/secure/ReleaseNote.jspa?version=18042styleName=TextprojectId=11540Create=Create
 
  Staging repo: https://repository.apache.org/content/repositories/maven-078/
  Staged site: http://maven.apache.org/plugins/maven-shade-plugin-1.6
 
  [-1]
  [0]
  [+1]
 
 
 
  Thanks,
  --
  Olivier Lamy
  Talend: http://coders.talend.com
  http://twitter.com/olamy | http://linkedin.com/in/olamy
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
  For additional commands, e-mail: dev-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
 For additional commands, e-mail: dev-h...@maven.apache.org
 

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: [VOTE] Apache Maven Shade Plugin 1.6

2012-03-16 Thread Daniel Kulp


+1

Dan


On Thursday, March 15, 2012 10:56:34 AM Olivier Lamy wrote:
 Hello,
 I'd like to release Apache Maven Shade Plugin 1.6.
 
 We fixed 6 issues:
 
 https://jira.codehaus.org/secure/ReleaseNote.jspa?version=18042styleName=
 TextprojectId=11540Create=Create
 
 Staging repo:
 https://repository.apache.org/content/repositories/maven-078/ Staged
 site: http://maven.apache.org/plugins/maven-shade-plugin-1.6
 
 [-1]
 [0]
 [+1]
 
 
 
 Thanks,
-- 
Daniel Kulp
dk...@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: [VOTE] Apache Maven Shade Plugin 1.6

2012-03-16 Thread John Casey

+1

On 3/15/12 5:56 AM, Olivier Lamy wrote:

Hello,
I'd like to release Apache Maven Shade Plugin 1.6.

We fixed 6 issues:

https://jira.codehaus.org/secure/ReleaseNote.jspa?version=18042styleName=TextprojectId=11540Create=Create

Staging repo: https://repository.apache.org/content/repositories/maven-078/
Staged site: http://maven.apache.org/plugins/maven-shade-plugin-1.6

[-1]
[0]
[+1]



Thanks,



--
John Casey
Developer, PMC Chair - Apache Maven (http://maven.apache.org)
Blog: http://www.johnofalltrades.name/

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: RPMs for Maven 3?

2012-03-16 Thread Jos Backus
Hi Stanislav,

On Fri, Mar 16, 2012 at 3:46 AM, Stanislav Ochotnicky
sochotni...@redhat.com wrote:
 Quoting Jos Backus (2012-03-15 21:04:00)
Hi,

I'm trying to install Maven 3 in automatically generated CentOS VM
images, and having Maven 3 and plugins available as RPMs would help
greatly with this effort.

How hard would it be to augment the CI setup that creates the Maven
packages today to also generate RPMs for RHEL/CentOS? Perhaps the
Maven RPM plugin (http://mojo.codehaus.org/rpm-maven-plugin/) can be
used for this purpose?

I looked at jpackage.org but the latest Maven version there is too old 
(2.0.7).

 Depending on your needs for using exact upstream (meaning Apache)
 version or not you *might* have luck trying to use Fedora binary rpms on
 your CentOS machine. I haven't tried this, but with a 1 or 2 rebuilds it
 might work. You'd have to create your own rpm repo for this probably and
 do a few tweaks here and there. Biggest issue would probably be that
 some of our current binary rpms in F17 and rawhide are built using
 OpenJDK 7 with target set to 1.7 so you won't be able to use them with
 1.6 VM.

Okay, I will try to find the SRPM and rebuild it on my CentOS 6 box.

 We do have 3.0.4 currently and quite a few plugins, but if you go this
 way I'd suggest to ask questions on java-devel at lists.fedoraproject.org.

Thanks for the pointer and your response.

Cheers,
Jos

 --
 Stanislav Ochotnicky sochotni...@redhat.com
 Software Engineer - Base Operating Systems Brno

 PGP: 7B087241
 Red Hat Inc.                               http://cz.redhat.com



-- 
Jos Backus
jos at catnook.com

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: RPMs for Maven 3?

2012-03-16 Thread Jos Backus
On Fri, Mar 16, 2012 at 5:22 AM, Aleksandar Kurtakov
akurt...@redhat.com wrote:


 - Original Message -
 From: Chris Graham chrisgw...@gmail.com
 To: Maven Developers List dev@maven.apache.org
 Sent: Friday, March 16, 2012 1:42:37 PM
 Subject: Re: RPMs for Maven 3?

 I would also point out that the plugins do not need packaging, as
 maven will download them. Only the base distribution needs to be
 RPM'd.

 Well, there are variety of cases when builds are required to happen offline 
 in which case having the plugins packaged is mandatory. Not for every use 
 case but this needs to be pointed out too.

True. I'm am trying to set up a self-contained build environment but
we have Maven supported repositories on-site so I'm going to assume
that we can store any plugins there, the idea being that we configure
things such that only the local repositories will be queried. I'd hate
to duplicate the packaging infrastructure that's already present and
working.

Thanks,
Jos


 Alex


 Sent from my iPhone

 On 16/03/2012, at 9:46 PM, Stanislav Ochotnicky
 sochotni...@redhat.com wrote:

  Quoting Jos Backus (2012-03-15 21:04:00)
  Hi,
 
  I'm trying to install Maven 3 in automatically generated CentOS VM
  images, and having Maven 3 and plugins available as RPMs would
  help
  greatly with this effort.
 
  How hard would it be to augment the CI setup that creates the
  Maven
  packages today to also generate RPMs for RHEL/CentOS? Perhaps the
  Maven RPM plugin (http://mojo.codehaus.org/rpm-maven-plugin/) can
  be
  used for this purpose?
 
  I looked at jpackage.org but the latest Maven version there is too
  old (2.0.7).
 
  Depending on your needs for using exact upstream (meaning Apache)
  version or not you *might* have luck trying to use Fedora binary
  rpms on
  your CentOS machine. I haven't tried this, but with a 1 or 2
  rebuilds it
  might work. You'd have to create your own rpm repo for this
  probably and
  do a few tweaks here and there. Biggest issue would probably be
  that
  some of our current binary rpms in F17 and rawhide are built using
  OpenJDK 7 with target set to 1.7 so you won't be able to use them
  with
  1.6 VM.
 
  We do have 3.0.4 currently and quite a few plugins, but if you go
  this
  way I'd suggest to ask questions on java-devel at
  lists.fedoraproject.org.
 
  --
  Stanislav Ochotnicky sochotni...@redhat.com
  Software Engineer - Base Operating Systems Brno
 
  PGP: 7B087241
  Red Hat Inc.                               http://cz.redhat.com
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
  For additional commands, e-mail: dev-h...@maven.apache.org
 

 -
 To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
 For additional commands, e-mail: dev-h...@maven.apache.org



 -
 To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
 For additional commands, e-mail: dev-h...@maven.apache.org




-- 
Jos Backus
jos at catnook.com

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org