← Back to team overview

dhis2-documenters team mailing list archive

Re: Build problems

 

http://docs.codehaus.org/display/MAVENUSER/Docbkx+Maven+Plugin

Look at example 9 and 10. I guess it is this.

 Well, shall I try and dig into the guts of Maven or is there a
(semi)guru out there that can help?



On Tue, Nov 17, 2009 at 4:14 PM, Ola Hodne Titlestad <olatitle@xxxxxxxxx> wrote:
> I would assume these schemas would be put in a local maven repository
> similar to how .jar files are treated when building java projects with
> dependencies that must be retrieved online only during the first build.
>
> Ola Hodne Titlestad |Technical Officer|
> Health Metrics Network (HMN) | World Health Organization
> Avenue Appia 20 |1211 Geneva 27, Switzerland | Email:
> titlestado@xxxxxxx|Tel: +41 788216897
> Website: www.healthmetricsnetwork.org
>
> Better Information. Better Decisions. Better Health.
>
>
> 2009/11/17 Jason Pickering <jason.p.pickering@xxxxxxxxx>
>>
>> I do not think so, due to the schema reference.
>>
>> During the build, I see from netstat...
>>
>> tcp6       0    189 jason-laptop.lan:39458  www.oasis-open.org:www
>>  ESTABLISHED
>> tcp6       0      0 jason-laptop.lan:39457  www.oasis-open.org:www
>>  ESTABLISHED
>> tcp6     569      0 jason-laptop.lan:39456  www.oasis-open.org:www
>>  ESTABLISHED
>>
>> So, no, at the moment, I do not think offline builds are possible.
>>
>> Online builds seem to be sensitive to whether or not the schema is
>> able to be retrieved (it does not appear to be cached).
>> Looks like we will need to dig a bit deeper to figure this one out.
>>
>> Regards,
>> Jason
>>
>>
>> On Tue, Nov 17, 2009 at 2:22 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
>> > It should definitely be possible to build when offline. Are you saying
>> > that
>> > is not the case now?
>> >
>> > Knut
>> >
>> > On Tue, Nov 17, 2009 at 12:20 PM, Jason Pickering
>> > <jason.p.pickering@xxxxxxxxx> wrote:
>> >>
>> >> Did you try an mvn clean before starting anything?
>> >>
>> >> I think the underlying problem may be the lack of inclusion of the
>> >> DocBook schemas in a local directory. It seems strange that each time
>> >> that build takes place, remote files need to be fetched.  Perhaps it
>> >> is possible to include the schemas locally so that we can avoid this
>> >> step?
>> >>
>> >>
>> >>
>> >> On Tue, Nov 17, 2009 at 2:04 PM, Ola Hodne Titlestad
>> >> <olatitle@xxxxxxxxx>
>> >> wrote:
>> >> > But this didn't solve the problem, the process still times out....
>> >> >
>> >> > Ola Hodne Titlestad |Technical Officer|
>> >> > Health Metrics Network (HMN) | World Health Organization
>> >> > Avenue Appia 20 |1211 Geneva 27, Switzerland | Email:
>> >> > titlestado@xxxxxxx|Tel: +41 788216897
>> >> > Website: www.healthmetricsnetwork.org
>> >> >
>> >> > Better Information. Better Decisions. Better Health.
>> >> >
>> >> >
>> >> > 2009/11/17 Knut Staring <knutst@xxxxxxxxx>
>> >> >>
>> >> >> I think you are right that it has to do with Maven proxy settings,
>> >> >> Ola.
>> >> >> It
>> >> >> sort of works on my WHO workstation using Ubuntu, with the following
>> >> >> in
>> >> >> ~/.m2/settings.xml
>> >> >>
>> >> >> <settings>
>> >> >>   <proxies>
>> >> >>    <proxy>
>> >> >>       <active>true</active>
>> >> >>       <protocol>http</protocol>
>> >> >>       <host>proxy.who.int</host>
>> >> >>       <port>3128</port>
>> >> >>       <nonProxyHosts>*.who.int</nonProxyHosts>
>> >> >>     </proxy>
>> >> >>   </proxies>
>> >> >> </settings>
>> >> >>
>> >> >> It builds the HTML, but then hangs on the PDF generation and fails.
>> >> >>
>> >> >> [INFO] [docbkx:generate-html]
>> >> >> [WARNING] Failed to find catalog files.
>> >> >> [INFO] Processing dhis2_user_man_mod1.xml
>> >> >> [INFO] Processing dhis2_documentation_guide.xml
>> >> >> [INFO] Processing dhis2_user_man_mod3.xml
>> >> >> [INFO] Processing dhis2_user_man_mod11.xml
>> >> >> [INFO] Processing dhis2_report_excel_user_manual_en.xml
>> >> >> [INFO] Processing dhis2_user_man_mod4.xml
>> >> >> [INFO] Processing dhis2_user_man_mod2.xml
>> >> >> [INFO] Processing dhis2_gis_user_manual_en.xml
>> >> >> [INFO] Processing datamodel.xml
>> >> >> [INFO] Executing tasks
>> >> >>      [copy] Copying 9 files to
>> >> >> /home/staringk/dhis2-docbook-docs/target/site/en
>> >> >>      [copy] Copying 83 files to
>> >> >>
>> >> >> /home/staringk/dhis2-docbook-docs/target/site/en/html/resources/images
>> >> >>      [copy] Copying 1 file to
>> >> >> /home/staringk/dhis2-docbook-docs/target/site/en/html/resources/css
>> >> >> [INFO] Executed tasks
>> >> >> [INFO]
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] BUILD SUCCESSFUL
>> >> >> [INFO]
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] Total time: 3 minutes 32 seconds
>> >> >> [INFO] Finished at: Tue Nov 17 12:56:42 GMT 2009
>> >> >> [INFO] Final Memory: 13M/93M
>> >> >> [INFO]
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------
>> >> >> Building PDF files
>> >> >> [INFO] Scanning for projects...
>> >> >> [INFO] Searching repository for plugin with prefix: 'docbkx'.
>> >> >> [INFO]
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] Building DHIS 2 Documentation
>> >> >> [INFO]    task-segment: [docbkx:generate-pdf]
>> >> >> [INFO]
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] [docbkx:generate-pdf]
>> >> >> [WARNING] Failed to find catalog files.
>> >> >> [INFO] Processing dhis2_user_man_mod1.xml
>> >> >> Error
>> >> >>   Failure reading
>> >> >>
>> >> >>
>> >> >> /home/staringk/dhis2-docbook-docs/src/docbkx/en/dhis2_user_man_mod1.xml:
>> >> >> Connection timed out
>> >> >> [INFO]
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------
>> >> >> [ERROR] BUILD ERROR
>> >> >> [INFO]
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] Failed to transform dhis2_user_man_mod1.xml.
>> >> >>
>> >> >> Embedded error: Failure reading
>> >> >>
>> >> >> /home/staringk/dhis2-docbook-docs/src/docbkx/en/dhis2_user_man_mod1.xml
>> >> >> Connection timed out
>> >> >> [INFO]
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] For more information, run Maven with the -e switch
>> >> >> [INFO]
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] Total time: 3 minutes 19 seconds
>> >> >> [INFO] Finished at: Tue Nov 17 13:00:02 GMT 2009
>> >> >> [INFO] Final Memory: 13M/118M
>> >> >>
>> >> >>
>> >> >>
>> >> >> And still not working in Synergy...
>> >> >>
>> >> >> On Tue, Nov 17, 2009 at 10:24 AM, Ola Hodne Titlestad
>> >> >> <olatitle@xxxxxxxxx>
>> >> >> wrote:
>> >> >>>
>> >> >>> I have the same problem both in cygwin and in cmd so don't think
>> >> >>> it's
>> >> >>> cygwin. Seems to be related to connection as you get a connection
>> >> >>> time
>> >> >>> out.
>> >> >>> Mine actually just hangs forever at the same place. I would think
>> >> >>> it
>> >> >>> relates
>> >> >>> to proxy settings in maven, as it should not have anything to do
>> >> >>> with
>> >> >>> bazaar
>> >> >>> (which is not used when building code).
>> >> >>>
>> >> >>>
>> >> >>> Ola Hodne Titlestad |Technical Officer|
>> >> >>> Health Metrics Network (HMN) | World Health Organization
>> >> >>> Avenue Appia 20 |1211 Geneva 27, Switzerland | Email:
>> >> >>> titlestado@xxxxxxx|Tel: +41 788216897
>> >> >>> Website: www.healthmetricsnetwork.org
>> >> >>>
>> >> >>> Better Information. Better Decisions. Better Health.
>> >> >>>
>> >> >>>
>> >> >>> 2009/11/17 Jason Pickering <jason.p.pickering@xxxxxxxxx>
>> >> >>>>
>> >> >>>> Hi Knut,
>> >> >>>> I suspect again this has to do with CygWin. Has it worked before?
>> >> >>>> What
>> >> >>>> is the v: drive? Are you sure that Cygwin can access this path?
>> >> >>>>
>> >> >>>> Regards,
>> >> >>>> Jason
>> >> >>>>
>> >> >>>>
>> >> >>>> On Tue, Nov 17, 2009 at 11:48 AM, Knut Staring <knutst@xxxxxxxxx>
>> >> >>>> wrote:
>> >> >>>> > Hi Jason,
>> >> >>>> >
>> >> >>>> > I built all the docs on my laptop several times this morning,
>> >> >>>> > including from
>> >> >>>> > a fresh checkout.
>> >> >>>> > However, after a fresh checkout on my WHO machine, the following
>> >> >>>> > happens. Is
>> >> >>>> > this what we have seen before also? Ola was also unable to build
>> >> >>>> > today
>> >> >>>> > from
>> >> >>>> > home (but on his Synergy laptop).
>> >> >>>> > Knut
>> >> >>>> > $ ./build.sh
>> >> >>>> > Building HTML files
>> >> >>>> > [INFO] Scanning for projects...
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > [INFO] Building DHIS 2 Documentation
>> >> >>>> > [INFO] task-segment: [docbkx:generate-html]
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > [INFO] [docbkx:generate-html {execution: default-cli}]
>> >> >>>> > [WARNING] Failed to find catalog files.
>> >> >>>> > [INFO] Processing dhis2_user_man_mod4.xml
>> >> >>>> > Error
>> >> >>>> > Failure reading
>> >> >>>> > v:\dhis2-docbook-docs\src\docbkx\en\dhis2_user_man_mod4.xml:
>> >> >>>> > Connection timed out: connect
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > [ERROR] BUILD ERROR
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > [INFO] Failed to transform dhis2_user_man_mod4.xml.
>> >> >>>> >
>> >> >>>> > Embedded error: Failure reading
>> >> >>>> > v:\dhis2-docbook-docs\src\docbkx\en\dhis2_user_man_mod4.xml
>> >> >>>> > Connection timed out: connect
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > [INFO] For more information, run Maven with the -e switch
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > [INFO] Total time: 42 seconds
>> >> >>>> > [INFO] Finished at: Tue Nov 17 10:45:37 CET 2009
>> >> >>>> > [INFO] Final Memory: 10M/25M
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > Building PDF files
>> >> >>>> > [INFO] Scanning for projects...
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > [INFO] Building DHIS 2 Documentation
>> >> >>>> > [INFO] task-segment: [docbkx:generate-pdf]
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > [INFO] [docbkx:generate-pdf {execution: default-cli}]
>> >> >>>> > [WARNING] Failed to find catalog files.
>> >> >>>> > [INFO] Processing dhis2_user_man_mod4.xml
>> >> >>>> > Error
>> >> >>>> > Failure reading
>> >> >>>> > v:\dhis2-docbook-docs\src\docbkx\en\dhis2_user_man_mod4.xml:
>> >> >>>> > Connection timed out: connect
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > [ERROR] BUILD ERROR
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > [INFO] Failed to transform dhis2_user_man_mod4.xml.
>> >> >>>> >
>> >> >>>> > Embedded error: Failure reading
>> >> >>>> > v:\dhis2-docbook-docs\src\docbkx\en\dhis2_user_man_mod4.xml
>> >> >>>> > Connection timed out: connect
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > [INFO] For more information, run Maven with the -e switch
>> >> >>>> > [INFO]
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > ------------------------------------------------------------------------
>> >> >>>> > [INFO] Total time: 32 seconds
>> >> >>>> > [INFO] Finished at: Tue Nov 17 10:46:10 CET 2009
>> >> >>>> > [INFO] Final Memory: 10M/25M
>> >> >>>> >
>> >> >>>> >
>> >> >>>> >
>> >> >>>> > --
>> >> >>>> > Cheers,
>> >> >>>> > Knut Staring
>> >> >>>> >
>> >> >>>
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Cheers,
>> >> >> Knut Staring
>> >> >
>> >> >
>> >
>> >
>> >
>> > --
>> > Cheers,
>> > Knut Staring
>> >
>
>



Follow ups

References