首页 文章

Weblogic 11g Maven部署问题

提问于
浏览
1

我正在尝试使用Maven(weblogic-maven-plugin)v 10.3.4在Weblogic 11g服务器上部署war文件

但是我在运行mvn wls:deploy时遇到了以下错误

Cannot find MW_HOME at location.....C:\work_maven\springmvc\Oracle\Software. You must define the middlewareHome parameter for the Maven goal.

我在 C:\bea11g 安装了weblogic

我也将 MW_HOME 设置为上面的weblogic路径 .

我的项目的pom.xml build 看起来像这样:

<build>
<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.0.2</version>
    <configuration>
      <source>1.6</source>
      <target>1.6</target>
    </configuration>
  </plugin>

  <plugin> 
  <groupId>com.oracle.weblogic</groupId> 
  <artifactId>weblogic-maven-plugin</artifactId> 
  <version>10.3.4</version> 
  <configuration>
      <middlewareHome>C:\bea11g</middlewareHome>
      <adminurl>t3://localhost:7001</adminurl>
      <user>weblogic</user> 
      <password>weblogic1</password> 
      <upload>true</upload> 
      <action>deploy</action> 
      <remote>false</remote> 
      <verbose>true</verbose> 
    <source>
        ${project.build.directory}/${project.build.finalName}.${project.packaging}
    </source> 
     <name>${project.build.finalName}</name> 
  </configuration> 

  <executions> 
     <execution> 
        <phase>install</phase> 
          <goals> 
            <goal>deploy</goal> 
          </goals> 
     </execution> 
   </executions> 

  </plugin>
    </plugins>
  </build>

任何帮助是极大的赞赏 .

谢谢 .

2 回答

相关问题