blob: ab9fa21066b3d032715948ae314a17d57e7c3b2a [file] [log] [blame]
package org.apache.maven.plugins.install.stubs;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF 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.
*/
import javax.annotation.Nonnull;
import java.io.File;
import java.nio.file.Path;
import java.util.List;
import org.apache.maven.api.Artifact;
import org.apache.maven.api.Dependency;
import org.apache.maven.api.Project;
import org.apache.maven.model.Model;
public class ProjectStub implements Project
{
private String groupId;
private String artifactId;
private String version;
private String packaging;
private Artifact artifact;
private Model model;
private File pomPath;
private boolean executionRoot;
@Nonnull
@Override
public String getGroupId()
{
return groupId;
}
@Nonnull
@Override
public String getArtifactId()
{
return artifactId;
}
@Nonnull
@Override
public String getVersion()
{
return version;
}
@Nonnull
@Override
public String getPackaging()
{
return packaging;
}
@Nonnull
@Override
public Artifact getArtifact()
{
return artifact;
}
@Nonnull
@Override
public Model getModel()
{
return model;
}
@Nonnull
@Override
public Path getPomPath()
{
return pomPath.toPath();
}
@Nonnull
@Override
public List<Dependency> getDependencies()
{
return null;
}
@Nonnull
@Override
public List<Dependency> getManagedDependencies()
{
return null;
}
@Override
public boolean isExecutionRoot()
{
return executionRoot;
}
public void setGroupId( String groupId )
{
this.groupId = groupId;
}
public void setArtifactId( String artifactId )
{
this.artifactId = artifactId;
}
public void setVersion( String version )
{
this.version = version;
}
public void setPackaging( String packaging )
{
this.packaging = packaging;
}
public void setArtifact( Artifact artifact )
{
this.artifact = artifact;
}
public void setModel( Model model )
{
this.model = model;
}
public void setPomPath( File pomPath )
{
this.pomPath = pomPath;
}
public void setExecutionRoot( boolean executionRoot )
{
this.executionRoot = executionRoot;
}
}