package pomless;

import io.takari.maven.testing.TestResources;
import io.takari.maven.testing.executor.MavenRuntime;
import io.takari.maven.testing.executor.MavenRuntime.MavenRuntimeBuilder;
import io.takari.maven.testing.executor.MavenVersions;
import io.takari.maven.testing.executor.junit.MavenJUnitTestRunner;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

import java.io.File;

@RunWith(MavenJUnitTestRunner.class)
@MavenVersions({"3.3.3"})
public class IntegrationTest {

    @Rule
    public final TestResources resources = new TestResources();

    public final MavenRuntime maven;

    public IntegrationTest(MavenRuntimeBuilder builder) throws Exception {
        this.maven = builder.build();
    }

    @Test
    public void testPomlessGoalExecution() throws Exception {
        File basedir = resources.getBasedir();
        maven.forProject(basedir).withCliOption("-X").execute("pomless").assertErrorFreeLog();
        TestResources.assertFilesPresent(basedir, "log.txt");
    }

}
@@ -920,16 +920,55 @@
 xecute(%22
+io.codearte.maven:maven-pomless-plugin:
 pomless%22
@@ -1061,8 +1061,9 @@
     %7D%0A%0A%7D
+%0A

bad goal