Hi Barry,
I noticed this yesterday too and raised an issue:
http://jira.codehaus.org/browse/MNG-1410
You may want to supply patches there.
Cheers,
Mark
On 04/11/05, Barry Kaplan <[EMAIL PROTECTED]> wrote:
> Below is what I did to get a proper project to be created. Now I don't
> really understand how snapshots are supposed to work, so I'm sure there
> are problems with this solution. But at least it is creating proper
> eclipse projects. Now I need to learn how to make a custom verson of a
> plugin available to my team..........
>
> public static MavenProject findReactorProject( List reactorProjects,
> Artifact artifact )
> {
> if ( reactorProjects == null )
> {
> return null; // we're a single project
> }
>
> for ( Iterator it = reactorProjects.iterator(); it.hasNext(); )
> {
> MavenProject project = (MavenProject) it.next();
>
> if ( project.getGroupId().equals( artifact.getGroupId() )
> && project.getArtifactId().equals(
> artifact.getArtifactId() )
> && isVersionMatch(project, artifact) )
> //project.getVersion().equals( artifact.getVersion() ) )
> {
> return project;
> }
> }
>
> return null;
> }
>
> public static boolean isVersionMatch(MavenProject project, Artifact
> artifact) {
> return project.getVersion ().equals(artifact.getVersion())
> ||
> project.getVersion().equals(artifact.getVersionRange().toString());
> }
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]