Java Code Examples for org.apache.maven.project.DefaultProjectBuildingRequest#setSystemProperties()
The following examples show how to use
org.apache.maven.project.DefaultProjectBuildingRequest#setSystemProperties() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DependencyResolver.java From spring-init with Apache License 2.0 | 5 votes |
private ProjectBuildingRequest getProjectBuildingRequest(Properties properties) throws NoLocalRepositoryManagerException { DefaultProjectBuildingRequest projectBuildingRequest = new DefaultProjectBuildingRequest(); DefaultRepositorySystemSession session = createSession(properties); projectBuildingRequest.setRepositoryMerging(RepositoryMerging.REQUEST_DOMINANT); projectBuildingRequest.setRemoteRepositories(mavenRepositories(properties)); projectBuildingRequest.getRemoteRepositories() .addAll(mavenRepositories(settings)); projectBuildingRequest.setRepositorySession(session); projectBuildingRequest.setProcessPlugins(false); projectBuildingRequest.setBuildStartTime(new Date()); projectBuildingRequest.setUserProperties(properties); projectBuildingRequest.setSystemProperties(System.getProperties()); return projectBuildingRequest; }
Example 2
Source File: DependencyResolver.java From spring-cloud-function with Apache License 2.0 | 5 votes |
private ProjectBuildingRequest getProjectBuildingRequest(Properties properties) throws NoLocalRepositoryManagerException { DefaultProjectBuildingRequest projectBuildingRequest = new DefaultProjectBuildingRequest(); DefaultRepositorySystemSession session = createSession(properties); projectBuildingRequest.setRepositoryMerging(RepositoryMerging.REQUEST_DOMINANT); projectBuildingRequest.setRemoteRepositories(mavenRepositories(properties)); projectBuildingRequest.getRemoteRepositories() .addAll(mavenRepositories(this.settings)); projectBuildingRequest.setRepositorySession(session); projectBuildingRequest.setProcessPlugins(false); projectBuildingRequest.setBuildStartTime(new Date()); projectBuildingRequest.setUserProperties(properties); projectBuildingRequest.setSystemProperties(System.getProperties()); return projectBuildingRequest; }