Hi, I'm trying to set up a build that will always use the latest
snapshot of our in-house bundles.
Thus, I'm specifying <version>LATEST</version> in the bundle list XML file:
<bundle>
<groupId>com.idium.kolibri</groupId>
<artifactId>kolibri-loginmodule</artifactId>
<version>LATEST</version>
</bundle>
The build fails constantly with "Embedded error: Unable to determine
the latest version" (see full stacktrace below).
Is this supposed to work with the Launchpad plugin?
Stacktrace:
[INFO] artifact com.idium.kolibri:kolibri-loginmodule: checking for
updates from apache.incubating
[INFO] artifact com.idium.kolibri:kolibri-loginmodule: checking for
updates from OPS4J
[INFO] artifact com.idium.kolibri:kolibri-loginmodule: checking for
updates from Apache Releases
[INFO] artifact com.idium.kolibri:kolibri-loginmodule: checking for
updates from idium.m2
[INFO] artifact com.idium.kolibri:kolibri-loginmodule: checking for
updates from central
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to find artifact.
Embedded error: Unable to determine the latest version
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.idium.kolibri
-DartifactId=kolibri-loginmodule -Dversion=LATEST -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.idium.kolibri
-DartifactId=kolibri-loginmodule -Dversion=LATEST -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
com.idium.kolibri:kolibri-loginmodule:jar:LATEST
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to find artifact.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to
find artifact.
at
org.apache.sling.maven.projectsupport.AbstractBundleListMojo.getArtifact(AbstractBundleListMojo.java:200)
at
org.apache.sling.maven.projectsupport.AbstractBundleListMojo.getArtifact(AbstractBundleListMojo.java:169)
at
org.apache.sling.maven.projectsupport.AbstractLaunchpadFrameworkMojo.copy(AbstractLaunchpadFrameworkMojo.java:59)
at
org.apache.sling.maven.projectsupport.AbstractLaunchpadFrameworkMojo.copyBundles(AbstractLaunchpadFrameworkMojo.java:53)
at
org.apache.sling.maven.projectsupport.PreparePackageMojo.executeWithArtifacts(PreparePackageMojo.java:94)
at
org.apache.sling.maven.projectsupport.AbstractBundleListMojo.execute(AbstractBundleListMojo.java:150)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to determine the latest version
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.idium.kolibri
-DartifactId=kolibri-loginmodule -Dversion=LATEST -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.idium.kolibri
-DartifactId=kolibri-loginmodule -Dversion=LATEST -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
com.idium.kolibri:kolibri-loginmodule:jar:LATEST
at
org.apache.maven.artifact.transform.LatestArtifactTransformation.transformForResolve(LatestArtifactTransformation.java:44)
at
org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForResolve(DefaultArtifactTransformationManager.java:55)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:145)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
at
org.apache.sling.maven.projectsupport.AbstractBundleListMojo.getArtifact(AbstractBundleListMojo.java:196)
... 24 more
--
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00
Quando omni flunkus moritatus!