Chas,
Please send your poms.
Note:
Wiping the maven repo is the CTRL-ALT-DEL windows-style fix for maven. You
can just delete the Lift directory (as long as you get the meta-data poms
associated with it) you should be ok. Once again, this is more of a hack,
than a fix. If you're in a jam, just do it. If not, it's usually better to
figure out why it's bombing so you can not run into the problem again.
Also remember that if you"mvn install" something it goes into your local
repo. The mvn -U command tells maven to check the remote repositories for
newer versions *than the ones found in your local repository* (i.e. if you
install locally, you will automatically use that version and the -U will not
do anything useful).
One side note, please make sure you're not using ${pom.version} in
dependencies with snapshot pom versions... (see here:
http://jira.codehaus.org/browse/MNG-2796 )
Cheers,
-Josh
On Mon, Dec 29, 2008 at 7:12 PM, Charles F. Munat <[email protected]> wrote:
>
> Is it necessary to wipe the whole repo, or just net/liftweb? It seems a
> big pain to keep re-downloading everything every week or so.
>
> Thanks for the help. I ended up downloading a clean copy of lift and
> then running mvn install, which installed everything nicely. So now,
> will it update itself when I run mvn with the -u flag, or will I need to
> reinstall lift manually after each update? Maybe that's the problem...
>
> Is this the way it's supposed to work, or is something a bit broken with
> Maven?
>
> Thanks!
>
> Chas.
>
> Derek Chen-Becker wrote:
> > It should be able to pull lift-webkit from the repos. I'm guessing you
> > already have, but just as a sanity check did you wipe your maven repo?
> >
> > Derek
> >
> > On Mon, Dec 29, 2008 at 3:24 PM, Charles F. Munat <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >
> > I am using the JPA demo as my basis and have tried to change the
> > included pom.xml from one that inherits from the main lift pom.xml to
> a
> > standalone pom.xml, but I am missing something because I continue to
> get
> > the error below. Can anyone post a copy of a good standalone pom.xml
> (or
> > all three) from a JPA/Lift site? Thanks!
> >
> > Failed to resolve artifact.
> >
> > Missing:
> > ----------
> > 1) net.liftweb:lift-webkit:jar:0.10-SNAPSHOT
> >
> > Try downloading the file manually from the project website.
> >
> > Then, install it using the command:
> > mvn install:install-file -DgroupId=net.liftweb
> > -DartifactId=lift-webkit -Dversion=0.10-SNAPSHOT -Dpackaging=jar
> > -Dfile=/path/to/file
> >
> > Alternatively, if you host your own repository you can deploy the
> > file there:
> > mvn deploy:deploy-file -DgroupId=net.liftweb
> > -DartifactId=lift-webkit -Dversion=0.10-SNAPSHOT -Dpackaging=jar
> > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> >
> > Path to dependency:
> > 1) com.xxx:yyy-app:war:0.10-SNAPSHOT
> > 2) net.liftweb:lift-webkit:jar:0.10-SNAPSHOT
> >
> > ----------
> > 1 required artifact is missing.
> >
> > Chas.
> >
> >
> >
> >
> > >
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---