001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more contributor license 003 * agreements. See the NOTICE file distributed with this work for additional information regarding 004 * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the 005 * "License"); you may not use this file except in compliance with the License. You may obtain a 006 * copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software distributed under the License 011 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 012 * or implied. See the License for the specific language governing permissions and limitations under 013 * the License. 014 */ 015 016package org.apache.maven.lifecycle.internal.stub; 017 018import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; 019import org.apache.maven.plugin.prefix.PluginPrefixRequest; 020import org.apache.maven.plugin.prefix.PluginPrefixResolver; 021import org.apache.maven.plugin.prefix.PluginPrefixResult; 022import org.eclipse.aether.repository.ArtifactRepository; 023 024/** 025 * @author Kristian Rosenvold 026 */ 027 028public class PluginPrefixResolverStub 029 implements PluginPrefixResolver 030{ 031 public PluginPrefixResult resolve( PluginPrefixRequest request ) 032 throws NoPluginFoundForPrefixException 033 { 034 return new PluginPrefixResult() 035 { 036 public String getGroupId() 037 { 038 return "com.foobar"; 039 } 040 041 public String getArtifactId() 042 { 043 return "bazbaz"; 044 } 045 046 public ArtifactRepository getRepository() 047 { 048 return null; 049 } 050 }; 051 } 052}