Skip to content
Permalink
Browse files

JENKINS-43446 - java.lang.NoSuchFieldError: DEFAULT_USER_SETTINGS_FIL…

…E - Maven 3.5 requires ClassWorld in the main method
  • Loading branch information...
Tomer Cohen
Tomer Cohen committed Apr 11, 2017
1 parent ef36853 commit 62b24baa82ea08244aa556e9c9b33ba311e1acec
@@ -32,6 +32,7 @@
import org.codehaus.plexus.DefaultContainerConfiguration;
import org.codehaus.plexus.DefaultPlexusContainer;
import org.codehaus.plexus.PlexusConstants;
import org.codehaus.plexus.classworlds.ClassWorld;
import org.codehaus.plexus.classworlds.realm.ClassRealm;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
import org.jvnet.hudson.maven3.listeners.HudsonMavenExecutionResult;
@@ -82,7 +83,7 @@ public static void setMavenExecutionResult( HudsonMavenExecutionResult result )
hudsonMavenExecutionResult = result;
}

public static int main( String[] args )
public static int main(String[] args , ClassWorld classWorld)
throws Exception
{
ClassLoader orig = Thread.currentThread().getContextClassLoader();

0 comments on commit 62b24ba

Please sign in to comment.
You can’t perform that action at this time.