2

I need to compile a project with this dependency:

<dependency>
    <groupId>com.wadpam</groupId>
    <artifactId>docrest-doclet</artifactId>
    <version>1.21</version>
    <scope>provided</scope>
</dependency>

(and a lot more like this)

In public maven repositories there's no version 1.21 the oldest one is 1.22. Where can I find that jar?

Mr. Polywhirl
  • 42,981
  • 12
  • 84
  • 132
Esteve
  • 1,789
  • 18
  • 23

2 Answers2

2

I think the best way to do it is creating jar-with-dependencies. It was described also here

Community
  • 1
  • 1
dawidklos
  • 902
  • 1
  • 9
  • 32
1

You can try and built it from source from this github repo:

https://github.com/sosandstrom/docrest

From the command line you can do the following:

git clone https://github.com/sosandstrom/docrest.git
cd docrest
git checkout docrest-1.21
mavroprovato
  • 8,023
  • 5
  • 37
  • 52
  • So he has to compile the dependency himself? – Unihedron Jul 25 '14 at 10:17
  • I can't find it in Maven Central or the JBoss Maven repository, so I guess this is the only way – mavroprovato Jul 25 '14 at 10:20
  • Well it works on your computer because the mvn clean install will put the finalized dependency in your local maven repository. The build is still not going to work anywhere else, or after you delete you .m2 directory because then Maven will have to try and find it online again. Keep that in mind. It would be more portable to use something like the addjars plugin: https://code.google.com/p/addjars-maven-plugin/wiki/UsagePage – Gimby Jul 25 '14 at 13:27
  • I know, I can deploy these artifacts in a private nexus server to share with my team. But what I need to do now is write unit tests and upgrade versions to latest ones. – Esteve Jul 30 '14 at 07:36