voiceip / oreka

OpenSource G711, G722, G729, Opus & Other Format VoIP SIP Recorder
GNU General Public License v3.0
154 stars 80 forks source link

Orkbasej failure during mvn install #57

Closed anpjohn closed 3 years ago

anpjohn commented 3 years ago

When I run a mvn clean install I am getting this:

[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] orkbasej [jar] [INFO] orktrack [war] [INFO] orkweb [war] [INFO] orekaj-parent [pom] [INFO] [INFO] -----------------------< net.sf.oreka:orkbasej >------------------------ [INFO] Building orkbasej 0.0.2-SNAPSHOT [1/4] [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The POM for avalon-framework:avalon-framework-api:jar:4.1.5-dev is missing, no dependency information available [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ orkbasej --- [INFO] Deleting /var/opt/oreka/orkbasej/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ orkbasej --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 7 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ orkbasej --- [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 51 source files to /var/opt/oreka/orkbasej/target/classes [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for orekaj-parent 0.0.2-SNAPSHOT: [INFO] [INFO] orkbasej ........................................... FAILURE [ 5.399 s] [INFO] orktrack ........................................... SKIPPED [INFO] orkweb ............................................. SKIPPED [INFO] orekaj-parent ...................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.845 s [INFO] Finished at: 2021-08-26T10:05:16-05:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project orkbasej: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

I haven't used mvn before and I am kind of stumped on how to fix this dependency issue. It is probably something dumb that I am missing.

kingster commented 3 years ago

Which version+distribution of java and mvn are you using? Our ci pipelines uses java8 and I use the same for my dev environment.

anpjohn commented 3 years ago

I did a clean install using openjdk 8 and that resolved it! I had some others errors but then read about using mvn clean install -DskipTests=true and I'm getting successes for everything. Thank you!!!

I have the orkaudio running in docker and I have mvn installed orktrack and orkweb, do I still need to set up tomcat to get the web interface working? Sorry I am not familiar with mvn at all. I guess this is more of a question instead of an issue so we can close this and I will put it in discussion.