Open oleraj opened 2 years ago
Can you let us know what version you are on?
java -version
Possibly installing Java 17 is the issue, https://www.azul.com/downloads/
Yes, it appears we have an earlier version of java as default on our cluster: java version "1.8.0_92"
I'll see if I can get Java 17.
Okay, I tried again this time using Java 17. I was able to get past the previous error, however I'm getting a new error:
[INFO] Reactor Summary for HPOworkbench 2.1.1:
[INFO]
[INFO] HPOworkbench ....................................... SUCCESS [ 0.329 s]
[INFO] org.monarchinitiative.hpoworkbench:hpoworkbench-core FAILURE [ 7.413 s]
[INFO] org.monarchinitiative.hpoworkbench:hpoworkbench-cli SKIPPED
[INFO] hpoworkbench-gui ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.164 s
[INFO] Finished at: 2022-04-08T17:41:56-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project hpoworkbench-core: Compilation failure: Compilation failure:
[ERROR] /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/src/main/java/org/monarchinitiative/hpoworkbench/analysis/HpoStats.java:[8,56] package org.monarchinitiative.phenol.annotations.obo.hpo does not exist
[ERROR] /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/src/main/java/org/monarchinitiative/hpoworkbench/analysis/AnnotationTlc.java:[53,59] cannot find symbol
[ERROR] symbol: method getName()
...
This seems to be the important clue: package org.monarchinitiative.phenol.annotations.obo.hpo does not exist
Is this a prerequisite I need?
I just realized I forgot to switch to develop branch.
Here's the error message I get when I try to compile on the develop branch:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.monarchinitiative.hpoworkbench:hpoworkbench-core:jar:2.1.1
[WARNING] 'version' contains an expression but should be a constant. @ org.monarchinitiative.hpoworkbench:hpoworkbench-core:${project.parent.version}, /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/pom.xml, line 10, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.monarchinitiative.hpoworkbench:hpoworkbench-cli:jar:2.1.1
[WARNING] 'version' contains an expression but should be a constant. @ org.monarchinitiative.hpoworkbench:hpoworkbench-cli:${project.parent.version}, /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-cli/pom.xml, line 9, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.monarchinitiative.hpoworkbench:hpoworkbench-gui:jar:2.1.1
[WARNING] 'version' contains an expression but should be a constant. @ org.monarchinitiative.hpoworkbench:hpoworkbench-gui:${project.parent.version}, /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-gui/pom.xml, line 13, column 14
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[WARNING] The project org.monarchinitiative.hpoworkbench:hpoworkbench:pom:2.1.1 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] HPOworkbench [pom]
[INFO] org.monarchinitiative.hpoworkbench:hpoworkbench-core [jar]
[INFO] org.monarchinitiative.hpoworkbench:hpoworkbench-cli [jar]
[INFO] hpoworkbench-gui [jar]
[INFO]
[INFO] ----------< org.monarchinitiative.hpoworkbench:hpoworkbench >-----------
[INFO] Building HPOworkbench 2.1.1 [1/4]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ hpoworkbench ---
[INFO]
[INFO] --------< org.monarchinitiative.hpoworkbench:hpoworkbench-core >--------
[INFO] Building org.monarchinitiative.hpoworkbench:hpoworkbench-core 2.1.1 [2/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ hpoworkbench-core ---
[INFO] Deleting /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/target
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ hpoworkbench-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/src/main/resources
[INFO] skip non existing resourceDirectory /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ hpoworkbench-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 21 source files to /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/target/classes
[INFO] /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/src/main/java/org/monarchinitiative/hpoworkbench/analysis/HpoStats.java: /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/src/main/java/org/monarchinitiative/hpoworkbench/analysis/HpoStats.java uses or overrides a deprecated API.
[INFO] /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/src/main/java/org/monarchinitiative/hpoworkbench/analysis/HpoStats.java: Recompile with -Xlint:deprecation for details.
[INFO] /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/src/main/java/org/monarchinitiative/hpoworkbench/github/GitHubIssueRetriever.java: Some input files use unchecked or unsafe operations.
[INFO] /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/src/main/java/org/monarchinitiative/hpoworkbench/github/GitHubIssueRetriever.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ hpoworkbench-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ hpoworkbench-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ hpoworkbench-core ---
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/3.0.0-M5/maven-surefire-common-3.0.0-M5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/3.0.0-M5/maven-surefire-common-3.0.0-M5.pom (9.6 kB at 31 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/3.0.0-M5/surefire-api-3.0.0-M5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/3.0.0-M5/surefire-api-3.0.0-M5.pom (3.2 kB at 169 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-logger-api/3.0.0-M5/surefire-logger-api-3.0.0-M5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-logger-api/3.0.0-M5/surefire-logger-api-3.0.0-M5.pom (3.7 kB at 231 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.0.0-M4/surefire-shared-utils-3.0.0-M4.pom
...
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.monarchinitiative.hpoworkbench.io.HPOParserTest
18:27:31.491 [main] DEBUG org.monarchinitiative.phenol.io.OntologyLoader - Read first bytes: format-version:
18:27:31.494 [main] DEBUG org.monarchinitiative.phenol.io.OntologyLoader - Looks like a OBO/OWL file...
18:27:31.494 [main] ERROR org.monarchinitiative.phenol.io.OntologyLoader - OBO/OWL support was removed since 2.0.0
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.224 s <<< FAILURE! - in org.monarchinitiative.hpoworkbench.io.HPOParserTest
[ERROR] org.monarchinitiative.hpoworkbench.io.HPOParserTest.testInputOntology Time elapsed: 0.203 s <<< ERROR!
org.monarchinitiative.phenol.base.PhenolRuntimeException: OBO/OWL support was removed since 2.0.0, use JSON instead
at org.monarchinitiative.hpoworkbench.io.HPOParserTest.testInputOntology(HPOParserTest.java:21)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] HPOParserTest.testInputOntology:21 » PhenolRuntime OBO/OWL support was removed...
[INFO]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for HPOworkbench 2.1.1:
[INFO]
[INFO] HPOworkbench ....................................... SUCCESS [ 0.160 s]
[INFO] org.monarchinitiative.hpoworkbench:hpoworkbench-core FAILURE [ 7.385 s]
[INFO] org.monarchinitiative.hpoworkbench:hpoworkbench-cli SKIPPED
[INFO] hpoworkbench-gui ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.811 s
[INFO] Finished at: 2022-04-08T18:27:31-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on project hpoworkbench-core: There are test failures.
[ERROR]
[ERROR] Please refer to /nethome/oleraj/Apps/HPOWorkbench/HPOworkbench/hpoworkbench-core/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
Thanks
@oleraj -- please see this file in the Releases section -- hpoworkbench_2.2.2-1_amd64.deb This is an independent program and does not need Java to be preinstalled. Alternatively the JAR file will run if you have Java 17 installed.
Hi @pnrobinson,
I'm unable to compile the HPOWorkbench on Linux. I'm using maven v3.6.2.
Here is the error report:
After switching to
develop
branch and re-running, here is the output:Note that I don't have any experience with compiling Java code, so this could be a very simple error.
Any ideas?
Thanks!
Andrew