CONNECT 4.7 Build Errors

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

CONNECT 4.7 Build Errors

srao
This post was updated on .
I'm building CONNECT4.7 from source and the build fails at this particular test. Is there a workaround?

==================================================
Running gov.hhs.fha.nhinc.patientdiscovery.aspect.Results :

Failed tests:
  PRPAIN201306UV02EventDescriptionBuilderTest.multipleIis:181 expected:<urn:oid:1.2.3[]> but was:<urn:oid:1.2.3[.4]>

Tests run: 234, Failures: 1, Errors: 0, Skipped: 1

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] CONNECT Solution ................................... SUCCESS [  0.826 s]
[INFO] CONNECT Third Party ................................ SUCCESS [  0.359 s]
[INFO] CONNECT Build Tools ................................ SUCCESS [  0.702 s]
[INFO] CONNECT Product .................................... SUCCESS [  0.515 s]
[INFO] Production ......................................... SUCCESS [  0.702 s]
[INFO] Common ............................................. SUCCESS [  0.172 s]
[INFO] Properties ......................................... SUCCESS [  0.717 s]
[INFO] CONNECT Core Library ............................... SUCCESS [01:43 min]
[INFO] Services ........................................... SUCCESS [  0.047 s]
[INFO] CONNECT Connection Manager Core .................... SUCCESS [  1.005 s]
[INFO] CONNECT Common Web ................................. SUCCESS [  4.806 s]
[INFO] CONNECT Adapter Authentication Core ................ SUCCESS [  1.098 s]
[INFO] CONNECT Audit Repository Core ...................... SUCCESS [  3.635 s]
[INFO] CONNECT Audit Repository EJB ....................... SUCCESS [  0.879 s]
[INFO] CONNECT Redaction Engine Core ...................... SUCCESS [  1.020 s]
[INFO] CONNECT Document Repository Core ................... SUCCESS [  1.790 s]
[INFO] CONNECT Patient Correlation Core ................... SUCCESS [  3.149 s]
[INFO] CONNECT Policy Engine Core ......................... SUCCESS [  9.875 s]
[INFO] CONNECT Document Registry Core ..................... SUCCESS [  3.399 s]
[INFO] CONNECT Shared Engine Core ......................... SUCCESS [  6.961 s]
[INFO] CONNECT Document Query Core ........................ SUCCESS [  7.667 s]
[INFO] CONNECT Patient Discovery Core ..................... FAILURE [ 10.088 s]
[INFO] CONNECT Document Submission Core ................... SKIPPED
[INFO] CONNECT CORE X12 Document Submission Core .......... SKIPPED
[INFO] CONNECT Document Retrieve Core ..................... SKIPPED
[INFO] CONNECT Admin Distribution Core .................... SKIPPED
[INFO] Adapters ........................................... SKIPPED
[INFO] General ............................................ SKIPPED
[INFO] CONNECT Adapter Web ................................ SKIPPED
[INFO] CONNECTAdapterPDPOpenSSO ........................... SKIPPED
[INFO] CONNECT Consumer Preferences Profile GUI ........... SKIPPED
[INFO] CONNECT Deferred Queue Manager GUI ................. SKIPPED
[INFO] CONNECT Administration GUI ......................... SKIPPED
[INFO] CONNECTDirectConfig ................................ SKIPPED
[INFO] CONNECT Adapter - AdminDistribution_a0 ............. SKIPPED
[INFO] CONNECT Adapter - DocumentQuery_a0 ................. SKIPPED
[INFO] CONNECT Adapter - DocumentRetrieve_a0 .............. SKIPPED
[INFO] CONNECT Adapter - DocumentSubmission_a0 ............ SKIPPED
[INFO] CONNECT Adapter - PatientDiscovery_a0 .............. SKIPPED
[INFO] CONNECT Adapter - CORE_X12DocumentSubmission_a0 .... SKIPPED
[INFO] Gateway ............................................ SKIPPED
[INFO] CONNECT Gateway - AdminDistribution_10 ............. SKIPPED
[INFO] CONNECT Gateway - AdminDistribution_20 ............. SKIPPED
[INFO] CONNECT Gateway - DocumentQuery_20 ................. SKIPPED
[INFO] CONNECT Gateway - DocumentQuery_30 ................. SKIPPED
[INFO] CONNECT Gateway - DocumentRetrieve_20 .............. SKIPPED
[INFO] CONNECT Gateway - DocumentRetrieve_30 .............. SKIPPED
[INFO] CONNECT Gateway - DocumentSubmission_11 ............ SKIPPED
[INFO] CONNECT Gateway - DocumentSubmission_20 ............ SKIPPED
[INFO] CONNECT Gateway - PatientDiscovery_10 .............. SKIPPED
[INFO] CONNECT Gateway Web Webapp ......................... SKIPPED
[INFO] CONNECT Gateway - CORE_X12DocumentSubmission_10 .... SKIPPED
[INFO] CONNECT Deployment ................................. SKIPPED
[INFO] CONNECT JBoss7 EAR ................................. SKIPPED
[INFO] DBScripts .......................................... SKIPPED
[INFO] SoapUI_Test ........................................ SKIPPED
[INFO] FileUtils .......................................... SKIPPED
[INFO] Maven 3 soapUI ValidationSuite ..................... SKIPPED
[INFO] Maven 3 soapUI RegressionSuite ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:43 min
[INFO] Finished at: 2016-09-28T14:53:51-04:00
[INFO] Final Memory: 126M/1297M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on project PatientDiscoveryCore: There are test
 failures.
