mahesh
mahesh

Reputation: 1633

what is the maven repository for jconnect2.jar

I am working on maven java project,I need to check if the connection to db is success every 2 hours.

I am loading Sybase db driver url. so I need maven repository dependency details for jconnec2.jar

is there any difference if I add the jar in my class path in eclipse if there is no maven dependency? is it good practice?

Upvotes: 2

Views: 9716

Answers (4)

SyParth
SyParth

Reputation: 211

You can use this ,

<dependencies>
        <dependency>
            <groupId>net.sourceforge.jtds</groupId>
            <artifactId>jtds</artifactId>
            <version>1.3.1</version>
        </dependency>
</dependencies>

Upvotes: 0

Khalil
Khalil

Reputation: 259

Try this and let me know

<dependency>
   <groupId>com.sybase</groupId>
   <artifactId>jconnect</artifactId>
   <version>6.0.5</version>
   <scope>test</scope>
</dependency>

or

<dependencies>
     <dependency>
     <groupId>com.sybase.jconnect</groupId>
     <artifactId>jconnect</artifactId>
     <version>6.05-26023</version>
</dependency>

Upvotes: 0

hd1
hd1

Reputation: 34657

You can use jTDS for Sybase or add the driver to your local repository.

Upvotes: 0

Pedantic
Pedantic

Reputation: 5022

That's fine, you can do that rather than use a Maven repository. You can also add it to your src/main/webapp/WEB-INF/lib directory in Eclipse, too, so it deploys when you create a package.

Another alternative if you want to use Maven is to host a local repository and manually add jconnec2.jar to it.

Upvotes: 1

Related Questions