-
Notifications
You must be signed in to change notification settings - Fork 47
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
No implementation for org.eclipse.aether.RepositorySystem was bound #28
Comments
From https://wiki.eclipse.org/Aether/Using_Aether_in_Maven_Plugins: It is possible to switch to the Sonatype Aether (which I believe is deprecated and still supported by newer versions of Maven). I can probably take a look at this, although I cannot commit to anything in the near future. |
I fixed this issue in the es5-maven30 branch: https://github.com/alexcojocaru/elasticsearch-maven-plugin/tree/es5-maven30. I am refraining from releasing this branch for the time being, for a couple of reasons:
If there is a way to configure this fix as a separate module on the project, in order to automate adding new feature, patches and releasing new version, let me know. |
Everything seems to be against adding support for Maven 3.0. That is because Travis uses |
Is there a way to catch that injection error and provide a more helpful error message? That would be totally fine I think. Or make sure the error message is google-able (perhaps a warning in the readme?) |
Sure. I will add a note to the README to describe the limitation. |
Thanks for your great plugin by the way. It makes integration-testing A LOT easier, especially since elasticsearch dropped support for embedding nodes a while ago. |
@alexcojocaru I am unable to path to multiple initialization scripts as when I attempt to do so using the pathInitScript tag it throws an error stating the path to the script is invalid when it isn't. If i have a singular script it is fine |
I will give this a try later and get back to you. |
There is an automated test for this use case: |
Hi, I am using maven version 3.6.0
Maven is throwing an error stating the path is invalid no matter how I try
to set it up. I have also tried using pathConf to call json files to
populate documents in the index without success. Still learning :)
Thanks,
Brad
…On Tue, Jul 14, 2020, 11:13 AM alexcojocaru ***@***.***> wrote:
There is an automated test for this use case:
https://github.com/alexcojocaru/elasticsearch-maven-plugin/tree/master/src/it/runforked-with-init-scripts
and it's been passing consistently.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZWT3SBT5PAA7Z4B3KPTDTR3R73VANCNFSM4C5VR2XA>
.
|
However my failsafe plugin version is 2.15.
On Tue, Jul 14, 2020 at 11:33 AM Bradford Scott <bradford.scott.84@gmail.com>
wrote:
… Hi, I am using maven version 3.6.0
Maven is throwing an error stating the path is invalid no matter how I try
to set it up. I have also tried using pathConf to call json files to
populate documents in the index without success. Still learning :)
Thanks,
Brad
On Tue, Jul 14, 2020, 11:13 AM alexcojocaru ***@***.***>
wrote:
> There is an automated test for this use case:
>
> https://github.com/alexcojocaru/elasticsearch-maven-plugin/tree/master/src/it/runforked-with-init-scripts
> and it's been passing consistently.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#28 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACZWT3SBT5PAA7Z4B3KPTDTR3R73VANCNFSM4C5VR2XA>
> .
>
|
Here is the error:
Execution start-elasticsearch of goal
com.github.alexcojocaru:elasticsearch-maven-plugin:6.13:runforked failed:
The provided init script path is not a valid file path:
src/test/resources/elasticsearch/es_initialization_script.json,
[ERROR]
src/test/resources/elasticsearch/document1.json
On Tue, Jul 14, 2020 at 11:39 AM Bradford Scott <bradford.scott.84@gmail.com>
wrote:
… However my failsafe plugin version is 2.15.
On Tue, Jul 14, 2020 at 11:33 AM Bradford Scott <
***@***.***> wrote:
> Hi, I am using maven version 3.6.0
>
> Maven is throwing an error stating the path is invalid no matter how I
> try to set it up. I have also tried using pathConf to call json files to
> populate documents in the index without success. Still learning :)
>
> Thanks,
> Brad
>
> On Tue, Jul 14, 2020, 11:13 AM alexcojocaru ***@***.***>
> wrote:
>
>> There is an automated test for this use case:
>>
>> https://github.com/alexcojocaru/elasticsearch-maven-plugin/tree/master/src/it/runforked-with-init-scripts
>> and it's been passing consistently.
>>
>> —
>> You are receiving this because you commented.
>> Reply to this email directly, view it on GitHub
>> <#28 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ACZWT3SBT5PAA7Z4B3KPTDTR3R73VANCNFSM4C5VR2XA>
>> .
>>
>
|
That error does not seem related to Could you double check that the file path in the error message matches the file you have in the project? |
I will do that, I am running this in intelliJ does that matter?
…On Tue, Jul 14, 2020, 12:10 PM alexcojocaru ***@***.***> wrote:
That error does not seem related to org.eclipse.aether.RepositorySystem
Could you double check that the file path in the error message matches the
file you have in the project?
Try enabling the DEBUG level logging on the plugin (using the logLevel
property, see the doc for details), and see if that gives you more details.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZWT3VQHQW654EXZBSOIMTR3SGQRANCNFSM4C5VR2XA>
.
|
I don't know, could be related. It would help if you run from the cmd line, as that's reproducible on my end. |
When i run it with a single initialization script it works fine, but when i
try to put in a comma delimited list to separate out the json requests it
throws an error, almost like it isn't parsing the list into separate
runnable requests
…On Tue, Jul 14, 2020 at 12:16 PM alexcojocaru ***@***.***> wrote:
I don't know, could be related. It would help if you run from the cmd
line, as that's reproducible on my end.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZWT3XZZPOKPRBHMGGDNS3R3SHIJANCNFSM4C5VR2XA>
.
|
plugin def:
<plugin>
<groupId>com.github.alexcojocaru</groupId>
<artifactId>elasticsearch-maven-plugin</artifactId>
<version>6.13</version>
<configuration>
<!-- THE ELASTICSEARCH VERSION; REPLACE WITH THE VERSION YOU NEED -->
<version>6.6.0</version>
<clusterName>integration-test-cluster</clusterName>
<transportPort>9300</transportPort>
<httpPort>9200</httpPort>
<pathInitScript>
src/test/resources/elasticsearch/es_initialization_script.json,
src/test/resources/elasticsearch/script2.json
</pathInitScript>
</configuration>
<executions>
<!--
The elasticsearch maven plugin goals are by default bound to the
pre-integration-test and post-integration-test phases
-->
<execution>
<id>start-elasticsearch</id>
<phase>pre-integration-test</phase>
<goals>
<goal>runforked</goal>
</goals>
</execution>
<execution>
<id>stop-elasticsearch</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
Debug log from time of error:
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 29.034 s
[INFO] Finished at: 2020-07-14T12:43:54-05:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
com.github.alexcojocaru:elasticsearch-maven-plugin:6.13:runforked
(start-elasticsearch) on project provider-carrier-entity-search-api:
Execution start-elasticsearch of goal
com.github.alexcojocaru:elasticsearch-maven-plugin:6.13:runforked failed:
The provided init script path is not a valid file path:
src/test/resources/elasticsearch/es_initialization_script.json,
[ERROR]
src/test/resources/elasticsearch/script2.json
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal com.github.alexcojocaru:elasticsearch-maven-plugin:6.13:runforked
(start-elasticsearch) on project provider-carrier-entity-search-api:
Execution start-elasticsearch of goal
com.github.alexcojocaru:elasticsearch-maven-plugin:6.13:runforked failed:
The provided init script path is not a valid file path:
src/test/resources/elasticsearch/es_initialization_script.json,
src/test/resources/elasticsearch/script2.json
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:148)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
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.PluginExecutionException: Execution
start-elasticsearch of goal
com.github.alexcojocaru:elasticsearch-maven-plugin:6.13:runforked failed:
The provided init script path is not a valid file path:
src/test/resources/elasticsearch/es_initialization_script.json,
src/test/resources/elasticsearch/script2.json
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:148)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
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:
com.github.alexcojocaru.mojo.elasticsearch.v2.ElasticsearchSetupException:
The provided init script path is not a valid file path:
src/test/resources/elasticsearch/es_initialization_script.json,
src/test/resources/elasticsearch/script2.json
at
com.github.alexcojocaru.mojo.elasticsearch.v2.step.BootstrapClusterStep.validateFile
(BootstrapClusterStep.java:71)
at
com.github.alexcojocaru.mojo.elasticsearch.v2.step.BootstrapClusterStep.execute
(BootstrapClusterStep.java:45)
at
com.github.alexcojocaru.mojo.elasticsearch.v2.step.DefaultClusterStepSequence.lambda$execute$0
(DefaultClusterStepSequence.java:21)
at java.lang.Iterable.forEach (Iterable.java:75)
at
com.github.alexcojocaru.mojo.elasticsearch.v2.step.DefaultClusterStepSequence.execute
(DefaultClusterStepSequence.java:21)
at com.github.alexcojocaru.mojo.elasticsearch.v2.RunForkedMojo.execute
(RunForkedMojo.java:56)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:148)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
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)
[ERROR]
[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/PluginExecutionException
[INFO] Cleaning up at application shutdown...
[INFO] The Elasticsearch process is still running; stopping it ...
[INFO] ... the Elasticsearch process [0] has stopped. Exit code: 143
… |
Why are you discussing a completely unrelated issue here? |
There's nothing in the plugin output above that would be related to the original issue. @bradford-scott please open a separate issue, and add the plugin output to it, and let's continue the discussion there. |
@alexcojocaru is it possible to make it work for gradle also or if there is anything already existing for gradle? |
I am getting this error:
With the maven version shipped with Ubuntu 14.04 LTS
Is there any change to make this plugin compatible to the 3.0 branch of maven?
The text was updated successfully, but these errors were encountered: