0

我已经设置了 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 ': Destination 127.0.0.1, 7001 unreachable; 嵌套异常是:

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

4

0 回答 0