Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven fatal error while running mvn antrun:run #2779

Closed
darthdaver opened this issue Nov 13, 2023 · 1 comment
Closed

Maven fatal error while running mvn antrun:run #2779

darthdaver opened this issue Nov 13, 2023 · 1 comment
Labels

Comments

@darthdaver
Copy link

darthdaver commented Nov 13, 2023

I got this error, while running mvn antrun:run.

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.codelibs.fess:fess:14.12.0-SNAPSHOT: The following artifacts could not be resolved: org.codelibs.fess:fess-parent:pom:14.12.0-SNAPSHOT (absent): Could not find artifact org.codelibs.fess:fess-parent:pom:14.12.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 30, column 10
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.codelibs.fess:fess:14.12.0-SNAPSHOT ([path_to_fess]/fess/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.codelibs.fess:fess:14.12.0-SNAPSHOT: The following artifacts could not be resolved: org.codelibs.fess:fess-parent:pom:14.12.0-SNAPSHOT (absent): Could not find artifact org.codelibs.fess:fess-parent:pom:14.12.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 30, 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

I thought the problem was caused by the proxy, as reported in the issue 629, however, even after switching off the proxy it did not work.
I fixed the problem explicitly specifying the snapshot repository in the .pom file:

<repositories>
      <repository>
	      <id>snapshots-repo</id>
	      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
	      <snapshots>
		      <enabled>true</enabled>
	      </snapshots>
      </repository>
      <!-- Add other repositories as needed -->
</repositories>
@darthdaver darthdaver added the bug label Nov 13, 2023
@marevol
Copy link
Contributor

marevol commented Nov 17, 2023

Fixed in #2783

@marevol marevol closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants