logicahealth/InfoButtons

BUILDGUIDE: Windows

Opened this issue · 8 comments

Hi, i have followed BUILDGUIDE at https://github.com/VHAINNOVATIONS/InfoButtons/blob/2.0-SNAPSHOT/oib-request/BUILDGUIDE and mvn clean install fails at tests

-------------------------------------------------------                                                                                                                                         
 T E S T S                                                                                                                                                                                      
-------------------------------------------------------                                                                                                                                         
Running org.openinfobutton.service.request.OibLiveServiceTest                                                                                                                                   
Apr 04, 2017 4:54:20 PM org.springframework.test.context.support.AbstractContextLoader generateDefaultLocations                                                                                 
INFO: Could not detect default resource locations for test class [org.openinfobutton.service.fixture.OibRequestTestingFixture]: class path resource [org/openinfobutton/service/fixture/OibReque
stTestingFixture-context.xml] does not exist                                                                                                                                                    
Apr 04, 2017 4:54:20 PM org.springframework.test.context.support.AbstractDelegatingSmartContextLoader processContextConfiguration                                                               
INFO: AnnotationConfigWebContextLoader detected default configuration classes for context configuration [ContextConfigurationAttributes@4b6995df declaringClass = 'org.openinfobutton.service.fi
xture.OibRequestTestingFixture', classes = '{class org.openinfobutton.service.fixture.OibRequestTestingFixture$testContext}', locations = '{}', inheritLocations = true, initializers = '{}', in
heritInitializers = true, name = [null], contextLoaderClass = 'org.springframework.test.context.ContextLoader'].                                                                                
Apr 04, 2017 4:54:20 PM org.springframework.test.context.TestContextManager retrieveTestExecutionListeners                                                                                      
INFO: Could not instantiate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener]. Specify custom listener classes or make the default listene
r classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]                                                      
Apr 04, 2017 4:54:20 PM org.springframework.web.context.support.GenericWebApplicationContext prepareRefresh                                                                                     
INFO: Refreshing org.springframework.web.context.support.GenericWebApplicationContext@42d3bd8b: startup date [Tue Apr 04 16:54:20 PKT 2017]; root of context hierarchy                          
Apr 04, 2017 4:54:20 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons                                                                           
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@10bbd20a: defining beans [org.springframework.context.annotation.internalConfiguratio
nAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.
context.annotation.internalCommonAnnotationProcessor,oibRequestTestingFixture.testContext,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,propertySo
urcesPlaceholderConfigurer]; root of factory hierarchy                                                                                                                                          
Apr 04, 2017 4:54:20 PM org.springframework.web.client.RestTemplate handleResponseError                                                                                                         
WARNING: GET request for "http://localhost:8080/infobutton-service/infoRequest" resulted in 404 (null); invoking error handler                                                                  
Apr 04, 2017 4:54:20 PM org.springframework.web.client.RestTemplate handleResponseError                                                                                                         
WARNING: GET request for "http://localhost:8080/infobutton-service/infoRequest?representedOrganization.id.root=1.3.6.1.4.1.3768&xsltTransform=Infobutton_UI_VA&taskContext.c.c=MLREV&mainSearchC
riteria.v.c=250.00&mainSearchCriteria.v.cs=2.16.840.1.113883.6.103&mainSearchCriteria.v.dn=Diabetes%2520Mellitus&patientPerson.administrativeGenderCode.c=F&patientPerson.administrativeGenderCo
de.cs=2.16.840.1.113883.5.1&ageGroup.v.c=D000328&ageGroup.v.cs=2.16.840.1.113883.6.177&informationRecipient=PAT&informationRecipient.languageCode.c=en&performer=PROV&performer.languageCode.c=e
n" resulted in 404 (null); invoking error handler                                                                                                                                               
Apr 04, 2017 4:54:20 PM org.springframework.web.client.RestTemplate handleResponseError                                                                                                         
WARNING: GET request for "http://localhost:8080/infobutton-service/infoRequest?representedOrganization.id.root=1.3.6.1.4.1.3768&xsltTransform=Infobutton_UI_VA&taskContext.c.c=MLREV&mainSearchC
riteria.v.dn=diabetes%2Bmellitus&patientPerson.administrativeGenderCode.c=F&patientPerson.administrativeGenderCode.cs=2.16.840.1.113883.5.1&ageGroup.v.c=D000328&ageGroup.v.cs=2.16.840.1.113883
.6.177&informationRecipient=PAT&informationRecipient.languageCode.c=en&performer=PROV&performer.languageCode.c=en" resulted in 404 (null); invoking error handler                               
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.832 sec <<< FAILURE!                                                                                                          
                                                                                                                                                                                                
Results :                                                                                                                                                                                       
                                                                                                                                                                                                
