Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.apache.maven.plugin.version;
  
  /*
   * 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 java.util.List;
 
Collects settings required to resolve the version for a plugin.

Author(s):
Benjamin Bentmann
Since:
3.0
 
 public interface PluginVersionRequest
 {

    
Gets the group id of the plugin.

Returns:
The group id of the plugin.
 
     String getGroupId();

    
Sets the group id of the plugin.

Parameters:
groupId The group id of the plugin.
Returns:
This request, never null.
 
     PluginVersionRequest setGroupIdString groupId );

    
Gets the artifact id of the plugin.

Returns:
The artifact id of the plugin.
 
     String getArtifactId();

    
Sets the artifact id of the plugin.

Parameters:
artifactId The artifact id of the plugin.
Returns:
This request, never null.
 
     PluginVersionRequest setArtifactIdString artifactId );

    
Gets the POM whose build plugins are to be scanned for the version.

Returns:
The POM whose build plugins are to be scanned for the verion or null to only search the plugin repositories.
 
     Model getPom();

    
Sets the POM whose build plugins are to be scanned for the version.

Parameters:
pom The POM whose build plugins are to be scanned for the version, may be null to only search the plugin repositories.
Returns:
This request, never null.
 
     PluginVersionRequest setPomModel pom );

    
Gets the remote repositories to use.

Returns:
The remote repositories to use, never null.
 
     List<RemoteRepositorygetRepositories();

    
Sets the remote repositories to use. Note: When creating a request from a project, be sure to use the plugin repositories and not the regular project repositories.

Parameters:
repositories The remote repositories to use.
Returns:
This request, never null.
 
     PluginVersionRequest setRepositoriesList<RemoteRepositoryrepositories );

    
Gets the session to use for repository access.

Returns:
The repository session or null if not set.
Sets the session to use for repository access.

Parameters:
repositorySession The repository session to use.
Returns:
This request, never null.
New to GrepCode? Check out our FAQ X