文章目录
- 一、IDEA编译报错 Refer to the generated Javadoc
- 1.1、报错内容
- 1.2、解决办法
一、IDEA编译报错 Refer to the generated Javadoc
1.1、报错内容
Command line was: /opt/jdk1.8.0_181/jre/../bin/javadoc @options @packagesRefer to the generated Javadoc files in '.../target/apidocs' dir.at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeJavadocCommandLine(AbstractJavadocMojo.java:5163)at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:2075)at org.apache.maven.plugin.javadoc.JavadocJar.execute(JavadocJar.java:188)at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)
1.2、解决办法
在pom.xml文件中加入下面的内容 ,意思是打包的时候跳过javadoc和test
<properties><maven.test.skip>true</maven.test.skip><maven.javadoc.skip>true</maven.javadoc.skip>
</properties>