I'm trying to set up Arquillian tests for an application running in a Websphere (WAS8) container. For this I used the Maven coordinates I found on arquillian.org:
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-was-remote-8</artifactId>
<version>1.0.0.Beta2</version>
</dependency>
Unfortunately, no arquillian-was-* artifacts can be found via the two mentioned Maven repositories Maven Central and the JBoss Maven Repository.
Any ideas how I could get a hold of the required Arquillian WAS8 container adapter via Maven? The source code is located on github but it's unclear how to obtain the required JAR files...
Check this link : https://docs.jboss.org/author/display/ARQ/WAS+V8.0+-+Remote .
You have to build it yourself because as the link says : "This container implementation is currently not available in public maven repositories." Build instructions can be found on the link. Good Luck ! :)
Related
In java class I am trying to get rid of ClassCast exception as below.
java.lang.ClassCastException: weblogic.jdbc.wrapper.Array_oracle_sql_ARRAY
Using
if (someArray instanceof weblogic.jdbc.wrapper.Array)
ar = (oracle.sql.ARRAY) ((weblogic.jdbc.wrapper.Array)someArray).unwrap(Class.forName("oracle.sql.ARRAY")));
else
ar = (oracle.sql.ARRAY)someArray;
But I am not able to find the maven dependency having weblogic.jdbc.wrapper.Array
http://adfpractice-fedor.blogspot.com/2011/09/weblogic-wrapping-data-types.html
Most likely the tutorial that you're reffering to was created using JDeveloper, which has a bunch of WebLogic jars bundled.
If you're not using JDeveloper, here's what you can do - first identify which jar contains the class (the most lightweight one I could find is com.bea.core.datasource6.jar - this jar is a part of JDeveloper):
<dependency>
<groupId>com.oracle.weblogic</groupId>
<artifactId>com.bea.core.datasource6</artifactId>
<version>12.2.1-0-0</version>
</dependency>
then, in order to resolve the jar, either:
use the Oracle Maven repository (you need to register in order to use it):
OR
use the Oracle Maven Synchronization plugin (WebLogic or JDeveloper install required) to populate your local (or remote) Maven repository with Oracle jars - this basically takes most jars from a WebLogic install and runs a mvn install:install-file on them
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.
My develop env is eclipse STS.
I am stuck in this issue as follow:
First add local jar file in pom.xml
<dependency>
<groupId>testjdbc</groupId>
<artifactId>test-jdbc</artifactId>
<version>8.4.1.2032</version>
<scope>system</scope>
<systemPath>${project.basedir}/patch/testjdbc.jar</systemPath>
</dependency>
It is ok in develop environment not compile error and I check this file also in pakcge file after packaged this project.
But it is not found when running in STS Server.
I have checked "Browse Deployment Location" and testjdbc.jar does not existed.
This works as designed. System scope dependencies will not be packed into your application.
provided This is much like compile, but indicates you expect the JDK
or a container to provide the dependency at runtime. For example, when
building a web application for the Java Enterprise Edition, you would
set the dependency on the Servlet API and related Java EE APIs to
scope provided because the web container provides those classes. This
scope is only available on the compilation and test classpath, and is
not transitive.
system This scope is similar to provided except that you have to
provide the JAR which contains it explicitly. The artifact is always
available and is not looked up in a repository.
See Maven Dependency Scope
According to https://github.com/Netbreeze-GmbH/boilerpipe the maven dependency for boiler pipe is
<dependency>
<groupId>de.l3s.boilerpipe</groupId>
<artifactId>boilerpipe-core</artifactId>
<version>1.2.2</version>
</dependency>
But this dependency is not available via Maven.
Closest I found is http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22de.l3s.boilerpipe%22%20AND%20a%3A%22boilerpipe%22 this dependency is version 1.1.0 . How I can add dependency 1.2.2?
Update :
I found the dependency at this location : https://mvnrepository.com/artifact/com.syncthemall/boilerpipe/1.2.2
The simply answer here is: You can't cause it does not exist in Maven Central. The location you gave https://mvnrepository.com/artifact/com.syncthemall/boilerpipe/1.2.2 is not Maven Central. This gives a location on Github repository (source repository) which hasn't deployed yet the version 1.2.2 to Maven Central...
What you might need to do is to clone the GitHub repo and build it locally and install it yourself..or best would be using a repository manager and deploy it locally in your corporate network...
You can build project with mvn clean install. That will install the artifact to your local repository. Then you can use it.
If you need it globally best you can do is to deploy the artifact (you build) to a custom maven repository. Or ask maintainers to deploy it to central repository.
I migrate a eclipse based project to maven based one.
<dependency>
<groupId>com.paypal.sdk</groupId>
<artifactId>paypal-base</artifactId>
<version>1.4.4</version>
</dependency>
I need version 1.4.4 or later (because the original jar file we were using was version 1.4.4). But in public repositories I find only version 1.0.0.
EDIT: We solved this problem while ago by set-uping private repo. Seems that PayPal have finally uploaded their API jars in the official maven repo.
The Maven way of solving this kind of problem is to set up your own Maven repository (e.g. Sonatype Nexus). Then you can upload the artifacts you need.
The "quick and dirty" solution would be to copy the required Jar file into a folder and include this file as dependency by using the scope "system" (see Maven documentation)