java - Maven - Set Properties for Dependency -


how set properties dependency?

i'm in process of converting java project maven project.

before converting maven, had jar iijdbc.jar , iijdbc.properties file in src/main/webapp/web-inf/lib. peachy.

now removed src/main/webapp/web-inf/lib except iijdbc.properties , added dependency:

<dependency>     <groupid>com.ingres.jdbc</groupid>     <artifactid>iijdbc</artifactid>     <version>9.3-3.8.3</version> </dependency> 

i'm getting error when running project because iijdbc.properties not being picked used. added classpath, it's still not being used.

iijdbc.properties contains line:

ingres.jdbc.date.empty=null 

i did notice if add line tomcat arguments -dingres.jdbc.date.empty=null, works fine too, setup piece next developer comes along , i'd avoid solution if possible.

is there way add line ingres.jdbc.date.empty=null iijdbc dependency project works used without having have file iijdbc.properties?

try move file src/main/resources instead. maven web-inf/lib content auto-generated. convention maven put resources (like properties) src/main/resources folder.

finally, maven doesn't control tomcat environment (or in test/debug modes), , cannot add property on dependency.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -