【发布时间】:2022-01-25 04:49:33
【问题描述】:
当我从 git maven (mule) 构建时,我需要导入这些包
所以我的脚本有那些要导入的?
import org.opensaml.ws.soap.client.SOAPClient;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.oxm.jaxb.Jaxb2Marshaller;
import org.springframework.ws.client.core.WebServiceTemplate;
import org.springframework.ws.client.support.interceptor.ClientInterceptor;
import org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor;
所以我认为我需要带有 repo url 的示例 pom.xml 文件,我试图搜索但我坚持
org.opensaml.ws.soap.client 和 org.springframework.ws.soap.security.wss4j
有什么建议吗?
更新:我已经在 pom.xml 文件中添加了您的存储库,但是我在构建时收到了这些错误
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1-jboss-2:compile (default-compile) on project vancho-mvp: Compilation failure: Compilation failure:
79158 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/client/SubscriberClient.java:[4,42] package org.springframework.ws.client.core does not exist
79158 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/client/SubscriberClient.java:[14,17] cannot find symbol
79159 [ERROR] symbol: class WebServiceTemplate
79159 [ERROR] location: class com.van2.soap.client.SubscriberClient
79159 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/config/SoapConfig.java:[3,35] package org.opensaml.ws.soap.client does not exist
79160 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/config/SoapConfig.java:[8,36] package org.springframework.oxm.jaxb does not exist
79160 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/config/SoapConfig.java:[9,42] package org.springframework.ws.client.core does not exist
79160 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/config/SoapConfig.java:[10,57] package org.springframework.ws.client.support.interceptor does not exist
79161 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/config/SoapConfig.java:[11,50] package org.springframework.ws.soap.security.wss4j does not exist
79161 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/config/SoapConfig.java:[29,16] cannot find symbol
79161 [ERROR] symbol: class Jaxb2Marshaller
79162 [ERROR] location: class com.van2.soap.config.SoapConfig
79162 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/config/SoapConfig.java:[35,16] cannot find symbol
79162 [ERROR] symbol: class Wss4jSecurityInterceptor
79162 [ERROR] location: class com.van2.soap.config.SoapConfig
79163 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/config/SoapConfig.java:[45,12] cannot find symbol
79163 [ERROR] symbol: class WebServiceTemplate
79163 [ERROR] location: class com.van2.soap.config.SoapConfig
79164 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/client/PrepaidPackageClient.java:[4,42] package org.springframework.ws.client.core does not exist
79164 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/client/PrepaidPackageClient.java:[14,17] cannot find symbol
[ERROR] symbol: class WebServiceTemplate
编辑 pom.xml 后再次更新(更新 2 aled):
82900 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1-jboss-2:compile (default-compile) on project vancho-mvp: Compilation failure: Compilation failure:
82900 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/config/SoapConfig.java:[3,35] package org.opensaml.ws.soap.client does not exist
82900 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/config/SoapConfig.java:[11,50] package org.springframework.ws.soap.security.wss4j does not exist
82901 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/config/SoapConfig.java:[35,16] cannot find symbol
82901 [ERROR] symbol: class Wss4jSecurityInterceptor
aled 更新 3:
81466 [ERROR] /builds/home/app1/src/main/java/com/van2/soap/config/SoapConfig.java:[11,50] package org.springframework.ws.soap.security.wss4j does not exist
81467 [ERROR] /builds/home/app1/src/main/java/com/van2/config/SoapConfig.java:[35,16] cannot find symbol
symbol: class Wss4jSecurityInterceptor
location: class com.van2.soap.config.SoapConfig
【问题讨论】:
-
在您的 Mule 应用程序中构建 Java 源代码是否需要这些包?