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

Error "java.lang.IllegalStateException: Could not read child element: parent" is generated for a maven module #18

Closed
cmoulliard opened this issue Nov 22, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cmoulliard
Copy link
Collaborator

Issue

The following error is generated when we compile a maven module where there is no maven pom parent

Error

Caused by: java.lang.IllegalStateException: Could not read child element: parent
    at io.ap4k.project.MavenInfo.lambda$getElement$6 (MavenInfo.java:145)
    at java.util.Optional.orElseThrow (Optional.java:290)
    at io.ap4k.project.MavenInfo.getElement (MavenInfo.java:145)
    at io.ap4k.project.MavenInfo.getParentVersion (MavenInfo.java:109)
    at io.ap4k.project.MavenInfo.getVersion (MavenInfo.java:89)
    at io.ap4k.project.MavenInfo.<init> (MavenInfo.java:45)
    at io.ap4k.project.MavenInfoReader.getInfo (MavenInfoReader.java:45)
    at io.ap4k.project.MavenInfoReader.getInfo (MavenInfoReader.java:29)
    at io.ap4k.project.FileProjectFactory.lambda$getProjectInfo$2 (FileProjectFactory.java:78)
    at java.util.Optional.map (Optional.java:215)
    at io.ap4k.project.FileProjectFactory.getProjectInfo (FileProjectFactory.java:78)
    at io.ap4k.project.FileProjectFactory.createInternal (FileProjectFactory.java:59)
    at io.ap4k.project.FileProjectFactory.create (FileProjectFactory.java:48)
    at io.ap4k.project.AptProjectFactory.createInternal (AptProjectFactory.java:52)
    at io.ap4k.project.AptProjectFactory.create (AptProjectFactory.java:42)
    at io.ap4k.processor.AbstractAnnotationProcessor.init (AbstractAnnotationProcessor.java:54)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant