maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hobson <markhob...@gmail.com>
Subject Re: eclipse:eclipse and direct project references
Date Fri, 04 Nov 2005 09:00:32 GMT
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 <groups1@memelet.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message