2013-03-09 83 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

相关问题