Giter Site home page Giter Site logo

Publish to Maven repository about smile HOT 17 CLOSED

haifengl avatar haifengl commented on April 28, 2024
Publish to Maven repository

from smile.

Comments (17)

haifengl avatar haifengl commented on April 28, 2024

Good idea. Will figure out how to do it. Thanks!

from smile.

haifengl avatar haifengl commented on April 28, 2024

Refactored pom.xml in preparation of maven central repository.

from smile.

haifengl avatar haifengl commented on April 28, 2024

It is in the maven central repository now. Please try

com.github.haifengl smile-core 1.0.0

Thanks!

from smile.

benmccann avatar benmccann commented on April 28, 2024

Thank you!!

from smile.

experquisite avatar experquisite commented on April 28, 2024

Yes this is awesome, thanks!

from smile.

experquisite avatar experquisite commented on April 28, 2024

Is there a link to find it on maven.org ? I can't seem to see it.

from smile.

experquisite avatar experquisite commented on April 28, 2024

I found it at https://repo1.maven.org/maven2/com/github/haifengl/ , but it seems to be trying to pull in smile-all which doesn't exist? (I'm doing this from within an sbt file for a scala project)

from smile.

haifengl avatar haifengl commented on April 28, 2024

Smile-all is the parent pom to build all these modules. It is not really needed. Maybe I didn't do it right to publish to central repository. Any ideas? Thanks!

from smile.

experquisite avatar experquisite commented on April 28, 2024

Regrettably I am not an expert. In my build.sbt I have:

resolvers += Resolver.sonatypeRepo("releases")

libraryDependencies += "com.github.haifengl" % "smile-core" % "1.0.0"

Which, when I 'sbt compile', results in:

[info] Resolving com.github.haifengl#smile-all;1.0.0 ...
[warn] io problem while parsing ivy file: https://repo1.maven.org/maven2/com/github/haifengl/smile-core/1.0.0/smile-core-1.0.0.pom: Impossible to load parent for file:/home/xxx/.ivy2/cache/com.github.haifengl/smile-core/ivy-1.0.0.xml.original. Parent=com.github.haifengl#smile-all;1.0.0
[info] Resolving com.github.haifengl#smile-all;1.0.0 ...
[warn] io problem while parsing ivy file: https://oss.sonatype.org/content/repositories/releases/com/github/haifengl/smile-core/1.0.0/smile-core-1.0.0.pom: Impossible to load parent for file:/home/xxx/.ivy2/cache/com.github.haifengl/smile-core/ivy-1.0.0.xml.original. Parent=com.github.haifengl#smile-all;1.0.0
[warn] module not found: com.github.haifengl#smile-core;1.0.0
[warn] ==== local: tried
[warn] /home/xxx/.ivy2/local/com.github.haifengl/smile-all/1.0.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/github/haifengl/smile-all/1.0.0/smile-all-1.0.0.pom
[warn] ==== sonatype-releases: tried
[warn] https://oss.sonatype.org/content/repositories/releases/com/github/haifengl/smile-all/1.0.0/smile-all-1.0.0.pom

from smile.

haifengl avatar haifengl commented on April 28, 2024

I will figure out how to fix it. In short term, maybe you can download the parent pom from github to your local ivy2 directory?

from smile.

haifengl avatar haifengl commented on April 28, 2024

Can you please try again with version 1.0.1? Thanks! If maven cannot find this version, please just wait a couple of hours.

from smile.

experquisite avatar experquisite commented on April 28, 2024

1.0.1 works perfectly, thanks!

from smile.

haifengl avatar haifengl commented on April 28, 2024

Great! Thanks for quick response!

from smile.

experquisite avatar experquisite commented on April 28, 2024

Sorry to follow up on a closed ticket, but I might be having some trouble with resources. I am getting a crash when creating a plot:

java.lang.NullPointerException

from the ImageIcon constructor here in PlotCanvas:

private class SaveAction extends AbstractAction {

    public SaveAction() {
        super("Save", new ImageIcon(PlotCanvas.class.getResource("images/save16.png")));
    }

I don't see that these images are in the maven jar file. jar tf smile-plot-1.0.1.jar didn't list them anyway. Should they be?

from smile.

haifengl avatar haifengl commented on April 28, 2024

Can you please try version 1.0.2 now? Thanks!

from smile.

Xyclade avatar Xyclade commented on April 28, 2024

I noticed the same issue as @experquisite, but it seems fixed now with 1.0.2 via maven for me 👍

from smile.

haifengl avatar haifengl commented on April 28, 2024

Great. Thanks guys!

from smile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.