-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: maven plugin and m2e Eclipse plugin #50
Comments
Hi Edgar,
Can you elaborate more on what's not working? Copy-n-paste errors, logs,
etc. I'd love to help, but I don't use Eclipse much so w/o more detailed
info, I won't be able to assist.
…-Joe
On Fri, Mar 17, 2017 at 10:31 AM, Edgar Espina ***@***.***> wrote:
Rocker maven plugin doesn't work with m2e Eclipse plugin. Is there any
workaround?
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#50>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjwAmmOXj_YBxqKPY8qF-zeeJY_7uihks5rmplbgaJpZM4MgqXI>
.
|
Hi @jjlauer Well I'm kind of new to
I successfully used other code generator (usually based on APT) and for example when you recompile something in Eclipse, m2e successfully rerun the plugin and fire/run the maven plugin keeping generated code up-to-date. This isn't the case for Rocker :( |
Found it: http://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html <build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.fizzed</groupId>
<artifactId>rocker-maven-plugin</artifactId>
<versionRange>[${rocker.version},)</versionRange>
<goals>
<goal>generate</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>true</runOnIncremental>
</execute>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build> |
Oh, sweet, so that was all you need to do? Looks like you actually run an
M2E plugin which in turn runs the rocker plugin?
…On Fri, Mar 17, 2017 at 11:14 AM, Edgar Espina ***@***.***> wrote:
Found it: http://www.eclipse.org/m2e/documentation/m2e-execution-
not-covered.html
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.fizzed</groupId>
<artifactId>rocker-maven-plugin</artifactId>
<versionRange>[${rocker.version},)</versionRange>
<goals>
<goal>generate</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>true</runOnIncremental>
</execute>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#50 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAjwAq1DTqw_N6ROBkWOruqNQLXQbUdMks5rmqNHgaJpZM4MgqXI>
.
|
It more like a hack. We must provide all the configuration inside With this, you change a Another small tweak we need to do is to turn off Finally, I'm going to add your excellent library as a jooby module :) |
I believe you can configure touchFile to be an empty string and that'll
disable it. Or you could always set to something non-existent like
/dev/null
…On Fri, Mar 17, 2017 at 11:28 AM, Edgar Espina ***@***.***> wrote:
It more like a hack. We must provide all the configuration inside
pluginManagement (so it never runs from a normal build). Then m2e lookup
there and works as a proxy/delegate.
With this, you change a .rocker.html file inside Eclipse and it
automatically generate the source code!!!
Another small tweak we need to do is to turn off touchFile. Otherwise,
m2e trigger a build and loop forever.
Finally, I'm going to add your excellent library as a jooby.org module :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#50 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAjwAlJrsNKnioW1iJhcypEKjcQToAPhks5rmqaLgaJpZM4MgqXI>
.
|
Happy to link to your jooby.org module if/when you publish it.
…On Fri, Mar 17, 2017 at 11:30 AM, Joe Lauer ***@***.***> wrote:
I believe you can configure touchFile to be an empty string and that'll
disable it. Or you could always set to something non-existent like
/dev/null
On Fri, Mar 17, 2017 at 11:28 AM, Edgar Espina ***@***.***>
wrote:
> It more like a hack. We must provide all the configuration inside
> pluginManagement (so it never runs from a normal build). Then m2e lookup
> there and works as a proxy/delegate.
>
> With this, you change a .rocker.html file inside Eclipse and it
> automatically generate the source code!!!
>
> Another small tweak we need to do is to turn off touchFile. Otherwise,
> m2e trigger a build and loop forever.
>
> Finally, I'm going to add your excellent library as a jooby.org module :)
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#50 (comment)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/AAjwAlJrsNKnioW1iJhcypEKjcQToAPhks5rmqaLgaJpZM4MgqXI>
> .
>
|
Here is: http://jooby.org/doc/rocker |
@jknack Added a new section to the README. https://github.com/fizzed/rocker#framework-integrations |
@jjlauer In theory you can easily make the rocker maven plugin compatible with m2e (eclipse maven) without requiring library consumers to do the configuration that @jknack did by just following these instructions: https://www.eclipse.org/m2e/documentation/m2e-making-maven-plugins-compat.html#mapping The m2e plugin basically looks for similar XML to the build section of @jknack pom via a ServiceLocator-like pattern. |
Rocker maven plugin doesn't work with m2e Eclipse plugin. Is there any workaround?
Thanks.
The text was updated successfully, but these errors were encountered: