Comments (11)
You're right. Unfortunately, Maven does not have a test-runtime
scope, so only moving the dependency to the oracle
profile does the trick. I pushed a new change to do that. Thanks for the tip.
from high-performance-java-persistence.
The README tells exactly what you have to do.
from high-performance-java-persistence.
@vladmihalcea please reconsider this. That is a bad OOTB experience.
Where is it written in the README that I need to register with Oracle to run the tests against PostgreSQL?!
from high-performance-java-persistence.
BTW, the README says exactly:
The Unit Tests are run against HSQLDB, so no preliminary set-ups are required.
How should I do this?
from high-performance-java-persistence.
Just comment the Oracle repository if you don't want to set it up. The tests compile even without the Oracle JDBC Driver.
from high-performance-java-persistence.
Sure, that's what I did. However, a lot of other people will have the same experience and need to do the same.
If you like, I can do a PR with a suggestion how to solve this with a Maven profile.
To run the tests with Oracle one would need to do mvn -Poracle test
then.
In IntelliJ you can enable the profiles in the Maven tool window.
I did something similar here:
https://github.com/cruftex/jsr107-test-zoo/blob/master/pom.xml
If you don't like the idea, that's okay too.
The project is really nice!
Ultimately I would recommend working towards something like:
# run the tests with embedded SQL:
mvn test
# run the integration tests with Oracle:
mvn -Poracle verify
# run the integration tests with MySQL:
mvn -Pmysql verify
# run integration tests for performance on PostgreSQL:
mvn -Pperformance,postgresql verify
from high-performance-java-persistence.
I'll use a profile activated by an environment variable.
from high-performance-java-persistence.
Fixed. The Oracle repo must now be activated explicitly.
from high-performance-java-persistence.
@vladmihalcea please mind that you need to move the JDBC driver dependency into the profile as well.
from high-performance-java-persistence.
The driver scope is provided so it won't be required during compile. So, it should be just fine.
from high-performance-java-persistence.
Scope provided
means that it is not packaged, since present at the target environment.
It's used for compiling.
If you don't want it in the compile
scope, then the scope runtime
is the correct one.
However, runtime
would be present during running the tests.
from high-performance-java-persistence.
Related Issues (20)
- The ebook from leanpub.com is impossible to buy from Russia HOT 5
- Issue with serialization HOT 1
- Need Instruction of Maven Configurations for downloading Oracle JDBC driver HOT 1
- URL link is broken inside Readme.md -MySQL section "here" link in sentense "Exact instructions can be found in here." HOT 5
- MariaDB Sequence Identifier Test-GlobalIdentifierGeneratorScopeTest.java HOT 1
- Oracle schema or MSSQL Schema? HOT 4
- CriteriaBulkUpdateDeleteTest.java is referencing a unimplmented method of CriteriaBuilder HOT 1
- The UnidirectionalOrderedOneToManyTest failed for "delete 1st entry" case HOT 1
- What is the difference between JSP and servlet?
- Source code does not match book HOT 3
- Support for Hibernate Search HOT 1
- Unidirectional OneToOne has @GeneratedValue inside the Post_Details. HOT 1
- Book typo HOT 1
- Problem with CompositeId and Bidirectional @OneToMany HOT 1
- Set source code encoding to UTF-8 HOT 4
- methods ambiguous issues on ide HOT 2
- Set default JVM language as English for maven on non-english operating systems. HOT 2
- Cannot successfully testCompile, are some classes inside JOOQ missing ? HOT 2
- Activate the jOOQ module based on an Environment Variable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from high-performance-java-persistence.