【问题标题】:Errors when using maven plugin for Weblogic deployment使用 maven 插件进行 Weblogic 部署时出错
【发布时间】:2012-12-03 01:45:24
【问题描述】:

我一直在尝试使用 maven 将应用程序部署到 Weblogic 10.3.6

this 文章中所述,我已经为 maven 创建了 weblogic 插件。

我在 pom.xml 中添加了以下内容

<build>
  <plugins>
    <plugin>
      <artifactId>maven-plugin-plugin</artifactId>
      <version>2.3</version>
      <configuration>
        <goalPrefix>weblogic</goalPrefix>
      </configuration>
    </plugin>
    <plugin> 
  <groupId>weblogic</groupId>
  <artifactId>weblogic-maven-plugin</artifactId>
  <version>10.3.6.0</version>
  <configuration>
    <adminurl>t3://localdomain:7001</adminurl>
    <user>weblogic</user>
    <password>password</password>
    <name>wldemo</name>
    <remote>true</remote>
    <upload>true</upload>
    <targets>AdminServer</targets>
  </configuration>
  <executions>
    <execution>
      <id>deploy</id>
      <phase>pre-integration-test</phase>
      <goals>
        <goal>deploy</goal>
      </goals>
      <configuration>
        <source>target/EmployeesApp-1.0-SNAPSHOT.war</source>
      </configuration>
    </execution>
  </executions>
</plugin>
  </plugins>  
</build>

当我执行 mvn com.oracle.weblogic:weblogic-maven-plugin:deploy 时出现以下错误,我该如何解决这些错误?

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------   
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.oracle.weblogic:weblogic-maven-plugin:10.3.6.
0:deploy (default-cli) on project EmployeesApp: The parameters 'source' for goal
 com.oracle.weblogic:weblogic-maven-plugin:10.3.6.0:deploy are missing or invali
d

【问题讨论】:

    标签: eclipse maven maven-3 weblogic11g weblogic-maven-plugin


    【解决方案1】:

    您已在执行配置中指定了 source 参数,因此为了将其考虑在内,您应该调用此特定执行。可以使用您指定的阶段键来完成,例如:

    mvn integration-test
    

    Maven 将经历整个生命周期,在 pre-integration-test 测试阶段(在 integration-test 之前)它将运行 weblogic 的执行-maven-plugin 你配置的。

    【讨论】:

      猜你喜欢
      • 2014-01-31
      • 1970-01-01
      • 1970-01-01
      • 2013-02-25
      • 1970-01-01
      • 2015-12-18
      • 2014-07-16
      • 2011-01-07
      • 1970-01-01
      相关资源
      最近更新 更多