2 Replies Latest reply on Jun 12, 2012 9:56 AM by gonzalad

    maven validator throws IllegalStateException: Unable to find an annotation scanner implementation

    gonzalad Apprentice

      Hello,

       

      I'm trying to validate my jca connector with Ironjacamar maven validator (as documented here : http://docs.jboss.org/ironjacamar/userguide/1.1/en-US/html/validator.html#validator_maven)

       

      I get the following error when running mvn clean install on my pom.xml :

       

      java.lang.IllegalStateException: Unable to find an annotation scanner implementa
      tion
              at org.jboss.jca.common.spi.annotations.repository.AnnotationScannerFact
      ory.getAnnotationScanner(AnnotationScannerFactory.java:72)
              at org.jboss.jca.validator.Validation.validate(Validation.java:148)
              at org.jboss.jca.validator.maven.ValidatorMojo.execute(ValidatorMojo.jav
      a:72)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
      BuildPluginManager.java:101)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
      .java:209)
      

       

      My pom.xml contains

      <plugin>
        <groupId>org.jboss.ironjacamar</groupId>
        <artifactId>ironjacamar-validator-maven</artifactId>
        <version>1.1.0.Alpha7</version>
        <executions>
          <execution>
            <goals>
              <goal>validate</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <outputDir>.</outputDir>
          <rarFile>${project.build.directory}/${project.build.finalName}.rar</rarFile>
        </configuration>
      </plugin>
      

       

      If i add a dependency to ironjacamar-common-impl-papaki, everything runs fine :

      <plugin>
        <groupId>org.jboss.ironjacamar</groupId>
        <artifactId>ironjacamar-validator-maven</artifactId>
        <version>1.1.0.Alpha7</version>
        <dependencies>
          <dependency>
            <groupId>org.jboss.ironjacamar</groupId>
            <artifactId>ironjacamar-common-impl-papaki</artifactId>
            <version>1.1.0.Alpha7</version>
          </dependency>
        </dependencies>
        <executions>
          <execution>
            <goals>
              <goal>validate</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <outputDir>.</outputDir>
          <rarFile>${project.build.directory}/${project.build.finalName}.rar</rarFile>
        </configuration>
      </plugin>
      

       

       

      Should I open an issue ?

       

      Thanks