Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Resolve maven plugin from workspace?

This is not supported, workspace dependency resolution is explicitly disabled for plugins during workspace build. I do not believe it is possible to implement this correctly and efficiently.

--
Regards,
Igor


On Mon, Oct 9, 2017, at 12:29 AM, Eric B wrote:
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:
<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@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top