LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2010, 05:41 AM   #1
ShaliniRNair
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
Unhappy 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?
 
Old 09-30-2010, 08:14 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by ShaliniRNair View Post
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
 
Old 10-01-2010, 03:34 AM   #3
ShaliniRNair
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Question Maven2

Quote:
Originally Posted by TB0ne View Post
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:fsmcpom: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?
 
Old 10-01-2010, 07:48 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by ShaliniRNair View Post
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:fsmcpom: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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Training Tips - Boot Linux from a Linux Installation CD or a Linux Live CD to L beibei Linux - General 1 10-29-2009 04:25 AM
Downloading Maven2 in linux box thru remote access linux_linux Linux - Newbie 2 03-15-2008 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration