需要包导入 mule
Need package to import in mule
我需要在从 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;
所以我想我需要示例 pom.xml 带有 repo url 的文件,我尝试搜索但我坚持了
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):
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
您的项目使用的 OpenSAML 版本似乎很旧,在 end of life and abandoned 中。请注意,评论中的 mvnrepository link 中提到了活跃的安全漏洞。使用这个老软件风险很大:
<!-- https://mvnrepository.com/artifact/org.opensaml/openws -->
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>openws</artifactId>
<version>1.5.4</version>
</dependency>
Spring WS 上次发布:
<!-- https://mvnrepository.com/artifact/org.springframework.ws/spring-ws-core -->
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core</artifactId>
<version>2.4.7.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.ws/spring-ws-security -->
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-security</artifactId>
<version>2.4.7.RELEASE</version>
</dependency>
我需要在从 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;
所以我想我需要示例 pom.xml 带有 repo url 的文件,我尝试搜索但我坚持了
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):
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
您的项目使用的 OpenSAML 版本似乎很旧,在 end of life and abandoned 中。请注意,评论中的 mvnrepository link 中提到了活跃的安全漏洞。使用这个老软件风险很大:
<!-- https://mvnrepository.com/artifact/org.opensaml/openws -->
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>openws</artifactId>
<version>1.5.4</version>
</dependency>
Spring WS 上次发布:
<!-- https://mvnrepository.com/artifact/org.springframework.ws/spring-ws-core -->
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core</artifactId>
<version>2.4.7.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.ws/spring-ws-security -->
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-security</artifactId>
<version>2.4.7.RELEASE</version>
</dependency>