| 1 | |
package org.apache.maven.project; |
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
|
| 18 | |
|
| 19 | |
|
| 20 | |
|
| 21 | |
|
| 22 | |
import org.apache.maven.artifact.Artifact; |
| 23 | |
import org.apache.maven.artifact.repository.ArtifactRepository; |
| 24 | |
import org.apache.maven.artifact.resolver.ArtifactNotFoundException; |
| 25 | |
import org.apache.maven.artifact.resolver.ArtifactResolutionException; |
| 26 | |
import org.apache.maven.profiles.ProfileManager; |
| 27 | |
import org.apache.maven.wagon.events.TransferListener; |
| 28 | |
|
| 29 | |
import java.io.File; |
| 30 | |
import java.util.List; |
| 31 | |
|
| 32 | |
public interface MavenProjectBuilder |
| 33 | |
{ |
| 34 | 0 | String ROLE = MavenProjectBuilder.class.getName(); |
| 35 | |
|
| 36 | |
String STANDALONE_SUPERPOM_GROUPID = "org.apache.maven"; |
| 37 | |
|
| 38 | |
String STANDALONE_SUPERPOM_ARTIFACTID = "super-pom"; |
| 39 | |
|
| 40 | |
String STANDALONE_SUPERPOM_VERSION = "2.0"; |
| 41 | |
|
| 42 | |
MavenProject build( File project, ArtifactRepository localRepository, ProfileManager globalProfileManager ) |
| 43 | |
throws ProjectBuildingException; |
| 44 | |
|
| 45 | |
MavenProject build( File project, ArtifactRepository localRepository, ProfileManager globalProfileManager, |
| 46 | |
boolean checkDistributionManagementStatus ) |
| 47 | |
throws ProjectBuildingException; |
| 48 | |
|
| 49 | |
|
| 50 | |
|
| 51 | |
|
| 52 | |
|
| 53 | |
MavenProject buildWithDependencies( File project, ArtifactRepository localRepository, |
| 54 | |
ProfileManager globalProfileManager, TransferListener transferListener ) |
| 55 | |
throws ProjectBuildingException, ArtifactResolutionException, ArtifactNotFoundException; |
| 56 | |
|
| 57 | |
MavenProject buildWithDependencies( File project, ArtifactRepository localRepository, |
| 58 | |
ProfileManager globalProfileManager ) |
| 59 | |
throws ProjectBuildingException, ArtifactResolutionException, ArtifactNotFoundException; |
| 60 | |
|
| 61 | |
|
| 62 | |
|
| 63 | |
|
| 64 | |
|
| 65 | |
|
| 66 | |
|
| 67 | |
|
| 68 | |
|
| 69 | |
|
| 70 | |
|
| 71 | |
|
| 72 | |
|
| 73 | |
|
| 74 | |
MavenProject buildFromRepository( Artifact artifact, List remoteArtifactRepositories, |
| 75 | |
ArtifactRepository localRepository ) |
| 76 | |
throws ProjectBuildingException; |
| 77 | |
|
| 78 | |
|
| 79 | |
|
| 80 | |
|
| 81 | |
|
| 82 | |
|
| 83 | |
|
| 84 | |
|
| 85 | |
|
| 86 | |
|
| 87 | |
|
| 88 | |
MavenProject buildFromRepository( Artifact artifact, List remoteArtifactRepositories, |
| 89 | |
ArtifactRepository localRepository, boolean allowStubModel ) |
| 90 | |
throws ProjectBuildingException; |
| 91 | |
|
| 92 | |
|
| 93 | |
|
| 94 | |
|
| 95 | |
MavenProject buildStandaloneSuperProject( ArtifactRepository localRepository ) |
| 96 | |
throws ProjectBuildingException; |
| 97 | |
|
| 98 | |
|
| 99 | |
|
| 100 | |
|
| 101 | |
|
| 102 | |
MavenProject buildStandaloneSuperProject( ArtifactRepository localRepository, ProfileManager profileManager ) |
| 103 | |
throws ProjectBuildingException; |
| 104 | |
|
| 105 | |
MavenProject buildStandaloneSuperProject( ProjectBuilderConfiguration config ) |
| 106 | |
throws ProjectBuildingException; |
| 107 | |
|
| 108 | |
MavenProject build( File pom, |
| 109 | |
ProjectBuilderConfiguration config ) |
| 110 | |
throws ProjectBuildingException; |
| 111 | |
|
| 112 | |
MavenProject build( File pom, |
| 113 | |
ProjectBuilderConfiguration config, |
| 114 | |
boolean checkDistributionManagementStatus ) |
| 115 | |
throws ProjectBuildingException; |
| 116 | |
} |