question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using ${packaging.type} as value for packaging element in pom.xml of 0.9.11 prevents usage with sbt / ivy

See original GitHub issue

The pom for 0.9.11 seems to be problematic for sbt / ivy. This is the change to pom.xml that causes the problem.

This is the error message I get:

[warn] 	[FAILED     ] org.reflections#reflections;0.9.11!reflections.${packaging.type}:  (0ms)
[warn] ==== local: tried
[warn]   /home/user/.ivy2/local/org.reflections/reflections/0.9.11/${packaging.type}s/reflections.${packaging.type}
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/org/reflections/reflections/0.9.11/reflections-0.9.11.${packaging.type}
[warn] ==== typesafe-releases: tried
[warn]   http://repo.typesafe.com/typesafe/releases/org/reflections/reflections/0.9.11/reflections-0.9.11.${packaging.type}
[warn] ==== typesafe-ivy-releasez: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-releases/org.reflections/reflections/0.9.11/${packaging.type}s/reflections.${packaging.type}
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	::              FAILED DOWNLOADS            ::
[warn] 	:: ^ see resolution messages for details  ^ ::
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	:: org.reflections#reflections;0.9.11!reflections.${packaging.type}
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
lhotaricommented, Mar 22, 2017

Found another workaround for sbt, adding this line to build.sbt helps:

sys.props += "packaging.type" -> "jar"
3reactions
Woodzcommented, May 3, 2019

This might help for the meanwhile: libraryDependencies += “org.reflections” %% “reflections” % “0.9.11” artifacts( Artifact(“reflections”, “”, “jar”))

Current 0.9.11 artifact in repo1 is w/o the ${packaging.type} variable (I’ve pushed it again, bad-bad-bad) And just committed (c328834) a fix to this (source head 0.9.12-SNAPSHOT)

@ronmamo there are some mirrors of the 0.9.11 artefact that still have this issue, which is causing sporadic issues. I am trying to identify them so that I can request that they delete the erroneous artefact, but to ensure that no mirrors or caches still have this issue, I strongly recommend creating a new release and encouraging your dependants to move to latest.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I resolve a dependency in sbt that has a different ...
In my example, I need to resolve a dependency whose artifacts don't have the conventional jar as the packaging type, but rather maven-plugin...
Read more >
POM Reference - Maven
The current core packaging values are: pom , jar , maven-plugin , ejb , war , ear , rar . These define the...
Read more >
sbt Reference Manual — Library dependencies
Library dependencies. This page assumes you've already read the earlier Getting Started pages, in particular build definition, scopes, and task graph.
Read more >
Untitled
GA-dist.tar.gz apiviz.spec adobe-flash.xml appstream-data.spec fedora-32-icons.tar.gz ... jbig2dec-Use-correct-define-for-maxium-value-of-type.patch ...
Read more >
kie-parent : 7.32.0.Final - Maven Central Repository Search
<?xml version="1.0" encoding="UTF-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found