1
我試圖使用maven weblogic插件部署我的應用程序。我得到下面的錯誤信息,並不確定'未指定的工件位置'是什麼意思。weblogic-maven-plugin:12.2.1 - 無法執行目標重新部署 - 未指定工件位置
[ERROR] Failed to execute goal com.oracle.weblogic:weblogic-maven-plugin:12.2.1-1-0:redeploy (default-cli) on project mdm_client: org.apache.maven.plugin.MojoExecutionException: The artifact location was not specified.
[ERROR] at weblogic.tools.maven.plugins.BaseMojo.getArtifactFile(BaseMojo.java:112)
[ERROR] at weblogic.tools.maven.plugins.deploy.RedeployMojo.populateParameters(RedeployMojo.java:297)
[ERROR] at weblogic.tools.maven.plugins.deploy.RedeployMojo.execute(RedeployMojo.java:263)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
我的應用程序的pom.xml
<!-- WebLogic Server 12c Maven Plugin -->
<plugin>
<groupId>com.oracle.weblogic</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>12.2.1-1-0</version>
<executions>
<execution>
<id>wls-redeploy</id>
<phase>development build</phase>
<goals>
<goal>redeploy</goal>
</goals>
</execution>
</executions>
<configuration>
<adminurl>t3://localhost:7001</adminurl>
<middlewareHome>C:/Oracle/Middleware</middlewareHome>
<domainHome>project</domainHome>
<user>${user}</user>
<password>${password}</password>
<name>${name}</name>
<remote>${remote}</remote>
<upload>${upload}</upload>
<targets>${targets}</targets>
</configuration>
</plugin>
FYI了'開發建設 '將只是忽略並且整個執行不會發生,儘管我相信這不是您目前遇到的問題。你如何調用weblogic插件?通過命令行調用? –
我使用eclipse來運行我的maven命令 – SGN
並且您在Eclipse Maven運行配置中輸入了什麼內容?只需'mvn weblogic:redeploy'?是否在'pom.xml'文件中定義了'$ {name}'和其他引用的屬性,還是通過命令行提供? –