Hi, David -

Thanks for your prompt response!

On Feb 6, 4:45 pm, David Bernard <david.bernard...@gmail.com> wrote:
> retrotranslator-runtime version 1.2.1 is available in central
> repository (the default one) since 2007.
> see :http://repo2.maven.org/maven2/net/sf/retrotranslator/retrotranslator-...
>
> May be you tried to build offline, or you define/use wrong
> mirror/proxy of central repository.
Totally possible :), but certainly not intentional.
> Do you have a custom $HOME/.m2/settings.xml (with mirror or repository
> section) ?

My ~/.m2/settings.xml is empty:
ne...@gae$ less /Users/nezda/.m2/settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings />

> When maven report report missing artifact, it also report the list of
> repository from where it try to download, what is the 'full' content
> of the missing message ?

The full error message which mentions central among the "specified
remote repositories" is below.  When I looked in looked in my local
repo, I saw a newer version !?
  /Users/nezda/.m2/repository/net/sf/retrotranslator/retrotranslator-
runtime/1.2.4/retrotranslator-runtime-1.2.4.jar

And as luck would have it, it was owned by root (likely a side effect
of sudo port upgrade scala). I did

sudo mv ~.m2/repository/net/sf/retrotranslator/ ~/

and the problem is resolved.  That Maven error message was not so
helpful; fyi

ne...@gae$ mvn --version
Apache Maven 2.2.0 (r788681; 2009-06-26 08:04:01-0500)
Java version: 1.6.0_17
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/
Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.2" arch: "x86_64" Family: "mac"

I guess moral of the story is nuke your local Maven repository before
giving up.  Thanks for you help!  And now the misleading error
message:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) net.sf.retrotranslator:retrotranslator-runtime:jar:1.2.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=net.sf.retrotranslator -
DartifactId=retrotranslator-runtime -Dversion=1.2.1 -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.sf.retrotranslator -
DartifactId=retrotranslator-runtime -Dversion=1.2.1 -Dpackaging=jar -
Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) net.sf.alchim:yuicompressor-maven-plugin:maven-plugin:0.7.1
        2) net.sf.retrotranslator:retrotranslator-runtime:jar:1.2.1

----------
1 required artifact is missing.

for artifact:
  net.sf.alchim:yuicompressor-maven-plugin:maven-plugin:0.7.1

from the specified remote repositories:
  org.wicketstuff (http://wicketstuff.org/maven/repository/),
  scala-tools.org (http://scala-tools.org/repo-releases),
  scala-tools.releases (http://scala-tools.org/repo-releases),
  central (http://repo1.maven.org/maven2)



[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 17 seconds
[INFO] Finished at: Sat Feb 06 16:51:57 CST 2010
[INFO] Final Memory: 35M/80M
[INFO]
------------------------------------------------------------------------
>
> /davidB
>
> On Sat, Feb 6, 2010 at 22:36, Luke  Nezda <lne...@gmail.com> wrote:
>
> > Hello -
>
> > I am just getting started with Lift and used the "Hello, World"
> > archetype lift-archetype-blank (tried 1.1-M8 & 2.0-M1) and both fail
> > to build successfully from the specified public Maven repositories
> > with:
>
> > Missing:
> > ----------
> > 1) net.sf.retrotranslator:retrotranslator-runtime:jar:1.2.1
> > ...
> >  Path to dependency:
> >        1) net.sf.alchim:yuicompressor-maven-plugin:maven-plugin:0.7.1
> >        2) net.sf.retrotranslator:retrotranslator-runtime:jar:1.2.1
>
> > I stfw'd a bit and found Apache Tiles was able to resolve it (http://
> > tiles.apache.org/2.0/framework/tiles-assembly/dependencies.html ->
> > "Dependency Repository Locations" -> "Artifact" ->
> > "net.sf.retrotranslator:retrotranslator-runtime:jar:1.2.1") at
> > "atlassian-public"/ "https://maven.atlassian.com/repository/public";,
> > however I have still failed to determine the correct Maven pom
> > incantation to get this to install itself.  I tried:
>
> >  <repositories>
> >    <repository>
> >      <id>scala-tools.releases</id>
> >      <name>Scala-Tools Maven2 Repository for Releases</name>
> >      <url>http://scala-tools.org/repo-releases</url>
> >    </repository>
> >    <repository>
> >      <id>atlassian-public</id>
> >      <url>https://maven.atlassian.com/repository/public</url>
> >    </repository>
> >  </repositories>
>
> > and for good measure
>
> >  <pluginRepositories>
> >    <pluginRepository>
> >      <id>scala-tools.org</id>
> >      <name>Scala-Tools Maven2 Repository</name>
> >      <url>http://scala-tools.org/repo-releases</url>
> >    </pluginRepository>
> >    <pluginRepository>
> >      <id>atlassian-public</id>
> >      <url>https://maven.atlassian.com/repository/public</url>
> >    </pluginRepository>
> >  </pluginRepositories>
>
> > Ultimately, I just removed the offending plugin:
> >      <plugin>
> >        <groupId>net.sf.alchim</groupId>
> >        <artifactId>yuicompressor-maven-plugin</artifactId>
> >        ...
> >      </plugin>
>
> > This was a lot bumpier than I was hoping for, but a typical Maven
> > experience :/  Anyone know what the proper course of action is here ?
> > Add some other repo (maybe in some other way), or something else?  Are
> > 1.1-M8 and/or 2.0-M1 just not meant for folks to try out?  I'll see if
> > 1.0.3 is the same and report back.
>
> > Thanks in advance,
> > - Luke
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Lift" group.
> > To post to this group, send email to lift...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > liftweb+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/liftweb?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.

Reply via email to