1

我在机器 192.168.1.3 上有 weblogic 12c。我想使用 maven 插件从机器 192.168.1.2 部署 ear:

<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)
        ...

当将ear部署到远程服务器时,你能告诉我我做错了什么吗

4

1 回答 1

2

您显示的配置看起来像您用于安装 WebLogicinstall的插件目标。 <artifactLocation>是该目标的配置元素,而不是deploy文档的。

对于deploy目标,替换<artifactLocation><source>,其中包含您的 ear 文件的名称。

于 2013-03-10T20:47:30.240 回答