com.simiacryptus.ref.SimpleMavenProject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autocoder-test Show documentation
Show all versions of autocoder-test Show documentation
Java 8 Reference Counting Code Utilities
The newest version!
/*
* Copyright (c) 2020 by Andrew Charneski.
*
* The author licenses this file to you under the
* Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance
* with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.simiacryptus.ref;
import com.simiacryptus.ref.core.ProjectInfo;
import org.apache.maven.project.*;
import org.codehaus.plexus.DefaultPlexusContainer;
import org.codehaus.plexus.PlexusContainerException;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
import org.eclipse.aether.ConfigurationProperties;
import org.eclipse.aether.DefaultRepositorySystemSession;
import org.eclipse.aether.graph.Dependency;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nonnull;
import java.io.File;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.stream.Stream;
public class SimpleMavenProject {
private static final File repositoryLocation = new File(System.getProperty("user.home"), ".m2/repository");
private static final Logger logger = LoggerFactory.getLogger(SimpleMavenProject.class);
@Nonnull
public final DefaultPlexusContainer plexusContainer;
@Nonnull
public final DefaultRepositorySystemSession session;
public final MavenProject project;
public final String projectRoot;
public SimpleMavenProject(final String projectRoot) throws IOException, PlexusContainerException, ComponentLookupException, ProjectBuildingException {
this.projectRoot = projectRoot;
Map © 2015 - 2025 Weber Informatics LLC | Privacy Policy