public static MavenModel interpolateAndAlignModel(MavenModel model, File basedir) throws RemoteException { Model result = MavenModelConverter.toNativeModel(model); result = doInterpolate(result, basedir); PathTranslator pathTranslator = new DefaultPathTranslator(); pathTranslator.alignToBaseDirectory(result, basedir); return MavenModelConverter.convertModel(result, null); }
public static MavenModel interpolateAndAlignModel(MavenModel model, File basedir) throws RemoteException { Model result = Maven2ModelConverter.toNativeModel(model); result = doInterpolate(result, basedir); PathTranslator pathTranslator = new DefaultPathTranslator(); pathTranslator.alignToBaseDirectory(result, basedir); return Maven2ModelConverter.convertModel(result, null); }
public PathTranslatingPostProcessor( List<String> expressionPrefixes, List<String> unprefixedPathKeys, File projectDir, PathTranslator pathTranslator ) { this.expressionPrefixes = expressionPrefixes; this.unprefixedPathKeys = unprefixedPathKeys; this.projectDir = projectDir; this.pathTranslator = pathTranslator; }
@Deprecated //TODO: used by the Enforcer plugin public PluginParameterExpressionEvaluator( MavenSession session, MojoExecution mojoExecution, PathTranslator pathTranslator, Logger logger, MavenProject project, Properties properties ) { this( session, mojoExecution ); }
/** * Constructs a new {@link DefaultVersionsHelper}. * * @param artifactFactory The artifact factory. * @param artifactResolver * @param artifactMetadataSource The artifact metadata source to use. * @param remoteArtifactRepositories The remote artifact repositories to consult. * @param remotePluginRepositories The remote plugin repositories to consult. * @param localRepository The local repository to consult. * @param wagonManager The wagon manager (used if rules need to be retrieved). * @param settings The settings (used to provide proxy information to the wagon manager). * @param serverId The serverId hint for the wagon manager. * @param rulesUri The URL to retrieve the versioning rules from. * @param log The {@link org.apache.maven.plugin.logging.Log} to send log messages to. * @param mavenSession The maven session information. * @param pathTranslator The path translator component. @throws org.apache.maven.plugin.MojoExecutionException If * things go wrong. * @since 1.0-alpha-3 */ public DefaultVersionsHelper( ArtifactFactory artifactFactory, ArtifactResolver artifactResolver, ArtifactMetadataSource artifactMetadataSource, List remoteArtifactRepositories, List remotePluginRepositories, ArtifactRepository localRepository, WagonManager wagonManager, Settings settings, String serverId, String rulesUri, Log log, MavenSession mavenSession, PathTranslator pathTranslator ) throws MojoExecutionException { this.artifactFactory = artifactFactory; this.artifactResolver = artifactResolver; this.mavenSession = mavenSession; this.pathTranslator = pathTranslator; this.ruleSet = loadRuleSet( serverId, settings, wagonManager, rulesUri, log ); this.artifactMetadataSource = artifactMetadataSource; this.localRepository = localRepository; this.remoteArtifactRepositories = remoteArtifactRepositories; this.remotePluginRepositories = remotePluginRepositories; this.log = log; }
public VersionsExpressionEvaluator( MavenSession mavenSession, PathTranslator pathTranslator, MavenProject mavenProject ) { super( mavenSession, new MojoExecution( new MojoDescriptor() ), pathTranslator, null, mavenProject, mavenSession.getExecutionProperties() ); }
/** * Constructs a new {@link DefaultVersionsHelper}. * * @param artifactFactory The artifact factory. * @param artifactResolver * @param artifactMetadataSource The artifact metadata source to use. * @param remoteArtifactRepositories The remote artifact repositories to consult. * @param remotePluginRepositories The remote plugin repositories to consult. * @param localRepository The local repository to consult. * @param wagonManager The wagon manager (used if rules need to be retrieved). * @param settings The settings (used to provide proxy information to the wagon manager). * @param serverId The serverId hint for the wagon manager. * @param rulesUri The URL to retrieve the versioning rules from. * @param log The {@link org.apache.maven.plugin.logging.Log} to send log messages to. * @param mavenSession The maven session information. * @param pathTranslator The path translator component. @throws org.apache.maven.plugin.MojoExecutionException * If things go wrong. * @since 1.0-alpha-3 */ public DefaultVersionsHelper( ArtifactFactory artifactFactory, ArtifactResolver artifactResolver, ArtifactMetadataSource artifactMetadataSource, List remoteArtifactRepositories, List remotePluginRepositories, ArtifactRepository localRepository, WagonManager wagonManager, Settings settings, String serverId, String rulesUri, Log log, MavenSession mavenSession, PathTranslator pathTranslator ) throws MojoExecutionException { this.artifactFactory = artifactFactory; this.artifactResolver = artifactResolver; this.mavenSession = mavenSession; this.pathTranslator = pathTranslator; this.ruleSet = loadRuleSet( serverId, settings, wagonManager, rulesUri, log ); this.artifactMetadataSource = artifactMetadataSource; this.localRepository = localRepository; this.remoteArtifactRepositories = remoteArtifactRepositories; this.remotePluginRepositories = remotePluginRepositories; this.log = log; }
protected AbstractStringBasedModelInterpolator( PathTranslator pathTranslator ) { this.pathTranslator = pathTranslator; }
public StringSearchModelInterpolator( PathTranslator pathTranslator ) { super( pathTranslator ); }
public RegexBasedModelInterpolator( PathTranslator pathTranslator ) { super( pathTranslator ); }