Hi,
I have dowloaded Shield Custom realm sample from GitHub to compile it and execute it so that later will be developing our own custom realm for our project, However when I try to compile i get the missing artifact and dependency error.
Belwo is the POM the head section..
org.elasticsearch.plugin
plugins
3.0.0-SNAPSHOT
4.0.0
Questions -- ?
Why is it giving "Missing artifact org.elasticsearch:elasticsearch:jar:tests:3.0.0-SNAPSHOT" ?
Do I need any special shield access to get all the dependencies related to Shield plugin??
Any thing specific to elasticsearch do i need access to or should i download to my repository?
Please help me with this issue.
In MAVEN debug mode ..
[DEBUG] =======================================================================
[DEBUG] Could not find metadata org.elasticsearch:elasticsearch:3.0.0-SNAPSHOT/maven-metadata.xml in local (C:\Users\xxxx.m2\repository)
[DEBUG] Failure to find org.elasticsearch:elasticsearch:3.0.0-SNAPSHOT/maven-metadata.xml in https://download.elasticsearch.org/lucenesnapshots/1710880 was cached in the local repository, resolution will not be reattempted until the update interval of Lucene snapshots has elapsed or updates are forced
[DEBUG] Skipped remote request for org.elasticsearch:elasticsearch:3.0.0-SNAPSHOT/maven-metadata.xml, locally cached metadata up-to-date.
And stack trace ...
[ERROR] Failed to execute goal on project shield-custom-realm-example: Could not resolve dependencies for project org.elasticsearch.plugin:shield-custom-realm-example:jar:3.0.0-SNAPSHOT: The following artifacts could not be resolved: org.elasticsearch.plugin:shield:jar:3.0.0-SNAPSHOT, org.elasticsearch:elasticsearch:jar:tests:3.0.0-SNAPSHOT: Could not find artifact org.elasticsearch.plugin:shield:jar:3.0.0-SNAPSHOT in oss-snapshots (https://oss.sonatype.org/content/repositories/snapshots/) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project shield-custom-realm-example: Could not resolve dependencies for project org.elasticsearch.plugin:shield-custom-realm-example:jar:3.0.0-SNAPSHOT: The following artifacts could not be resolved: org.elasticsearch.plugin:shield:jar:3.0.0-SNAPSHOT, org.elasticsearch:elasticsearch:jar:tests:3.0.0-SNAPSHOT: Could not find artifact org.elasticsearch.plugin:shield:jar:3.0.0-SNAPSHOT in oss-snapshots (https://oss.sonatype.org/content/repositories/snapshots/)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:245)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
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:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
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:498)
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)