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

Libraries reported as "unrecognized" / "none specified" when retrieving from local ivy #42

Open
Sciss opened this issue Oct 12, 2019 · 4 comments

Comments

@Sciss
Copy link

Sciss commented Oct 12, 2019

For example, in Mellite:

git clone https://github.com/Sciss/Mellite.git
cd Mellite
git checkout v2.40.0
sbt mellite-app/dumpLicenseReport

gives

cat app/target/license-reports/mellite-app-licenses.md | grep AGPL
GPL | [AGPL v3+](http://www.gnu.org/licenses/agpl-3.0.txt) | de.sciss # patterns-core_2.12 # 0.15.1 | <notextile></notextile>
GPL | [AGPL v3+](http://www.gnu.org/licenses/agpl-3.0.txt) | de.sciss # patterns-lucre_2.12 # 0.15.1 | <notextile></notextile>

but

$ cat app/target/license-reports/mellite-app-licenses.md | grep unrecognized
unrecognized | [GNU Lesser General Public Licence](http://www.gnu.org/licenses/lgpl.txt) | de.sciss # scala-chart_2.12 # 0.7.1 | <notextile></notextile>
unrecognized | [GNU Lesser General Public Licence](http://www.gnu.org/licenses/lgpl.txt) | org.jfree # jcommon # 1.0.23 | <notextile></notextile>
unrecognized | [GNU Lesser General Public Licence](http://www.gnu.org/licenses/lgpl.txt) | org.jfree # jfreechart # 1.0.19 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # fscape-core_2.12 # 2.31.0 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # fscape-lucre_2.12 # 2.31.0 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # fscape-views_2.12 # 2.31.0 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # lucre-adjunct_2.12 # 3.15.2 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # lucre-base_2.12 # 3.15.2 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # lucre-bdb_2.12 # 3.15.2 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # lucre-confluent_2.12 # 3.15.2 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # lucre-core_2.12 # 3.15.2 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # lucre-data_2.12 # 3.15.2 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # lucre-expr_2.12 # 3.15.2 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # lucre-geom_2.12 # 3.15.2 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # lucre-swing_2.12 # 1.19.1 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # lucre-synth_2.12 # 3.32.2 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # negatum-core_2.12 # 0.10.0 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # negatum-views_2.12 # 0.10.0 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # scalafreesound-compression_2.12 # 1.21.0 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # scalafreesound-core_2.12 # 1.21.0 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # scalafreesound-lucre_2.12 # 1.21.0 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # scalafreesound-swing_2.12 # 1.21.0 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # scalafreesound-views_2.12 # 1.21.0 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # soundprocesses-compiler_2.12 # 3.32.2 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # soundprocesses-core_2.12 # 3.32.2 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # soundprocesses-views_2.12 # 3.32.2 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # span_2.12 # 1.4.3 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # wolkenpumpe-basic_2.12 # 2.37.0 | <notextile></notextile>
unrecognized | [none specified](none specified) | de.sciss # wolkenpumpe-core_2.12 # 2.37.0 | <notextile></notextile>
unrecognized | [none specified](none specified) | lucene # lucene # 1.4.3 | <notextile></notextile>

If I take the successful example, patterns, and one that fails, fscape, and compare their maven poms, I cannot spot a single difference:

The license information is identical:

    <licenses>
        <license>
            <name>AGPL v3+</name>
            <url>http://www.gnu.org/licenses/agpl-3.0.txt</url>
            <distribution>repo</distribution>
        </license

So why do get all these recognition failures?

@Sciss
Copy link
Author

Sciss commented Dec 17, 2019

any news on this?

@Sciss
Copy link
Author

Sciss commented Dec 23, 2019

I could narrow down the problem now; it happens when sbt picks up my libraries from ~/.ivy2/local (what happens after you do publishLocal) ; when libraries are retrieved from the Internet to ~/.ivy2/cache, the licenses are correctly parsed.

@Sciss Sciss changed the title Many libraries reported as "unrecognized" / "none specified" Libraries reported as "unrecognized" / "none specified" when retrieving from local ivy Dec 23, 2019
@eed3si9n
Copy link
Member

AFAIK no one has actively worked on this plugin for the last 4~5 years.
Would you be interested in sending a fix for this?

@Sciss
Copy link
Author

Sciss commented Dec 23, 2019

Sure, I will give the code a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants