We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

Cant create .war file

Hi all

I already clone from [email protected]:OpenClinica/OpenClinica.git
and need to create .war file from web app

Firstly i got same error in this page

On these page he suggest me to doing two step
1. Compile the /core directory by using 'mvn clean compile install';
2. Then compile the /web directory by using 'mvn clean compile war:war'.

In first step, i do something like this
mvn clean compile install -Dmaven.test.skip=true -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
And runinng perfectly

Then in second step, on /web directory i run same command 
mvn clean compile war:war -Dmaven.test.skip=true -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
And got some error

what must i do with this error ?
Tagged:

Answers

  • saputrasaputra Posts: 4
    Caused by: org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for [org.akaza.openclinica:OpenClinica-core:jar:MAINLINE-SNAPSHOT (compile), net.sf.saxon:saxon:jar:8.7 (compile), n......... org.apache.ws.commons.schema:XmlSchema:jar:1.4.7 (compile)]
    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:258)
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:308)
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)
    ... 23 more
    Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.akaza.openclinica:OpenClinica-core:jar:MAINLINE-SNAPSHOT
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:331)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)
    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:412)
    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:240)
    ... 25 more
  • saputrasaputra Posts: 4
    Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Failure to find org.akaza.openclinica:OpenClinica:pom:MAINLINE-SNAPSHOT in https://dev.openclinica.com/artifactory/libs-snapshot was cached in the local repository, resolution will not be reattempted until the update interval of snapshots has elapsed or updates are forced
    at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:126)
    at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:813)
    at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664)
    at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310)
    at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:322)
    ... 28 more
    Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find org.akaza.openclinica:OpenClinica:pom:MAINLINE-SNAPSHOT in https://dev.openclinica.com/artifactory/libs-snapshot was cached in the local repository, resolution will not be reattempted until the update interval of snapshots has elapsed or updates are forced
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
    at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:122)
    ... 33 more
    Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.akaza.openclinica:OpenClinica:pom:MAINLINE-SNAPSHOT in https://dev.openclinica.com/artifactory/libs-snapshot was cached in the local repository, resolution will not be reattempted until the update interval of snapshots has elapsed or updates are forced
    at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
    at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
    ... 36 more
  • haenselhaensel Posts: 602 ✭✭✭
    Hi saputra

    Did you follow the "Setting up Your Development Environment" instructions from the Reference Guide?

    Regards,
    Christian
  • saputrasaputra Posts: 4
    via Email
    Hi haensel

    Yes i already did following this instruction
    https://github.com/OpenClinica/OpenClinica/wiki/Install-OpenClinica-3.4-on-Linux
    And did not work for me, i am not sure what happen before

    Then after uninstall the linux os, it can run prefectly :)
    thanks for answering

    Regards,
    Saputra


    2015-01-28 20:47 GMT+07:00 haensel :
  • haenselhaensel Posts: 602 ✭✭✭
    edited January 2015
    Hi Saputra

    Possibly the certs in your Java keystore where outdated. Since you installed a new OS with the latest java version the certs in your new OS are up-to-date.

    The thread "How to add OpenClinica certificate to Java keystore" handles a similar problem.

    Regards,
    Christian
This discussion has been closed.