[英]Maven War Plugin Websphere
我正在嘗試讓Rational Application Developer項目在Websphere服務器上運行。 我正在嘗試使maven-war-plugin
工作。 但是,當嘗試啟動服務器時,Websphere找不到UI文件。 我的插件在這里:
<build>
<outputDirectory>${project.basedir}\WebContent\WEB-INF\classes</outputDirectory>
<finalName>${project.name}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<webXml>/WebContent/WEB-INF/web.xml</webXml>
<webappDirectory>WebContent</webappDirectory>
<source>/codeCoverageUI2/src/</source>
<encoding>utf-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
我覺得問題出在我的webappDirectory
但是除了所有UI文件的位置之外,我不知道還要把它放什么。
有人有見識嗎?
我假設您正在使用WebSphere Classic V8或更早的版本? 我們的建議,因為在RAD / WDT中開發項目時,WAS Classic要求以“單根”結構構建項目。 將以下內容添加到您的pom:
<build>
<outputDirectory>${project.basedir}\WebContent\WEB-INF\classes</outputDirectory>
<finalName>${project.name}</finalName>
...
這將在Web內容文件夾中構建您的源。 (確保您執行了一個項目->“ Maven”->“更新項目...”),然后重建...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.