Tests in error:                                                                                                                                                                                 
  testServiceAlive(org.openinfobutton.service.request.OibLiveServiceTest): 404 null                                                                                                             
  testProfileRequest(org.openinfobutton.service.request.OibLiveServiceTest): 404 null                                                                                                           
  testTerminologyRequest(org.openinfobutton.service.request.OibLiveServiceTest): 404 null                                                                                                       
                                                                                                                                                                                                
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0                                                                                                                                                
                                                                                                                                                                                                
[INFO] ------------------------------------------------------------------------                                                                                                                 
[INFO] Reactor Summary:                                                                                                                                                                         
[INFO]                                                                                                                                                                                          
[INFO] oib-request ........................................ SUCCESS [  0.567 s]                                                                                                                 
[INFO] oib-profile-schema ................................. SUCCESS [  6.291 s]                                                                                                                 
[INFO] oib-service-test ................................... FAILURE [  2.209 s]                                                                                                                 
[INFO] oib-request-schema ................................. SKIPPED                                                                                                                             
[INFO] OIB Core Utility Module ............................ SKIPPED                                                                                                                             
[INFO] oib-request-db ..................................... SKIPPED                                                                                                                             
[INFO] oib-request-inference-rxnorm ....................... SKIPPED                                                                                                                             
[INFO] oib-ext-resources .................................. SKIPPED                                                                                                                             
[INFO] oib-request-service ................................ SKIPPED                                                                                                                             
[INFO] ------------------------------------------------------------------------                                                                                                                 
[INFO] BUILD FAILURE                                                                                                                                                                            
[INFO] ------------------------------------------------------------------------                                                                                                                 
[INFO] Total time: 9.335 s                                                                                                                                                                      
[INFO] Finished at: 2017-04-04T16:54:20+05:00                                                                                                                                                   
[INFO] Final Memory: 23M/287M                                                                                                                                                                   
[INFO] ------------------------------------------------------------------------                                                                                                                 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project oib-service-test: There are test failures.                                    
[ERROR]                                                                                                                                                                                         
[ERROR] Please refer to E:\github\InfoButtons\oib-request\oib-service-test\target\surefire-reports for the individual test results.                                                             
[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/MojoFailureException                                                                                                          
[ERROR]                                                                                                                                                                                         
[ERROR] After correcting the problems, you can resume the build with the command                                                                                                                
[ERROR]   mvn <goals> -rf :oib-service-test                                                                                                                                                     

And when running mvn install -Dmaven.test.skip=true it fails with

[INFO] ------------------------------------------------------------------------
[INFO] Building oib-request-service 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.openinfobutton:rest-api:jar:0.1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.openinfobutton:rest-impl:jar:0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] oib-request ........................................ SUCCESS [  0.772 s]
[INFO] oib-profile-schema ................................. SUCCESS [  2.285 s]
[INFO] oib-service-test ................................... SUCCESS [  0.335 s]
[INFO] oib-request-schema ................................. SUCCESS [  0.738 s]
[INFO] OIB Core Utility Module ............................ SUCCESS [  0.200 s]
[INFO] oib-request-db ..................................... SUCCESS [  0.328 s]
[INFO] oib-request-inference-rxnorm ....................... SUCCESS [  0.248 s]
[INFO] oib-ext-resources .................................. SUCCESS [  0.513 s]
[INFO] oib-request-service ................................ FAILURE [  0.171 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.823 s
[INFO] Finished at: 2017-04-04T16:55:31+05:00
[INFO] Final Memory: 22M/390M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project oib-request-service: Could not resolve dependencies for project org.openinfobutton:oib-request-service:war:2.0-SNAPSHOT: The following artifacts could not be resolved: org.openinfobutton:rest-api:jar:0.1-SNAPSHOT, org.openinfobutton:rest-impl:jar:0.1-SNAPSHOT: Failure to find org.openinfobutton:rest-api:jar:0.1-SNAPSHOT in https://nexus.chpc.utah.edu/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of further has elapsed or updates are forced -> [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 :oib-request-service

Any help would be appreciated.

Thanks

Hi,

Sorry about that, I need to update the guide to include instructions to build the rest-terminology-services project first. This module,

https://github.com/VHAINNOVATIONS/InfoButtons/tree/development/rest-terminology-services

It should have been pulled down with the 2.0-SNAPSHOT branch.

@aniskand No Problem, will look forward to version with the fixes.

Thanks

Is it an important issue or will it be fixed soon?
Thanks for this amazing tool.

Hi, will there be any fix for this a bit early or it will take time?

Thanks

There aren't any fixes that are needed related to this issue. You just need to build the rest-terminology-services project first, before building oib-request. We will update the documentation to indicate this requirement.

@gdelfiol Thanks for the anwer. I have built and deployed the rest-terminology-services on my local maven repository. The problem is I don't kwon how to reference or link it when i'm building de oib-request module, in that step is when I get the problem that @wahmedswl describes.

Hi, is there any solution to this issue? It would be great if some steps to local build are available. Thanks