Is it JavaSource or JavaSources?  You use both below. 

-----Original Message-----
From: Jeff Mutonho [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 20, 2006 7:18 AM
To: Maven Users List
Subject: basedir JavaSource does not exist

m2 is spitting out the error message "basedir JavaSource does not exist"
.I have the following in my "maven-war-plugin" config in my web
project pom(i.e D:\MAVEN-WORK\eportal\eportal-web\pom.xml)

<resource>
  <!-- this is relative to the pom.xml directory -->
  <directory>JavaSource</directory>
  <excludes>
  <exclude>**/*</exclude>
  </excludes>
</resource>

This happens when I run "mvn install" from my top-level directory(i.e
D:\MAVEN-WORK\eportal\).
My directory structure is located in D:\MAVEN-WORK and looks like :

 |-- eportal
 |--pom.xml
     |-- eportal-web
         |-- WebContent
         |-- JavaSources
         |-- pom.xml



But when I run "mvn install" from D:\MAVEN-WORK\eportal\eportal-web ,
I don't get the error message.What the implications of the comment
(<!-- this is relative to the pom.xml directory -->)?Looks like
"<directory>JavaSource</directory>" is being resolved from my top
level directory?


Debug output :


[DEBUG]   (s) classesDirectory =
D:\MAVEN-WORK\eportal\eportal\target\classes
[DEBUG]   (f) filters = []
[DEBUG]   (f) outputDirectory = D:\MAVEN-WORK\eportal\eportal\target
[DEBUG]   (f) primaryArtifact = true
[DEBUG]   (s) project = [EMAIL PROTECTED]
[DEBUG]   (f) warName = eportal
[DEBUG]   (s) warSourceDirectory =
D:\MAVEN-WORK\eportal\eportal\WebContent
[DEBUG]   (f) warSourceExcludes = **/*.java
[DEBUG]   (s) directory = JavaSource
[DEBUG]   (s) excludes = [**/*]
[DEBUG]   (f) webResources = [Lorg.apache.maven.model.Resource;@c68059
[DEBUG]   (s) webXml = D:\MAVEN-WORK\eportalWebContent\WEB-INF\web.xml
[DEBUG]   (s) webappDirectory =
D:\MAVEN-WORK\eportal\eportal\target\eportal-1.0.0
[DEBUG]   (f) workDirectory =
D:\MAVEN-WORK\eportal\eportal\target\war\work
[DEBUG] -- end configuration --
[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to
D:\MAVEN-WORK\eportal\eportal\target\eportal-1.0.0
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] basedir JavaSource does not exist
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
java.lang.IllegalStateException: basedir JavaSource does not exist
        at
org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:
542)
        at
org.apache.maven.plugin.war.AbstractWarMojo.getWarFiles(AbstractWarMo


Jeff

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to