Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] feedback M2E Ingio - m2e connector concept

I think I already answered this in

https://bugs.eclipse.org/bugs/show_bug.cgi?id=335711#c5

--
Regards,
Igor

On 11-06-29 2:26 AM, David Carver wrote:
Yes, I believe it is the getSourceFolders(). The problem for me is that
after the plugin generates-code, it contributes to the maven build
cylce, the generated-sources/codegen and generated-resources/codegen
directories as source folders, so that maven knows to include them in
compilation.

There is no configuration setting that specifies this, so I can't use
getParamaterValue() to get the value specified in the mojo execution.

I ended up having to add the source folders to the Classpath after code
was generated during the BuildParticipant execution.

Dave

On 06/28/2011 12:59 AM, Igor Fedorenko wrote:
Can you provide more details about "getSources() is called to early"?

Do you mean
org.eclipse.m2e.jdt.AbstractJavaProjectConfigurator.getSourceFolders(ProjectConfigurationRequest,

MojoExecution) ? Generally, this method is expected to look at maven
plugin execution configuration parameters but it is not expected to
execute any maven goal. At least it must not assume that certain goals
have been executed already. I'll update method's javadoc if this
explains the behaviour that you see.


--
Regards,
Igor

On 11-06-28 12:58 AM, David Carver wrote:
What is lacking in those pages is how to correctly get the
generated-sources and generated-resources directories added to the Java
Classpath for eclipse. I've got a basic working instance, but it seems
that the protected method, getSources() is called to early.

I've got a partially working config now, but it really is a crap shoot
at times to figure out what needs to be done. It would also help to have
some better (or any) docs on some of the API that is supposed to be
used. Much of it is missing. Which I think is leading to some of the
frustrations that have been expressed here.

Dave

On 06/27/2011 04:20 PM, Igor Fedorenko wrote:
m2e dev env setup is briefly explain in [1].

wiki page [2] explains how different parts of m2e/antlr integration
fit together.

hope this helps.

[1]
http://wiki.eclipse.org/M2E_extension_development_environment#Setting_up_Eclipse_IDE


[2] http://wiki.eclipse.org/M2E_Extension_Development

--
Regards,
Igor

On 11-06-27 11:37 PM, Christian Schneider wrote:
Hi Igor,

I try to create a m2e plugin for cxf codegen. I started with the antlr
plugin and adapted it to cxf codegen.
Please see my github fork:
https://github.com/cschneider/m2eclipse-extras

I test the plugin using an "Eclipse Application" starter with alle
workspace projects and my currennt eclipse indigo.

The code gets executed but I get the error:
Description Resource Path Location Type
Execution generate-sources of goal
org.apache.cxf:cxf-codegen-plugin:2.4.1:wsdl2java failed.
(org.apache.cxf:cxf-codegen-plugin:2.4.1:wsdl2java:generate-sources:generate-sources)


pom.xml /jaxws-jms-client line 73 Maven Build Problem

The problem is that I get nothing more than that. The log shows
nothing.
Any idea how I get more information on what goes wrong?

I also do not have the source code of m2eclipse available in my
eclipse.
Is there a way to get the source code like for normal maven projects
with m2eclipse? I think I would get ahead faster if I could debug into
the rest of m2e.

Many thanks in advance

Christian


Am 25.06.2011 09:56, schrieb Igor Fedorenko:


I believe this is the only way to properly and reliably integrate
maven
build in Eclipse workspace. I provided more detailed explanation on
this
least earlier, see [3] and [4] for example

[1] http://wiki.eclipse.org/M2E_Extension_Development
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=335711
[3] http://dev.eclipse.org/mhonarc/lists/m2e-users/msg00572.html
[4] http://dev.eclipse.org/mhonarc/lists/m2e-users/msg00585.html



Christian




---------------
<plugins>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>generate-cxf-sources</id>
<phase>generate-sources</phase>
<configuration>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/CustomerService.wsdl</wsdl>
<bindingFiles>
<bindingFile>${basedir}/src/main/resources/binding.xml</bindingFile>
</bindingFiles>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>

Am 24.06.2011 12:45, schrieb Moser, Christian:

Just tried out our build environment with Indigo and m2e
1.0.0.20110607-2117.

User-experience :

After a full import of all maven projects, I’ve received following
error in almost every pom:

Plugin execution not covered by lifecycle configuration: …

After clicking around for some time, I found under pom.xml /
Overview
the possibility to ignore those «not covered plugin-lifecycles »



--
--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Divisionhttp://www.talend.com



_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top