I think the below problem is somehow related to proxy settings - but it is really weird, because it works “sometimes”, that is, it works the first time when Maven downloads all dependencies, but not afterwards.
$ mvn clean docbkx:generate-html
[INFO] Scanning for projects…
[INFO] ------------------------------------------------------------------------
[INFO] Building DHIS 2 Documentation
[INFO] task-segment: [clean, docbkx:generate-html]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory c:\docs2\dhis2-docbook-docs\target
[INFO] [docbkx:generate-html {execution: default-cli}]
[WARNING] Failed to find catalog files.
[INFO] Processing dhis2_user_man_mod3.xml
Error
Failure reading c:\docs2\dhis2-docbook-docs\src\docbkx\en\dhis2_user_man_mod3.xml: Connection timed out: connect
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to transform dhis2_user_man_mod3.xml.
Embedded error: Failure reading c:\docs2\dhis2-docbook-docs\src\docbkx\en\dhis2_user_man_mod3.xml
Connection timed out: connect
···
–
Cheers,
Knut Staring