What would you say for something like this:

```
/**
     * Creates tbe test deployment.
     *
     * @return the test deployment
     */
    public static Archive createDeployment() {

        WebArchive archive = ShrinkWrap.create(ZipImporter.class, "genie-web.war")
                .importFrom(resolveTestWar("../genie-web/"))
                .as(WebArchive.class);

        // overwrites the web.xml file
        archive.setWebXML("web.xml");
        // adds the archaius configuration
        archive.addAsResource("config.properties");

        return archive;
    }

    /**
     * Resolves the path to the genie-web war, that need to be build prior executing this test.
     *
     * @param rootProjectPath the root project path of the genie-web module
     *
     * @return the path pointing to the build war
     */
    private static File resolveTestWar(String rootProjectPath) {

        File buildDir = new File(rootProjectPath, "/build/libs/");
        File[] war = buildDir.listFiles(new FileFilter() {
            @Override
            public boolean accept(File pathname) {
                return pathname.isFile()
                        && pathname.getName().endsWith(".war");
            }
        });

        return war[0];
    }
```

It simply tries to "find" any war file, assuming that there won't be any other except for the genie-web.war, such solution will immune to the build version.