I would definitely start from the beginning and run through a maven beginner tutorial. Here is one:<div><br></div><div><a href="http://today.java.net/pub/a/today/2007/03/01/building-web-applications-with-maven-2.html">http://today.java.net/pub/a/today/2007/03/01/building-web-applications-with-maven-2.html</a></div>
<div><br></div><div>Using an IDE definitely makes coding easier, but since it sounds like you come from the command line world, I would definitely try to wrap my arms around Maven before trying to learn Maven and Eclipse.</div>
<div><br></div><div>I don't mind helping if you run across a specific problem about Maven. It appears the problem you are having is because you don't have a repository at ~/.m2/repository which running through the tutorial will help you.</div>
<div><br><div class="gmail_quote">On Mon, Nov 23, 2009 at 9:33 PM, brian <span dir="ltr"><<a href="mailto:brw314@gmail.com">brw314@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I guess answering my own question again, skipping eclipse i tried to<br>
build, but failed, the tutorials directly under project\tutorials<br>
"mvn clean" i get unable to find resource org.boss.maven.plugins<br>
maven-jdocbook-style-plugin not found in respository unable to download<br>
from any repository<br>
<div><div></div><div class="h5"><br>
<br>
brian wrote:<br>
><br>
> sorry if I'm answering my own questions here,<br>
><br>
> but they just raise more<br>
><br>
> after looking harder at the tutorial found reference to the code for<br>
> the tutorial under<br>
><br>
> |tutorials/web| directory of the project source. I imported the<br>
> directory into a "maven project?"<br>
> in eclipse. when i try to build and run i get in the maven console:<br>
><br>
> url = <a href="http://repo1.maven.org/maven2" target="_blank">http://repo1.maven.org/maven2</a><br>
> Downloading:<br>
> <a href="http://repo1.maven.org/maven2/org/hibernate/hibernate-tutorials/3.5.0-Beta-2/hibernate-tutorials-3.5.0-Beta-2.pom" target="_blank">http://repo1.maven.org/maven2/org/hibernate/hibernate-tutorials/3.5.0-Beta-2/hibernate-tutorials-3.5.0-Beta-2.pom</a><br>
><br>
> [ERROR]<br>
><br>
> Failed to resolve parent-POM from repository.<br>
><br>
> Parent POM Information:<br>
><br>
> Group-Id: org.hibernate<br>
> Artifact-Id: hibernate-tutorials<br>
> Version: 3.5.0-Beta-2<br>
><br>
> Local Repository: C:\Documents and Settings\brian\.m2\repository<br>
><br>
> Remote Repositories:<br>
> central -> <a href="http://repo1.maven.org/maven2" target="_blank">http://repo1.maven.org/maven2</a><br>
><br>
> Reason: Unable to download the artifact from any repository<br>
><br>
> org.hibernate:hibernate-tutorials:pom:3.5.0-Beta-2<br>
><br>
> from the specified remote repositories:<br>
> central (<a href="http://repo1.maven.org/maven2" target="_blank">http://repo1.maven.org/maven2</a>)<br>
><br>
><br>
><br>
> Project Id: org.hibernate:hibernate-tutorial-web:war:[inherited]<br>
> From file: C:\work\web\pom.xml<br>
><br>
><br>
><br>
> [INFO]<br>
> ------------------------------------------------------------------------<br>
> [INFO] For more information, run with the -e flag<br>
> [INFO]<br>
> ------------------------------------------------------------------------<br>
> [INFO] + Ignoring build failures<br>
> [INFO]<br>
> ------------------------------------------------------------------------<br>
> [INFO] BUILD SUCCESSFUL<br>
> [INFO]<br>
> ------------------------------------------------------------------------<br>
> [INFO] Total time: 1 second<br>
> [INFO] Finished at: Mon Nov 23 18:10:56 PST 2009<br>
> [INFO] Final Memory: 1M/4M<br>
> [INFO]<br>
> ------------------------------------------------------------------------<br>
><br>
><br>
><br>
> after this, there are no classes or build directory in the working dir<br>
><br>
> thanks!<br>
><br>
><br>
><br>
><br>
> brian wrote:<br>
>> Hi,<br>
>><br>
>> I'm one of those programmers who prefer to use notepad or at most<br>
>> emacs as an editor, believe it or not I written some large programs<br>
>> that way. Now trying hard to come into the modern age of Eclipse and<br>
>> Maven.<br>
>><br>
>> I'm trying to run the Hibernate tutorial at:<br>
>><br>
>> <a href="http://docs.jboss.org/hibernate/core/3.3/reference/en/html/tutorial.html#tutorial-firstapp-setup" target="_blank">http://docs.jboss.org/hibernate/core/3.3/reference/en/html/tutorial.html#tutorial-firstapp-setup</a><br>
>><br>
>><br>
>> I put the pom.xml file on that page and mvn failed to build it...<br>
>><br>
>> "dependencies.version is missing" for various things<br>
>><br>
>> also<br>
>><br>
>> I've installed m2_eclise plug-in and imported the pom.xml file there.<br>
>> How to I call mvn for this pom.xml from within eclipse?<br>
>><br>
>> Thanks!<br>
>> Brian Wolf<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
><br>
<br>
_______________________________________________<br>
hibernate-users mailing list<br>
<a href="mailto:hibernate-users@lists.jboss.org">hibernate-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hibernate-users" target="_blank">https://lists.jboss.org/mailman/listinfo/hibernate-users</a><br>
</div></div></blockquote></div><br></div>