build error in trying to build the dhisreport module

1 view
Skip to first unread message

awanth sen

unread,
Aug 20, 2013, 1:05:41 PM8/20/13
to d...@openmrs.org
Im trying to build the dhis report module to generate the omod to integrate it with my openmrs and im getting the fllowing eror when i try to build it. can someone please suggest me a way to solve it?
thanks..

error on eclipse:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] DHIS2 Reporting Module ............................ SUCCESS [7.410s]
[INFO] DHIS2 Reporting Module API ........................ FAILURE [1:16.167s]
[INFO] DHIS2 Reporting Module OMOD ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:40.727s
[INFO] Finished at: Tue Aug 20 22:34:32 IST 2013
[INFO] Final Memory: 7M/50M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project dhisreport-api: Could not resolve dependencies for project org.openmrs.module:dhisreport-api:jar:1.1-SNAPSHOT: Failed to collect dependencies for [org.openmrs.api:openmrs-api:jar:1.8.0 (provided), org.openmrs.api:openmrs-api:jar:tests:1.8.0 (test), org.openmrs.test:openmrs-test:pom:1.8.0 (test), org.apache.httpcomponents:httpcore:jar:4.2 (compile), org.apache.httpcomponents:httpclient:jar:4.2 (compile), joda-time:joda-time:jar:2.1 (compile)]: Failed to read artifact descriptor for commons-collections:commons-collections:jar:3.2.1: Could not transfer artifact commons-collections:commons-collections:pom:3.2.1 from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): Failed to create a selector. to http://mavenrepo.openmrs.org/nexus/content/repositories/public/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.pom: Unable to establish loopback connection: Connection refused: connect -> [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] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :dhisreport-api

Wyclif Luyima

unread,
Aug 20, 2013, 4:59:36 PM8/20/13
to Developers
Hi,

It is because dhisreport jars don't exit in the openmrs maven repo at http://mavenrepo.openmrs.org/nexus/index.html, you won't be able to build your module unless they get installed. If the dhisreport module is mavenized, what you could do is to clone it, build it and maven will install the artifacts to your local repo and then set the version in your module's pom to match the current build version.

Wyclif


--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org
Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/



--
Wyclif Luyima
Regenstrief Institute Inc.

Confidentiality Notice: The contents of this message and any files transmitted with it may contain confidential and/or privileged information and are intended solely for the use of the named addressee(s). Additionally, the information contained herein may have been disclosed to you from medical records with confidentiality protected by federal and state laws. Federal regulations and State laws prohibit you from making further disclosure of such information without the specific written consent of the person to whom the information pertains or as otherwise permitted by such regulations. A general authorization for the release of medical or other information is not sufficient for this purpose.

If you have received this message in error, please notify the sender by return e-mail and delete the original message. Any retention, disclosure, copying, distribution or use of this information by anyone other than the intended recipient is strictly prohibited.

awanth sen

unread,
Aug 22, 2013, 6:07:14 AM8/22/13
to d...@openmrs.org
i have cloned it using git and imported it as a maven project, but it fails to build maven clean command runs succesfullly, the install command gives the above mentioned error.


To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@openmrs.org.



--
------------------------------------------------------------------------------------------->>
AWANTHIKA SENARATH
Undergraduate
Department of Electronics and Telecommunication Engineering
University of Moratuwa

Wyclif Luyima

unread,
Aug 22, 2013, 9:40:12 AM8/22/13
to Developers
Is your module id dhisreports or dhis2reports? I see in the success/failure logs that the module is named dhis2reports but the ids dependencies are dhisreport. Or your module depends is named dhis2 and depends on dhis, I wonder if you see get the confusion in getting into by the logs you added., You might want to clean up the pom files to be correct and consistent


Wyclif

awanth sen

unread,
Aug 22, 2013, 10:39:03 AM8/22/13
to d...@openmrs.org
i dont think the issue is in the dhis module i get teh same build error for openmrs core as well. it should be something with the say im building it or my settings int he eclipse. is cloning and importing as a maven project is all i have to do before giving the command clean instal? im building in windows does it have any effect?

Wyclif Luyima

unread,
Aug 22, 2013, 1:34:42 PM8/22/13
to Developers
Have you tried to build them from the command line?

Wyclif

Harsha Kumara

unread,
Aug 22, 2013, 1:45:26 PM8/22/13
to d...@openmrs.org
Link in [0] will be helpful for you to setup maven in windows to run in commandline.
Harsha Kumara
Undergraduate
Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka.

awanth sen

unread,
Aug 22, 2013, 9:30:34 PM8/22/13
to d...@openmrs.org
thanks,no i didnt run it from the command line, i build it through eclipse.

Wyclif Luyima

unread,
Aug 22, 2013, 10:12:40 PM8/22/13
to Developers
I would say try command line

Wyclif

Friedman, Roger (CDC/CGH/DGHA) (CTR)

unread,
Aug 26, 2013, 8:36:02 AM8/26/13
to d...@openmrs.org

I am not able to reproduce this error.  I get some errors relating to references in the poms to the maven java formatter, but they do not prevent the build. 

 

@Wyclif, the artifactId is dhisreport but the name is DHIS2 Reporting Module

Reply all
Reply to author
Forward
0 new messages