JiBX
  1. JiBX
  2. JIBX-382

Includes patterns for bindings are not handled properly

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JiBX 1.2.2
    • Fix Version/s: JiBX 1.2.3
    • Component/s: maven plugin
    • Labels:
      None
    • Environment:
      Linux, Maven 2.2.1, JDK 1.6.0_19
    • Number of attachments :
      0

      Description

      While the following will work:
      <plugin>
      <groupId>org.jibx</groupId>
      <artifactId>maven-jibx-plugin</artifactId>
      <version>1.2.2</version>

      <configuration>
      <directory>src/main/resources/META-INF/jibx</directory>
      <includes>
      <includes>*-binding.xml</includes>
      </includes>
      <verbose>true</verbose>
      </configuration>
      <executions>
      <execution>
      <goals>
      <goal>bind</goal>
      </goals>
      </execution>
      </executions>
      </plugin>

      Going a bit further in terms of configuration, the following will fail:

      <plugin>
      <groupId>org.jibx</groupId>
      <artifactId>maven-jibx-plugin</artifactId>
      <version>1.2.2</version>

      <configuration>
      <directory>src/main/resources/META-INF/jibx</directory>
      <includes>
      <includes>*/-binding.xml</includes>
      </includes>
      <verbose>true</verbose>
      </configuration>
      <executions>
      <execution>
      <goals>
      <goal>bind</goal>
      </goals>
      </execution>
      </executions>
      </plugin>

        Activity

        Hide
        Martin Todorov added a comment -

        The includes pattern got somehow mixed. This is the one with which it will not work:
        <includes>**/**-binding.xml</includes>

        Show
        Martin Todorov added a comment - The includes pattern got somehow mixed. This is the one with which it will not work: <includes>**/**-binding.xml</includes>
        Hide
        Don Corley added a comment -

        Martin,
        The maven-jibx-plugin has been re-written for version 1.2.3 (which should be out within the next few weeks).
        It now uses the plexus utilities for file selection. This should fix your problems.
        To use the new code, please check it out of the cvs dev repository and build it. ie., type:

        cvs -z3 -d:pserver:anonymous@jibx.cvs.sourceforge.net:/cvsroot/jibx co -P maven-jibx-plugin
        cd maven-jibx-plugin (or dir maven-jibx-plugin if you are using windows)
        mvn install
        mvn site (this will install the new documentation on your hard disk at target/site
        (ignore any warnings)

        This will overwrite your maven-jibx-plugin version 1.2.2 with the new code.
        Now try to build your maven project. It should work as expected.
        I am marking this bug as fixed, but I'll wait for the 1.2.3 to close it.
        Thanks,
        Don

        Show
        Don Corley added a comment - Martin, The maven-jibx-plugin has been re-written for version 1.2.3 (which should be out within the next few weeks). It now uses the plexus utilities for file selection. This should fix your problems. To use the new code, please check it out of the cvs dev repository and build it. ie., type: cvs -z3 -d:pserver:anonymous@jibx.cvs.sourceforge.net:/cvsroot/jibx co -P maven-jibx-plugin cd maven-jibx-plugin (or dir maven-jibx-plugin if you are using windows) mvn install mvn site (this will install the new documentation on your hard disk at target/site (ignore any warnings) This will overwrite your maven-jibx-plugin version 1.2.2 with the new code. Now try to build your maven project. It should work as expected. I am marking this bug as fixed, but I'll wait for the 1.2.3 to close it. Thanks, Don

          People

          • Assignee:
            Don Corley
            Reporter:
            Martin Todorov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: