Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » Problem using maven-jibx-plugin
Problem using maven-jibx-plugin [message #571335] Wed, 18 November 2009 12:28 Go to next message
Brice is currently offline Brice
Messages: 4
Registered: November 2009
Junior Member
Hello, I have problem executing a compile with the maven-jibx-plugin


The build section contains this declaration :

<plugin>
<groupId>org.jibx</groupId>
<artifactId>maven-jibx-plugin</artifactId>
<version>1.1.5</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>bind</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>binding*.xml</include>
</includes>
<verbose>true</verbose>
</configuration>
</plugin>

The event log isn't really helpfull, setting the filter at "debug" isn't either, i just end up with these events !

18:05:22 CET Starting Starting phaseExecution process-resources
18:05:22 CET Starting Starting mojoExecution resources:resources
18:05:22 CET info Using default encoding to copy filtered resources.
18:05:22 CET Finished Finished mojoExecution resources:resources
18:05:22 CET Finished Finished phaseExecution process-resources
18:05:22 CET Starting Starting phaseExecution compile
18:05:23 CET Starting Starting mojoExecution compiler:compile
18:05:23 CET info Nothing to compile - all classes are up to date
18:05:23 CET Finished Finished mojoExecution compiler:compile
18:05:23 CET Finished Finished phaseExecution compile
18:05:23 CET Starting Starting phaseExecution process-classes
18:05:24 CET Starting Starting mojoExecution jibx:bind
18:05:24 CET info Running JiBX binding compiler (single-module mode) on 2 binding file(s)
18:05:25 CET Error An error occurred in phase mojoExecution with the exception org.apache.maven.plugin.MojoExecutionException: Binding binding-menu.xml is unusable because of validation errors
18:05:25 CET Error An error occurred in phase projectExecution with the exception org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jibx:maven-jibx-plugin:1.1.5:bind': Mojo execution failed.
18:05:25 CET Error An error occurred in phase mavenExecution with the exception org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jibx:maven-jibx-plugin:1.1.5:bind': Mojo execution failed.
18:05:25 CET Error An error occurred in phase reactorExecution with the exception org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jibx:maven-jibx-plugin:1.1.5:bind': Mojo execution failed.


Doing a mvn clean package in the commadn line (Maven 2.0.10) is just working. I also tried to set the phase to process-classes, without success.

After some time I read on this JiBx usergroup ( http://old.nabble.com/Binding-binding.xml-is-unusable-becaus e-of-validation-errors-td14892163.html) the error "Binding binding-menu.xml is unusable because of validation errors" might be due to the path Jibx is looking for the classes.

Maybe the plugin cannot found the classes as they might not yet be generated by the eclipse compiler.

Is IAM taking care of the maven phases inside Eclipse?


Thx in advance for any help

----
For eventual readers, i found a workaround :
1. I set the maven-plugin-phase to process-classes
2. Eclipse does the compiling job (with the debug info)
3. In the command line, I execute "mvn process-classes" (Doing so in Eclipse with Execute Goal raises the above mentioned error)
4. In Eclipse it's now possible to run the application in debug mode!

It's far from perfect but it is working. Don't yet know if it's going to be accepted by the staff.
Re: Problem using maven-jibx-plugin [message #571353 is a reply to message #571335] Wed, 18 November 2009 19:31 Go to previous message
Carlos Sanchez is currently offline Carlos Sanchez
Messages: 114
Registered: July 2009
Senior Member
can you try with the command line version of maven from
http://q4e.googlecode.com/files/apache-maven-2.1-659802-Q4E- bin.zip

we use a different Maven version than the 2.0.10 you use in the command
line and we need to find out whether the problem is in the IAM Eclipse
plugin code or in the version of Maven we use.

for a detailed explanation, please see
http://code.google.com/p/q4e/wiki/ReportingBugs

thanks

On 11/18/09 9:28 AM, brice.dutheil+eclipse@gmail.com wrote:
> Hello, I have problem executing a compile with the maven-jibx-plugin
>
>
> The build section contains this declaration :
>
> <plugin>
> <groupId>org.jibx</groupId>
> <artifactId>maven-jibx-plugin</artifactId>
> <version>1.1.5</version>
> <executions>
> <execution>
> <phase>compile</phase>
> <goals>
> <goal>bind</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <includes>
> <include>binding*.xml</include>
> </includes>
> <verbose>true</verbose>
> </configuration>
> </plugin>
>
> The event log isn't really helpfull, setting the filter at "debug" isn't
> either, i just end up with these events !
>
> 18:05:22 CET Starting Starting phaseExecution process-resources
> 18:05:22 CET Starting Starting mojoExecution resources:resources
> 18:05:22 CET info Using default encoding to copy filtered resources.
> 18:05:22 CET Finished Finished mojoExecution resources:resources
> 18:05:22 CET Finished Finished phaseExecution process-resources
> 18:05:22 CET Starting Starting phaseExecution compile
> 18:05:23 CET Starting Starting mojoExecution compiler:compile
> 18:05:23 CET info Nothing to compile - all classes are up to date
> 18:05:23 CET Finished Finished mojoExecution compiler:compile
> 18:05:23 CET Finished Finished phaseExecution compile
> 18:05:23 CET Starting Starting phaseExecution process-classes
> 18:05:24 CET Starting Starting mojoExecution jibx:bind
> 18:05:24 CET info Running JiBX binding compiler (single-module mode) on
> 2 binding file(s) 18:05:25 CET Error An error occurred in phase
> mojoExecution with the exception
> org.apache.maven.plugin.MojoExecutionException: Binding binding-menu.xml
> is unusable because of validation errors
> 18:05:25 CET Error An error occurred in phase projectExecution with the
> exception org.apache.maven.lifecycle.LifecycleExecutionException:
> Internal error in the plugin manager executing goal
> 'org.jibx:maven-jibx-plugin:1.1.5:bind': Mojo execution failed.
> 18:05:25 CET Error An error occurred in phase mavenExecution with the
> exception org.apache.maven.lifecycle.LifecycleExecutionException:
> Internal error in the plugin manager executing goal
> 'org.jibx:maven-jibx-plugin:1.1.5:bind': Mojo execution failed.
> 18:05:25 CET Error An error occurred in phase reactorExecution with the
> exception org.apache.maven.lifecycle.LifecycleExecutionException:
> Internal error in the plugin manager executing goal
> 'org.jibx:maven-jibx-plugin:1.1.5:bind': Mojo execution failed.
>
>
> Doing a mvn clean package in the commadn line (Maven 2.0.10) is just
> working. I also tried to set the phase to process-classes, without success.
>
> After some time I read on this JiBx usergroup
> ( http://old.nabble.com/Binding-binding.xml-is-unusable-becaus e-of-validation-errors-td14892163.html)
> the error "Binding binding-menu.xml is unusable because of validation
> errors" might be due to the path Jibx is looking for the classes.
>
> Maybe the plugin cannot found the classes as they might not yet be
> generated by the eclipse compiler.
>
> Is IAM taking care of the maven phases inside Eclipse?
>
>
> Thx in advance for any help
>
> ----
> For eventual readers, i found a workaround : 1. I set the
> maven-plugin-phase to process-classes
> 2. Eclipse does the compiling job (with the debug info)
> 3. In the command line, I execute "mvn process-classes" (Doing so in
> Eclipse with Execute Goal raises the above mentioned error)
> 4. In Eclipse it's now possible to run the application in debug mode!
>
> It's far from perfect but it is working. Don't yet know if it's going to
> be accepted by the staff.
Previous Topic:Mvn classpath container empty after pom change
Next Topic:Problem using maven-jibx-plugin
Goto Forum:
  


Current Time: Sat Apr 19 23:18:28 EDT 2014

Powered by FUDForum. Page generated in 0.12283 seconds