Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-486

Can't load project-stages.yml on classpath with Arq

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • core_1.0.0.CR3
    • 2016.8
    • core
    • None
    • Hide
      git clone https://github.com/emag/wildfly-swarm-project-stages-demo.git \
        && cd wildfly-swarm-project-stages-demo \
        && ./mvnw clean verify
      
      Show
      git clone https: //github.com/emag/wildfly-swarm-project-stages-demo.git \ && cd wildfly-swarm-project-stages-demo \ && ./mvnw clean verify

    Description

      problem

      project-stages.yml on classpath(src/main/resources) is not loaded with Arquillian tests. I attached the error log and the reproducer in 'Steps to Reproduce' section.

      Though -swarm try to load it, apparently can't see it when Arq tests.

      https://github.com/wildfly-swarm/wildfly-swarm-core/blob/1.0.0.CR3/container/api/src/main/java/org/wildfly/swarm/cli/CommandLine.java#L109

      workaround

      To load the yml explicitly like below.

      container.withStageConfig(Paths.get("/tmp", "external-project-stages.yml").toUri().toURL())
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-hbraun Heiko Braun
              emag_jira Yoshimasa Tanabe (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: