Skip to content

mvn package -DskipTests can't find jpl, org.slf4j, com.google.commmon.collect, etc #19

@gherson

Description

@gherson

No errors until mvn package -DskipTests, which can't find packages jpl, org.slf4j, com.google.commmon.collect, etc:

C:\Users\George\Downloads\APE-master\APE-master\java>mvn install:install-file -D
file="C:/Program Files (x86)/pl/lib/jpl.jar" -DgroupId=jpl -DartifactId=jpl -Dve
rsion=7.2.3 -Dpackaging=jar -DgeneratePom=true
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Java Interface for APE 1.0.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ attempto-ape --
-
[INFO] Installing C:\Program Files (x86)\pl\lib\jpl.jar to C:\Users\George\.m2\r
epository\jpl\jpl\7.2.3\jpl-7.2.3.jar
[INFO] Installing C:\Users\George\AppData\Local\Temp\mvninstall93428386020597161
6.pom to C:\Users\George\.m2\repository\jpl\jpl\7.2.3\jpl-7.2.3.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.761 s
[INFO] Finished at: 2016-03-26T20:44:57-04:00
[INFO] Final Memory: 8M/155M
[INFO] ------------------------------------------------------------------------

C:\Users\George\Downloads\APE-master\APE-master\java>mvn package -DskipTests|mor
e
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Java Interface for APE 1.0.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ attempto-a
pe ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\George\Downloads\APE-master\
APE-master\java\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ attempto-ape --
-
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 33 source files to C:\Users\George\Downloads\APE-master\APE-mas
ter\java\target\classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /C:/Users/George/Downloads/APE-master/APE-master/java/src/main/java/ch
/uzh/ifi/attempto/ape/APEWebservice.java: C:\Users\George\Downloads\APE-master\A
PE-master\java\src\main\java\ch\uzh\ifi\attempto\ape\APEWebservice.java uses or
overrides a deprecated API.
[WARNING] /C:/Users/George/Downloads/APE-master/APE-master/java/src/main/java/ch
/uzh/ifi/attempto/ape/APEWebservice.java: Recompile with -Xlint:deprecation for
details.
[INFO] 2 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/George/Downloads/APE-master/APE-master/java/src/main/java/ch/u
zh/ifi/attempto/ape/APELocal.java:[17,1] package jpl does not exist
[ERROR] /C:/Users/George/Downloads/APE-master/APE-master/java/src/main/java/ch/u
zh/ifi/attempto/base/MultiTextContainer.java:[21,33] package com.google.common.c
ollect does not exist
[ERROR] /C:/Users/George/Downloads/APE-master/APE-master/java/src/main/java/ch/u
zh/ifi/attempto/base/LoggerContext.java:[54,26] package org.slf4j does not exist
[ERROR] /C:/Users/George/Downloads/APE-master/APE-master/java/src/main/java/ch/u
zh/ifi/attempto/base/LoggerContext.java:[55,26] package org.slf4j does not exist
[ERROR] /C:/Users/George/Downloads/APE-master/APE-master/java/src/main/java/ch/u
zh/ifi/attempto/base/LoggerContext.java:[56,26] package org.slf4j does not exist
[ERROR] /C:/Users/George/Downloads/APE-master/APE-master/java/src/main/java/ch/u
zh/ifi/attempto/ape/APELocal.java:[69,25] cannot find symbol
  symbol:   variable JPL
  location: class ch.uzh.ifi.attempto.ape.APELocal
[ERROR] /C:/Users/George/Downloads/APE-master/APE-master/java/src/main/java/ch/u
. . .

why?

thanks,
George
(on Windows 7)

p.s. I also had to edit Downloads\APE-master\APE-master\java\pom.xml's
org.apache.maven.plugins
maven-compiler-plugin
2.0.2

1.5
1.5
Advice from http://stackoverflow.com/questions/25912398/maven-project-error-diamond-multicatch-operator-not-supported-in-source-1-5 to make it the following seems to work.
org.apache.maven.plugins
maven-compiler-plugin
3.1

1.8
1.8

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions