View Javadoc
1   package org.apache.maven.project;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *  http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import java.io.File;
23  import java.util.List;
24  
25  import org.apache.maven.artifact.Artifact;
26  import org.apache.maven.artifact.repository.ArtifactRepository;
27  import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
28  import org.apache.maven.artifact.resolver.ArtifactResolutionException;
29  import org.apache.maven.profiles.ProfileManager;
30  import org.apache.maven.wagon.events.TransferListener;
31  
32  /**
33   * @deprecated use {@link ProjectBuilder} instead
34   */
35  @Deprecated
36  public interface MavenProjectBuilder
37  {
38  
39      MavenProject build( File pom, ProjectBuilderConfiguration configuration )
40          throws ProjectBuildingException;
41  
42      //TODO maven-site-plugin -- not used by the plugin directly, but used by Doxia Integration Tool & MPIR
43      // see DOXIASITETOOLS-167 & MPIR-349
44      MavenProject build( File pom, ArtifactRepository localRepository, ProfileManager profileManager )
45          throws ProjectBuildingException;
46  
47      //TODO remote-resources-plugin
48      MavenProject buildFromRepository( Artifact artifact, List<ArtifactRepository> remoteRepositories,
49                                        ArtifactRepository localRepository )
50          throws ProjectBuildingException;
51  
52      //TODO remote-resources-plugin
53      MavenProject buildFromRepository( Artifact artifact, List<ArtifactRepository> remoteRepositories,
54                                        ArtifactRepository localRepository, boolean allowStubModel )
55          throws ProjectBuildingException;
56  
57      // TODO this is only to provide a project for plugins that don't need a project to execute but need some
58      // of the values from a MavenProject. Ideally this should be something internal and nothing outside Maven
59      // would ever need this so it should not be exposed in a public API
60      MavenProject buildStandaloneSuperProject( ProjectBuilderConfiguration configuration )
61          throws ProjectBuildingException;
62  
63      MavenProject buildStandaloneSuperProject( ArtifactRepository localRepository )
64          throws ProjectBuildingException;
65  
66      MavenProject buildStandaloneSuperProject( ArtifactRepository localRepository, ProfileManager profileManager )
67          throws ProjectBuildingException;
68  
69      MavenProject buildWithDependencies( File pom, ArtifactRepository localRepository,
70                                          ProfileManager globalProfileManager, TransferListener transferListener )
71          throws ProjectBuildingException, ArtifactResolutionException, ArtifactNotFoundException;
72  
73      MavenProject buildWithDependencies( File pom, ArtifactRepository localRepository,
74                                          ProfileManager globalProfileManager )
75          throws ProjectBuildingException, ArtifactResolutionException, ArtifactNotFoundException;
76  
77  }