We are using a .properties file for the jdbc connect string.duh. failsafe needs the properties file values. Of course I mess with this for 3 days then ask why it doesn't work and right away take a closer look and see I never put the properties-maven-plugin in the plugins section, just in the pluginManagement
I am loading the .properties file with the <file> tag using read-project-properties in the properties-maven-plugin.
section.We are using a .properties file for the jdbc connect string.duh. failsafe needs the properties file values. Of course I mess with this for 3 days then ask why it doesn't work and right away take a closer look and see I never put the properties-maven-plugin in the plugins section, just in the pluginManagement
I am loading the .properties file with the <file> tag using read-project-properties in the properties-maven-plugin.
Now what am I missing?
I deleted the integration-test goal, then ran these commands, all success. mvn validate
mvn compile
mvn test
mvn package
mvn verify
mvn install
Then I put the integration-test goal back in and ran mvn clean install and it fails database connection again.
section.We are using a .properties file for the jdbc connect string.duh. failsafe needs the properties file values. Of course I mess with this for 3 days then ask why it doesn't work and right away take a closer look and see I never put the properties-maven-plugin in the plugins section, just in the pluginManagement
I am loading the .properties file with the <file> tag using read-project-properties in the properties-maven-plugin.
What is the output from maven with -e and -X?
Jeff Coffield
Unit tests are fast. I hate these integration tests.
I took out the integration-test goal and ran another full mvn clean install and it succeeded.
I put it back in and ran mvn -e -X install. It's just now finishing, with "network adapter could not establish the connection".
Have you checked the server side logs and possibly turned on debuggingServer side? It's a jdbc connection, to an oracle database on the same machine.
there to see what, if any, shows there?
Tests run fine if I right click them to run as junit in eclipse.
What is the output from maven with -e and -X?
Jeff Coffield
Have you checked the server side logs and possibly turned on debuggingServer side? It's a jdbc connection, to an oracle database on the same machine. Tests run fine if I right click them to run as junit in eclipse.
there to see what, if any, shows there?
But is there a difference between when it connects and it doesn't in the server logs?Again, there is no server? I'm running a maven build on localhost with integration tests failing to connect to an oracle service running on localhost. What log are we looking for?
But is there a difference between when it connects and it doesn't in theAgain, there is no server? I'm running a maven build on localhost with integration tests failing to connect to an oracle service running on localhost. What log are we looking for?
server logs?
The Oracle service should have a log file that you can set a debug levelsolved it. The connection machine name, port is in .properties files.
on to see what is being passed to it. That will tell you if any
connection is made when the tests fail and what is being passed.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 165:27:58 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,524 |