Maven site warning: The repository url 'https://maven-repository.dev.java.net/nonav/repository' is invalid

前端 未结 2 1920
误落风尘
误落风尘 2021-02-12 16:00

I’m using Maven 3.2.3 on a multi-module project. I want to generate a checkstyle and findbugs report, so I have configured the following:

    
         


        
2条回答
  •  别那么骄傲
    2021-02-12 16:43

    You have to configure the reporting plugin, so that it does not look for repositories, as it builts the report. in you pom add the following:

    
        
            
                org.apache.maven.plugins
                maven-project-info-reports-plugin
                2.8
                
                    false
                
            
        
    
    

    The reporting plugin throws the Warning even if you do not have set in your private or global maven settings or in any parent pom the "invalid" repositories. Maybe the plugin looks also for repository definitions in the dependencies of the project.

    [WARNING] The repository url 'https://maven-repository.dev.java.net/nonav/repository' is invalid - Repository 'java.net' will be blacklisted.
    [WARNING] The repository url 'http://maven.glassfish.org/content/groups/glassfish' is invalid - Repository 'glassfish-repo-archive' will be blacklisted.
    [WARNING] The repository url 'https://maven.java.net/content/repositories/releases/' is invalid - Repository 'jvnet-nexus-releases' will be blacklisted.
    [WARNING] The repository url 'https://maven.java.net/content/groups/public' is invalid - Repository 'release.maven.java.net' will be blacklisted.
    [WARNING] The repository url 'http://repository.springsource.com/maven/bundles/external' is invalid - Repository 'spring-external' will be blacklisted.
    

提交回复
热议问题