Doc build should be fixed

Will take a look at "Cannot run program "svnversion"" errors

On Wed, 5 Dec 2018 at 19:39, Francesco Chicchiriccò <ilgro...@apache.org>
wrote:

> On 05/12/18 13:27, Maxim Solodovnik wrote:
> > Hello Francesco,
> >
> > shall binary assemblies be created during "docs building"?
> > (Right now I have 2 options: turn off
> > creating openjpa-project/target/site/downloads/*.zip or understand why it
> > fails :)) )
>
> I think it is safe to disable, as there is no download link for that in
> the website; only, we'll need to adjust
>
>
> https://svn.apache.org/repos/infra/infrastructure/buildbot/aegis/buildmaster/master1/projects/openjpa.conf
>
> Regards.
>
> > On Mon, 3 Dec 2018 at 23:34, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
> >
> >> I can see blocks like this in output:
> >>
> >> [INFO] --- maven-antrun-plugin:1.8:run (set subversion revision) @
> >> openjpa-lib ---
> >> [INFO] Executing tasks
> >>
> >> main:
> >>       [exec] Execute failed: java.io.IOException: Cannot run program
> >> "svnversion" (in directory
> "/home/solomax/work/tmp/openjpa/openjpa-lib"):
> >> error=2, No such file or directory
> >>       [exec] Execute failed: java.io.IOException: Cannot run program
> "svn"
> >> (in directory "/home/solomax/work/tmp/openjpa/openjpa-lib"): error=2, No
> >> such file or directory
> >>     [delete] Deleting:
> >> /home/solomax/work/tmp/openjpa/openjpa-lib/pcenhancer.revision.file
> >>       [echo] Revision: unknown
> >>       [echo] OpenJPA version: 3.0.1-SNAPSHOT
> >>
> >> I believe it should be replaced with
> >> https://www.mojohaus.org/buildnumber-maven-plugin/
> >> with
> >>
> https://www.mojohaus.org/buildnumber-maven-plugin/create-mojo.html#getRevisionOnlyOnce
> >> option set
> >>
> >> will try to do after build fix
> >>
> >>
> >> On Mon, 3 Dec 2018 at 23:21, Maxim Solodovnik <solomax...@gmail.com>
> >> wrote:
> >>
> >>> I'm checking OpenJdk build so far
> >>> Have fixed couple of errors
> >>> will try to finish today/tomorrow
> >>>
> >>> On Mon, 3 Dec 2018 at 23:19, Francesco Chicchiriccò <
> ilgro...@apache.org>
> >>> wrote:
> >>>
> >>>> On 03/12/18 16:43, Maxim Solodovnik wrote:
> >>>>> I'm re-checking with OpenJdk
> >>>>>
> >>>>> According to builbot:
> >>>>>
> >>>>> This article states:
> >>>>>
> >>>>
> https://shdhumale.wordpress.com/2017/06/01/how-to-remove-dmaven-multimoduleprojectdirectory-system-property-is-not-set-check-m2_home-environment-variable-and-mvn-script-match-in-eclipse/
> >>>>> Maven is not match with M2_HOME
> >>>>> Can you try to add $M2_HOME/bin to $PATH ?
> >>>>> Maybe it will help?
> >>>> After setting PATH, the error looks in-line with yours (e.g. with
> Oracle
> >>>> JDK):
> >>>>
> >>>>
> >>>>
> https://ci.apache.org/builders/openjpa-master-docs/builds/13/steps/compile/logs/stdio
> >>>>
> >>>> ...which is a good thing, IMO: now we "only" need to fix javadocs now.
> >>>>
> >>>> Regards.
> >>>>
> >>>>> On Mon, 3 Dec 2018 at 22:13, Francesco Chicchiriccò <
> >>>> ilgro...@apache.org>
> >>>>> wrote:
> >>>>>
> >>>>>> On 03/12/18 15:57, Maxim Solodovnik wrote:
> >>>>>>> Just have performed the full build (mvn clean install)
> >>>>>>> It was successful
> >>>>>>>
> >>>>>>> Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3;
> >>>>>>> 2018-10-25T01:41:47+07:00)
> >>>>>>> Maven home: /opt/maven
> >>>>>>> Java version: 1.8.0_191, vendor: Oracle Corporation, runtime:
> >>>>>>> /usr/lib/jvm/java-8-oracle/jre
> >>>>>>> Default locale: en_US, platform encoding: UTF-8
> >>>>>>> OS name: "linux", version: "4.15.0-39-generic", arch: "amd64",
> >>>> family:
> >>>>>>> "unix"
> >>>>>> Yep, same on Jenkins:
> >>>>>>
> >>>>>> https://builds.apache.org/view/M-R/view/OpenJPA/job/OpenJPA-trunk/
> >>>>>>
> >>>>>>> `mvn -U clean site install -DskipTests
> >>>> -Pjavadoc-profile,docbook-profile`
> >>>>>>> The result is:
> >>>>>>>
> >>>>>>> [ERROR] Failed to execute goal
> >>>>>>> org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:aggregate
> >>>> (default)
> >>>>>> on
> >>>>>>> project openjpa-parent: An error has occurred in Javadoc report
> >>>>>> generation:
> >>>>>>> [ERROR] Exit code: 1 -
> >>>>>>>
> >>>>
> /home/solomax/work/tmp/openjpa/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/CFMetaDataParser.java:54:
> >>>>>>> warning: no @param for name
> >>>>>>> [ERROR]     protected boolean isPackageElementName(String name) {
> >>>>>>> [ERROR]                       ^
> >>>>>>>                                       *lots of errors here*
> >>>>>> This because you built with Oracle JDK; if you used OpenJDK,
> instead,
> >>>>>> you would have ended with same error as I reported below.
> >>>>>>
> >>>>>>> According to buildbot
> >>>>>>> Can I see job configuration?
> >>>>>> Sure, it's on SVN:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>
> https://svn.apache.org/repos/infra/infrastructure/buildbot/aegis/buildmaster/master1/projects/openjpa.conf
> >>>>>> Regards.
> >>>>>>
> >>>>>>> On Mon, 3 Dec 2018 at 19:12, Maxim Solodovnik <
> solomax...@gmail.com>
> >>>>>> wrote:
> >>>>>>>> I'll double-check later tonight
> >>>>>>>>
> >>>>>>>> Will report back later with java versions
> >>>>>>>>
> >>>>>>>> WBR, Maxim
> >>>>>>>> (from mobile, sorry for the typos)
> >>>>>>>>
> >>>>>>>> On Mon, Dec 3, 2018, 19:08 Francesco Chicchiriccò <
> >>>> ilgro...@apache.org
> >>>>>>>> wrote:
> >>>>>>>>
> >>>>>>>>> On 03/12/18 13:06, Maxim Solodovnik wrote:
> >>>>>>>>>> Have you 'git pull'?
> >>>>>>>>> Of course: https://paste.apache.org/3SIA
> >>>>>>>>>
> >>>>>>>>> Regards.
> >>>>>>>>>
> >>>>>>>>>> On Mon, Dec 3, 2018, 18:58 Francesco Chicchiriccò <
> >>>>>> ilgro...@apache.org
> >>>>>>>>>> wrote:
> >>>>>>>>>>
> >>>>>>>>>>> On 03/12/18 12:47, Francesco Chicchiriccò wrote:
> >>>>>>>>>>>> On 03/12/18 12:22, Maxim Solodovnik wrote:
> >>>>>>>>>>>>> Hello Francesco,
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> I just have commited partial fix
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> The build still fails since there dozed of javadoc errors :(
> >>>>>>>>>>>>> Should they be suppressed or fixed?
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> I would vote for fixing them ....
> >>>>>>>>>>>> I would also like to fix them - consider that, at least on my
> >>>>>> laptop,
> >>>>>>>>>>>> the build fails with Oracle JDK 8 but succeeds with OpenJDK 8
> >>>> (with
> >>>>>>>>>>>> warnings).
> >>>>>>>>>>> Mmmm, no, it fails anyway as follows:
> >>>>>>>>>>>
> >>>>>>>>>>> [ERROR] Failed to execute goal
> >>>>>>>>>>>
> org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:checkstyle
> >>>>>>>>>>> (default) on project openjpa-tools: An error has occurred in
> >>>>>> Checkstyle
> >>>>>>>>>>> report generation.: Failed during checkstyle execution: Unable
> to
> >>>>>> find
> >>>>>>>>>>> configuration file at location:
> >>>>>>>>>>>
> >>>>
> /home/ilgrosso/work/openjpa/openjpa-tools/../../openjpa-project/checkstyle.xml:
> >>>>>>>>>>> Could not find resource
> >>>>>>>>>>>
> >>>>
> '/home/ilgrosso/work/openjpa/openjpa-tools/../../openjpa-project/checkstyle.xml'.
> >>>>>>>>>>> -> [Help 1]
> >>>>>>>>>>>
> >>>>>>>>>>> Regards.
> >>>>>>>>>>>
> >>>>>>>>>>>> buildbot, however, has always the same error:
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>
> https://ci.apache.org/builders/openjpa-master-docs/builds/11/steps/compile/logs/stdio
> >>>>>>>>>>>> Regards.
> >>>>>>>>>>>>
> >>>>>>>>>>>>> On Mon, 3 Dec 2018 at 18:00, Francesco Chicchiriccò
> >>>>>>>>>>>>> <ilgro...@apache.org>
> >>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>> On 03/12/18 11:58, Maxim Solodovnik wrote:
> >>>>>>>>>>>>>>> I see the issue, will try to fix ASAP (most probably be
> >>>> caused by
> >>>>>>>>> my
> >>>>>>>>>>>>>> latest
> >>>>>>>>>>>>>>> plugin update)
> >>>>>>>>>>>>>>> Will report back to this thread
> >>>>>>>>>>>>>> Thanks.
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> Regards.
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> On Mon, 3 Dec 2018 at 17:55, Francesco Chicchiriccò
> >>>>>>>>>>>>>>> <ilgro...@apache.org>
> >>>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>> On 03/12/18 11:45, Maxim Solodovnik wrote:
> >>>>>>>>>>>>>>>>> "Unknown packaging: bundle" can be ignored (should be
> >>>> treated
> >>>>>> as
> >>>>>>>>>>>>>> warning)
> >>>>>>>>>>>>>>>>> I have started thread regarding thin on Mavel list
> >>>>>>>>>>>>>>>>> https://markmail.org/message/jbvxgemsaahk6ern
> >>>>>>>>>>>>>>>>> (was unable to provide PR :(( )
> >>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>> I can try to reproduce your error on my laptop
> >>>>>>>>>>>>>>>>> what command doesn't work for you?
> >>>>>>>>>>>>>>>> The one that was configured in buildbot, e.g.
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> mvn -U clean site install -DskipTests
> >>>>>>>>>>>>>>>> -Pjavadoc-profile,docbook-profile
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>> On Mon, 3 Dec 2018 at 17:32, Francesco Chicchiriccò <
> >>>>>>>>>>>>>> ilgro...@apache.org
> >>>>>>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> On 01/12/18 05:23, Maxim Solodovnik wrote:
> >>>>>>>>>>>>>>>>>>> Hello Francesco,
> >>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>> additional repository might be required for m2e:
> >>>>>>>>>>>>>>>>>>>
> >>>>
> https://mvnrepository.com/artifact/org.eclipse.m2e/lifecycle-mapping/1.0.0
> >>>>>>>>>>>>>>>>>> This should by a dummy empty dependency, that's why I
> >>>> don't
> >>>>>>>>>>>>>> understand.
> >>>>>>>>>>>>>>>>>> Anyway, one of the indicated actions worked, at the end.
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> Now error is different:
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> [WARNING] Unable to create Maven project for
> >>>>>>>>>>>>>>>>>> org.postgresql:postgresql:jar:42.2.5 from repository.
> >>>>>>>>>>>>>>>>>> org.apache.maven.project.ProjectBuildingException: Some
> >>>>>> problems
> >>>>>>>>>>>>>>>>>> were
> >>>>>>>>>>>>>>>>>> encountered while processing the POMs:
> >>>>>>>>>>>>>>>>>> [ERROR] Unknown packaging: bundle @ line 11, column 14
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>> According to system property, I believe you can add it
> to
> >>>>>> maven
> >>>>>>>>>>>>>> command
> >>>>>>>>>>>>>>>>>> line, or not?
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> I did, but it did not work.
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>> BTW why both Jenkins and buildbot are required?
> >>>>>>>>>>>>>>>>>> buildbot is supposed to build and deploy the SNAPSHOT
> >>>> docs;
> >>>>>>>>>>>>>>>>>> Jenkins to
> >>>>>>>>>>>>>>>>>> build and deploy SNAPSHOT artifacts.
> >>>>>>>>>>>>>>>>>>> On Fri, 30 Nov 2018 at 22:25, Francesco Chicchiriccò <
> >>>>>>>>>>>>>>>> ilgro...@apache.org> wrote:
> >>>>>>>>>>>>>>>>>>>> Hi all,
> >>>>>>>>>>>>>>>>>>>> it seems I am not as lucky with buildbot as I've been
> >>>> with
> >>>>>>>>>>>>>>>>>>>> Jenkins:
> >>>>>>>>>>>>>>>>>>>> coming to [1] with same purpose, I am now in the
> >>>> situation
> >>>>>>>>> where
> >>>>>>>>>>>>>> both
> >>>>>>>>>>>>>>>>>>>> openjpa-master-docs [2] and openjpa-2.4.x-docs [3]
> fail
> >>>>>>>>> because
> >>>>>>>>>>>>>>>>>>>> -Dmaven.multiModuleProjectDirectory system property is
> >>>> not
> >>>>>> set
> >>>>>>>>>>>>>>>>>>>> However, if I attempt to run the build command
> >>>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>>> mvn -U clean site install -DskipTests
> >>>>>>>>>>>>>>>>>>>> -Pjavadoc-profile,docbook-profile
> >>>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>>> on my own laptop, I get a different error:
> >>>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>>> Error resolving project artifact: Failure to find
> >>>>>>>>>>>>>>>>>>>> org.eclipse.m2e:lifecycle-mapping:pom:1.0.0
> >>>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>>> Any clue?
> >>>>>>>>>>>>>>>>>>>> Regards.
> >>>>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>>> [1]
> >>>>
> https://svn.apache.org/repos/infra/infrastructure/buildbot/aegis/buildmaster/master1/projects/openjpa.conf
> >>>>>>>>>>>>>>>>>>>> [2]
> https://ci.apache.org/builders/openjpa-master-docs/
> >>>>>>>>>>>>>>>>>>>> [3]
> https://ci.apache.org/builders/openjpa-2.4.x-docs/
>
> --
> Francesco Chicchiriccò
>
> Tirasa - Open Source Excellence
> http://www.tirasa.net/
>
> Member at The Apache Software Foundation
> Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
> http://home.apache.org/~ilgrosso/
>
>

-- 
WBR
Maxim aka solomax

Reply via email to