maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Malte Skoruppa <>
Subject Cannot find parent POM... but it's there!
Date Fri, 29 Nov 2013 13:17:22 GMT
Hey guys,

I want to build a project that I downloaded 
and that is supposed to work fine.

Yet I cannot build even the first module, because Maven tells me it 
cannot find the parent POM. The parent POM is there in the local repo, 
at the correct location, yet somehow Maven refuses to see it and tries 
to fetch it remotely, which clearly will not work. This parent POM is a 
general POM of packaging type "pom" that defines some plugin versions to 
be used etc.

Put simply:
* I extracted the m2repository.tar (from the above URL) to 
* I extracted the module "cryptography-2.0.0" from code.tar (from the 
above URL) to /home/malte/cryptography-2.0.0

Now, in /home/malte/cryptography-2.0.0/pom.xml there is the section:


The corresponding parent POM *does exist* in the local repo:
$ ls 

Yet when I try to validate the module cryptography-2.0.0:

[~/cryptography-2.0.0] $ mvn validate -X -U 
Apache Maven 3.0.4
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /home/malte/.m2/settings.xml
[DEBUG] Using local repository at /home/malte/.repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 
for /home/malte/.repository
[INFO] Scanning for projects...
[DEBUG] Verifying availability of 

from [central (, releases)]
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
[DEBUG] Writing resolution tracking file 
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were 
encountered while processing the POMs:
[FATAL] Non-resolvable parent POM: Could not find artifact 
com.scytl:maven-generic-conf:pom:1.1.39 in central 
( and 'parent.relativePath' points 
at wrong local POM @ line 3, column 13

[ERROR]   The project com.scytl.jbasis:cryptography:2.0.0 
(/home/malte/cryptography-2.0.0/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not find artifact 
com.scytl:maven-generic-conf:pom:1.1.39 in central 
( and 'parent.relativePath' points 
at wrong local POM @ line 3, column 13 -> [Help 2]
org.apache.maven.model.resolution.UnresolvableModelException: Could not 
find artifact com.scytl:maven-generic-conf:pom:1.1.39 in central 
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could 
not find artifact com.scytl:maven-generic-conf:pom:1.1.39 in central 
[ERROR] [Help 1]
[ERROR] [Help 2]

As you can see Maven tries to fetch 
com.scytl:maven-generic-conf:pom:1.1.39 from central, which clearly does 
not work.

What bugs me in particular is this line:
[DEBUG] Verifying availability of 

from [central (, releases)]

Why? WHY? I mean, the file 

is THERE. It's fine. Why does Maven want to download it from central 
repo? Why won't it just read it?

Also, if I actually put maven-generic-conf-1.1.39.pom in the parent 
directory and rename it to pom.xml, the build works fine:

[~] $ mkdir maven-generic-conf
[~] $ cp 
[~] $ cp -r cryptography-2.0.0/ maven-generic-conf/
[~] $ cd maven-generic-conf/cryptography-2.0.0/
[~/maven-generic-conf/cryptography-2.0.0] $ mvn validate -X -U 
[INFO] Total time: 3.173s
[INFO] Finished at: Fri Nov 29 13:46:21 CET 2013
[INFO] Final Memory: 9M/211M

While this is a workaround, it is not a solution. The project is quite 
large and complex, and I cannot just rebuild the entire project 
structure. (There are more very similar problems.) Also, different 
version of maven-generic-conf are used by different modules, etc.

Yes, I did visit both URLs at [Help 1] and [Help 2], and read them 
carefully. It is true that a <relativePath> is not set in the child 
module (i.e., cryptography-2.0.0), but in an entirely different project 
of mine the <relativePath> is not set either and its parent POM is also 
only in the local repo, yet that one validates fine. Also as can be seen 
from the [DEBUG] line stated above, Maven does know the correct location 
of the parent POM, apparently it just doesn't read it.
I googled for similar problems. But I could not find a solution.

I also tried to use the -o switch to make the build offline and force 
Maven to not download anything. But the error I get then is quite similar:
[FATAL] Non-resolvable parent POM: The repository system is offline but 
the artifact com.scytl:maven-generic-conf:pom:1.1.39 is not available in 
the local repository. and 'parent.relativePath' points at wrong local 
POM @ line 3, column 13

Does anyone have an idea of what may be going on here? Any help would be 
GREATLY appreciated. I'm out of ideas here. It may be something very 
simple, and I just miss experience with Maven :)

Many thanks,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message