Giter VIP home page Giter VIP logo

Comments (8)

RicardoUsbeck avatar RicardoUsbeck commented on August 30, 2024

Hi, the question fits fine here and we are glad to help. From which branch are you using it?

from agdistis.

 avatar commented on August 30, 2024

Glad to hear that. I am currently using the mergeT branch.

from agdistis.

DiegoMoussallem avatar DiegoMoussallem commented on August 30, 2024

Hey @Phauly1, I think that you are doing everything right. The stranger behavior comes from this line https://github.com/AKSW/AGDISTIS/blob/mergeT/src/main/java/org/aksw/agdistis/webapp/GetDisambiguation.java#L83

Please, trying to comment it and tell me whether it works.

from agdistis.

RicardoUsbeck avatar RicardoUsbeck commented on August 30, 2024

Another thing to check is, how are you building and using the jar from your project? If you do it via mvn install and a pom, please try to delete if from ~/.m2/repositories and reinstall it

from agdistis.

 avatar commented on August 30, 2024

Thanks for your suggestions so far!

@DiegoMoussallem I have commented out this line, but nothing changed.

@RicardoUsbeck The JAR of my main program is built via mvn install and a pom file, yes. I have deleted everything in .m2 and installed it from scratch, but it also does not solve the problem.

But I made a new discovery:

I downloaded a new and untouched AGDISTIS version from mergeT and just excluded the config folder via the pom file and commented out the aforementioned line of code. After that, I run mvn install and get an AGDISTIS JAR with no config folder or properties files in it. I am doing this, because I just want to see, if there will be some error later on, triggered by missing configuration parameters.

If I add this AGDISTIS JAR to my local maven repository with mvn install:install-file there is still no config folder or properties file in the AGDISTIS JAR - good.
But now, when I run mvn install or even mvn clean install on my main program, there suddenly is a config folder with all AGDISTIS properties files in the main program's JAR. I have absolutely no idea how this happens. Edit: These appearing properties files seem to be the defaults I was talking about in my first post.

Do you have any idea what causes this behaviour?

from agdistis.

RicardoUsbeck avatar RicardoUsbeck commented on August 30, 2024

I have never seen that behaviour before. Can you debug what's happening with Eclipse?

from agdistis.

RicardoUsbeck avatar RicardoUsbeck commented on August 30, 2024

Hmm maybe related to http://stackoverflow.com/questions/34131991/properties-file-reads-old-data-when-jar-is-executed-from-command-line ?

from agdistis.

 avatar commented on August 30, 2024

I have repeated the whole procedure and installed everything again. I really do not know what the problem was, but now I am able to configure AGDISTIS out of my own resource folder. Thank you very much for your help!

from agdistis.

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.