Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

spring boot - Java + SpringBoot Maven (site) - Unable to find a URL to the parent project. The parent menu will NOT be added

Small question regarding Maven Site for a SpringBoot multi module project.

I am currently building a maven multi module project, however, on a basic mvn site, I am seeing the following:

Unable to find a URL to the parent project. The parent menu will NOT be added.

This message is a bit confusing to me, since in my root pom:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.4.1</version>
    <relativePath/>
</parent>

<name>someName</name>
<description> some description</description>
<url>https://pages.github.[...]</url>
<organization>
    <name>myOrg</name>
</organization>
<scm>
    <url>https://github.[...]</url>
</scm>

 <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.9.1</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>3.1.1</version>
            </plugin>

Even on the spring root pom, I see “url”. Plus, in each of my sub-modules, I do reference the parent pom.

Hence, I am indeed using an URL. What am I doing wrong here to get "Unable to find a URL to the parent project. The parent menu will NOT be added."?

And how to solve it please?

Thank you


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...