You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by SkipWalker <sk...@skipwalker.com> on 2006/09/08 02:01:36 UTC

hibernate3 plugin can't resolve maven-hibernate3-api

I'm trying to use the hibernate3-maven-plugin from codehaus with maven 2.0.4.

I keep getting stuck with the following error regarding hibernate3-api and
hibernate3-jdk

I don't understand why the dependencies are missing  The .  Any help is a
appreciated.

Missing:
----------
1) org.codehaus.mojo.hibernate3:maven-hibernate3-api:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.codehaus.mojo.hibernate3
-DartifactId=maven-hibernate3-api \
          -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1)
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060825.145135-3
        2)
org.codehaus.mojo.hibernate3:maven-hibernate3-api:jar:1.0-SNAPSHOT

2) org.codehaus.mojo.hibernate3:maven-hibernate3-jdk15:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.codehaus.mojo.hibernate3
-DartifactId=maven-hibernate3-jdk15 \
          -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1)
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060825.145135-3
        2)
org.codehaus.mojo.hibernate3:maven-hibernate3-jdk15:jar:1.0-SNAPSHOT

----------


Here's my plugin def:

                <groupId>org.codehaus.mojo</groupId>
                <artifactId>hibernate3-maven-plugin</artifactId>
                <version>1.0-SNAPSHOT</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>hbm2ddl</goal>
                        </goals>
                        <phase>process-resources</phase>
                        <configuration>
                            <hibernate>
                               
<configurationFile>src/main/webapp/WEB-INF/classes/hibernate.cfg.xml</configurationFile>
                            </hibernate>
                            <outputDirectory>
                            </outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

I have this as one of my plugin repo defs

        <pluginRepository>
            <id>codehaus.plugin.snapshots</id>
            <url>http://snapshots.maven.codehaus.org/maven2/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </pluginRepository>

-- 
View this message in context: http://www.nabble.com/hibernate3-plugin-can%27t-resolve-maven-hibernate3-api-tf2236295.html#a6200670
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: hibernate3 plugin can't resolve maven-hibernate3-api

Posted by Wayne Fay <wa...@gmail.com>.
I'd copy that Codehaus pluginRepo as a regular <repository> and see if
that fixed it.

Try mvn -U to update your plugins. Also try mvn -X to get full debug
log, and make sure Maven is looking at the Codehaus repo for those
deps.

Wayne

On 9/7/06, SkipWalker <sk...@skipwalker.com> wrote:
>
> I'm trying to use the hibernate3-maven-plugin from codehaus with maven 2.0.4.
>
> I keep getting stuck with the following error regarding hibernate3-api and
> hibernate3-jdk
>
> I don't understand why the dependencies are missing  The .  Any help is a
> appreciated.
>
> Missing:
> ----------
> 1) org.codehaus.mojo.hibernate3:maven-hibernate3-api:jar:1.0-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.codehaus.mojo.hibernate3
> -DartifactId=maven-hibernate3-api \
>          -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>  Path to dependency:
>        1)
> org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060825.145135-3
>        2)
> org.codehaus.mojo.hibernate3:maven-hibernate3-api:jar:1.0-SNAPSHOT
>
> 2) org.codehaus.mojo.hibernate3:maven-hibernate3-jdk15:jar:1.0-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.codehaus.mojo.hibernate3
> -DartifactId=maven-hibernate3-jdk15 \
>          -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>  Path to dependency:
>        1)
> org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060825.145135-3
>        2)
> org.codehaus.mojo.hibernate3:maven-hibernate3-jdk15:jar:1.0-SNAPSHOT
>
> ----------
>
>
> Here's my plugin def:
>
>                <groupId>org.codehaus.mojo</groupId>
>                <artifactId>hibernate3-maven-plugin</artifactId>
>                <version>1.0-SNAPSHOT</version>
>                <executions>
>                    <execution>
>                        <goals>
>                            <goal>hbm2ddl</goal>
>                        </goals>
>                        <phase>process-resources</phase>
>                        <configuration>
>                            <hibernate>
>
> <configurationFile>src/main/webapp/WEB-INF/classes/hibernate.cfg.xml</configurationFile>
>                            </hibernate>
>                            <outputDirectory>
>                            </outputDirectory>
>                        </configuration>
>                    </execution>
>                </executions>
>            </plugin>
>
> I have this as one of my plugin repo defs
>
>        <pluginRepository>
>            <id>codehaus.plugin.snapshots</id>
>            <url>http://snapshots.maven.codehaus.org/maven2/</url>
>            <snapshots>
>                <enabled>true</enabled>
>            </snapshots>
>            <releases>
>                <enabled>true</enabled>
>            </releases>
>        </pluginRepository>
>
> --
> View this message in context: http://www.nabble.com/hibernate3-plugin-can%27t-resolve-maven-hibernate3-api-tf2236295.html#a6200670
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org