首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Weblogic部署中使用maven插件时出错

在Weblogic部署中使用maven插件时出错
EN

Stack Overflow用户
提问于 2012-12-15 03:56:29
回答 1查看 2.3K关注 0票数 0

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

正如文章中提到的,我已经为maven创建了weblogic。

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

代码语言:javascript
复制
<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时,我得到以下错误,如何解决这些错误?

代码语言:javascript
复制
[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
EN

回答 1

Stack Overflow用户

发布于 2013-05-13 16:16:00

您已经在执行配置中指定了源参数,因此为了使其得到考虑,您应该调用这个特定的执行。这可以使用您指定的阶段密钥来完成,例如:

代码语言:javascript
复制
mvn integration-test

Maven将贯穿整个生命周期,在集成测试阶段(在集成测试阶段之前),它将运行您配置的weblogic插件的执行。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13889160

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档