WARs are not added to the classpath, see MWAR-32. Try to set the
archiveClasses element of the war configuration set to true and depend on
the generated jar.
- Jörg
Thanx Jörg .I added the <archiveClasses>true</archiveClasses> to my
configuration section as shown below :
<configuration>
<archiveClasses>true</archiveClasses>
<warSourceDirectory>WebContent/</warSourceDirectory>
<webXml>WebContent/WEB-INF/web.xml</webXml>
<warName>eportal</warName>
<warSourceExcludes>**/*.java</warSourceExcludes>
<webResources>
-------------
</configuration>
However , this doesnt seem to take effect.The output from debug does not
show "archiveClasses" as part of the configuration passed to the plugin, as
shown below :
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-war-plugin:2.0:war'
-->
[DEBUG] (s) classesDirectory = D:\MAVEN-WORK\eportal\target\classes
[DEBUG] (f) filters = []
[DEBUG] (f) outputDirectory = D:\MAVEN-WORK\eportal\target
[DEBUG] (f) primaryArtifact = true
[DEBUG] (s) project = [EMAIL PROTECTED]
[DEBUG] (f) warName = eportal
[DEBUG] (s) warSourceDirectory = D:\MAVEN-WORK\eportal\WebContent
[DEBUG] (f) warSourceExcludes = **/*.java
[DEBUG] (s) directory = D:\MAVEN-WORK/eportal/JavaSource/
[DEBUG] (s) filtering = true
[DEBUG] (s) excludes = [**/*.properties]
[DEBUG] (f) webResources = [Lorg.apache.maven.model.Resource;@1263db
[DEBUG] (s) webXml = D:\MAVEN-WORK\eportal\WebContent\WEB-INF\web.xml
[DEBUG] (s) webappDirectory = D:\MAVEN-WORK\eportal\target\eportal-1.0.0
[DEBUG] (f) workDirectory = D:\MAVEN-WORK\eportal\target\war\work
[DEBUG] -- end configuration --
The classes jar is therefore NOT generated :(
--
Jeff Mutonho
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042