I have some issues with Maven. Here is what I did:
1. Placed the apache-maven-3.0.3 folder in C:\dev
2. Created a JAVA_HOME System Variable
- variable value = C:\Program Files\Java\jdk1.6.0_25
3. Created an M2_HOME System Variable
- variable value = C:\dev\apache-maven-3.0.3
4. Added %JAVA_HOME%\bin;%M2_HOME%\bin; to System Path
5. I ran the following in the command prompt:
- C:\Documents and Settings\MyName> mvn clean
6. I get a 'Build Failure' message that basically says I have no POM in this directory.
True enough I have no POM file in the 'C:\Documents and Settings\MyName>' directory, but does anyone actually have a POM file in this directory? Also I checked out the '.m2' folder created in the following location: 'C:\Documents and Settings\MyName\.m2\repository' it's empty. Am I doing something wrong? Hope someone can advise. Thanks.
I have some issues with Maven. Here is what I did:
1. Placed the apache-maven-3.0.3 folder in C:\dev
2. Created a JAVA_HOME System Variable
- variable value = C:\Program Files\Java\jdk1.6.0_25
3. Created an M2_HOME System Variable
- variable value = C:\dev\apache-maven-3.0.3
4. Added %JAVA_HOME%\bin;%M2_HOME%\bin; to System Path
5. I ran the following in the command prompt:
- C:\Documents and Settings\MyName> mvn clean
6. I get a 'Build Failure' message that basically says I have no POM in this directory.
True enough I have no POM file in the 'C:\Documents and Settings\MyName>' directory, but does anyone actually have a POM file in this directory? Also I checked out the '.m2' folder created in the following location: 'C:\Documents and Settings\MyName\.m2\repository' it's empty. Am I doing something wrong? Hope someone can advise. Thanks.
regards
glisando
What do you expect Maven to do when you run mvn clean at C:\Documents and Settings\MyNam? Do you have a Maven project at this location? If not, then Maven is doing the right thing by letting you know that there is no project at this location or rather no pom in this location.