[ERROR]
[ERROR] Please refer to C:\CONNECT47SourceCode\Product\Production\Services\PatientDiscoveryCore\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 :PatientDiscoveryCore
Tests run: 15, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
multipleIis(gov.hhs.fha.nhinc.patientdiscovery.aspect.PRPAIN201306UV02EventDescriptionBuilderTest)  Time elapsed: 0 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<urn:oid:1.2.3[]> but was:<urn:oid:1.2.3[.4]>
        at org.junit.Assert.assertEquals(Assert.java:123)
        at org.junit.Assert.assertEquals(Assert.java:145)
        at gov.hhs.fha.nhinc.patientdiscovery.aspect.PRPAIN201306UV02EventDescriptionBuilderTest.multipleIis(PRPAIN201306UV02EventDescriptionBuilderTe
st.java:181)
.
.
.
Results :

Failed tests:
  PRPAIN201306UV02EventDescriptionBuilderTest.multipleIis:181 expected:<urn:oid:1.2.3[]> but was:<urn:oid:1.2.3[.4]>

Tests run: 234, Failures: 1, Errors: 0, Skipped: 1

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] CONNECT Solution ................................... SUCCESS [  0.826 s]
[INFO] CONNECT Third Party ................................ SUCCESS [  0.359 s]
[INFO] CONNECT Build Tools ................................ SUCCESS [  0.702 s]
[INFO] CONNECT Product .................................... SUCCESS [  0.515 s]
[INFO] Production ......................................... SUCCESS [  0.702 s]
[INFO] Common ............................................. SUCCESS [  0.172 s]
[INFO] Properties ......................................... SUCCESS [  0.717 s]
[INFO] CONNECT Core Library ............................... SUCCESS [01:43 min]
[INFO] Services ........................................... SUCCESS [  0.047 s]
[INFO] CONNECT Connection Manager Core .................... SUCCESS [  1.005 s]
[INFO] CONNECT Common Web ................................. SUCCESS [  4.806 s]
[INFO] CONNECT Adapter Authentication Core ................ SUCCESS [  1.098 s]
[INFO] CONNECT Audit Repository Core ...................... SUCCESS [  3.635 s]
[INFO] CONNECT Audit Repository EJB ....................... SUCCESS [  0.879 s]
[INFO] CONNECT Redaction Engine Core ...................... SUCCESS [  1.020 s]
[INFO] CONNECT Document Repository Core ................... SUCCESS [  1.790 s]
[INFO] CONNECT Patient Correlation Core ................... SUCCESS [  3.149 s]
[INFO] CONNECT Policy Engine Core ......................... SUCCESS [  9.875 s]
[INFO] CONNECT Document Registry Core ..................... SUCCESS [  3.399 s]
[INFO] CONNECT Shared Engine Core ......................... SUCCESS [  6.961 s]
[INFO] CONNECT Document Query Core ........................ SUCCESS [  7.667 s]
[INFO] CONNECT Patient Discovery Core ..................... FAILURE [ 10.088 s]
[INFO] CONNECT Document Submission Core ................... SKIPPED
[INFO] CONNECT CORE X12 Document Submission Core .......... SKIPPED
[INFO] CONNECT Document Retrieve Core ..................... SKIPPED
[INFO] CONNECT Admin Distribution Core .................... SKIPPED
[INFO] Adapters ........................................... SKIPPED
[INFO] General ............................................ SKIPPED
[INFO] CONNECT Adapter Web ................................ SKIPPED
[INFO] CONNECTAdapterPDPOpenSSO ........................... SKIPPED
[INFO] CONNECT Consumer Preferences Profile GUI ........... SKIPPED
[INFO] CONNECT Deferred Queue Manager GUI ................. SKIPPED
[INFO] CONNECT Administration GUI ......................... SKIPPED
[INFO] CONNECTDirectConfig ................................ SKIPPED
[INFO] CONNECT Adapter - AdminDistribution_a0 ............. SKIPPED
[INFO] CONNECT Adapter - DocumentQuery_a0 ................. SKIPPED
[INFO] CONNECT Adapter - DocumentRetrieve_a0 .............. SKIPPED
[INFO] CONNECT Adapter - DocumentSubmission_a0 ............ SKIPPED
[INFO] CONNECT Adapter - PatientDiscovery_a0 .............. SKIPPED
[INFO] CONNECT Adapter - CORE_X12DocumentSubmission_a0 .... SKIPPED
[INFO] Gateway ............................................ SKIPPED
[INFO] CONNECT Gateway - AdminDistribution_10 ............. SKIPPED
[INFO] CONNECT Gateway - AdminDistribution_20 ............. SKIPPED
[INFO] CONNECT Gateway - DocumentQuery_20 ................. SKIPPED
[INFO] CONNECT Gateway - DocumentQuery_30 ................. SKIPPED
[INFO] CONNECT Gateway - DocumentRetrieve_20 .............. SKIPPED
[INFO] CONNECT Gateway - DocumentRetrieve_30 .............. SKIPPED
[INFO] CONNECT Gateway - DocumentSubmission_11 ............ SKIPPED
[INFO] CONNECT Gateway - DocumentSubmission_20 ............ SKIPPED
[INFO] CONNECT Gateway - PatientDiscovery_10 .............. SKIPPED
[INFO] CONNECT Gateway Web Webapp ......................... SKIPPED
[INFO] CONNECT Gateway - CORE_X12DocumentSubmission_10 .... SKIPPED
[INFO] CONNECT Deployment ................................. SKIPPED
[INFO] CONNECT JBoss7 EAR ................................. SKIPPED
[INFO] DBScripts .......................................... SKIPPED
[INFO] SoapUI_Test ........................................ SKIPPED
[INFO] FileUtils .......................................... SKIPPED
[INFO] Maven 3 soapUI ValidationSuite ..................... SKIPPED
[INFO] Maven 3 soapUI RegressionSuite ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:43 min
[INFO] Finished at: 2016-09-28T14:53:51-04:00
[INFO] Final Memory: 126M/1297M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on project PatientDiscoveryCore: There are test
 failures.
