private Settings getSettings() { if ( settings == null ) { try { settings = settingsBuilder.buildSettings(); } catch ( IOException e ) { log.error( "Failed to get Settings", e ); } catch ( XmlPullParserException e ) { log.error( "Failed to get Settings", e ); } } return settings; }
private Settings getSettings() throws ContinuumReleaseException { try { return settingsBuilder.buildSettings(); } catch ( IOException e ) { throw new ContinuumReleaseException( "Failed to get Maven Settings.", e ); } catch ( XmlPullParserException e ) { throw new ContinuumReleaseException( "Failed to get Maven Settings.", e ); } }
private Settings getSettings() throws ContinuumReleaseException { try { settings = settingsBuilder.buildSettings( false ); } catch ( IOException e ) { throw new ContinuumReleaseException( "Failed to get Maven Settings.", e ); } catch ( XmlPullParserException e ) { throw new ContinuumReleaseException( "Failed to get Maven Settings.", e ); } return settings; }
request.setUserSettingsFile( new File( System.getProperty( "user.home" ), ".m2/settings.xml" ) ); request.setGlobalSettingsFile( new File( System.getProperty( "maven.home" ), "conf/settings.xml" ) ); settings = settingsBuilder.buildSettings( request );
/** * Lookup and return the location of the normal Maven local repository. */ public File findLocalRepositoryDirectory() throws TestToolsException { Settings settings; try { settings = settingsBuilder.buildSettings(); } catch ( IOException e ) { throw new TestToolsException( "Error building Maven settings.", e ); } catch ( XmlPullParserException e ) { throw new TestToolsException( "Error building Maven settings.", e ); } if ( settings == null || settings.getLocalRepository() == null || settings.getLocalRepository().trim().length() < 1 ) { return new File( System.getProperty( "user.home" ), ".m2/repository" ); } else { return new File( settings.getLocalRepository() ); } }
private Settings getSettings() throws ContinuumInitializationException { try { return mavenSettingsBuilder.buildSettings( false ); } catch ( IOException e ) { throw new ContinuumInitializationException( "Error reading settings file", e ); } catch ( XmlPullParserException e ) { throw new ContinuumInitializationException( e.getMessage(), e ); } } }
protected MavenExecutionRequest newMavenExecutionRequest(File pom) throws Exception { Properties systemProps = new Properties(); systemProps.putAll(System.getProperties()); Properties userProps = new Properties(); userProps.put("tycho-version", "0.0.0"); MavenExecutionRequest request = new DefaultMavenExecutionRequest(); request.setBaseDirectory(pom.getParentFile()); request.setPom(pom); request.setSystemProperties(systemProps); request.setUserProperties(userProps); request.setLocalRepository(getLocalRepository()); request.setStartTime(new Date()); File settingsFile = getUserSettingsFile(); if (settingsFile.isFile()) { request.setUserSettingsFile(settingsFile); } Settings settings = settingsBuilder.buildSettings(request); requestPopulator.populateFromSettings(request, settings); request.setGoals(Arrays.asList("validate")); return request; }
Settings settings = settingsBuilder.buildSettings(); String localRepo = settings.getLocalRepository();
private Settings getSettings() { if ( settings == null ) { try { settings = settingsBuilder.buildSettings(); } catch ( IOException e ) { getLogger().error( "Failed to get Settings", e ); } catch ( XmlPullParserException e ) { getLogger().error( "Failed to get Settings", e ); } } return settings; }
settings = settingsBuilder.buildSettings(); else settings = settingsBuilder.buildSettings(alternateSettings, false);
private Settings getSettings() throws SettingsConfigurationException { try { return mavenSettingsBuilder.buildSettings( false ); } catch ( IOException e ) { throw new SettingsConfigurationException( "Error reading settings file", e ); } catch ( XmlPullParserException e ) { throw new SettingsConfigurationException( e.getMessage(), e.getDetail(), e.getLineNumber(), e.getColumnNumber() ); } }
private Settings getSettings() throws SettingsConfigurationException { try { return mavenSettingsBuilder.buildSettings( false ); } catch ( IOException e ) { throw new SettingsConfigurationException( "Error reading settings file", e ); } catch ( XmlPullParserException e ) { throw new SettingsConfigurationException( e.getMessage(), e.getDetail(), e.getLineNumber(), e.getColumnNumber() ); } }
private Settings getSettings() throws SettingsConfigurationException { try { return mavenSettingsBuilder.buildSettings(); } catch ( IOException e ) { throw new SettingsConfigurationException( "Error reading settings file", e ); } catch ( XmlPullParserException e ) { throw new SettingsConfigurationException( e.getMessage(), e.getDetail(), e.getLineNumber(), e.getColumnNumber() ); } }
private Settings getSettings() throws SettingsConfigurationException { try { return mavenSettingsBuilder.buildSettings(); } catch ( IOException e ) { throw new SettingsConfigurationException( "Error reading settings file", e ); } catch ( XmlPullParserException e ) { throw new SettingsConfigurationException( e.getMessage(), e.getDetail(), e.getLineNumber(), e.getColumnNumber() ); } }
private Settings getSettings() throws SettingsConfigurationException { try { return mavenSettingsBuilder.buildSettings( false ); } catch ( IOException e ) { throw new SettingsConfigurationException( "Error reading settings file", e ); } catch ( XmlPullParserException e ) { throw new SettingsConfigurationException( e.getMessage(), e.getDetail(), e.getLineNumber(), e.getColumnNumber() ); } }
try inInteractiveMode = settingsBuilder.buildSettings().getInteractiveMode().booleanValue();
Settings settings = mavenSettingsBuilder.buildSettings(); ProxyInfo proxyInfo = null; if ( settings != null && settings.getActiveProxy() != null )
final DefaultArtifact artifact = new DefaultArtifact(groupId, artifactId, VersionRange.createFromVersion(version), null, type, classifier, new DefaultArtifactHandler(type)); final DefaultRepositoryLayout repositoryLayout = new DefaultRepositoryLayout(); final Settings settings = ((MavenSettingsBuilder) embedder.lookup(MavenSettingsBuilder.ROLE)).buildSettings(); final List<ArtifactRepository> remoteRepositories = new ArrayList<ArtifactRepository>(); if (!offlineMode)