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

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: core_1.0.0.CR3
    • Fix Version/s: 2016.8
    • Component/s: core
    • Labels:
      None
    • Steps to Reproduce:
      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())
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  heiko.braun Heiko Braun
                  Reporter:
                  emag Yoshimasa Tanabe
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: