Maven2 in Linux
Hey,
I got to compile my project in maven. This is the error that prevail. adminis@adminis-laptop:~/fsmcp-1.5.1-SNAPSHOT$ mvn compile [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] task-segment: [compile] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu Sep 30 13:26:19 IST 2010 [INFO] Final Memory: 2M/56M [INFO] ------------------------------------------------------------------------ Can somebody pls help? |
Quote:
Quote:
http://maven.apache.org/guides/intro...o-the-pom.html |
Maven2
Quote:
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository ed-fsmcp:fsmcp:pom:1.5.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) Pom file was built too. the problem i perceive is that it is unable to connect to the site provided to downloa plugins. Y? Y? Y? |
Quote:
What is the ouput of "maven -e", as it told you to run for more information. Have you tested your internet connection on that box then? Is the POM file in the right path/directory? Right permissions? Are you running this as root? Is the name of the POM correct (case-sensitive)? Again, the docs on the site were pretty clear on why you'd get that error, and how to resolve it. |
All times are GMT -5. The time now is 09:40 AM. |