[Pogamut-list] Can't start a Maven project from archetype

jakub.gemrot pogamut-forum at diana.ms.mff.cuni.cz
Fri Mar 9 07:39:25 CET 2012


Re: Can't start a Maven project from archetype

Author: jakub.gemrot

Hi!

Thanks for the tip of JAVA_HOME, unfortunately there is hard to do with IzPack installer :-/
may be we should enforce this settings as well, trying to detect Java environment?
We'll try!

Regarding the JAR, you will have to install it manually to maven repository that is located (on Win7)
C:\Users\USER_ACCOUNT\.m2

See:
http://stackoverflow.com/questions/442230/how-to-manually-install-an-artifact-in-maven-2

Looking at: http://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar

Seems that GroupId is: org.codehaus.groovy
ArtifactId is: groovy
Version is 1.8.3

So the correct command would be:

mvn install:install-file -DgroupId=org.codehaus.groovy -DartifactId=groovy -Dpackaging=jar -Dversion=1.8.3 -Dfile=groovy-1.8.3.jar -DgeneratePom=true

Note that Maven first:
1) lookup in your local repo ... if found -> all good 
2) try to download from world ... if found -> tries to download to your local repo
3) fails

I'm not sure why download is broken for you :-( I have never experienced that myself,
usually Maven fails if some depends is unresolvable (could not be found in any repo).

Cheers! And thanks for the tip with JAVA_HOME, we're going to implement it right away!

Jakub

P.S.: Anyway, we're preparing PogamutUDK installer and PogamutDefcon installer as well,
that should get released today! So stay tuned :-)

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=2&comments_reply_threadId=2&comments_parentId=897&post_reply=1#form>





More information about the Pogamut-list mailing list