Get your own customer support community

Recent activity

Subscribe to this feed
  • problem

    kin replied on August 19, 2009 09:44 to the problem ""mvn hibernate3:hbm2ddl" in "7.7. Running the Web Application" doesn't work." in Sonatype:

    kin
    Ok... I fixed the problem...
    To fix the problem,
    Firstly, on simple-parent, run the command 'mvn install';
    If the result is successful, then go to folder simple-webapp,
    run the command:
    'mvn hibernate3:hbm2ddl'
    Then it should be no above problem.
  • kin started following the problem "Broken link to examples" in Sonatype.

  • problem

    kin replied on August 11, 2009 07:38 to the problem ""mvn hibernate3:hbm2ddl" in "7.7. Running the Web Application" doesn't work." in Sonatype:

    kin
    i hit the similiar problem like this:
    I wonder why it those file (pom and jar ) cannot be downloaded????
    ++++++++++++++++++++++++++++++++++++++
    D:\java\maven\test\simple-parent\simple-webapp>mvn hibernate3:hbm2ddl
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building simple-webapp Web Application
    [INFO] task-segment: [hibernate3:hbm2ddl]
    [INFO] ------------------------------------------------------------------------
    [INFO] Preparing hibernate3:hbm2ddl
    [INFO] [resources:resources {execution: default-resources}]
    [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
    i.e. build is platform dependent!
    [INFO] Copying 0 resource
    Downloading: http://repo1.maven.org/maven2/org/son...
    ather/1.0/simple-weather-1.0.pom
    [INFO] Unable to find resource 'org.sonatype.mavenbook.ch07:simple-weather:pom:1
    .0' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/son...
    rsist/1.0/simple-persist-1.0.pom
    [INFO] Unable to find resource 'org.sonatype.mavenbook.ch07:simple-persist:pom:1
    .0' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/son...
    ather/1.0/simple-weather-1.0.jar
    [INFO] Unable to find resource 'org.sonatype.mavenbook.ch07:simple-weather:jar:1
    .0' in repository central (http://repo1.maven.org/maven2)
    Downloading: http://repo1.maven.org/maven2/org/son...
    rsist/1.0/simple-persist-1.0.jar
    [INFO] Unable to find resource 'org.sonatype.mavenbook.ch07:simple-persist:jar:1
    .0' in repository central (http://repo1.maven.org/maven2)
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    Missing:
    ----------
    1) org.sonatype.mavenbook.ch07:simple-weather:jar:1.0

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.sonatype.mavenbook.ch07 -DartifactI
    d=simple-weather -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file

    Alternatively, if you host your own repository you can deploy the file there:

    mvn deploy:deploy-file -DgroupId=org.sonatype.mavenbook.ch07 -DartifactId=
    simple-weather -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -D
    repositoryId=[id]

    Path to dependency:
    1) org.sonatype.mavenbook.ch07:simple-webapp:war:1.0
    2) org.sonatype.mavenbook.ch07:simple-weather:jar:1.0

    2) org.sonatype.mavenbook.ch07:simple-persist:jar:1.0

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.sonatype.mavenbook.ch07 -DartifactI
    d=simple-persist -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file

    Alternatively, if you host your own repository you can deploy the file there:

    mvn deploy:deploy-file -DgroupId=org.sonatype.mavenbook.ch07 -DartifactId=
    simple-persist -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -D
    repositoryId=[id]

    Path to dependency:
    1) org.sonatype.mavenbook.ch07:simple-webapp:war:1.0
    2) org.sonatype.mavenbook.ch07:simple-persist:jar:1.0

    ----------
    2 required artifacts are missing.

    for artifact:
    org.sonatype.mavenbook.ch07:simple-webapp:war:1.0

    from the specified remote repositories:
    central (http://repo1.maven.org/maven2)

    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3 seconds
    [INFO] Finished at: Tue Aug 11 15:34:49 CST 2009
    [INFO] Final Memory: 6M/12M
    [INFO] ------------------------------------------------------------------------
    D:\java\maven\test\simple-parent\simple-webapp>