LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Maven2 in Linux (https://www.linuxquestions.org/questions/linux-software-2/maven2-in-linux-835382/)

ShaliniRNair 09-30-2010 05:41 AM

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?

TB0ne 09-30-2010 08:14 AM

Quote:

Originally Posted by ShaliniRNair (Post 4113601)
Hey,
I got to compile my project in maven.
This is the error that prevail.

Can somebody pls help?

First, spell out your words. Second, did you read the error and try what it said??
Quote:

Originally Posted by ShaliniRNair
[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

Did you do that? Did you build the pom.xml for your project?? Did you look at the Maven documentation on this very subject?
http://maven.apache.org/guides/intro...o-the-pom.html

ShaliniRNair 10-01-2010 03:34 AM

Maven2
 
Quote:

Originally Posted by TB0ne (Post 4113722)
First, spell out your words. Second, did you read the error and try what it said??

Did you do that? Did you build the pom.xml for your project?? Did you look at the Maven documentation on this very subject?
http://maven.apache.org/guides/intro...o-the-pom.html

yes, i read the error n explains like this:
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?

TB0ne 10-01-2010 07:48 AM

Quote:

Originally Posted by ShaliniRNair (Post 4114521)
yes, i read the error n explains like this:
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?

Again, SPELL OUT YOUR WORDS...that text-speak garbage is against LQ rules.

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.