Giter VIP home page Giter VIP logo

Comments (5)

vruusmann avatar vruusmann commented on August 18, 2024

The installation instructions that are given in README.md assume that the user is familiar with the Apache Maven way of project management. The reason is that the JPMML-Evaluator library depends on a number of 3rd party libraries, and it would be rather difficult to manage all this complexity otherwise.

You are pretty close to building the project with approach 2. Simply change the third command to Apache Maven's default mvn clean install. The build produces the same set of JAR files that can be downloaded from the Maven Central repository. If you are looking for a single uber-JAR type of thing that you could simply drop to your own project's lib directory, then pmml-evaluator-example/target/example-1.2-SNAPSHOT.jar is the closest to it.

However, I would strongly recommend you to invest some time into Apache Maven. You can use the example application POM file pmml-evaluator-example/pom.xml as a starting point for your own project.

I will think about enhancing the README.md file with installation instructions for Apache Ant and other project management tools. Will close this issue when ready.

from jpmml-evaluator.

benman1 avatar benman1 commented on August 18, 2024

Thank you, Villu, it worked! I cd into jpmml-evaluator/pmml-evaluator-example, change the pom.xml to include the main method as a manifest attribute, and compile using mvn clean install. Cheers!

from jpmml-evaluator.

phsieh avatar phsieh commented on August 18, 2024

Thanks for writing this library. Also, thanks for posting this question. I think there might be quite a few people who are unfamiliar with maven who find this helpful (i.e. me).

from jpmml-evaluator.

vruusmann avatar vruusmann commented on August 18, 2024

@phsieh You should also check out the JPMML-Evaluator-Bootstrap project, which provides a sample Apache Maven configuration for getting started with a new PMML-powered application.

Installing Apache Maven is a one-time effort (downloading binary distribution archive, unzipping it, and adding its bin directory to your system path). But it will save you tremendous amounts of effort afterwards, because it provides an easy and reproducible way of building Java software from source (eg. will be applicable to building pretty much any Java software that you can find in GitHub).

from jpmml-evaluator.

vruusmann avatar vruusmann commented on August 18, 2024

There shouldn't be any practical reason to build the JPMML-Evaluator project from source checkout anymore.

If one is looking for the library JAR files, then they are available via the Maven Central repository. If one is looking for the executable uber-JAR files (eg. to play with example command-line applications), then they are available from GitHub releases page:
https://github.com/jpmml/jpmml-evaluator/releases

Apache Maven is awesome. I have absolutely no interest to waste my time supporting legacy and/or alternative build systems (eg. Apache Ant, Gradle, SBT).

from jpmml-evaluator.

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.