{
List<ProjectDeveloper> developers = new ArrayList<ProjectDeveloper>();
for ( Developer d : (List<Developer>) mavenProject.getDevelopers() )
{
ProjectDeveloper cd = new ProjectDeveloper();
cd.setScmId( d.getId() );
cd.setName( d.getName() );
cd.setEmail( d.getEmail() );
developers.add( cd );
}
continuumProject.setDevelopers( developers );
}
// ----------------------------------------------------------------------
// Parent
// ----------------------------------------------------------------------
if ( mavenProject.getParent() != null )
{
MavenProject parentProject = mavenProject.getParent();
ProjectDependency parent = new ProjectDependency();
parent.setGroupId( parentProject.getGroupId() );
parent.setArtifactId( parentProject.getArtifactId() );
parent.setVersion( parentProject.getVersion() );
continuumProject.setParent( parent );
}
// ----------------------------------------------------------------------
// Dependencies
// ----------------------------------------------------------------------
List<ProjectDependency> dependencies = new ArrayList<ProjectDependency>();
for ( Dependency dependency : (List<Dependency>) mavenProject.getDependencies() )
{
ProjectDependency cd = new ProjectDependency();
cd.setGroupId( dependency.getGroupId() );
cd.setArtifactId( dependency.getArtifactId() );
cd.setVersion( dependency.getVersion() );
dependencies.add( cd );
}
for ( Plugin dependency : (List<Plugin>) mavenProject.getBuildPlugins() )
{
ProjectDependency cd = new ProjectDependency();
cd.setGroupId( dependency.getGroupId() );
cd.setArtifactId( dependency.getArtifactId() );
cd.setVersion( dependency.getVersion() );
dependencies.add( cd );
}
for ( ReportPlugin dependency : (List<ReportPlugin>) mavenProject.getReportPlugins() )
{
ProjectDependency cd = new ProjectDependency();
cd.setGroupId( dependency.getGroupId() );
cd.setArtifactId( dependency.getArtifactId() );
cd.setVersion( dependency.getVersion() );
dependencies.add( cd );
}
for ( Extension dependency : (List<Extension>) mavenProject.getBuildExtensions() )
{
ProjectDependency cd = new ProjectDependency();
cd.setGroupId( dependency.getGroupId() );
cd.setArtifactId( dependency.getArtifactId() );
cd.setVersion( dependency.getVersion() );
dependencies.add( cd );
}
continuumProject.setDependencies( dependencies );