fix maven plugin starting distribution as jetty home has different name, configure invoker plugin to be faster when running locally
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
parent
63736990c5
commit
a2cd9b3a50
|
@ -1,2 +1,2 @@
|
|||
invoker.goals = verify -fae
|
||||
invoker.goals = verify -fae -e
|
||||
#invoker.debug = true
|
||||
|
|
|
@ -548,6 +548,7 @@ public abstract class AbstractWebAppMojo extends AbstractMojo
|
|||
if (jettyHome == null)
|
||||
jetty.setJettyHomeZip(mavenProjectHelper.resolveArtifact(JETTY_HOME_GROUPID, JETTY_HOME_ARTIFACTID, plugin.getVersion(), "zip"));
|
||||
|
||||
jetty.version = plugin.getVersion();
|
||||
jetty.setJettyHome(jettyHome);
|
||||
jetty.setJettyBase(jettyBase);
|
||||
jetty.setBaseDir(target);
|
||||
|
|
|
@ -30,6 +30,7 @@ import java.nio.file.FileVisitOption;
|
|||
import java.nio.file.FileVisitResult;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.nio.file.SimpleFileVisitor;
|
||||
import java.nio.file.attribute.BasicFileAttributes;
|
||||
import java.util.ArrayList;
|
||||
|
@ -84,6 +85,7 @@ public class JettyHomeForker extends AbstractForker
|
|||
protected Path libPath;
|
||||
protected Path webappPath;
|
||||
protected Path mavenLibPath;
|
||||
protected String version;
|
||||
|
||||
public List<File> getLibExtJarFiles()
|
||||
{
|
||||
|
@ -400,10 +402,7 @@ public class JettyHomeForker extends AbstractForker
|
|||
JarResource res = (JarResource)JarResource.newJarResource(Resource.newResource(jettyHomeZip));
|
||||
res.copyTo(baseDir);
|
||||
//zip will unpack to target/jetty-home-<VERSION>
|
||||
String name = jettyHome.getName();
|
||||
int i = name.lastIndexOf('.');
|
||||
name = (i > 0 ? name.substring(0, i) : "home");
|
||||
jettyHome = new File(baseDir, name);
|
||||
jettyHome = new File(baseDir,"jetty-home-" + version);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -65,6 +65,7 @@
|
|||
<jackson-databind.version>2.9.9</jackson-databind.version>
|
||||
<localRepoPath>${project.build.directory}/local-repo</localRepoPath>
|
||||
<settingsPath>src/it/settings.xml</settingsPath>
|
||||
<invoker.mergeUserSettings>false</invoker.mergeUserSettings>
|
||||
<surefire.rerunFailingTestsCount>0</surefire.rerunFailingTestsCount>
|
||||
<testcontainers.version>1.14.3</testcontainers.version>
|
||||
</properties>
|
||||
|
@ -512,7 +513,7 @@
|
|||
<artifactId>maven-invoker-plugin</artifactId>
|
||||
<version>3.2.1</version>
|
||||
<configuration>
|
||||
<mergeUserSettings>true</mergeUserSettings>
|
||||
<mergeUserSettings>${invoker.mergeUserSettings}</mergeUserSettings>
|
||||
<writeJunitReport>true</writeJunitReport>
|
||||
<junitPackageName>org.eclipse.jetty.maven.its</junitPackageName>
|
||||
<debug>${it.debug}</debug>
|
||||
|
@ -1329,6 +1330,7 @@
|
|||
<id>ci</id>
|
||||
<properties>
|
||||
<settingsPath>${env.GLOBAL_MVN_SETTINGS}</settingsPath>
|
||||
<invoker.mergeUserSettings>true</invoker.mergeUserSettings>
|
||||
<surefire.rerunFailingTestsCount>3</surefire.rerunFailingTestsCount>
|
||||
</properties>
|
||||
<modules>
|
||||
|
|
Loading…
Reference in New Issue