2013-03-09 84 views
1

我在機器192.168.1.3上安裝了weblogic 12c。我想與Maven插件部署從機192.168.1.2耳朵:在遠程weblogic 12c上部署maven插件

<groupId>com.oracle.weblogic</groupId> 
<artifactId>wls-maven-plugin</artifactId> 
<version>12.1.1.0</version> 

在我的項目取得第一階段:

mvn wls:install 

插件的配置是這樣的:

<configuration> 
    <adminurl>t3://192.168.1.3:7001</adminurl> 
    <user>weblogic</user> 
    <password>welcome1</password> 
    <debug>true</debug> 
    <name>test-ear-dev01</name>      
    <remote>true</remote> 
    <upload>true</upload> 
    <advanced>true</advanced> 
    <failOnError>true</failOnError> 
    <artifactLocation>c:\Users\bartek\Downloads\wls1211_dev.zip</artifactLocation> 
</configuration> 

下一頁我做

mvn wls:deploy 

,我得到以下錯誤

[ERROR] BUILD ERROR 
[INFO] ------------------------------------------------------------------------ 
[INFO] Invalid file. Please provide an existing fully qualified path of the file. 
[DEBUG] Trace 
org.apache.maven.lifecycle.LifecycleExecutionException: Invalid file. Please provide an existing fully qualified path of the file. 
     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) 
     ... 
     ... 
     ... 
Caused by: org.apache.maven.plugin.MojoExecutionException: Invalid file. Please provide an existing fully qualified path of the file. 
     at weblogic.tools.maven.plugins.deploy.DeployerMojo.handleDeployerException(DeployerMojo.java:459) 
     ... 
Caused by: org.apache.maven.plugin.MojoExecutionException: Invalid file. Please provide an existing fully qualified path of the file. 
     at weblogic.tools.maven.plugins.deploy.DeployerMojo.getSourceParameter(DeployerMojo.java:434) 
     ... 

你能告訴我,我做錯了什麼,部署耳朵時到遠程服務器

回答

2

告訴你看起來像你用來與install安裝WebLogic什麼配置插件的目標。 <artifactLocation>是該目標的配置元素,而不是deploy,根據documentation

對於deploy的目標,請將<artifactLocation>替換爲<source>,其中包含ear文件的名稱。

+0

我也刪除了' true' – bmlynarczyk 2013-03-11 09:05:21

相關問題