Re: Maven Plugin and JSR330

2016-11-20 Thread Stuart McCulloch
Thanks, looks good to me

On Sunday, 20 November 2016 at 17:46, Dan Tran wrote:

> I filed a PR at https://github.com/apache/maven/pull/98.
>  
> On Thu, Nov 17, 2016 at 8:48 PM, Dan Tran  (mailto:dant...@gmail.com)> wrote:
> > It works!!! Thanks Stuard
> >  
> > So my change should be good for commit for 3.4?
> >  
> > -Dan
> >  
> > On Sun, Nov 13, 2016 at 3:01 PM, Stuart McCulloch  > (mailto:mccu...@gmail.com)>
> > wrote:
> >  
> > > Hi Dan,
> > >  
> > > There are two places in MavenCli which create a container.
> > >  
> > > You’ve enabled JSR250 for the temporary container that resolves the core
> > > extensions, but not the main container that runs the Mojos:
> > >  
> > > https://github.com/dantran/maven/blob/master/maven-embedder/
> > > src/main/java/org/apache/maven/cli/MavenCli.java#L585
> > >  
> > > If I enable JSR250 in the above line then your test passes.
> > >  
> > > --
> > > Cheers, Stuart
> > >  
> > >  
> > > On Sunday, 13 November 2016 at 22:10, Dan Tran wrote:
> > >  
> > > > @Stuard
> > > >  
> > > > Could you review my changes at
> > > > https://github.com/dantran/maven/commits/master? I still not able to
> > > >  
> > >  
> > > get
> > > > @PostContruct working yet
> > > >  
> > > > Thanks
> > > >  
> > > > -Dan
> > > >  
> > > > On Sun, Sep 11, 2016 at 7:27 PM, Dan Tran  > > > (mailto:dant...@gmail.com) (mailto:
> > > dant...@gmail.com (mailto:dant...@gmail.com))> wrote:
> > > >  
> > > > > Thanks Stuart, very much appreciated
> > > > >  
> > > > > -D
> > > > >  
> > > > > On Sun, Sep 11, 2016 at 7:22 PM, Stuart McCulloch  > > > > (mailto:mccu...@gmail.com)
> > > (mailto:mccu...@gmail.com)>
> > > > > wrote:
> > > > >  
> > > > > > Sorry, last week was very busy with work and family
> > > > > >  
> > > > > > I’ve listed the necessary config changes in
> > > > > > https://issues.apache.org/jira/browse/MNG-6084
> > > > > >  
> > > > > > --
> > > > > > Cheers, Stuart
> > > > > >  
> > > > > >  
> > > > > > On Sunday, 11 September 2016 at 04:28, Dan Tran wrote:
> > > > > >  
> > > > > > > @Stuart, ping :-)
> > > > > > >  
> > > > > > > On Tue, Sep 6, 2016 at 7:06 PM, Dan Tran  > > > > > > (mailto:dant...@gmail.com)
> > > (mailto:dant...@gmail.com) (mailto:
> > > > > > dant...@gmail.com (mailto:dant...@gmail.com))> 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  > > > > > > > (mailto:dant...@gmail.com)
> > > (mailto:dant...@gmail.com) (mailto:
> > > > > > dant...@gmail.com (mailto:dant...@gmail.com))> 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 <
> > > mccu...@gmail.com (mailto:mccu...@gmail.com)
> > > > > > (mailto:mccu...@gmail.com)>
> > > > > > > > > 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 <
> > > > > > mccu...@gmail.com (mailto:mccu...@gmail.com)
> > > > > > > > > > (mailto:mccu...@gmail.com)> wrote:
> > > > > > > > > > >  
> > > > > > > > > > > > Hi Dan,
> > > > > > > > > > > >  
> > > > > > > > > > > > Constructor injection (and component injection) is
> > > working
> > > > > > for me
> > > > > > > > > > 

Re: Maven Plugin and JSR330

2016-11-20 Thread Dan Tran
I filed a PR at https://github.com/apache/maven/pull/98.

On Thu, Nov 17, 2016 at 8:48 PM, Dan Tran  wrote:

