If you want it to be open source put the plugin in Github and then we can see 
the whole project and try it. Trying to deduce what's wrong by looking at 
partial snippets is really hard. If I can built and run easily, it's a lot 
easier to help.

Maven will always look locally first. Most likely is a typo between what you 
specified as the plugin groupId:artifactId:version (GAV) and what you're using 
as the plugin GAV.

On Aug 29, 2011, at 10:32 AM, Eric Kolotyluk wrote:

> OK, I'm trying to get my first mojo working.
> 
> I created a project with the maven-plugin archetype and used the default mojo 
> that is there, but I cannot seem to get it to run.
> 
> The first time I tried to run it maven complained it could not find the 
> plugin. So then I ran a maven install, but it still could not find it because 
> it would only look in Nexus for it - why doesn't it just look in the local 
> repository? Then I ran a maven deploy, so the plugin project artifacts are 
> definitely in Nexus now, but maven is still complaining it cannot find the 
> POM for the plugin.
> 
> I suspect the problem is my plugin is version 0.0.1-SNAPSHOT but the files in 
> Nexus are like
> 
> nexus/content/repositories/snapshots/com/kodak/jni4net/jni4net-maven-plugin/0.0.1-SNAPSHOT/jni4net-maven-plugin-0.0.1-20110829.135006-1.pom
> 
> and the POM I am trying to run the plugin from looks like
> 
> <plugin>
> <groupId>com.kodak.jni4net</groupId>
> <artifactId>jni4net-maven-plugin</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> <executions>
> <execution>
> <phase>validate</phase>
> <goals>
> <goal>proxygen</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> 
> Does anyone have any advice?
> 
> By the way, if I want to share this plugin with the open source community, 
> how would I go about learning how to do that? Is there some global repository 
> I can submit it to (because I do not want to have to publish a repository 
> from our corporate intranet on the internet)? jni4net comes from SourceForge 
> - perhaps that would be the best place to start?
> 
> Cheers, Eric
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------

You are never dedicated to something you have complete confidence in.
No one is fanatically shouting that the sun is going to rise tomorrow.
They know it is going to rise tomorrow. When people are fanatically
dedicated to political or religious faiths or any other kind of 
dogmas or goals, it's always because these dogmas or
goals are in doubt.

  -- Robert Pirzig, Zen and the Art of Motorcycle Maintenance



Reply via email to