JSErrorCollector icon indicating copy to clipboard operation
JSErrorCollector copied to clipboard

Make the 'JSErrorCollector' jar available to Maven Central repository

Open mahadi087 opened this issue 12 years ago • 11 comments

Hi,

It could be great if you can make the JAR of 'JSErrorCollector' is available to the Maven central repository(http://search.maven.org/).

Regards, Mahadi

mahadi087 avatar Jan 02 '13 15:01 mahadi087

+1 for this

cambiph avatar Dec 05 '13 09:12 cambiph

Can this be done? Thanks

nxqamar avatar Feb 18 '14 15:02 nxqamar

It looks like it should deploy to Sonatype's OSS repo, but I can't find any artifact from this project over there.

gjoseph avatar May 05 '14 15:05 gjoseph

Hi Mark! thanks for sharing this, it would be great to provide maven dependency for this--> +100 for this, locally it can be used but while running over ci (jenkins) it has to come from central. (don't want to create my own server) , please suggest.

p00j4 avatar Jul 14 '14 03:07 p00j4

+1. I want to download this library from maven central ! Is there any plan to support maven repository? Is there anything I can do?

NozomiIto avatar Apr 09 '15 13:04 NozomiIto

For workaround, I tried using this jar in both maven "system" scope and "test" scope since this local jar file is used only in test code. But I can't do such a thing because maybe Maven does not allow multiple scopes in a dependency..

NozomiIto avatar Apr 09 '15 13:04 NozomiIto

@NozomiIto : you can have a work around for this just add the jar like in your project's lib folder and modify your repository tag to point it . Ex. add like this:

  <repository>
            <id>my-local-repo</id>
            <url>file://${basedir}/lib</url>
        </repository>

instead of

<repository>
            <id>central</id>
            <name>Central</name>
            <url>http://repo1.maven.org/maven2</url>
        </repository>

now it will be added to your local maven repo and will serve the exactly same purpose.

p00j4 avatar Apr 09 '15 16:04 p00j4

Thank you. I tried it with your advice and this article, but dependency is not resolved..

I tried

  <repositories>
      <repository>
      <id>local-repository</id>
      <url>file://${project.basedir}/libs</url>
    </repository>
  </repositories>

and

  <repositories>
      <repository>
      <id>local-repository</id>
      <url>file:${project.basedir}/libs</url>
    </repository>
  </repositories>

my local repository structure:

localrepository

NozomiIto avatar Apr 10 '15 00:04 NozomiIto

did you add dependency in pom ? like in your case it should look like this-

<dependency>
            <groupId>net.jsourcerer.webdriver</groupId>
            <artifactId>JSErrorCollector</artifactId>
            <version>0.6</version>
</dependency>

p00j4 avatar Apr 10 '15 16:04 p00j4

Yes, I added that dependency.

NozomiIto avatar Apr 11 '15 13:04 NozomiIto

With Ammonite I can download it successfully with:

interp.repositories() ++= Seq(
	coursier.MavenRepository("http://repo.spring.io/libs-milestone/")
)
import $ivy.`net.jsourcerer.webdriver:JSErrorCollector:0.5-atlassian-2`

DavidPerezIngeniero avatar May 21 '19 14:05 DavidPerezIngeniero