我一直试图使用maven将应用程序部署到Weblogic 10.3.6
正如这文章中提到的,我已经为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发布于 2013-05-13 16:16:00
您已经在执行配置中指定了源参数,因此为了使其得到考虑,您应该调用这个特定的执行。这可以使用您指定的阶段密钥来完成,例如:
mvn integration-testMaven将贯穿整个生命周期,在集成测试阶段(在集成测试阶段之前),它将运行您配置的weblogic插件的执行。
https://stackoverflow.com/questions/13889160
复制相似问题