By default, Maven looks for artifacts in a remote repo called central (
http://repo1.maven.org/maven2/). However, the artifact you're asking about
does not exist there. So you need to configure a repo that does contain this
artifact so that Maven can get it. The "mirror" (of what?) could be that
repo.
One way of adding a repo is explained here:
http://thedevelopercorner.blogspot.com/2007/08/adding-repositories-to-maven-2.html
However, you can add it in the pom as well. Which way to go kind of depends
on your scenario. Adding the the pom makes i portable, while adding it to
the settings.xml file forces everyone to do this configure to their
environment.

/Anders

On Tue, Nov 3, 2009 at 01:16, Jared Jacobs <[email protected]> wrote:

> Hi -
>
> I'm very new to maven but, from what I understand, maven will download jars
> as needed from repo sites. However, it continually claimed it could not
> download org.eclipse.persistence:javax.persistence:jar:1.1.0
> and org.eclipse.persistence:eclipselink:jar:1.1.0. So, I went to a mirror,
> downloaded them myself and installed them both using the commands:
>
> mvn install:install-file -DgroupId=org.eclipse.persistence -DartifactId=*
> eclipselink* -Dversion=1.1.0 -Dpackaging=jar -Dfile=/path/to/file
>
> and
>
> mvn install:install-file -DgroupId=org.eclipse.persistence -DartifactId=*
> javax.persistence* -Dversion=1.1.0 -Dpackaging=jar -Dfile=/path/to/file
>
> But, now when I run "mvn compile" it complains about every persistence
> annotation saying that the symbol is not found.
>
> What now? I'm lost.
>
> Jared
>

Reply via email to