question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

publish to maven central repo && using elasticsearch-jdbc as a library

See original GitHub issue

Hi, I want call elasticsearch-jdbc in my application like this: new JDBCImporter().setSettings(settings).run();

then it will be more flexible, e.g. add a web ui

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eladtamarycommented, Jun 16, 2016

I had the same NoClassDefFoundError issue. Adding log4j-to-slf4j bridge fixed it.

<dependency>
    <groupId>org.xbib.elasticsearch.importer</groupId>
    <artifactId>elasticsearch-jdbc</artifactId>
    <version>2.3.1.0</version>
    <exclusions>
        <exclusion>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
        </exclusion>
        <exclusion>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-slf4j-impl</artifactId>
        </exclusion>
    </exclusions>
</dependency>

<dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-to-slf4j</artifactId>
    <version>2.6.1</version>
</dependency>

0reactions
jprantecommented, Sep 14, 2016

JDBC importer is not ready to be used as a library, there are too many bugs. It’s not on Maven central repository.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven – Guide to uploading artifacts to the Central Repository
Guide to uploading artifacts to the Central Repository. In order for users of Maven to utilize artifacts produced by your project, you must...
Read more >
How to Publish Artifacts to Maven Central - DZone
How to publish your first artifact to Maven Central with GitHub Actions made easy. Contribute to the Open Source ecosystem without ending up ......
Read more >
How to Publish a Java Library to Maven Central - YouTube
Overview of releasing a Java Maven project to Maven Central to share it with the rest of the world.There are a few extra...
Read more >
How to Upload an Open-Source Java Library to Maven Central
xml, sign the generated artifacts with GnuPG and, finally, deploy to Sonatype's Nexus Repository Manager. STEP ONE: The first step is for us...
Read more >
Publishing existing libraries to Maven Central - ProAndroidDev
You can create a Sonatype account by following the steps mentioned in above Marton Braun's post. Navigate to your existing library repository.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found