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

mvn package project failed #2

Closed
ZunwenYou opened this issue Aug 3, 2016 · 4 comments
Closed

mvn package project failed #2

ZunwenYou opened this issue Aug 3, 2016 · 4 comments

Comments

@ZunwenYou
Copy link

ZunwenYou commented Aug 3, 2016

I change the version of pmml-evaluator of pmml-spark/pom.xml. And maven package successfully.

                <dependency>
                        <groupId>org.jpmml</groupId>
                        <artifactId>pmml-evaluator</artifactId>
-                       <version>1.2.12</version>
+                       <version>1.2.15</version>
                </dependency>
@vruusmann
Copy link
Member

What is the Maven failure message? Please copy&paste the last 100 lines of Maven build output here.

@ZunwenYou
Copy link
Author

BTW, I specify the spark version to 1.6.1

The maven output message as follow.

[INFO] Building pmml-spark 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.jpmml:pmml-evaluator:jar:1.2.12 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.apache.spark:spark-catalyst_2.10:jar:1.6.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ pmml-spark ---
[WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ pmml-spark ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!
[INFO] Compiling 4 source files to /home/iniesta/workspace/jpmml-spark/pmml-spark/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[38,20] package org.dmg.pmml does not exist
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[39,20] package org.dmg.pmml does not exist
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[40,20] package org.dmg.pmml does not exist
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[41,20] package org.dmg.pmml does not exist
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[48,23] package org.jpmml.model does not exist
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[49,23] package org.jpmml.model does not exist
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[50,32] package org.jpmml.model.visitors does not exist
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[196,40] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[201,55] package org.dmg.pmml does not exist
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[69,33] cannot find symbol
  symbol:   variable ImportFilter
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[71,17] cannot find symbol
  symbol:   class PMML
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[71,29] cannot find symbol
  symbol:   variable JAXBUtil
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[74,17] cannot find symbol
  symbol:   class LocatorTransformer
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[74,61] cannot find symbol
  symbol:   class LocatorTransformer
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[79,31] cannot access org.dmg.pmml.Model
  class file for org.dmg.pmml.Model not found
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[105,21] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[105,73] unexpected type
  required: class
  found:    <K,V>java.util.LinkedHashMap<K,V>
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[107,22] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[108,21] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[116,21] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[120,22] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[121,21] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[127,22] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[128,21] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[148,22] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[149,21] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[150,25] cannot find symbol
  symbol:   class DataField
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[170,22] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[171,21] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[172,25] cannot find symbol
  symbol:   class DataField
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[177,22] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[178,21] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[179,25] cannot find symbol
  symbol:   class OutputField
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[204,30] cannot find symbol
  symbol:   variable STRING
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[206,30] cannot find symbol
  symbol:   variable INTEGER
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[208,30] cannot find symbol
  symbol:   variable FLOAT
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[210,30] cannot find symbol
  symbol:   variable DOUBLE
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/EvaluatorUtil.java:[212,30] cannot find symbol
  symbol:   variable BOOLEAN
  location: class org.jpmml.spark.EvaluatorUtil
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/PMMLPredictionModel.java:[135,22] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.PMMLPredictionModel
[ERROR] /home/iniesta/workspace/jpmml-spark/pmml-spark/src/main/java/org/jpmml/spark/PMMLPredictionModel.java:[140,17] cannot find symbol
  symbol:   class FieldName
  location: class org.jpmml.spark.PMMLPredictionModel
[INFO] 40 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] JPMML-Spark ........................................ SUCCESS [  0.588 s]
[INFO] pmml-spark ......................................... FAILURE [  2.370 s]
[INFO] pmml-spark-example ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.081 s

@vruusmann
Copy link
Member

vruusmann commented Aug 3, 2016

Your compilation error mentions class org.jpmml.spark.PMMLPredictionModel. This class has been replaced with class org.jpmml.spark.PMMLTransformer lately.

So, please check out the current version of JPMML-Spark, and rebuild again. Everything should be just fine then.

@vruusmann
Copy link
Member

The JPMML-Spark project now has Travis CI watching its back: https://travis-ci.org/jpmml/jpmml-spark

The build passes cleanly.

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