[ERROR]
[ERROR] Please refer to C:\CONNECT47\Product\Production\Services\PatientDiscoveryCore\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 :PatientDiscoveryCore
===================================================
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CONNECT 4.7 Build Errors

srao
This post was updated on .
And when I build by skipping the tests, it stops when it fails to find CONNECT test jars


==========================
[INFO] CONNECT Gateway - AdminDistribution_10 ............. SUCCESS [  6.577 s]
[INFO] CONNECT Gateway - AdminDistribution_20 ............. SUCCESS [  4.461 s]
[INFO] CONNECT Gateway - DocumentQuery_20 ................. SUCCESS [  5.053 s]
[INFO] CONNECT Gateway - DocumentQuery_30 ................. SUCCESS [  5.125 s]
[INFO] CONNECT Gateway - DocumentRetrieve_20 .............. FAILURE [  0.436 s]
[INFO] CONNECT Gateway - DocumentRetrieve_30 .............. SKIPPED
[INFO] CONNECT Gateway - DocumentSubmission_11 ............ SKIPPED
[INFO] CONNECT Gateway - DocumentSubmission_20 ............ SKIPPED
[INFO] CONNECT Gateway - PatientDiscovery_10 .............. SKIPPED
[INFO] CONNECT Gateway Web Webapp ......................... SKIPPED
[INFO] CONNECT Gateway - CORE_X12DocumentSubmission_10 .... SKIPPED
[INFO] CONNECT Deployment ................................. SKIPPED
[INFO] CONNECT JBoss7 EAR ................................. SKIPPED
[INFO] DBScripts .......................................... SKIPPED
[INFO] SoapUI_Test ........................................ SKIPPED
[INFO] FileUtils .......................................... SKIPPED
[INFO] Maven 3 soapUI ValidationSuite ..................... SKIPPED
[INFO] Maven 3 soapUI RegressionSuite ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:04 min
[INFO] Finished at: 2016-09-28T16:06:22-04:00
[INFO] Final Memory: 166M/1208M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project DocumentRetrieve_20: Could not resolve dependencies for project org.connectopensource:DocumentRetrieve_20:wa
r:4.8.0-SNAPSHOT: Could not find artifact org.connectopensource:DocumentRetrieveCore:jar:tests:4.8.0-SNAPSHOT in sonatype-snapshots (https://oss.sonat
ype.org/content/repositories/snapshots/) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project DocumentRetrieve_20: Could not resolve dependencies for proj
ect org.connectopensource:DocumentRetrieve_20:war:4.8.0-SNAPSHOT: Could not find artifact org.connectopensource:DocumentRetrieveCore:jar:tests:4.8.0-S
NAPSHOT in sonatype-snapshots (https://oss.sonatype.org/content/repositories/snapshots/)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
        at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.connectopensource:DocumentRetrieve_2
0:war:4.8.0-SNAPSHOT: Could not find artifact org.connectopensource:DocumentRetrieveCore:jar:tests:4.8.0-SNAPSHOT in sonatype-snapshots (https://oss.s
onatype.org/content/repositories/snapshots/)
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:211)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
        ... 23 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.connectopensource:DocumentRetrieveCore:jar:tests:4
.8.0-SNAPSHOT in sonatype-snapshots (https://oss.sonatype.org/content/repositories/snapshots/)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:205)
        ... 24 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact org.connectopensource:DocumentRetrieveCore:jar:tests:4.8
.0-SNAPSHOT in sonatype-snapshots (https://oss.sonatype.org/content/repositories/snapshots/)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
        ... 25 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.connectopensource:DocumentRetrieveCore:jar:tests:4.8.0-S
NAPSHOT in sonatype-snapshots (https://oss.sonatype.org/content/repositories/snapshots/)
        at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:39)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
        at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
        ... 27 more
[ERROR]
[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 :DocumentRetrieve_20
==========================
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CONNECT 4.7 Build Errors

srao
Okay, as a workaround, ignored muiltipleIis() in PRPAIN201306UV02EventDescriptionBuilderTest.java and built again
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CONNECT 4.7 Build Errors

christophermay07
Hi,

This is a known issue when building with Java 8.  Building with Java 7 is recommended, but as you mentioned, ignoring that test allows the build to finish.

Best regards,

Chris May
CONNECT Community Member
Loading...