I am trying to learn Maven; I downloaded it, unzipped it and set "<localRepository>C:\Java\maven_repo</localRepository>" in settings.xml. At section 2.2 of the book "Better Builds with Maven" it says to execute "mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app". I am the error "Error merging velocity templates: C:\Windows\system32\my-app\pom.xml (The system cannot find the path specified)".
Your help will be greatly appreciated,
Thank you for your answer. I have never set a current working directory; I didn't even know it was possible. I ran echo %cd% in DOS and got "C:\Windows\system32"; I then created the system variable cd as "C:\Java\apache-maven-3.0.3\Local Directory" and after restarting the computer, echo %cd% gave me the value. However, I am still getting the same error from Maven; I am at a loss.
Joined: Aug 01, 2005
The problem was that I was running the command on "C:\Windows\system32" and it bwas trying to created a directory there.
I was running the command on "C:\Windows\system32" and it bwas trying to created a directory there.
That is what I thought. Don't do that, especially in Windows 7 or Server 2008 SR2 (or Vista for that matter) because that is a "protected" directory and you need additional permissions to change things there.
The best thing to do is create a directory elsewhere and work in there. With Windows 7, working in c:\users\xxx\Documents is acceptable - at least there are no spaces in the path.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com