|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
PersistenceHi -
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 |
|
|
Re: PersistenceBy 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 <jjinsantacruz@...> 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 > |
|
|
RE: Persistenceyou'll need to install the package/artifactId/version from eclipse plugins site http://www.eclipse.org/eclipselink/downloads/ i suggest contacting eclipse support for any issues with their installer Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Mon, 2 Nov 2009 16:16:28 -0800 > Subject: Persistence > From: jjinsantacruz@... > To: users@... > > 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 _________________________________________________________________ Bing brings you maps, menus, and reviews organized in one place. http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1 |
|
|
Re: PersistenceAm Tuesday 03 November 2009 11:43:43 schrieb Anders Hammar:
> 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. Note, that adding repositories to your POM is a bad idea: http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/ hth, - martin |
|
|
Re: PersistenceIf you read the full blog post you'll see that it is not black and white.
There are use cases for putting it in the pom. /Anders On Tue, Nov 3, 2009 at 17:07, Martin Höller <martin@...> wrote: > Am Tuesday 03 November 2009 11:43:43 schrieb Anders Hammar: > > 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. > > Note, that adding repositories to your POM is a bad idea: > > http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/ > > hth, > - martin > |
|
|
Re: PersistenceI read the full blog and I didn't say "never ever do it" but just mentioned
that it's a bad idea, and that's what the title of the blog (and my opinion) is :) I should have added "it's a bad idea in most cases" though. - martin Am Tuesday 03 November 2009 22:43:59 schrieb Anders Hammar: > If you read the full blog post you'll see that it is not black and white. > There are use cases for putting it in the pom. > > /Anders > > On Tue, Nov 3, 2009 at 17:07, Martin Höller <martin@...> wrote: > > Am Tuesday 03 November 2009 11:43:43 schrieb Anders Hammar: > > > One way of adding a repo is explained here: > > > > http://thedevelopercorner.blogspot.com/2007/08/adding-repositories-to-mav > >en > > > > >-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. > > > > Note, that adding repositories to your POM is a bad idea: > > > > http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-p > >oms-is-a-bad-idea/ > > > > hth, > > - martin -- Martin Höller | martin.hoeller@... *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-40 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 |
| Free embeddable forum powered by Nabble | Forum Help |