Skip to content
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

Qulice doesn't support hibernate-validator 5.2.1 #465

Closed
asaen opened this issue Sep 22, 2015 · 10 comments
Closed

Qulice doesn't support hibernate-validator 5.2.1 #465

asaen opened this issue Sep 22, 2015 · 10 comments
Assignees
Labels

Comments

@asaen
Copy link

asaen commented Sep 22, 2015

I've configured qulice as follows:

<plugin>
    <groupId>com.qulice</groupId>
    <artifactId>qulice-maven-plugin</artifactId>
    <dependencies>
        <dependency>
            <groupId>javax.validation</groupId>
            <artifactId>validation-api</artifactId>
            <version>1.1.0.CR3</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>5.2.1.Final</version>
            <scope>runtime</scope>
        </dependency>
    </dependencies>
    <configuration>
        <license>file:${basedir}/LICENSE</license>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>check</goal>
            </goals>
        </execution>
    </executions>
</plugin>

And this leads to an output message in logs:

[ERROR] JSR-303 validator failed to initialize: HV000183: Unable to load 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on the classpath, or use ParameterMessageInterpolator instead (see http://aspects.jcabi.com/jsr-303.html)

It works fine with 5.0.0.Final version

@davvd
Copy link

davvd commented Sep 25, 2015

@yegor256 please dispatch this issue

@yegor256
Copy link
Owner

@darkled I don't think you need to provide any dependencies there explicitly. This should work:

<plugin>
    <groupId>com.qulice</groupId>
    <artifactId>qulice-maven-plugin</artifactId>
    <configuration>
        <license>file:${basedir}/LICENSE</license>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>check</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Or it doesn't work?

@asaen
Copy link
Author

asaen commented Sep 25, 2015

@yegor256 it doesn't:

[ERROR] JSR-303 validator failed to initialize: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath. (see http://aspects.jcabi.com/jsr-303.html)

hibernate-validator is a compile-scoped dependency in pom.xml (I tried both 5.2.1 and 5.0.0)

@davvd
Copy link

davvd commented Sep 28, 2015

@krzyk it's yours, budget is 30 mins, please go ahead

@davvd
Copy link

davvd commented Sep 28, 2015

@darkled many thanks for the report, I topped your account for 15 mins, transaction 65968411

@krzyk
Copy link
Collaborator

krzyk commented Sep 28, 2015

@davvd please see PR #468

@davvd
Copy link

davvd commented Sep 29, 2015

@davvd please see PR #468

@krzyk I will take a look, thanks

krzyk added a commit to krzyk/qulice that referenced this issue Sep 29, 2015
@krzyk
Copy link
Collaborator

krzyk commented Sep 30, 2015

@darkled snapshot qulice version now should not required hibernate validators

@asaen
Copy link
Author

asaen commented Sep 30, 2015

@krzyk right, thanks, closing the issue.

@asaen asaen closed this as completed Sep 30, 2015
@davvd
Copy link

davvd commented Oct 2, 2015

@krzyk 30 mins sent to your balance (ID 66417072), many thanks! It took 72 hours and 4 mins.; +30 to your rating, your total score is +3196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants