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    
016    package org.apache.maven.lifecycle.internal.stub;
017    
018    import org.apache.maven.plugin.version.PluginVersionRequest;
019    import org.apache.maven.plugin.version.PluginVersionResolutionException;
020    import org.apache.maven.plugin.version.PluginVersionResolver;
021    import org.apache.maven.plugin.version.PluginVersionResult;
022    import org.sonatype.aether.repository.ArtifactRepository;
023    
024    /**
025     * @author Kristian Rosenvold
026     */
027    
028    public class PluginVersionResolverStub
029        implements PluginVersionResolver
030    {
031    
032        public PluginVersionResult resolve( PluginVersionRequest request )
033            throws PluginVersionResolutionException
034        {
035            return new PluginVersionResult()
036            {
037                public String getVersion()
038                {
039                    return "0.42";
040                }
041    
042                public ArtifactRepository getRepository()
043                {
044                    return null;
045                }
046            };
047        }
048    }