I have setup the oracle maven command to deploy to a remote server (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>
I am getting the following error, it is trying to connect to loacalhost but I don't have a server running on localhost, I have already set the admin url as above.
[ERROR] Failed to execute goal com.oracle.weblogic:weblogic-maven-plugin:12.1.2-0-0:deploy (wls-deploy) on project myproject-web: weblogic.Deployer$DeployerException: weblogic.dep loy.api.tools.deployer.DeployerException: Unable to connect to 't3://localhost:7001': Destination 127.0.0.1, 7001 unreachable; nested exception is:
How can I get the plugin to deploy to a remote server?