Comments (5)
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.
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.
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.
@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.
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)
- How to work with an association rules model (`AssociationModel` element)? HOT 8
- JPMML is enforcing the definition of target fields while the spec says it is optional HOT 6
- jpmml-evaluator does not handle null values when used in java? HOT 1
- Ability to run multiple JPMML-Evaluator versions in parallel (inside the same JVM) HOT 1
- NumberFormatException for evaluate "Random Survival Forest Model" generated by "SoftwareAG PMML Generator" HOT 3
- Compatibility with GraalVM HOT 12
- Not happy with XGBoost evaluation performance HOT 3
- How to load pre-transpiled PMML service provider JAR files? HOT 2
- Model verification fails for XGBoost models HOT 1
- No class def found for jakarta/xml/bind/JAXBContext HOT 3
- java.lang.IllegalArgumentException: Name cannot be empty HOT 1
- java.lang.NoClassDefFoundError: Could not initialize class org.jpmml.evaluator.FieldUtil HOT 4
- If the version 1.6.4 could work on java 8? HOT 1
- Field pmml(pred) is not defined. HOT 5
- DuplicatedFieldValueException after loading PMML in Java generated by Nyoka HOT 8
- 1.6.4 cannot run on java 8
- Exception: Required attribute `Segmentation@multipleModelMethod` is not defined HOT 3
- Updating Guava dependency to latest HOT 4
- why create jar file create error HOT 1
- LoadingModelEvaluatorBuilder not usable on Android due to "java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Image" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpmml-evaluator.