I'm trying to write a maven plugin that I want to include in my project.

In my project pom, I have defined my plugin as:

<build>
      <plugin>
        <groupId>org.project</groupId>
        <artifactId>build-maven-plugin</artifactId>
        <version>1.1.0-SNAPSHOT</version>
        <executions>
          <execution>
            <id>builder</id>
            <phase>validate</phase>
            <goals>
              <goal>enhancer</goal>
            </goals>
         </execution>
       </executions>
      </plugin>
..
..
...


I have my build-maven-plugin opened in my workspace.  The
build-maven-plugin pom is defined as:
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
<modelVersion>4.0.0</modelVersion>

<groupId>org.project</groupId>
<artifactId>build-maven-plugin</artifactId>
<version>1.1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>

...
....



Additionally, I have ensured that I have Resolve dependencies from
Workspace projects enabled in both the mojo project and my jar project.

And yet, the jar project complains that it isn't able to resolve mojo in my
project.
"Could not find goal 'enhancer' in plugin
org.project:build-maven-plugin:1.0.0 among available goals run, help"


Is there something special that needs to be done so that my jar project is
able to see the mojo in my workspace?  I've tried a complete
clean/rebuild/update dependencies, but that hasn't helped.

I'm running Eclipse Neon.2.

Thanks,

Eric
_______________________________________________
m2e-users mailing list
m2e-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to