Re: Is there any possibility to reduce the size of maven distribution

2017-11-09 Thread Kasun Siyambalapitiya
Hi Samuli,

Thank you for the quick response. But what I want is to reduce the size of
a given `maven` distribution (if possible) without losing the ability of
performing a successful build so that overall size of my application can be
reduced. (`maven` distribution is around 9MB)

Once again thank your for quickly responding :)

On Fri, Nov 10, 2017 at 12:07 PM, Samuli Saarinen <
samuli.saari...@remion.com> wrote:

> Hi,
>
> Could you use maven wrapper [1]? It obviously needs to download Maven from
> the interwebs when performing the build though.
>
> [1] https://github.com/takari/maven-wrapper
>
> br,
> Samuli
>
> > -Original Message-
> > From: Kasun Siyambalapitiya [mailto:kasu...@wso2.com]
> > Sent: 10. marraskuutata 2017 7:30
> > To: users@maven.apache.org
> > Subject: Is there any possibility to reduce the size of maven
> distribution
> >
> > Hi all,
> >
> > I am currently working on a project which packs `maven` distribution in
> > itself, so that the programme is capable of performing a `maven` build if
> > the running system is having `Java` pre installed. Since the `maven`
> > distribution (apache-maven-3.5.2-bin.zip) size is around 9MB the total
> > resultant output of the program becomes bulky. Is there any way to reduce
> > the size of the `maven` distribution by keeping only the libs which
> > required for performing the maven build.
> >
> > Thanks
> >
> > --
> > *Regards,*
> >
> > *Kasun Siyambalapitiya*
> > *Software Engineer*
> > WSO2 Inc. - http://wso2.com/
> > lean . enterprise . middleware
> > Tel : 0715523466
> > E mail : kasu...@wso2.com
> > Blog: https://medium.com/@kasunsiyambalapitiya
> > 
>



-- 
*Regards,*

*Kasun Siyambalapitiya*
*Software Engineer*
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
Tel : 0715523466
E mail : kasu...@wso2.com
Blog: https://medium.com/@kasunsiyambalapitiya



RE: Is there any possibility to reduce the size of maven distribution

2017-11-09 Thread Samuli Saarinen
Hi,

Could you use maven wrapper [1]? It obviously needs to download Maven from the 
interwebs when performing the build though.

[1] https://github.com/takari/maven-wrapper

br, 
Samuli

> -Original Message-
> From: Kasun Siyambalapitiya [mailto:kasu...@wso2.com]
> Sent: 10. marraskuutata 2017 7:30
> To: users@maven.apache.org
> Subject: Is there any possibility to reduce the size of maven distribution
> 
> Hi all,
> 
> I am currently working on a project which packs `maven` distribution in
> itself, so that the programme is capable of performing a `maven` build if
> the running system is having `Java` pre installed. Since the `maven`
> distribution (apache-maven-3.5.2-bin.zip) size is around 9MB the total
> resultant output of the program becomes bulky. Is there any way to reduce
> the size of the `maven` distribution by keeping only the libs which
> required for performing the maven build.
> 
> Thanks
> 
> --
> *Regards,*
> 
> *Kasun Siyambalapitiya*
> *Software Engineer*
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> Tel : 0715523466
> E mail : kasu...@wso2.com
> Blog: https://medium.com/@kasunsiyambalapitiya
> 


Is there any possibility to reduce the size of maven distribution

2017-11-09 Thread Kasun Siyambalapitiya
Hi all,

I am currently working on a project which packs `maven` distribution in
itself, so that the programme is capable of performing a `maven` build if
the running system is having `Java` pre installed. Since the `maven`
distribution (apache-maven-3.5.2-bin.zip) size is around 9MB the total
resultant output of the program becomes bulky. Is there any way to reduce
the size of the `maven` distribution by keeping only the libs which
required for performing the maven build.

Thanks

-- 
*Regards,*

*Kasun Siyambalapitiya*
*Software Engineer*
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
Tel : 0715523466
E mail : kasu...@wso2.com
Blog: https://medium.com/@kasunsiyambalapitiya



Re: maven plugin testing harness

2017-11-09 Thread Stephen Connolly
I recommend that you use invoker for testing plugins.

On 9 November 2017 at 13:07, Francois MAROT 
wrote:

> I'm no expert at all, but just to let you know: last time I tried the test
> harness plugin, I also gave up... :(
> I think some advocate to use the maven-invoker-plugin to test in real
> conditions with much less dependency problems. You can have a look there:
> https://maven.apache.org/plugin-developers/plugin-
> testing.html#maven-invoker-plugin
>
>
>
> --
> Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven plugin testing harness

2017-11-09 Thread Francois MAROT
I'm no expert at all, but just to let you know: last time I tried the test
harness plugin, I also gave up... :(
I think some advocate to use the maven-invoker-plugin to test in real
conditions with much less dependency problems. You can have a look there:
https://maven.apache.org/plugin-developers/plugin-testing.html#maven-invoker-plugin



--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

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



Re: [EXTERNAL] RE: Continuous Delivery with Maven now possible?

2017-11-09 Thread Pascal
>  interpolation of these special parameters must happen prior to the
execution of any plugins

That's exactly correct. It's why I built
https://github.com/pascalgn/properties-maven-extension which is implemented
as an extension and runs before any plugins will be executed.
Maybe it can help you.

2017-11-09 3:11 GMT+01:00 Eric B :

> I tried removing the empty sha1 declaration as well but that didn't work
> either.
>
> I'm guessing it's due to sequencing - that the interpolation of these
> special parameters must happen prior to the execution of any plugins, but
> would love confirmation of that.  Additionally would love to know if there
> is a workaround for this situation.
>
> Thanks
>
> Eric
>
> On Nov 8, 2017 6:35 PM, "Laird Nelson"  wrote:
>
> > On Wed, Nov 8, 2017 at 2:31 PM Eric Benzacar  wrote:
> >
> > > But when I actually run the build all the interpolated version numbers
> > > ignore the ${sha1} property as generated by the buildnumber-m-p, even
> > > though I bound the create to the validate phase.
> > >
> >
> > [snip]
> >
> > A snippet of my pom:
> > >
> > > 
> > > test
> > > org.project
> > > ${revision}${sha1}${changelist}
> > > 
> > > 
> > >
> >
> > Blind guess: since the buildnumber-maven-plugin is going to set
> properties
> > using internal machinery, and you've told it the one to set should be
> named
> > sha1, is it possible that this empty property of the same name is
> shadowing
> > the one set by the plugin, or that perhaps the plugin won't set it since
> > it's already (effectively) specified?
> >
> > Best,
> > Laird
> > --
> > https://about.me/lairdnelson
> >
>