Downloading orai18n-mapping.jar from Oracle Maven - oracle

I am following this guide to download ojdbc8.jar in my gradle build. But after deployment, I am having a java.lang.NoClassDefFoundError: oracle/i18n/util/LocaleMapper which seems to be from orai18n-mapping.jar.
Does anyone know if this jar is available in Oracle Maven? The alternative is to download the Oracle Server and get it from the jlib folder but we want to avoid this as much as possible.

I had the same issue. I looked at many sites and there is no Maven dependency for that.
My solution was to download JDev 11.2 (you can download the Java Edition, it is a 112MB zip file, not need to install).
Jar location: ../modules/oracle.nlsrtl_11.1.0/orai18n-mapping.jar
JDev:
http://www.oracle.com/technetwork/developer-tools/jdev/downloads/jdev11124download-1970562.html
I uploaded jar to Google Drive for you.
Here is orai18n-mapping.jar:
https://drive.google.com/open?id=1g3C-rEh0iTM6wxtivKueeVAumm04gmV1

By the looks you are using the maven.oracle.com repository. This installs a bunch of unnecessary stuff include the following. The xmlparserv2 will need to be exclude from being downloaded.
<dependency>
<groupId>com.oracle.jdbc</groupId>
<artifactId>xmlparserv2</artifactId>
<version>12.1.0.2</version>
</dependency>
If you downloaded the "ojdbc8" from the website it does not include this file, its not even listed and therefore should not be needed.

Related

Mule munit-runner artefact nit downloaded

I am experiencing an issue with downloading the munit-runner artefact through maven. For some reason the jar is not downloaded. Not for 1.3.2, 1.3.3 or 1.3.4
I have cleaned the repository cash and rebuild but nothing seems to help.
The POM file looks according to the MuleSoft documentation.
Te specific error is:
Description Resource Path Location Type
Project 'xxx' is missing required library: '/home/xxxx/.m2/repository/com/mulesoft/munit/munit-runner/1.3.3-SNAPSHOT/munit-runner-1.3.3-SNAPSHOT.jar' xxx Build path Build Path Problem
I think the correct version to use for MUNIT is this one bellow:
<munit.version>1.3.1</munit.version>
<mule.munit.support.version>3.8.3</mule.munit.support.version>
Try the below version.
<munit.version>1.2.1</munit.version>
<mule.munit.support.version>3.7.4</mule.munit.support.version>
<dependency>
<groupId>com.mulesoft.munit</groupId>
<artifactId>munit-runner</artifactId>
<version>${munit.version}</version>
<scope>test</scope>
</dependency>`
if still you are facing the issue then copy the jar from your m2 repository if it is already downloaded otherwise download it from online and manually add it to the build path.
For future references you can find the latests versions of MUnit listed here:
https://docs.mulesoft.com/release-notes/munit-release-notes
Also, while it's cool for you to play with SNAPSHOT versions please notice that they are just SNAPSHOT thus not stable.
FYI our SNAPSHOT repositories are periodically clean so you may be pointing to an artifact that's not longer published

Is UCP in Oracle Maven Repository?

Trying to build an OJDBC app via Gradle, we can find com.oracle.jdbc:ojdbc7:12.1.0.2 in the Oracle Maven Repository at https://maven.oracle.com, but we can't get com.oracle.jdbc:ucp:12.1.0.2. This 'tutorial' link from Oracle suggests it should be available: https://blogs.oracle.com/dev2dev/entry/how_to_get_oracle_jdbc
Following the instructions in the article, using Maven and a Hello, World project, Maven pulls down ojdbc7.jar but it "could not find artifact com.oracle.jdbc:ucp:jar:12.1.0.2".
Is anyone else able to get it via Maven download? Is the GAV correct?
We have retrieved the file to deposit into a local repository of "things you can't get from Maven", so we have a workaround. But it seems like this should be available, and so should need to be in such a repository.
UCP is available on Oracle Maven Repository. The GAV is
<groupId>com.oracle.jdbc</groupId>
<artifactId>ucp</artifactId>
<version>12.1.0.2</version>
I just tested downloading the UCP POM file from https://www.oracle.com/content/secure/maven/content/com/oracle/jdbc/ucp/12.1.0.2/ucp-12.1.0.2.pom and it worked fine.
Please make sure to use your Oracle usename and password correctly.

need to download Stormpath Java SDK .jars to my application using Maven from github

I need to know how to download Stormpath Java SDK .jars and add them to my java web application using Maven from GitHub. I am using Netbeans IDE.
I am using http://docs.stormpath.com/java/quickstart/ instructions and https://docs.stormpath.com/java/servlet-plugin/
I am not sure of how to Add the Stormpath SDK into my project in netbeans.
Please give me step by step instruction
I'm a bit confused by the question - this is documented in the servlet quickstart. Just add this to your maven pom.xml file in the <dependencies> section:
<dependency>
<groupId>com.stormpath.sdk</groupId>
<artifactId>stormpath-servlet-plugin</artifactId>
<version>${stormpath.version}</version>
</dependency>
Where ${stormpath.version} is whatever version you want. At the time of this writing, that is 1.0.RC9.
After doing that and running mvn clean install, the SDK and its necessary dependencies will automatically be downloaded to your local ~/.m2/repository cache.
If this isn't enough information, there are tutorials for using Netbeans with Maven to help understand how the two work together.

Why after compiling/building my AWS sdk jar is only 3kb?

I was previously on 1.6.x and mvn clean install builds wit no issues; end up with a 10mb jar and able to run all my code.
Now I want to upgrade to 1.10.x for the new lambda/apig/ddb support, I changed the version from 1.6.x to 1.10.x.
But after I build with mvn clean install, I see the jar is only 3kb, why is that? Has something changed with the way the AWS sdk works? At least from I've seen, one new way is you can be pick specific services rather than the whole sdk.
Edit:
The 3kb jar has the following:
pom.properties:
version=1.10.66
groupId=com.amazonaws
artifactId=aws-java-sdk
pom.xml, which lists all the aws sdk services
Have you uncompresssed the jar file and looked up what is in that folder? Based on the information in your question, I guess you have just got your own source files there but not the dependencies. If any, maven dependencies are usually located at META-INF\maven in jar. BTW, do you use maven plugins? For example, maven-jar-plugin only outputs your source code in jar while maven-assembly-plugin also outputs maven dependencies.

how to manually install maven plugins, dependencies

i have installed Apache Maven 2.2.1, but this server doesn't have internet connection. So maven couldn't install basic plugins. Can i do it manually, could someone tell my how to do it, please.
I would suggest to do the needed build on a machine which has internet access and transfer the local maven repository later to the target machine.
Or better solution using a repository manager where this machine has access to which solves the problem completely.
http://mvnrepository.com/
Go to the MvnRepository, search for the one you need and download the binary. Store it in the appropriate local maven repository directories to be pulled in from there or manually add a reference to wherever you store the .jar

Resources