sudeep87 / uimafit

Automatically exported from code.google.com/p/uimafit
0 stars 0 forks source link

Sonatype OSS parent pom cannot be resolved (was: maven install) #125

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I followed the instruction to compile it from source, got the latest version 
from svn and tried maven install, however, I have a maven error:

[INFO] Scanning for projects...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
Downloading: 
http://people.apache.org/repo/m2-incubating-repository/org/sonatype/oss/oss-pare
nt/7/oss-parent-7.pom
Downloading: 
http://download.java.net/maven/2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloading: 
http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.uimafit:uimafit:1.4.0-SNAPSHOT 
(/home/b/workspace/uimafit-parent/uimaFIT/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for 
org.uimafit:uimafit-parent:1.4.0-SNAPSHOT: Could not transfer artifact 
org.sonatype.oss:oss-parent:pom:7 from/to UIMA 
(http://people.apache.org/repo/m2-incubating-repository): Connect times out and 
'parent.relativePath' points at wrong local POM @ 
org.uimafit:uimafit-parent:1.4.0-SNAPSHOT, 
/home/b/workspace/uimafit-parent/pom.xml, line 10, column 10 -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] 
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

on the commmand line with mvn -x I'm getting:

[INFO] Scanning for projects...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
Downloading: 
http://people.apache.org/repo/m2-incubating-repository/org/sonatype/oss/oss-pare
nt/7/oss-parent-7.pom
Downloading: 
http://download.java.net/maven/2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloading: 
http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.uimafit:uimafit:1.4.0-SNAPSHOT 
(/home/b/workspace/uimafit-parent/uimaFIT/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for 
org.uimafit:uimafit-parent:1.4.0-SNAPSHOT: Could not transfer artifact 
org.sonatype.oss:oss-parent:pom:7 from/to UIMA 
(http://people.apache.org/repo/m2-incubating-repository): Connect times out and 
'parent.relativePath' points at wrong local POM @ 
org.uimafit:uimafit-parent:1.4.0-SNAPSHOT, 
/home/b/workspace/uimafit-parent/pom.xml, line 10, column 10 -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] 
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

any idea how to solve this?

Thanks,
B.

Original issue reported on code.google.com by bpl...@gmail.com on 8 Jun 2012 at 10:01

GoogleCodeExporter commented 8 years ago
Please check that you don't have problems downloading stuff from Maven Central 
(repo1). The Sonatype OSS parent pom is available from there:

http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.sonatype.oss%22%20AND%20a
%3A%22oss-parent%22

It looks like there might be a problem with repo1 or with your net that cause 
the connection to repo1 to time out.

Original comment by richard.eckart on 8 Jun 2012 at 10:05

GoogleCodeExporter commented 8 years ago
Hi Richard,

thanks for you reply. 

I had to create a settings.xml file in .m2 (maven) and enter the necessary 
proxy settings, example:
<settings>
  <proxies>
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>prox[....]</host>
      <port>3128</port>
    </proxy>
  </proxies>
</settings>

Then, I could run maven -> install and it finally succeeded to get the pom. 
Plue, I had to run maven -> update project dependencies to get rid of some 
final errors. Now it seems to work (at least no errors at this stage). Thanks.

Barbara

Original comment by bpl...@gmail.com on 8 Jun 2012 at 2:13

GoogleCodeExporter commented 8 years ago

Original comment by richard.eckart on 8 Jun 2012 at 3:54