RE: Need Help, Please
Notice this error in you stack trace. " Caused by: java.lang.IllegalArgumentException: repository connection must start with scm[delim]" Somewhere it is trying to pick-up an SCM connection. Have you defined a build.properties in your home directory (BTW, home directory for XP, as far as Apache is concerned, is C:\Documents and Setting\. If you are behind a firewall, you will need to add the following lines in a build.properties file in your home directory: maven.proxy.host= maven.proxy.port= Have you also done something like maven.repo.repository.X in the build.properties file? Try removing these lines and allow Maven to pickup the files it needs from the remote repositories. The order of precedence for Maven to pickup properties is: 1) Built-in properties 2) ${basedir}/project.properties 3) ${basedir}/build.properties 4) ${user.home}/build.properties 5) System properties (e.g. -Dsome.property=x) Additionally the only valid protocols supported for repos are scp://, sftp://, ftp://, file://, scpexe:// Hope this helps -Original Message- From: Qin Ding [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 3:31 PM To: Maven Users List Subject: RE: Need Help, Please The problem is I carelessly named my project.xml file as project.xml.xml. After I correct the file name, I got the following error: C:\My Projects\Sample-Maven-Project>maven java:compile __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 [MethodExpression] Cannot evaluate expression java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.betwixt.expression.MethodExpression.evaluate(Metho dExpression.java:96) at org.apache.commons.betwixt.io.AbstractBeanWriter.writeContent(Abstrac tBeanWriter.java:658) at org.apache.commons.betwixt.io.AbstractBeanWriter.writeRestOfElement(A bstractBeanWriter.java:539) at org.apache.commons.betwixt.io.AbstractBeanWriter.write(AbstractBeanWr iter.java:481) at org.apache.commons.betwixt.io.AbstractBeanWriter.writeContent(Abstrac tBeanWriter.java:643) at org.apache.commons.betwixt.io.AbstractBeanWriter.writeRestOfElement(A bstractBeanWriter.java:539) at org.apache.commons.betwixt.io.AbstractBeanWriter.write(AbstractBeanWr iter.java:513) at org.apache.commons.betwixt.io.AbstractBeanWriter.write(AbstractBeanWr iter.java:233) at org.apache.commons.betwixt.io.AbstractBeanWriter.writeContent(Abstrac tBeanWriter.java:630) at org.apache.commons.betwixt.io.AbstractBeanWriter.writeRestOfElement(A bstractBeanWriter.java:539) at org.apache.commons.betwixt.io.AbstractBeanWriter.write(AbstractBeanWr iter.java:513) at org.apache.commons.betwixt.io.AbstractBeanWriter.write(AbstractBeanWr iter.java:233) at org.apache.commons.betwixt.io.AbstractBeanWriter.write(AbstractBeanWr iter.java:162) at org.apache.commons.betwixt.io.BeanWriter.write(BeanWriter.java:217) at org.apache.maven.MavenUtils.getProjectString(MavenUtils.java:432) at org.apache.maven.MavenUtils.getInterpolatedPOM(MavenUtils.java:383) at org.apache.maven.MavenUtils.getJellyProject(MavenUtils.java:360) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122) at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java :232) at org.apache.maven.MavenSession.initialize(MavenSession.java:172) at org.apache.maven.cli.App.doMain(App.java:475) at org.apache.maven.cli.App.main(App.java:1239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: java.lang.IllegalArgumentException: repository connection must start with scm[delim] at org.apache.maven.project.Repository.splitSCMConnection(Repository.jav a:244) at org.apache.maven.project.Repository.getCvsModule(Repository.java:216) at org.apache.maven.project.Repository.getCvsModule(Repository.java:144) ... 33 more [MethodExpression] Cannot evaluate expression java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
RE: Need Help, Please
av a:244) at org.apache.maven.project.Repository.getScmType(Repository.java:115) ... 33 more build:start: java:prepare-filesystem: java:compile: [echo] Compiling to C:\My Projects\Sample-Maven-Project/target/classes [echo] == NOTE: Targetting JVM 1.4, classes will not run on earlier JVMs == BUILD SUCCESSFUL Total time: 5 seconds Finished at: Wed Sep 14 16:28:33 CDT 2005 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. "Leck, William C \(Bill\)" 09/14/2005 03:56 PM Please respond to "Maven Users List" To: "Maven Users List" cc: Subject:RE: Need Help, Please Try adding -X to the maven command. You may want to direct that output to a file. -X is the debug option. Examine the output carefully. You should see where Maven is trying to pickup the source from. I suspect your project.xml file is in the wrong location. It should be in the parent directory to src and test; which is where you should also be executing maven from. Also restore ${basedir}. ${basedir} is equivalent to PWD. Bill -Original Message- From: Qin Ding [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 2:33 PM To: Maven Users List Subject: RE: Need Help, Please I removed ${basedir}, which has no positive effect. I double check the directories src/java, which has com.myapp.MyApp.java src/config, which has myapp.properties test/java, which has com.myapp.MyAppTest.java project.xml [EMAIL PROTECTED] src/java test/java **/*Test.java src/config *.properties 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. "David Jackman" 09/14/2005 03:22 PM Please respond to "Maven Users List" To: "Maven Users List" cc: Subject:RE: Need Help, Please It definitely isn't ${basedir}, and I would recommend leaving that in. >From what I can see, it should work for the source code, but the test code wouldn't because the paths are different (src/test vs. test/java). Can you double-check the paths you put in your email to make sure they're correct for what's actually on your machine? Also, the Maven standard (as outlined in http://maven.apache.org/reference/conventions.html) is to put the main source in src/main/java and the tests in src/test/java. The article used something different, and what they suggested should work as well as long as the paths are the same everywhere. ..David.. -Original Message- From: Qin Ding [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 2:09 PM To: Maven Users List Subject: RE: Need Help, Please Tom: I erased the ${basedir} as you suggested, but I still got "No java source to compile". By the way, my Maven version is 1.0.2. 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. "Litton, Tom - CEPM" 09/14/2005 02:54 PM Please respond to "Maven Users List" To: "Maven Users List" cc: Subject:RE: Need Help, Please try droping the ${basedir}/ from the dirs. like: src/java test/java src/conf -Original Message- From: Qin Ding [mailto:[EMAIL
RE: Need Help, Please
Try adding -X to the maven command. You may want to direct that output to a file. -X is the debug option. Examine the output carefully. You should see where Maven is trying to pickup the source from. I suspect your project.xml file is in the wrong location. It should be in the parent directory to src and test; which is where you should also be executing maven from. Also restore ${basedir}. ${basedir} is equivalent to PWD. Bill -Original Message- From: Qin Ding [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 2:33 PM To: Maven Users List Subject: RE: Need Help, Please I removed ${basedir}, which has no positive effect. I double check the directories src/java, which has com.myapp.MyApp.java src/config, which has myapp.properties test/java, which has com.myapp.MyAppTest.java project.xml [EMAIL PROTECTED] src/java test/java **/*Test.java src/config *.properties 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. "David Jackman" 09/14/2005 03:22 PM Please respond to "Maven Users List" To: "Maven Users List" cc: Subject:RE: Need Help, Please It definitely isn't ${basedir}, and I would recommend leaving that in. >From what I can see, it should work for the source code, but the test code wouldn't because the paths are different (src/test vs. test/java). Can you double-check the paths you put in your email to make sure they're correct for what's actually on your machine? Also, the Maven standard (as outlined in http://maven.apache.org/reference/conventions.html) is to put the main source in src/main/java and the tests in src/test/java. The article used something different, and what they suggested should work as well as long as the paths are the same everywhere. ..David.. -Original Message- From: Qin Ding [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 2:09 PM To: Maven Users List Subject: RE: Need Help, Please Tom: I erased the ${basedir} as you suggested, but I still got "No java source to compile". By the way, my Maven version is 1.0.2. 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. "Litton, Tom - CEPM" 09/14/2005 02:54 PM Please respond to "Maven Users List" To: "Maven Users List" cc: Subject:RE: Need Help, Please try droping the ${basedir}/ from the dirs. like: src/java test/java src/conf -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: [EMAIL PROTECTED] ${basedir}/src/java ${basedir}/test/java **/*Test.java ${basedir}/src/conf *.properties 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 a
RE: Need Help, Please
I removed ${basedir}, which has no positive effect. I double check the directories src/java, which has com.myapp.MyApp.java src/config, which has myapp.properties test/java, which has com.myapp.MyAppTest.java project.xml [EMAIL PROTECTED] src/java test/java **/*Test.java src/config *.properties 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. "David Jackman" 09/14/2005 03:22 PM Please respond to "Maven Users List" To: "Maven Users List" cc: Subject:RE: Need Help, Please It definitely isn't ${basedir}, and I would recommend leaving that in. >From what I can see, it should work for the source code, but the test code wouldn't because the paths are different (src/test vs. test/java). Can you double-check the paths you put in your email to make sure they're correct for what's actually on your machine? Also, the Maven standard (as outlined in http://maven.apache.org/reference/conventions.html) is to put the main source in src/main/java and the tests in src/test/java. The article used something different, and what they suggested should work as well as long as the paths are the same everywhere. ..David.. -Original Message- From: Qin Ding [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 2:09 PM To: Maven Users List Subject: RE: Need Help, Please Tom: I erased the ${basedir} as you suggested, but I still got "No java source to compile". By the way, my Maven version is 1.0.2. 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. "Litton, Tom - CEPM" 09/14/2005 02:54 PM Please respond to "Maven Users List" To: "Maven Users List" cc: Subject:RE: Need Help, Please try droping the ${basedir}/ from the dirs. like: src/java test/java src/conf -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: [EMAIL PROTECTED] ${basedir}/src/java ${basedir}/test/java **/*Test.java ${basedir}/src/conf *.properties 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 o
RE: Need Help, Please
It definitely isn't ${basedir}, and I would recommend leaving that in. >From what I can see, it should work for the source code, but the test code wouldn't because the paths are different (src/test vs. test/java). Can you double-check the paths you put in your email to make sure they're correct for what's actually on your machine? Also, the Maven standard (as outlined in http://maven.apache.org/reference/conventions.html) is to put the main source in src/main/java and the tests in src/test/java. The article used something different, and what they suggested should work as well as long as the paths are the same everywhere. ..David.. -Original Message- From: Qin Ding [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 2:09 PM To: Maven Users List Subject: RE: Need Help, Please Tom: I erased the ${basedir} as you suggested, but I still got "No java source to compile". By the way, my Maven version is 1.0.2. 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. "Litton, Tom - CEPM" 09/14/2005 02:54 PM Please respond to "Maven Users List" To: "Maven Users List" cc: Subject:RE: Need Help, Please try droping the ${basedir}/ from the dirs. like: src/java test/java src/conf -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: [EMAIL PROTECTED] ${basedir}/src/java ${basedir}/test/java **/*Test.java ${basedir}/src/conf *.properties 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help, Please
Try changing the sourceDirectory to src/java instead of /src/java. I think it may be searching from the root of the drive for your files. Rob Qin Ding wrote: Tom: I erased the ${basedir} as you suggested, but I still got "No java source to compile". By the way, my Maven version is 1.0.2. 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. "Litton, Tom - CEPM" 09/14/2005 02:54 PM Please respond to "Maven Users List" To: "Maven Users List" cc: Subject:RE: Need Help, Please try droping the ${basedir}/ from the dirs. like: src/java test/java src/conf -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: [EMAIL PROTECTED] ${basedir}/src/java ${basedir}/test/java **/*Test.java ${basedir}/src/conf *.properties 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help, Please
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 not entirely sure (my maven-1 is a bit rusty...), but try leaving off the '${basedir}/' prefix for sourceDirectory and unitTestSourceDirectory. HTH, john Qin Ding wrote: | 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: | |[EMAIL PROTECTED] |${basedir}/src/java |${basedir}/test/java | | | **/*Test.java | | | | | | ${basedir}/src/conf | | *.properties | | | | | | 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. | - | -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFDKINWK3h2CZwO/4URAlkOAJ9fAwdOksY7Cd1XYSnroHlDi9jzmwCgnPp2 KapzhfKpK5msLxFDcrEnhMM= =cBdG -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need Help, Please
Tom: I erased the ${basedir} as you suggested, but I still got "No java source to compile". By the way, my Maven version is 1.0.2. 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. "Litton, Tom - CEPM" 09/14/2005 02:54 PM Please respond to "Maven Users List" To: "Maven Users List" cc: Subject:RE: Need Help, Please try droping the ${basedir}/ from the dirs. like: src/java test/java src/conf -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: [EMAIL PROTECTED] ${basedir}/src/java ${basedir}/test/java **/*Test.java ${basedir}/src/conf *.properties 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]
RE: Need Help, Please
try droping the ${basedir}/ from the dirs. like: src/java test/java src/conf -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: [EMAIL PROTECTED] ${basedir}/src/java ${basedir}/test/java **/*Test.java ${basedir}/src/conf *.properties 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]