You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I have a working project, now I'm trying to change my pact broker to the one that requires a username and a password (I've created one with https://pact.dius.com.au/).
Unfortunately I keep getting an error message: Failed to execute goal com.github.warmuuh:pactbroker-maven-plugin:0.0.10:upload-pacts (default-cli) on project consumer: Failed to read pacts: source
You can find my settings and the full stack trace below. I can't see anything wrong with the config. But pact plugin is not able to establish the connection with my new pact broker. Is anything wrong with my config or is there a bug in the plugin?
BTW, error message is not very accurate, is it. It says "Failed to read pacts" while it actually failed to UPLOAD pacts. Maybe the plugin needs to read something first to then upload pacts, but for the end user it's really confusing. Could you do something about it pls?
My settings:
I've updated existing settings according to the description on the plugin page: https://github.com/warmuuh/pactbroker-maven-plugin
I've added <username> and <password> and upgraded plugin version from 0.0.5 to 0.0.10
The result is:
[ERROR] Failed to execute goal com.github.warmuuh:pactbroker-maven-plugin:0.0.10:upload-pacts (default-cli) on project consumer: Failed to read pacts: source -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.warmuuh:pactbroker-maven-plugin:0.0.10:upload-pacts (default-cli) on project consumer: Failed to read pacts
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
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:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
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:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to read pacts
at com.github.wrm.pact.maven.UploadPactsMojo.execute(UploadPactsMojo.java:92)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: java.lang.NullPointerException: source
at java.util.Objects.requireNonNull(Objects.java:228)
at java.util.Scanner.<init>(Scanner.java:578)
at com.github.wrm.pact.repository.BrokerRepositoryProvider.uploadPact(BrokerRepositoryProvider.java:111)
at com.github.wrm.pact.repository.BrokerRepositoryProvider.uploadPacts(BrokerRepositoryProvider.java:40)
at com.github.wrm.pact.maven.UploadPactsMojo.execute(UploadPactsMojo.java:89)
... 21 more
The text was updated successfully, but these errors were encountered:
No credentials are given to the broker repository
EDIT: Oeps, this seems fixed in 0.0.12 (and possibly before) but to use a version above 0.0.10 the version needs to be updated.
Hi. I have a working project, now I'm trying to change my pact broker to the one that requires a username and a password (I've created one with https://pact.dius.com.au/).
Unfortunately I keep getting an error message: Failed to execute goal com.github.warmuuh:pactbroker-maven-plugin:0.0.10:upload-pacts (default-cli) on project consumer: Failed to read pacts: source
You can find my settings and the full stack trace below. I can't see anything wrong with the config. But pact plugin is not able to establish the connection with my new pact broker. Is anything wrong with my config or is there a bug in the plugin?
BTW, error message is not very accurate, is it. It says "Failed to read pacts" while it actually failed to UPLOAD pacts. Maybe the plugin needs to read something first to then upload pacts, but for the end user it's really confusing. Could you do something about it pls?
My settings:
I've updated existing settings according to the description on the plugin page: https://github.com/warmuuh/pactbroker-maven-plugin
I've added
<username>
and<password>
and upgraded plugin version from 0.0.5 to 0.0.10The result is:
Full stack trace:
The text was updated successfully, but these errors were encountered: