try droping the ${basedir}/ from the dirs. like:
<sourceDirectory>src/java</sourceDirectory>
<unitTestSourceDirectory>test/java</unitTestSourceDirectory>
<directory>src/conf</directory>
-----Original Message-----
From: Qin Ding [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 14, 2005 2:43 PM
To: Maven Users List
Subject: Need Help, Please
I am learning to use Maven. Following the tutorial on serverside.com
(http://www.theserverside.com/articles/article.tss?l=MavenMagic), to setup
the directory structure like the folloing:
c:\sample-maven-project
src/config
/myapp.properties
src/java
/com/myapp/MyApp.java
src/test
/com/myapp/MyAppTest.java
After I do
maven java:compile
I got:
build:start:
java:prepare-filesystem:
java:compile:
[echo] Compiling to C:\Sample-Maven-Project/target/classes
[echo] No java source files to compile.
BUILD SUCCESSFUL
Total time: 3 seconds
Finished at: Wed Sep 14 14:29:47 CDT 2005
In my project.xml, I have build defined like this:
<build>
<nagEmailAddress>[EMAIL PROTECTED]</nagEmailAddress>
<sourceDirectory>${basedir}/src/java</sourceDirectory>
<unitTestSourceDirectory>${basedir}/test/java</unitTestSourceDirectory>
<unitTest>
<includes>
<include>**/*Test.java</include>
</includes>
</unitTest>
<resources>
<resource>
<directory>${basedir}/src/conf</directory>
<includes>
<include>*.properties</include>
</includes>
</resource>
</resources>
</build>
Why maven can't find the java source to compile? Should I or where can I
define the basedir?
Qin
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit
written agreement or government initiative expressly permitting the use of
e-mail for such purpose.
----------------------------------------------------------------------------------------
----------------------------------------------------------------------
The information contained in this transmission is intended only for
the personal and confidential use of the designated recipients named
herein. If the reader of this transmission is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
transmission in error, and that any review, dissemination,
distribution, or copying of this transmission is strictly prohibited.
If you have received this communication in error, please notify the
sender and return and delete the original transmission immediately.
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]