> It works!!! Thanks Stuard
>
> So my change should be good for commit for 3.4?
>
> -Dan
>
> On Sun, Nov 13, 2016 at 3:01 PM, Stuart McCulloch 
> wrote:
>
>> Hi Dan,
>>
>> There are two places in MavenCli which create a container.
>>
>> You’ve enabled JSR250 for the temporary container that resolves the core
>> extensions, but not the main container that runs the Mojos:
>>
>> https://github.com/dantran/maven/blob/master/maven-embedder/
>> src/main/java/org/apache/maven/cli/MavenCli.java#L585
>>
>> If I enable JSR250 in the above line then your test passes.
>>
>> --
>> Cheers, Stuart
>>
>>
>> On Sunday, 13 November 2016 at 22:10, Dan Tran wrote:
>>
>> > @Stuard
>> >
>> > Could you review my changes at
>> > https://github.com/dantran/maven/commits/master? I still not able to
>> get
>> > @PostContruct working yet
>> >
>> > Thanks
>> >
>> > -Dan
>> >
>> > On Sun, Sep 11, 2016 at 7:27 PM, Dan Tran > dant...@gmail.com)> wrote:
>> >
>> > > Thanks Stuart, very much appreciated
>> > >
>> > > -D
>> > >
>> > > On Sun, Sep 11, 2016 at 7:22 PM, Stuart McCulloch > (mailto:mccu...@gmail.com)>
>> > > wrote:
>> > >
>> > > > Sorry, last week was very busy with work and family
>> > > >
>> > > > I’ve listed the necessary config changes in
>> > > > https://issues.apache.org/jira/browse/MNG-6084
>> > > >
>> > > > --
>> > > > Cheers, Stuart
>> > > >
>> > > >
>> > > > On Sunday, 11 September 2016 at 04:28, Dan Tran wrote:
>> > > >
>> > > > > @Stuart, ping :-)
>> > > > >
>> > > > > On Tue, Sep 6, 2016 at 7:06 PM, Dan Tran > (mailto:dant...@gmail.com) (mailto:
>> > > > dant...@gmail.com (mailto:dant...@gmail.com))> 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 > (mailto:dant...@gmail.com) (mailto:
>> > > > dant...@gmail.com (mailto:dant...@gmail.com))> 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 <
>> mccu...@gmail.com (mailto:mccu...@gmail.com)
>> > > > (mailto:mccu...@gmail.com)>
>> > > > > > > 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 <
>> > > > mccu...@gmail.com (mailto:mccu...@gmail.com)
>> > > > > > > > (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/sis
>> u.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...

Report

2016-11-20 Thread Feroz Ahamed
hi am feroz . I am not able to solve this issue.please help me to
proceed further


I started Appium Server manually and then ran a build in jenkins. The
program is executed and build success.

Now the problem is *How to execute bat file in @beforesuite through jenkins ?*

Note: this @beforesuite is executed through command prompt. Jenkins is
not able to detect this beforesuite

Please go through attached report below.
---
 T E S T S
---
Running TestSuite
Nov 16, 2016 3:51:45 PM org.openqa.selenium.remote.ProtocolHandshake 
createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the 
remote end
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 10.075 sec <<< 
FAILURE! - in TestSuite
test(Automation.AppTest)  Time elapsed: 1.867 sec  <<< FAILURE!
org.openqa.selenium.SessionNotCreatedException: 
A new session could not be created. (Original error: Could not find aapt. 
Please set the ANDROID_HOME environment variable with the Android SDK root 
directory path.) (WARNING: The server did not provide any stacktrace 
information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 
-0700'
System info: host: 'Feroz', ip: '192.168.43.244', os.name: 'Windows 10', 
os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
Driver info: driver.version: AndroidDriver
at Automation.AppTest.test(AppTest.java:36)


Results :

Failed tests: 
  AppTest.test:36 » SessionNotCreated A new session could not be created. 
(Origi...

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 14.205 s
[INFO] Finished at: 2016-11-16T15:51:47+05:30
[INFO] Final Memory: 14M/220M
[INFO] 
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on 
project testing: There are test failures.
[ERROR] 
[ERROR] Please refer to C:\maven project\testing\target\surefire-reports for 
the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Re: Maven https repos broken?

2016-11-20 Thread Eric B
Is it possible that a new appliance has been inserted in your network
configuration that is doing man-in-the-middle packet inspection?

I've seen several organisations recently start implementing SSL resigning
with a private root certificate that is pushed onto all PCs in a domain via
the GPO.  But java didn't recognize the PC trust store and needs to have
the same root certificate installed in its own trust store.

Easy way to test/validate is to check the https site/certificate in Browser
and see if it is truly signed by a known CA or if it is signed by a
different CA.

If it isn't a trusted CA, but you recognize the CA as your own
organisation, then you need to install the root certificate in the Java
cacerts = trust store for java).

Hope this helps.

Thanks

Eric

On Nov 18, 2016 1:01 PM, "David Delbecq"  wrote:

> Hello,
>
> I had no problem using maven for about the whole day and downloading
> artefacts, but suddently my builds started to fail with ssl certificate
> issue. The repo "repo.maven.apache.org" is answering with a certificate
> dedicated to "repo1.maven.org". I have tried  mirror https://uk.maven.org
>  and it exposes the same behaviour. Browser confirms the problem and
> refuses to let me go to those https pages. Is there some maintenance in
> progress that explains this situation?
>
> [DEBUG] Lifecycle default -> [validate, initialize, generate-sources,
> process-sources, generate-resources, process-resources, compile,
> process-classes, generate-test-sources, process-test-sources,
> generate-test-resources, process-test-resources, test-compile,
> process-test-classes, test, prepare-package, package, pre-integration-test,
> integration-test, post-integration-test, verify, install, deploy]
> [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
> [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
> [DEBUG] Using transporter WagonTransporter with priority -1.0 for
> https://repo.maven.apache.org/maven2
> [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for
> https://repo.maven.apache.org/maven2
> Downloading:
> https://repo.maven.apache.org/maven2/org/apache/maven/
> plugins/maven-compiler-plugin/3.6.0/maven-compiler-plugin-3.6.0.pom
> [DEBUG] Writing tracking file
> /home/ddelbecq/.m2/repository/org/apache/maven/plugins/
> maven-compiler-plugin/3.6.0/maven-compiler-plugin-3.6.0.pom.lastUpdated
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 1.039 s
> [INFO] Finished at: 2016-11-18T18:51:45+01:00
> [INFO] Final Memory: 20M/481M
> [INFO]
> 
> [ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.6.0 or one
> of its dependencies could not be resolved: Failed to read artifact
> descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.6.0:
> Could not transfer artifact
> org.apache.maven.plugins:maven-compiler-plugin:pom:3.6.0 from/to central (
> https://repo.maven.apache.org/maven2): Host name 'repo.maven.apache.org'
> does not match the certificate subject provided by the peer (CN=
> repo1.maven.org, O="Sonatype, Inc", L=Fulton, ST=MD, C=US) -> [Help 1]
> org.apache.maven.plugin.PluginResolutionException: Plugin
> org.apache.maven.plugins:maven-compiler-plugin:3.6.0 or one of its
> dependencies could not be resolved: Failed to read artifact descriptor for
> org.apache.maven.plugins:maven-compiler-plugin:jar:3.6.0
> at
> org.apache.maven.plugin.internal.DefaultPluginDependenciesResol
> ver.resolve(DefaultPluginDependenciesResolver.java:117)
> at
> org.apache.maven.plugin.internal.DefaultMavenPluginManager.
> getPluginDescriptor(DefaultMavenPluginManager.java:180)
> at
> org.apache.maven.plugin.internal.DefaultMavenPluginManager.
> getMojoDescriptor(DefaultMavenPluginManager.java:284)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(
> DefaultBuildPluginManager.java:241)
> at
> org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanC
> alculator.setupMojoExecution(DefaultLifecycleExecutionPlanC
> alculator.java:170)
> at
> org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanC
> alculator.setupMojoExecutions(DefaultLifecycleExecutionPlanC
> alculator.java:155)
> at
> org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanC
> alculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanC
> alculator.java:131)
> at
> org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanC
> alculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanC
> alculator.java:145)
> at
> org.apache.maven.lifecycle.internal.builder.BuilderCommon.
> resolveBuildPlan(BuilderCommon.java:97)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
> LifecycleModuleBuilder.java:110)
> at
>