[artifactory] пробросить снапшот через зеркало

kill-still

Есть сервер с артефактори. Используем его как кеш для центрального и других репозиториев а также для выкладывания сторонних артефактов, которые не используют мавен, или пропатченых опенсорсных проектов.
В настройках мавена в качестве зеркала указан сервер с артефактори:
 

<mirrors>
<mirror>
<id>staging-central</id>
<mirrorOf>central</mirrorOf>
<url>http://staging:8180/artifactory/repo</url>
</mirror>
</mirrors>

Добавил я такой вот репозиторий:

и пытаюсь забрать оттуда снапшот:
 

<dependency>
<groupId>pentaho-kettle</groupId>
<artifactId>market</artifactId>
<version>5.0-SNAPSHOT</version>
</dependency>

но мавен ругается:
 
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building KettleMavenTest 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for pentaho-kettle:market:jar:5.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.569s
[INFO] Finished at: Fri Apr 04 18:02:53 MSK 2014
[INFO] Final Memory: 6M/16M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project KettleMavenTest: Could not resolve dependencies for project KettleMavenTest:KettleMavenTest:jar:1.0-SNAPSHOT: Could not find artifact pentaho-kettle:market:jar:5.0-SNAPSHOT -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project KettleMavenTest: Could not resolve dependencies for project KettleMavenTest:KettleMavenTest:jar:1.0-SNAPSHOT: Could not find artifact pentaho-kettle:market:jar:5.0-SNAPSHOT
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
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)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project KettleMavenTest:KettleMavenTest:jar:1.0-SNAPSHOT: Could not find artifact pentaho-kettle:market:jar:5.0-SNAPSHOT
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact pentaho-kettle:market:jar:5.0-SNAPSHOT
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact pentaho-kettle:market:jar:5.0-SNAPSHOT
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact pentaho-kettle:market:jar:5.0-SNAPSHOT
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528)
... 26 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/DependencyResolutionException

ЧЯДНТ?

psm-home

А что при этом в логах artifactory?

kill-still

ещё один проблемный артефакт нашёл:

<dependency>
<groupId>pentaho</groupId>
<artifactId>metastore</artifactId>
<version>5.0.1-stable</version>
</dependency>

в логах что-то глухо. последние сообщения час назад, когда скачивались те артефакты, которые я в кэше стёр.

kill-still

Короче пересоздал репозиторий, перезапустил артефактори, вроде просралось оно.
Места на виртуалке вроде до жопы ещё. Что было - хз. Просто часть артефактов отказывалось скачивать.
Оставить комментарий
Имя или ник:
Комментарий: