protected void configure( final R recipe ) { recipe.setGenerateVersionRanges( generateVersionRanges ); recipe.setGraphToManagedDeps( graphToManagedDeps ); recipe.setOutput( output ); super.configure( recipe ); }
@SuppressWarnings( "unchecked" ) @Override public R build() { final R recipe = (R) new PomRequest(); configure( recipe ); return recipe; }
final ProjectVersionRef pomCoord = recipe.getOutput(); if ( recipe.isGraphToManagedDeps() ) final VersionSpec spec = generateVersionSpec( prc.getVersionRefs(), recipe.isGenerateVersionRanges() ); final Set<VersionlessArtifactRef> arts = prc.getVersionlessArtifactRefs(); if ( arts == null ) final Location srcLocation = recipe.getSourceLocation(); try
@Deprecated public String pomFor( final String groupId, final String artifactId, final String version, final String workspaceId, final Map<String, String[]> params, final PomRequest config ) throws AproxWorkflowException { final ProjectVersionRef pvr = new SimpleProjectVersionRef( groupId, artifactId, version ); config.setOutput( pvr ); return pomFor( config ); }
private void addDependencyTo( final Model model, final VersionlessArtifactRef artifact, final VersionSpec spec, final ProjectRef ga, final DependencyManagement depMgmt, final PomRequest dto ) { final Dependency d = new Dependency(); d.setGroupId( ga.getGroupId() ); d.setArtifactId( ga.getArtifactId() ); d.setVersion( spec.renderStandard() ); if ( !"jar".equals( artifact.getType() ) ) { d.setType( artifact.getType() ); } if ( artifact.getClassifier() != null ) { d.setClassifier( artifact.getClassifier() ); } if ( dto.isGraphToManagedDeps() ) { depMgmt.addDependency( d ); } else { model.addDependency( d ); } }
final ProjectVersionRef pomCoord = recipe.getOutput(); if ( recipe.isGraphToManagedDeps() ) final VersionSpec spec = generateVersionSpec( prc.getVersionRefs(), recipe.isGenerateVersionRanges() ); final Set<VersionlessArtifactRef> arts = prc.getVersionlessArtifactRefs(); if ( arts == null ) final Location srcLocation = recipe.getSourceLocation(); try
private void addDependencyTo( final Model model, final VersionlessArtifactRef artifact, final VersionSpec spec, final ProjectRef ga, final DependencyManagement depMgmt, final PomRequest dto ) { final Dependency d = new Dependency(); d.setGroupId( ga.getGroupId() ); d.setArtifactId( ga.getArtifactId() ); d.setVersion( spec.renderStandard() ); if ( !"jar".equals( artifact.getType() ) ) { d.setType( artifact.getType() ); } if ( artifact.getClassifier() != null ) { d.setClassifier( artifact.getClassifier() ); } if ( dto.isGraphToManagedDeps() ) { depMgmt.addDependency( d ); } else { model.addDependency( d ); } }
protected void configure( final R recipe ) { recipe.setGenerateVersionRanges( generateVersionRanges ); recipe.setGraphToManagedDeps( graphToManagedDeps ); recipe.setOutput( output ); super.configure( recipe ); }
@SuppressWarnings( "unchecked" ) @Override public R build() { final R recipe = (R) new PomRequest(); configure( recipe ); return recipe; }