Closed AlexanderNZ closed 2 years ago
You can use the trial
branch, which provides various examples that work just fine with the trial version.
In your case, you can check out this Spring Boot example.
First, try to run the tests from Maven. If it works in Maven, but it does not work in IntelliJ IDEA, then you know it's an IDE problem, in which case you could try a different IDEA version.
Thanks, Vlad
Looks like it was a Gradle issue. I needed to add mavenLocal()
to my build.gradle
- for projects where you are pulling in your own libraries this is probably quite a common thing, but for me it was not :)
All fixed.
I'm glad you found the problem. Cheers!
Hi All,
I'm having trouble installing the trial for hypersistence optimizer. I want to roll it out in my org but also want a bit more detail before buying.
Here's what I've done:
./maven-install.sh
I have not changed any logging settings as I just wanted to get it running, but don't think this would result in the dependency not being picked up
I'm on Hibernate 5.6.3 so sckipped the 'Decorating the Persistence Unit' Section
Everything so far looks like it has worked and been fine. When I come to step 6: Instantiating Hypersistence Optimizer I am on Spring Boot and so have done the below, per the installation guide:
This is as far as I've gotten. The dependency looks installed, I can see it in my project dependency tree, but my IDE (IntelliJ) can't detect it or import the symbol
I tried to follow the Spring Boot example repo, and manually added the dependencies that project uses: https://github.com/vladmihalcea/hypersistence-optimizer/blob/a35b0dbc6c003e660f52a205d7c3ab11b04ef3d3/hypersistence-optimizer-test-case/src/test/java/io/hypersistence/optimizer/util/AbstractHypersistenceOptimizerTest.java#L3 but these are not detected either:
The contents of
~/.m2/repository/io/hypersistence/hypersistence-optimizer/2.6.0-trial
are:I can't think of why this might be happening. Has anyone encountered this before? I'm sure it's something simple that I've missed, but I've also gone through the install doc a few times now and haven't found any steps that I've missed (aside from configuring the logger)
Is anyone able to spot anything or offer any advice?