dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #11021
Re: Error when running 'mvn install'
I do not think its a network problem,rather the maven server has been taken
out of service.
nslookup maven.dhis2.org
Server: 127.0.1.1
Address: 127.0.1.1#53
** server can't find maven.dhis2.org: NXDOMAIN
Unless you really need to build it (which looks to be tricky) you can
download a copy of 2.12 from here
https://www.dhis2.org/download/releases/2.12/dhis.war
Regards,
Jason
On Wed, Aug 3, 2016 at 7:33 AM, Collins McAdoyo <collins.adoyo@xxxxxxxxx>
wrote:
>
> Thanks Michael, let me check my network settings.
>
>
> On Wed, Aug 3, 2016 at 4:29 AM, Michael Mwebaze <michael.mwebaze@xxxxxxxxx
> > wrote:
>
>> Hi Collins,
>>
>> I notice you are trying to build version 2.12. I suspect the issue might
>> be some of the repositories with the needed dependencies aren't available.
>> In particular from the error log I can see maven is complaining that '
>> http://maven.dhis2.org/' is a unknown host. Check you are not behind a
>> firewall which is prevent maven from accessing them.
>>
>> Regards,
>>
>> Michael
>>
>>
>>
>> On 2 August 2016 at 15:18, Collins McAdoyo <collins.adoyo@xxxxxxxxx>
>> wrote:
>>
>>> Dear Knuts & Team,
>>>
>>> I am trying to run maven as :~/2.12/dhis-2$ mvn install' i get this
>>> error. Any advice on how to fix this?
>>>
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 59.967s
>>> [INFO] Finished at: Tue Aug 02 21:59:09 EAT 2016
>>> [INFO] Final Memory: 13M/157M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] Failed to execute goal on project dhis-web-commons: Could not
>>> resolve dependencies for project org.hisp.dhis:dhis-web-commons:jar:2.12:
>>> Failed to collect dependencies for [org.hisp.dhis:dhis-api:jar:2.12
>>> (compile), org.hisp.dhis:dhis-dxf2:jar:2.12 (compile),
>>> org.hisp.dhis:dhis-service-i18n:jar:2.12 (compile),
>>> org.hisp.dhis:dhis-service-core:jar:2.12 (compile),
>>> org.hisp.dhis:dhis-service-administration:jar:2.12 (compile),
>>> org.hisp.dhis:dhis-service-reporting:jar:2.12 (compile),
>>> org.hisp.dhis:dhis-support-test:jar:2.12 (test),
>>> org.hisp.dhis:dhis-support-system:jar:2.12 (compile),
>>> org.apache.struts:struts2-core:jar:2.3.16 (compile),
>>> org.apache.struts:struts2-spring-plugin:jar:2.3.16 (compile),
>>> org.apache.velocity:velocity:jar:1.7 (compile),
>>> org.apache.velocity:velocity-tools:jar:2.0 (compile),
>>> javax.servlet:servlet-api:jar:2.4 (provided),
>>> org.springframework.mobile:spring-mobile-device:jar:1.0.0.RELEASE
>>> (compile),
>>> org.springframework.security:spring-security-config:jar:3.1.3.RELEASE
>>> (compile), org.springframework:spring-context-support:jar:3.2.2.RELEASE
>>> (compile), commons-logging:commons-logging:jar:1.1.1 (compile),
>>> commons-fileupload:commons-fileupload:jar:1.2.2 (compile),
>>> com.thoughtworks.xstream:xstream:jar:1.4.3 (compile),
>>> xpp3:xpp3:jar:1.1.3.4.O (runtime),
>>> net.sf.jasperreports:jasperreports:jar:4.7.1 (compile),
>>> net.sf.jasperreports:jasperreports-fonts:jar:4.0.0 (compile),
>>> jfree:jfreechart:jar:1.0.13 (compile), jfree:jcommon:jar:1.0.16 (compile)]:
>>> Failed to read artifact descriptor for org.hisp.dhis:dhis-api:jar:2.12:
>>> Could not transfer artifact org.hisp.dhis:dhis-api:pom:2.12 from/to
>>> amplecode_maven2_repo (http://maven.dhis2.org/amplecode-local):
>>> maven.dhis2.org: unknown error: Unknown host maven.dhis2.org: unknown
>>> error -> [Help 1]
>>> [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>>> -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible solutions,
>>> please read the following articles:
>>> [ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>>> [ERROR]
>>> [ERROR] After correcting the problems, you can resume the build with the
>>> command
>>> [ERROR] mvn <goals> -rf :dhis-web-commons
>>> cadoyo@pathmis:~/2.12/dhis-2/dhis-web$ cd ..
>>> cadoyo@pathmis:~/2.12/dhis-2$ mvn install
>>> [INFO] Scanning for projects...
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Reactor Build Order:
>>> [INFO]
>>> [INFO] DHIS 2
>>> [INFO] DHIS API
>>> [INFO] DHIS Support Parent Project
>>> [INFO] DHIS Test Support
>>> [INFO] DHIS External Support
>>> [INFO] DHIS Hibernate Support
>>> [INFO] DHIS XML framework services
>>> [INFO] DHIS System Support
>>> [INFO] DHIS JDBC Service
>>> [INFO] DHIS Services Parent Project
>>> [INFO] DHIS Core API Implementations
>>> [INFO] DHIS Administration Service
>>> [INFO] DHIS SMS Service
>>> [INFO] DHIS Patient API Implementations
>>> [INFO] DHIS I18n Static
>>> [INFO] DHIS Data Exchange
>>> [INFO] DHIS Integration Service
>>> [INFO] DHIS DataMart Service - Default
>>> [INFO] DHIS Analytics
>>> [INFO] DHIS Reporting Service
>>> [INFO] DHIS Import-Export Service
>>> [INFO] DHIS Map Generation Service
>>> [INFO] DHIS Aggregation Service - Default
>>> [INFO] DHIS Mobile Service
>>> [INFO] DHIS JDBC / External Test Project
>>> [INFO]
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building DHIS 2 2.12
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO]
>>> [INFO] --- maven-antrun-plugin:1.7:run (default) @ dhis ---
>>> [INFO] Executing tasks
>>>
>>> main:
>>> [INFO] Executed tasks
>>> [INFO]
>>> [INFO] --- maven-install-plugin:2.3:install (default-install) @ dhis ---
>>> [INFO] Installing /home/cadoyo/2.12/dhis-2/pom.xml to
>>> /home/cadoyo/.m2/repository/org/hisp/dhis/dhis/2.12/dhis-2.12.pom
>>> [INFO]
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building DHIS API 2.12
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> Downloading:
>>> http://maven.dhis2.org/amplecode-local/org/smslib/smslib/3.5.3/smslib-3.5.3.pom
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] DHIS 2 ............................................ SUCCESS
>>> [1.241s]
>>> [INFO] DHIS API .......................................... FAILURE
>>> [0.720s]
>>> [INFO] DHIS Support Parent Project ....................... SKIPPED
>>> [INFO] DHIS Test Support ................................. SKIPPED
>>> [INFO] DHIS External Support ............................. SKIPPED
>>> [INFO] DHIS Hibernate Support ............................ SKIPPED
>>> [INFO] DHIS XML framework services ....................... SKIPPED
>>> [INFO] DHIS System Support ............................... SKIPPED
>>> [INFO] DHIS JDBC Service ................................. SKIPPED
>>> [INFO] DHIS Services Parent Project ...................... SKIPPED
>>> [INFO] DHIS Core API Implementations ..................... SKIPPED
>>> [INFO] DHIS Administration Service ....................... SKIPPED
>>> [INFO] DHIS SMS Service .................................. SKIPPED
>>> [INFO] DHIS Patient API Implementations .................. SKIPPED
>>> [INFO] DHIS I18n Static .................................. SKIPPED
>>> [INFO] DHIS Data Exchange ................................ SKIPPED
>>> [INFO] DHIS Integration Service .......................... SKIPPED
>>> [INFO] DHIS DataMart Service - Default ................... SKIPPED
>>> [INFO] DHIS Analytics .................................... SKIPPED
>>> [INFO] DHIS Reporting Service ............................ SKIPPED
>>> [INFO] DHIS Import-Export Service ........................ SKIPPED
>>> [INFO] DHIS Map Generation Service ....................... SKIPPED
>>> [INFO] DHIS Aggregation Service - Default ................ SKIPPED
>>> [INFO] DHIS Mobile Service ............................... SKIPPED
>>> [INFO] DHIS JDBC / External Test Project ................. SKIPPED
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 2.371s
>>> [INFO] Finished at: Tue Aug 02 22:06:38 EAT 2016
>>> [INFO] Final Memory: 13M/196M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] Failed to execute goal on project dhis-api: Could not resolve
>>> dependencies for project org.hisp.dhis:dhis-api:jar:2.12: Failed to collect
>>> dependencies for [junit:junit:jar:4.11 (compile),
>>> commons-lang:commons-lang:jar:2.6 (compile), commons-io:commons-io:jar:2.4
>>> (compile), commons-collections:commons-collections:jar:3.2.1 (compile),
>>> jfree:jfreechart:jar:1.0.13 (compile),
>>> net.sf.jasperreports:jasperreports:jar:4.7.1 (compile),
>>> net.sf.jasperreports:jasperreports-fonts:jar:4.0.0 (compile),
>>> com.fasterxml.jackson.core:jackson-core:jar:2.0.6 (compile),
>>> com.fasterxml.jackson.core:jackson-annotations:jar:2.0.6 (compile),
>>> com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.0.6
>>> (compile), org.smslib:smslib:jar:3.5.3 (compile),
>>> org.springframework:spring-jdbc:jar:3.2.2.RELEASE (compile)]: Failed to
>>> read artifact descriptor for org.smslib:smslib:jar:3.5.3: Could not
>>> transfer artifact org.smslib:smslib:pom:3.5.3 from/to amplecode_maven2_repo
>>> (http://maven.dhis2.org/amplecode-local): maven.dhis2.org: unknown
>>> error: Unknown host maven.dhis2.org: unknown error -> [Help 1]
>>> [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>>> -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible solutions,
>>> please read the following articles:
>>> [ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>>> [ERROR]
>>> [ERROR] After correcting the problems, you can resume the build with the
>>> command
>>> [ERROR] mvn <goals> -rf :dhis-api
>>>
>>> collins
>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help : https://help.launchpad.net/ListHelp
>
>
--
Jason P. Pickering
email: jason.p.pickering@xxxxxxxxx
tel:+46764147049
References