I would definitely start from the beginning and run through a maven beginner tutorial.  Here is one:

http://today.java.net/pub/a/today/2007/03/01/building-web-applications-with-maven-2.html

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.

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.

On Mon, Nov 23, 2009 at 9:33 PM, brian <brw314@gmail.com> wrote:
I guess answering my own question again, skipping eclipse i tried to
build, but failed,   the tutorials directly under project\tutorials
"mvn clean" i get unable to find resource org.boss.maven.plugins
maven-jdocbook-style-plugin not found in respository unable to download
from any repository


brian wrote:
>
> sorry if I'm answering my own questions here,
>
> but they just raise more
>
> after looking harder at the tutorial found reference to the code for
> the tutorial under
>
> |tutorials/web| directory of the project source. I imported the
> directory into a "maven project?"
> in eclipse. when  i try to build and run i get in the maven console:
>
> url = http://repo1.maven.org/maven2
> Downloading:
> http://repo1.maven.org/maven2/org/hibernate/hibernate-tutorials/3.5.0-Beta-2/hibernate-tutorials-3.5.0-Beta-2.pom
>
> [ERROR]
>
> Failed to resolve parent-POM from repository.
>
> Parent POM Information:
>
> Group-Id: org.hibernate
> Artifact-Id: hibernate-tutorials
> Version: 3.5.0-Beta-2
>
> Local Repository: C:\Documents and Settings\brian\.m2\repository
>
> Remote Repositories:
> central -> http://repo1.maven.org/maven2
>
> Reason: Unable to download the artifact from any repository
>
>  org.hibernate:hibernate-tutorials:pom:3.5.0-Beta-2
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
>
>
> Project Id: org.hibernate:hibernate-tutorial-web:war:[inherited]
> From file: C:\work\web\pom.xml
>
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run with the -e flag
> [INFO]
> ------------------------------------------------------------------------
> [INFO]  + Ignoring build failures
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Mon Nov 23 18:10:56 PST 2009
> [INFO] Final Memory: 1M/4M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
> after this, there are no classes or  build directory  in the  working dir
>
> thanks!
>
>
>
>
> brian wrote:
>> Hi,
>>
>> I'm one of those programmers  who prefer  to use notepad or at most
>> emacs as an editor, believe it or not I written  some large programs
>> that way.  Now trying hard to come into the modern age of Eclipse and
>> Maven.
>>
>> I'm trying to run the Hibernate tutorial at:
>>
>> http://docs.jboss.org/hibernate/core/3.3/reference/en/html/tutorial.html#tutorial-firstapp-setup
>>
>>
>> I put the pom.xml file on that page  and mvn failed to build it...
>>
>> "dependencies.version is missing" for various things
>>
>> also
>>
>> I've installed m2_eclise plug-in and imported the pom.xml file there.
>> How to I call mvn for this pom.xml from within eclipse?
>>
>> Thanks!
>> Brian Wolf
>>
>>
>>
>>
>>
>>
>

_______________________________________________
hibernate-users mailing list
hibernate-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-users