holodeck-b2b / rest-backend

An extension for Holodeck B2B that implements the Submit, Notify and Deliver operations using a REST API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to compile from source

salom12 opened this issue · comments

I tried to compile the rest-backend and the output is this:

mvn clean install
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] --------------< org.holodeckb2b.extensions:rest-backend >---------------
[INFO] Building Holodeck B2B - REST back end 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for org.holodeckb2b:holodeckb2b-interfaces:jar:5.0.0 is missing, no dependency information available
[WARNING] The POM for org.holodeckb2b:holodeckb2b-core:jar:5.0.0 is missing, no dependency information available
[WARNING] The POM for org.holodeckb2b:holodeckb2b-core:jar:tests:5.0.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.193 s
[INFO] Finished at: 2021-07-05T13:14:14+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project rest-backend: Could not resolve dependencies for project org.holodeckb2b.extensions:rest-backend:jar:1.0.0: The following artifacts could not be resolved: org.holodeckb2b:holodeckb2b-interfaces:jar:5.0.0, org.holodeckb2b:holodeckb2b-core:jar:5.0.0, org.holodeckb2b:holodeckb2b-core:jar:tests:5.0.0: Failure to find org.holodeckb2b:holodeckb2b-interfaces:jar:5.0.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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/DependencyResolutionException

I tried to import the missing depnedencies from local jar files like this:

org.holodeckb2b
holodeckb2b-interfaces
5.0.3
system
/path/to/libs/libs/holodeckb2b-interfaces-5.0.0.jar


org.holodeckb2b
holodeckb2b-core
${holodeckb2b.version}
system
/path/to/libs/holodeckb2b-core-5.0.3.jar

the end output is like this:

mvn clean compile | sed 's/tyr4n7/$USER/'
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.holodeckb2b.extensions:rest-backend:jar:1.0.0
[WARNING] 'dependencies.dependency.systemPath' for org.holodeckb2b:holodeckb2b-interfaces:jar should use a variable instead of a hard-coded path /home/$USER/repos/libs/holodeckb2b-interfaces-5.0.0.jar @ line 77, column 16
[WARNING] 'dependencies.dependency.systemPath' for org.holodeckb2b:holodeckb2b-core:jar should use a variable instead of a hard-coded path /home/$USER/repos/libs/holodeckb2b-core-5.0.3.jar @ line 84, column 16
[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]
[INFO]
[INFO] --------------< org.holodeckb2b.extensions:rest-backend >---------------
[INFO] Building Holodeck B2B - REST back end 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for org.holodeckb2b:holodeckb2b-core:jar:tests:5.0.0 is missing, no dependency information available
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rest-backend ---
[INFO] Deleting /home/$USER/repos/as4-rest-backend/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rest-backend ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ rest-backend ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /home/$USER/repos/as4-rest-backend/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[30,29] package org.apache.axiom.soap does not exist
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[31,24] package org.apache.axis2 does not exist
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[32,32] package org.apache.axis2.context does not exist
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[33,34] package org.apache.axis2.receivers does not exist
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[34,42] package org.apache.commons.fileupload.util does not exist
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[66,38] cannot find symbol
symbol: class AbstractMessageReceiver
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[72,47] cannot find symbol
symbol: class MessageContext
location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[72,77] cannot find symbol
symbol: class AxisFault
location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[224,48] cannot find symbol
symbol: class MessageContext
location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/NotifyAndDeliverOperation.java:[27,42] package org.apache.commons.fileupload.util does not exist
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[71,9] method does not override or implement a method from a supertype
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[79,148] cannot find symbol
symbol: variable MessageContext
location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[97,35] cannot find symbol
symbol: class AxisFault
location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[97,75] cannot find symbol
symbol: variable SOAP12Constants
location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[99,35] cannot find symbol
symbol: class AxisFault
location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[99,63] cannot find symbol
symbol: variable SOAP12Constants
location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[247,33] cannot find symbol
symbol: variable Streams
location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/NotifyAndDeliverOperation.java:[175,49] cannot find symbol
symbol: variable Streams
location: class org.holodeckb2b.backend.rest.NotifyAndDeliverOperation.NandDDeliverer
[INFO] 18 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.950 s
[INFO] Finished at: 2021-07-05T13:16:40+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project rest-backend: Compilation failure: Compilation failure:
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[30,29] package org.apache.axiom.soap does not exist
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[31,24] package org.apache.axis2 does not exist
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[32,32] package org.apache.axis2.context does not exist
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[33,34] package org.apache.axis2.receivers does not exist
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[34,42] package org.apache.commons.fileupload.util does not exist
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[66,38] cannot find symbol
[ERROR] symbol: class AbstractMessageReceiver
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[72,47] cannot find symbol
[ERROR] symbol: class MessageContext
[ERROR] location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[72,77] cannot find symbol
[ERROR] symbol: class AxisFault
[ERROR] location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[224,48] cannot find symbol
[ERROR] symbol: class MessageContext
[ERROR] location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/NotifyAndDeliverOperation.java:[27,42] package org.apache.commons.fileupload.util does not exist
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[71,9] method does not override or implement a method from a supertype
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[79,148] cannot find symbol
[ERROR] symbol: variable MessageContext
[ERROR] location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[97,35] cannot find symbol
[ERROR] symbol: class AxisFault
[ERROR] location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[97,75] cannot find symbol
[ERROR] symbol: variable SOAP12Constants
[ERROR] location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[99,35] cannot find symbol
[ERROR] symbol: class AxisFault
[ERROR] location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[99,63] cannot find symbol
[ERROR] symbol: variable SOAP12Constants
[ERROR] location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/SubmitOperation.java:[247,33] cannot find symbol
[ERROR] symbol: variable Streams
[ERROR] location: class org.holodeckb2b.backend.rest.SubmitOperation
[ERROR] /home/$USER/repos/as4-rest-backend/src/main/java/org/holodeckb2b/backend/rest/NotifyAndDeliverOperation.java:[175,49] cannot find symbol
[ERROR] symbol: variable Streams
[ERROR] location: class org.holodeckb2b.backend.rest.NotifyAndDeliverOperation.NandDDeliverer
[ERROR] -> [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/MojoFailureException

Am I doing something wrong? Could you suggest me another way please?