private String getKey( Project project ) { return project.getGroupId() + ":" + project.getArtifactId() + ":" + project.getVersion(); }
return false; if ( project.getArtifactId() == null ) ", Artifact Id = " + project.getArtifactId() ); return false; ", Artifact Id = " + project.getArtifactId() + ", Version = " + project.getVersion() ); return false;
logger.finest( "NPANDAY-190-000: Converting Project: Artifact ID = " + project.getArtifactId() + ", Dependency Count =" + project.getProjectDependencies().size() ); Artifact artifact = ProjectFactory.createArtifactFrom( project, artifactFactory, mavenRepository );
logger.finest( "NPANDAY-190-002: Converting Project: Artifact ID = " + project.getArtifactId() + ", Dependency Count =" + project.getProjectDependencies().size() ); Model model = ProjectFactory.createModelFrom( project );
/** * Creates an artifact using information from the specified project. * * @param project a project to use as the source of the returned artifact * @param artifactFactory artifact factory used to create the artifact * @param localRepository the local repository * @return an artifact using information from the specified project */ public static Artifact createArtifactFrom( Project project, ArtifactFactory artifactFactory, File localRepository ) { logAndVerifyProjectParameters( project ); Artifact assembly = artifactFactory.createArtifactWithClassifier( project.getGroupId(), project.getArtifactId(), project.getVersion(), project.getArtifactType(), project.getPublicKeyTokenId() ); File artifactFile = ( ( ArtifactTypeHelper.isDotnetAnyGac( project.getArtifactType() ) ) ) ? PathUtil.getGlobalAssemblyCacheFileFor( assembly, localRepository) : PathUtil.getDotNetArtifact( assembly, localRepository ) ; assembly.setFile( artifactFile ); return assembly; }
if ( project.getGroupId() == null || project.getArtifactId() == null || project.getVersion() == null ) + project.getGroupId() + ", Artifact Id = " + project.getArtifactId() + ", Version = " + project.getVersion() ); valueFactory.createURI( project.getGroupId() + ":" + project.getArtifactId() + ":" + project.getVersion() + ":" + project.getArtifactType() ); URI groupId = valueFactory.createURI( ProjectUri.GROUP_ID.getPredicate() ); repositoryConnection.add( id, artifactId, valueFactory.createLiteral( project.getArtifactId() ) ); repositoryConnection.add( id, version, valueFactory.createLiteral( project.getVersion() ) ); repositoryConnection.add( id, artifactType, valueFactory.createLiteral( project.getArtifactType() ) ); valueFactory.createURI( parentProject.getGroupId() + ":" + parentProject.getArtifactId() + ":" + parentProject.getVersion() + ":" + project.getArtifactType() ); repositoryConnection.add( id, parent, pid ); + project.getArtifactId() + ", Time = " + ( System.currentTimeMillis() - startTime ) + ", Count = " + storeCounter++ );
model.setArtifactId( project.getArtifactId() ); model.setVersion( project.getVersion() ); model.setPackaging( project.getArtifactType() );