New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception When started jaxrs-analyzer-maven-plugin:0.12:analyze-jaxrs #28
Comments
Hi :) Which Maven version are you using? If it's a recent one ( |
Hi, Looking forward to hearing back from you soon. Regards, |
Also have the same error on windows 10 |
Hello, @sdaschner Regards, |
Hello, Regards, |
Hi, yes when you remove the goal invocation the plugin doesn't run anymore. I'll try to find some time soon to tackle that problem. It has something to do with the internal class loading, the Analyzer now seem to mix classes from your project with it's internals (as it has to load them for analysis). Related to #18. These days are pretty packed, hope to find some time soon. |
Hi, |
Hi there, could you retry using the |
Hi, I am trying to add in the pom.xml version Let me correct If i am doing something wrong |
You have to add the Maven central snapshot repositories for that:
|
I have added the maven central snapshot repositories and then try to build on my local development environment. Still, I am not able to build it. This is the exception I am getting now --- jaxrs-analyzer-maven-plugin:0.13-SNAPSHOT:analyze-jaxrs (default) @ communication-api ---
1 error BUILD FAILURETotal time: 2.288s
|
Could you please try using the recent Maven |
Hello, Thank you for your quick response.
--- jaxrs-analyzer-maven-plugin:0.13-SNAPSHOT:analyze-jaxrs (default) @ communication-api --- |
Ok great, the static property is a know error, you can ignore that for now. Have a look at #27, you should be able to set the encoding properly. |
Hi Sdaschner, I am getting Build Unstable with error "Could not access static property" for many modules. I am using Maven 3.59 with Jaxrs Maven Plugin 0.17 version with Swagger as the backend. Please guide. |
Hello, sdaschner
I couldn't able to build the my code on my local windows environment. I got this error.
But the same code if I will run on my dev server on Linux it's build properly without any problem.
Can you let me know the reason why I am not able to build it on my local windows environment?
Jan 13, 2017 2:08:30 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
WARNING: Error injecting: com.sebastian_daschner.jaxrs_analyzer.maven.JAXRSAnalyzerMojo
com.google.inject.ProvisionException: Guice provision errors:
while locating com.sebastian_daschner.jaxrs_analyzer.maven.JAXRSAnalyzerMojo
1 error
at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:974)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:52)
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:138)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
BUILD FAILURE
Total time: 3.175s
Finished at: Fri Jan 13 14:08:31 JST 2017
Final Memory: 20M/220M
Failed to execute goal com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.12:analyze-jaxrs (default) on project communication-api: Execution default of goal com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.12:analyze-jaxrs failed: Unable to load the mojo 'analyze-jaxrs' (or one of its required components) from the plugin 'com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.12': com.google.inject.ProvisionException: Guice provision errors:
while locating com.sebastian_daschner.jaxrs_analyzer.maven.JAXRSAnalyzerMojo
at ClassRealm[plugin>com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.12, parent: sun.misc.Launcher$AppClassLoader@70dea4e]
while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.12:analyze-jaxrs)
1 error
role: org.apache.maven.plugin.Mojo
roleHint: com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.12:analyze-jaxrs
The text was updated successfully, but these errors were encountered: