Skip to content
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

Artifact could not be resolved by botsing maven plugin, but is there #56

Open
gibello opened this issue Mar 11, 2019 · 5 comments
Open
Assignees
Labels
bug Something isn't working maven-plugin This issue is related to the Maven plugin.

Comments

@gibello
Copy link

gibello commented Mar 11, 2019

Characteristics

  • Issue Type: [bug]
  • Reproducibility: [always]
  • Severity: [major]
  • Tool/Service/Component: [botsing maven plugin]
  • Execution Environment: [Ubuntu 18.04]
  • Reporter: [Pierre-Yves Gibello, [email protected]]

Description

Try to run botsing maven plugin on lutece-core project (https://github.com/lutece-platform/lutece-core).

mvn eu.stamp-project:botsing-maven:botsing -Dcrash_log=/tmp/localhost.log -Dtarget_frame=2 -e

Fails, with message "Artifact library-lucene could not be resolved". But the artifact is there, both locally (.m2 repo) and online.

Steps to reproduce

Build lutece-core:
mvn clean lutece:exploded

Then run (on any file, not related to log file):
mvn eu.stamp-project:botsing-maven:botsing -Dcrash_log=anyLogFile -Dtarget_frame=2 -e

Detailed error traces

gibello@OW2:~/STAMP/STAMP-project/lutece-core$ mvn eu.stamp-project:botsing-maven:botsing -Dcrash_log=/tmp/localhost.log -Dtarget_frame=2 -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Lutece 6.1.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- botsing-maven:1.0.3:botsing (default-cli) @ lutece-core ---
[INFO] Starting Botsing to generate tests with EvoSuite
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.088 s
[INFO] Finished at: 2019-03-11T10:46:32+01:00
[INFO] Final Memory: 20M/294M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal eu.stamp-project:botsing-maven:1.0.3:botsing (default-cli) on project lutece-core: Artifact library-lucene could not be resolved.: Failure to find fr.paris.lutece.plugins:library-lucene:lutece-plugin:3.0.1 in http://dev.lutece.paris.fr/maven_repository was cached in the local repository, resolution will not be reattempted until the update interval of lutece has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal eu.stamp-project:botsing-maven:1.0.3:botsing (default-cli) on project lutece-core: Artifact library-lucene could not be resolved.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
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:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Artifact library-lucene could not be resolved.
at eu.stamp.botsing.BotsingMojo.getArtifactFile (BotsingMojo.java:142)
at eu.stamp.botsing.BotsingMojo.getDependenciesFromPom (BotsingMojo.java:113)
at eu.stamp.botsing.BotsingMojo.execute (BotsingMojo.java:87)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
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:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
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)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find fr.paris.lutece.plugins:library-lucene:lutece-plugin:3.0.1 in http://dev.lutece.paris.fr/maven_repository was cached in the local repository, resolution will not be reattempted until the update interval of lutece has elapsed or updates are forced
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:422)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:224)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact (DefaultArtifactResolver.java:201)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact (DefaultRepositorySystem.java:260)
at eu.stamp.botsing.BotsingMojo.getArtifactFile (BotsingMojo.java:139)
at eu.stamp.botsing.BotsingMojo.getDependenciesFromPom (BotsingMojo.java:113)
at eu.stamp.botsing.BotsingMojo.execute (BotsingMojo.java:87)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
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:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
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)
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find fr.paris.lutece.plugins:library-lucene:lutece-plugin:3.0.1 in http://dev.lutece.paris.fr/maven_repository was cached in the local repository, resolution will not be reattempted until the update interval of lutece has elapsed or updates are forced
at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException (DefaultUpdateCheckManager.java:235)
at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact (DefaultUpdateCheckManager.java:208)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads (DefaultArtifactResolver.java:563)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads (DefaultArtifactResolver.java:481)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:399)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:224)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact (DefaultArtifactResolver.java:201)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact (DefaultRepositorySystem.java:260)
at eu.stamp.botsing.BotsingMojo.getArtifactFile (BotsingMojo.java:139)
at eu.stamp.botsing.BotsingMojo.getDependenciesFromPom (BotsingMojo.java:113)
at eu.stamp.botsing.BotsingMojo.execute (BotsingMojo.java:87)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
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:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
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)

@luandrea
Copy link
Contributor

Hi @gibello,
I see that you are using botsing-maven:1.0.3. I'm waiting the acceptance of a pull request in which I solved some problems about missing dependencies, in version 1.0.4-SNAPSHOT. You can find it in my fork of the project if you want to try it. To do this you have to compile and install all the modules in that project.

You can then run it specifying the version like this:
mvn eu.stamp-project:botsing-maven:1.0.4-SNAPSHOT:botsing anyLogFile -Dtarget_frame=2 -Dorg.slf4j.simpleLogger.log.org.evosuite=off -Dorg.slf4j.simpleLogger.showLogName=true

The last two parameters are useful to limit the log. Can you try it?

@gibello
Copy link
Author

gibello commented Mar 13, 2019

Same issue with 1.0.4:
[ERROR] Failed to execute goal eu.stamp-project:botsing-maven:1.0.4-SNAPSHOT:botsing (default-cli) on project lutece-core: Artifact library-lucene could not be resolved.: Could not find artifact fr.paris.lutece.plugins:library-lucene:lutece-plugin:3.0.1 in lutece (http://dev.lutece.paris.fr/maven_repository) -> [Help 1]

The missing artifact seems to be there:

Locally,
$ ls ~/.m2/repository/fr/paris/lutece/plugins/library-lucene/3.0.1/
library-lucene-3.0.1.jar
library-lucene-3.0.1.jar.sha1
library-lucene-3.0.1.lutece-plugin.lastUpdated
library-lucene-3.0.1.pom
library-lucene-3.0.1.pom.sha1
library-lucene-3.0.1-webapp.zip
library-lucene-3.0.1-webapp.zip.sha1
_remote.repositories

And remotely as well (see https://dev.lutece.paris.fr/nexus/content/groups/maven_repository/fr/paris/lutece/plugins/library-lucene/3.0.1/ ).

@gibello
Copy link
Author

gibello commented Mar 13, 2019

I attach the log file I used:
ex1.log

@xdevroey xdevroey added bug Something isn't working maven-plugin This issue is related to the Maven plugin. labels Mar 22, 2019
@luandrea
Copy link
Contributor

luandrea commented Apr 4, 2019

Hi @gibello,
is this issue resolved as well after the last release of botsing-maven?

@gibello
Copy link
Author

gibello commented Apr 4, 2019

Hi @luandrea, no, not resolved with 1.0.4 nor with latest 1.0.5-SNAPSHOT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maven-plugin This issue is related to the Maven plugin.
Projects
None yet
Development

No branches or pull requests

3 participants