Re: Maven Plugin and JSR330

2016-09-10 Thread Dan Tran
@Stuart, ping :-)

On Tue, Sep 6, 2016 at 7:06 PM, Dan Tran  wrote:

> @Stuart, could you provide instructions on how to enable JSR 250 support?
>
> Thanks
>
>
> -Dan
>
> On Fri, Sep 2, 2016 at 9:22 AM, Dan Tran  wrote:
>
>> here you go https://issues.apache.org/jira/browse/MNG-6084
>>
>> Very much appreciated
>>
>> -Dan
>>
>> On Fri, Sep 2, 2016 at 8:42 AM, Stuart McCulloch 
>> wrote:
>>
>>> On Wednesday, 31 August 2016 at 19:05, Dan Tran wrote:
>>> > Hi Stuart
>>> >
>>> > Thanks for helping out.
>>> >
>>> > I have 3 mojos, sharing one singleton component which depends on
>>> another
>>> > singleton component thru injection. All working now via both injection
>>> type
>>> > ( after some cleanup)
>>> >
>>> > should I file a JIRA to enable JSR-250 support fo rmaven 3.4?
>>> Sure - send me the ticket number and I’ll add some commentary this
>>> weekend
>>> > looking forward to use it
>>> >
>>> > Thanks
>>> >
>>> > -Dan
>>> >
>>> >
>>> >
>>> > On Wed, Aug 31, 2016 at 9:22 AM, Stuart McCulloch >> (mailto:mccu...@gmail.com)> wrote:
>>> >
>>> > > Hi Dan,
>>> > >
>>> > > Constructor injection (and component injection) is working for me
>>> with
>>> > > Maven 3.3.9 if I follow the example in
>>> http://maven.apache.org/maven-
>>> > > jsr330.html
>>> > >
>>> > > Is your plugin code available somewhere?
>>> > >
>>> > > PS. at the moment Maven doesn’t enable container support for JSR-250
>>> > > lifecycle, but it is implemented by Sisu under a feature flag:
>>> > >
>>> > > https://github.com/eclipse/sisu.plexus/blob/releases/0.3.
>>> > > 3/org.eclipse.sisu.plexus/src/org/codehaus/plexus/
>>> > > ContainerConfiguration.java#L62
>>> > >
>>> > > --
>>> > > Cheers, Stuart
>>> > >
>>> > >
>>> > > On Wednesday, 31 August 2016 at 16:59, Dan Tran wrote:
>>> > >
>>> > > > Hi Thomas,
>>> > > >
>>> > > > You are right!!! looking for how to fix this...
>>> > > >
>>> > > > The only thing working for me is field injection at MOJO. event The
>>> > > > constructor injection ( as documented) at MOJO is not.
>>> > > >
>>> > > > Thanks
>>> > > >
>>> > > > -Dan
>>> > > >
>>> > > > On Wed, Aug 31, 2016 at 1:20 AM, Thomas Broyer >> (mailto:t.bro...@gmail.com)
>>> > > (mailto:t.bro...@gmail.com)> wrote:
>>> > > >
>>> > > > > On Wed, Aug 31, 2016 at 8:43 AM Dan Tran >> (mailto:dant...@gmail.com) (mailto:
>>> > > dant...@gmail.com (mailto:dant...@gmail.com))> wrote:
>>> > > > >
>>> > > > > > Hi
>>> > > > > >
>>> > > > > > I have a need to inject my jsr330 component into my plugins[1]
>>> and I
>>> > > > > > found 2 issues
>>> > > > > >
>>> > > > > > 1. @Inject under MOJO works, but my singleton component
>>> @PreDestroy
>>> > > never
>>> > > > > > got called
>>> > > > >
>>> > > > >
>>> > > > >
>>> > > > > @PreDestroy is not part of JSR 330, it's a CDI thing, so no
>>> wonder
>>> > > it's not
>>> > > > > called.
>>> > > >
>>> > >
>>> > >
>>> >
>>>
>>>
>>>
>>
>


Re: Method level parallelization not completing consistently

2016-09-10 Thread Karl Heinz Marbaise

Hi,

you know that failsafe is intended for integration tests which are 
usually not parallelizable...


Apart from that maven-eclipse-plugin is retired and shouldn't be part of 
your build any more...


Furthermore without an exmple which shows the behaviour it's hard to 
guess what might be wrong...Do you have full log output...


Which tests running long ?

Kind regards
Karl Heinz


On 09/09/16 20:00, Prakul Agarwal wrote:

Hi,

Using Maven 3.3.9, maven-eclipse-plugin 2.9, failsafe 2.19.1, surefire
2.19.1.

I'm using FailSafe parallel = method and threadCount ={5,10,50,100} to
execute a bunch of test classes with forkCount = {2,3,4,5}. The
integration-test phase is completing sometimes and getting stuck for long
the other times. When it is getting stuck it is taking > 20 min than normal
execution to complete.

In case when tests are getting stuck I notice that the log files
(failsafe-reports folder) of individual test classes are generated each
time consistently but the summary file generation does't happens for long.
Also one surefire-booter jvm lingers on while others are killed.

When I execute in with forkCount = 1 the test execution probably doesnt
start at all (Failsafe-reports folder is not generated, surefire tmp files
are ). If I reduce the number of test classes to be executed (with
forkCount = 1) then the execution is completing normally. We have ~100 test
classes with ~1000 test methods to be executed.

I'm using reuseForks = true and have tried execution after removing all
fork related settings.

Can anyone suggest why this extension is not executing consistently.

Thanks ,

Other configuration:

OS name: "mac os x", version: "10.11.6", Intel 2.8 GHz i7, 16GB DDR3 RAM.

JDK 1.7.0_8




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



Method level parallelization not completing consistently

2016-09-10 Thread Prakul Agarwal
Hi,

Using Maven 3.3.9, maven-eclipse-plugin 2.9, failsafe 2.19.1, surefire
2.19.1.

I'm using FailSafe parallel = method and threadCount ={5,10,50,100} to
execute a bunch of test classes with forkCount = {2,3,4,5}. The
integration-test phase is completing sometimes and getting stuck for long
the other times. When it is getting stuck it is taking > 20 min than normal
execution to complete.

In case when tests are getting stuck I notice that the log files
(failsafe-reports folder) of individual test classes are generated each
time consistently but the summary file generation does't happens for long.
Also one surefire-booter jvm lingers on while others are killed.

When I execute in with forkCount = 1 the test execution probably doesnt
start at all (Failsafe-reports folder is not generated, surefire tmp files
are ). If I reduce the number of test classes to be executed (with
forkCount = 1) then the execution is completing normally. We have ~100 test
classes with ~1000 test methods to be executed.

I'm using reuseForks = true and have tried execution after removing all
fork related settings.

Can anyone suggest why this extension is not executing consistently.

Thanks ,

Other configuration:

OS name: "mac os x", version: "10.11.6", Intel 2.8 GHz i7, 16GB DDR3 RAM.

JDK 1.7.0_8

-- 
Prakul Agarwal

M.S. Computer Science | University of California, Irvine, Dec '16

Ph: (949)372-8510
Linkedin: https://www.linkedin.com/in/prakulagarwal