Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/395.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Maven build无法在jenkins websphere部署插件中部署_Java_Maven_Jenkins_Jenkins Plugins - Fatal编程技术网

Java Maven build无法在jenkins websphere部署插件中部署

Java Maven build无法在jenkins websphere部署插件中部署,java,maven,jenkins,jenkins-plugins,Java,Maven,Jenkins,Jenkins Plugins,我正在jenkins中进行maven构建并创建一个war文件,我已经配置了WebSphereDeployer插件并成功测试了连接。我正在尝试将war文件部署到Webhere部署器插件,但遇到了一个错误 部署到IBM WebSphere Application Server时出错:应为Ant GLOB模式 我猜在我部署maven build时,它需要一个ant构建 我在jenkins中复制了WebSphereDeployer插件所需的jar文件。此外,我还包括了cacerts的证书。所有的配置在我

我正在jenkins中进行maven构建并创建一个war文件,我已经配置了WebSphereDeployer插件并成功测试了连接。我正在尝试将war文件部署到Webhere部署器插件,但遇到了一个错误

部署到IBM WebSphere Application Server时出错:应为Ant GLOB模式

我猜在我部署maven build时,它需要一个ant构建

我在jenkins中复制了WebSphereDeployer插件所需的jar文件。此外,我还包括了cacerts的证书。所有的配置在我看来都不错。有谁能帮我找出问题所在吗

以下是我的websphere配置:

Deployment Target : "WebSphere:cell=DESKTOP-DUHNNUFNode01Cell,node=DESKTOP-DUHNNUFNode01,server=server1"

Generated EAR level : Java 8 

Generated Context : /


Client Keystore File Path   
C:\Jenkins files\DummyClientKeyFile.jks
Help for feature: Client Keystore File Path
    Client Keystore Password    
•••••
Help for feature: Client Keystore Password
    Client Truststore File Path 
C:\Jenkins files\DummyClientTrustFile.jks
Help for feature: Client Truststore File Path
    Client Truststore Password  
•••••
应成功部署ear文件,但我收到以下错误:

正在连接到IBM WebSphere Application Server…
部署到IBM WebSphere Application Server时出错:应为Ant GLOB模式,但看到“C:\CMrest2\CMRestAPI master\CMRestAPI\target**/*.war”。有关语法,请参见
无法回滚到以前的版本:工件为空
构建步骤“部署到IBM WebSphere Application Server”将构建结果更改为失败
完成:失败


Jenkins deploy插件找不到war文件,因为以下路径不是您工作区的相对路径:


C:\CMrest2\CMRestAPI master\CMRestAPI\target**/*.war

感谢您的回复,我尝试更改斜杠并给出实际的war文件名,但我得到了相同的错误。我不知道为什么它会在maven构建中寻找ant GLOB模式。可能插件只是使用它作为依赖项来匹配文件。顺便说一句,你们有并没有试着给出工作区的相对路径?是的,这是一个相对路径问题。Jenkins正在工作区中查找war文件,而不是查看绝对路径。我将war文件复制到jenkins工作区,部署成功。因此,我们需要在maven构建完成后将war文件放入工作区。