struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Re: Build failed in Jenkins: Struts-JDK8-master #31
Date Thu, 08 Oct 2015 12:52:54 GMT
> From: Johannes Geppert <jogep@apache.org>
> To: Struts Developers List <dev@struts.apache.org>, 
> Date: 08.10.2015 14:35
> Subject: Re: Build failed in Jenkins: Struts-JDK8-master #31
> 
> This summer I refactored all java docs to be compliant with JDK8.
> And for me it works. On build all this java doc errors does not pops up
> anymore.
> 
> I would try to avoid ignoring this kind of errors, better provide valid
> java docs.

I agree with that. Ignoring it would just have been a simple way to get it 
working at all.




> But I don't find any reference in the java docs to the
> org.springframework.core.io.DefaultResourceLoader file.
> 
> May something is depending from the JDK version?
> 


Some more details:

- the error occurs when generating:
plugins/portlet/target/site/apidocs/serialized-form.html

- portlet plugin has a dependency on spring for tests

- when I declare spring as compile dependency the javadoc generation works

- serialized-form.html has no entry for any spring stuff


So I guess the maven classpaths for compile and test get mixed up. Maybe 
own classes from both configurations are processed by javadoc but just 
compile-dependencies are added to javadoc's classpath?


Regards,
Christoph




> Johannes
> 
> #################################################
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
> 
> 
> 2015-10-08 13:45 GMT+02:00 Christoph Nenning 
<Christoph.Nenning@lex-com.net>
> :
> 
> > > From: Lukasz Lenart <lukaszlenart@apache.org>
> > > To: Struts Developers List <dev@struts.apache.org>,
> > > Date: 06.10.2015 20:25
> > > Subject: Re: Build failed in Jenkins: Struts-JDK8-master #31
> > >
> > > Any idea why it fails?
> > >
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-javadoc-plugin:2.8:jar (default-cli) 
on
> > > project struts2-portlet-plugin: MavenReportException: Error while
> > > creating archive:
> > > [ERROR] Exit code: 1 - javadoc: error -
> > > com.sun.tools.doclets.internal.toolkit.util.DocletAbortException:
> > > com.sun.tools.javac.code.Symbol$CompletionFailure: class file for
> > > org.springframework.core.io.DefaultResourceLoader not found
> > >
> > >
> >
> > At least I could reproduce the error:
> >
> > cd plugins/portlet
> > mvn clean javadoc:javadoc
> >
> >
> > Happens with jdk8 only.
> > When I do 'mvn package' no javadoc is generated and thus I did not get
> > this error before.
> >
> >
> > That may happen due to the new doclint option of javadoc:
> >
> >
> > http://docs.oracle.com/javase/8/docs/technotes/guides/javadoc/
> whatsnew-8.html
> >
> > In maven it should be possible to disable it with:
> > <additionalparam>-Xdoclint:none</additionalparam>
> >
> >
> > http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-
> mojo.html#additionalparam
> >
> > But I'm not able to get this working.
> >
> > The javadoc commandline logged by maven still did not include
> > -Xdoclint:none.
> >
> >
> > Regards,
> > Christoph
> >
> > This Email was scanned by Sophos Anti Virus
> >

This Email was scanned by Sophos Anti Virus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message