weblogic maven插件 - 如何部署到远程服务器

时间:2013-08-26 04:29:41

标签: maven weblogic weblogic-maven-plugin

我已将oracle maven命令设置为部署到远程服务器(myservername.com)。

    <plugin>
        <!-- This is the configuration for the weblogic-maven-plugin -->
        <groupId>com.oracle.weblogic</groupId>
        <artifactId>weblogic-maven-plugin</artifactId>
        <version>12.1.2-0-0</version>
        <configuration>
             <adminurl>t3://myservername.com:7001</adminurl>
             <user>test</user>
             <password>test1</password>
             <upload>true</upload>
             <remote>true</remote>
             <targets>AdminServer</targets>
             <verbose>true</verbose>
             <source>${project.build.directory}/${project.build.finalName}</source>
             <name>${project.build.finalName}</name>
        </configuration>
        <executions>
            <execution>
            <!-- Deploy the application -->
                <id>wls-deploy</id>
                <phase>pre-integration-test</phase>
                <goals> 
                    <goal>deploy</goal>
                </goals>
            </execution>
            <!-- Stop the application in the pre-integration-test phase -->
            <execution>
                <id>wls-stop-app</id>
                <phase>pre-integration-test</phase>
                <goals>
                    <goal>stop-app</goal>
                </goals>
            </execution>
            <!-- start servicing all requests -->
            <execution>
                <id>wls-start-app</id>
                <phase>pre-integration-test</phase>
                <goals>
                    <goal>start-app</goal>
                </goals>
            </execution>    
        </executions>
    </plugin>

我收到以下错误,它正在尝试连接到loacalhost,但我没有在localhost上运行服务器,我已经设置了如上所述的管理URL。

[错误]无法在项目myproject-web上执行目标com.oracle.weblogic:weblogic-maven-plugin:12.1.2-0-0:deploy(wls-deploy):weblogic.Deployer $ DeployerException:weblogic。 DEP loy.api.tools.deployer.DeployerException:无法连接到“ t3:// localhost:7001 ”:目标127.0.0.1,7001无法访问;嵌套异常是:

如何将插件部署到远程服务器?

0 个答案:

没有答案