Looking at the pom.xml more closely, it seems the author did some scary scary
things.
<code>
<dependency>
<groupId>common-binaries</groupId>
<artifactId>junit</artifactId>
<version>1</version>
</dependency>
<dependency>
<groupId>common-binaries</groupId>
<artifactId>junitee</artifactId>
<version>1</version>
</dependency>
<dependency>
<groupId>common-binaries</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>1</version>
</dependency>
</code>
How am I going to find out the version number? They aren't listed in our
source control. I only have stuff like
common-binaries/hibernate-search/hibernate-search.jar
And all the versions are set to 1 in the pom, when clearly they aren't
actually 1.
baerrach wrote:
>
> use http://mvnrepository.com/ and paste in the jar file names.
>
> "common-binaries" isn't the groupId you should be using.
> You need to find the official one.
>
> So picking "log4j" as an example,
> http://mvnrepository.com/search.html?query=log4j returns 28 hits.
> You need to determine which is the correct one.
>
> There is a description underneath, the most likely correct one would
> be "Apache Log4j - Apache Log4j"
> You can then select it http://mvnrepository.com/artifact/log4j/log4j
> and see all versions that match
>
> Since your internal repo hasn't kept the version history, you are
> stuffed working out what they are currently building against.
> I would just go about picking the latest values.
>
> The web page will also give you the POM Dependency value you need to
> paste into your pom as well.
> e.g.:
> <dependency>
> <groupId>log4j</groupId>
> <artifactId>log4j</artifactId>
> <version>1.2.15</version>
> </dependency>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/Trouble-finding-correct-repositories-tp22900078p22900192.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]