Srepfler, make sure you build mant first of all - it's in the same directory as hibernate.
Also your plugin config should look something like this:

     <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>hibernatedoclet-maven-plugin</artifactId>
        <version>1.0-beta-1</version>
        <executions>
          <execution>
            <goals>
              <goal>hibernatedoclet</goal>
            </goals>
            <phase>generate-sources</phase>
            <configuration>
              <task><![CDATA[
                <hibernatedoclet>
                  <fileset includes="**/bo/*.java"/>
                  <hibernate version="3.0"/>
                </hibernatedoclet>
              ]]></task>
            </configuration>
          </execution>
        </executions>
      </plugin>

Let me know how you get on.

- Ashley

On 25 Nov 2005, at 23:09, Srepfler Srgjan wrote:

Ashley Williams wrote:

There is now a hibernate plugin in the sandbox.
https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/ hibernatedoclet- maven-plugin


Since I don't use it I've only included the @destDir mapping - if you
decided to use it then please send me any mappings that you add yourself
and I can then get them committed.

[EMAIL PROTECTED]

Thanks
- Ashley

Hi,
I've downloaded the source and am having problems in reaching the end as some artifacts are missing; Following is the log:

[INFO] Scanning for projects...
Downloading: http://mirrors.dotsrc.org/maven2/org/codehaus/mojo/ mojo/4/mojo-4.pom
4K downloaded
[INFO] ---------------------------------------------------------------------- ------
[INFO] Building hibernatedoclet
[INFO]    task-segment: [install]
[INFO] ---------------------------------------------------------------------- ------ [INFO] artifact org.apache.maven.plugins:maven-plugin-plugin: checking for updates from central Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ plugins/maven-plugin-plugin/2.0/maven-plugin-plugin-2.0.pom
2K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ plugins/maven-plugin-plugin/2.0/maven-plugin-plugin-2.0.jar
16K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-plugin-tools-java/2.0/maven-plugin-tools-java-2.0.pom
885b downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-plugin-tools/2.0/maven-plugin-tools-2.0.pom
536b downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.pom
865b downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-plugin-descriptor/2.0/maven-plugin-descriptor-2.0.pom
1K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-plugin-registry/2.0/maven-plugin-registry-2.0.pom
1K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-plugin-tools-beanshell/2.0/maven-plugin-tools-beanshell-2.0.pom
895b downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.jar
22K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-plugin-tools-beanshell/2.0/maven-plugin-tools-beanshell-2.0.jar
8K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-plugin-tools-java/2.0/maven-plugin-tools-java-2.0.jar
10K downloaded
[INFO] [plugin:descriptor]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] snapshot org.codehaus.mojo:mant:1.0-beta-2-SNAPSHOT: checking for updates from snapshots Downloading: http://snapshots.maven.codehaus.org/maven2/org/ codehaus/mojo/mant/1.0-beta-2-SNAPSHOT/mant-1.0-beta-2-SNAPSHOT.pom [WARNING] Unable to get resource from repository snapshots (http:// snapshots.maven.codehaus.org/maven2)
[WARNING]
Artifact junit:junit:jar:3.8.1 retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope.

Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-artifact-manager/2.0/maven-artifact-manager-2.0.jar
49K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-artifact/2.0/maven-artifact-2.0.jar
76K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-repository-metadata/2.0/maven-repository-metadata-2.0.jar
20K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/ant/ant/1.5.2/ ant-1.5.2.jar
715K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-plugin-api/2.0/maven-plugin-api-2.0.jar
9K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-model/2.0/maven-model-2.0.jar
76K downloaded
Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-profile/2.0/maven-profile-2.0.jar
29K downloaded
Downloading: http://snapshots.maven.codehaus.org/maven2/org/ codehaus/mojo/mant/1.0-beta-2-SNAPSHOT/mant-1.0-beta-2-SNAPSHOT.jar [WARNING] Unable to get resource from repository snapshots (http:// snapshots.maven.codehaus.org/maven2) Downloading: http://mirrors.dotsrc.org/maven2/org/apache/maven/ maven-project/2.0/maven-project-2.0.jar
102K downloaded
[INFO] ---------------------------------------------------------------------- ------
[ERROR] BUILD ERROR
[INFO] ---------------------------------------------------------------------- ------
[INFO] Failed to resolve artifact.

required artifacts missing:
 org.codehaus.mojo:mant:jar:1.0-beta-2-SNAPSHOT

for the artifact:
org.codehaus.mojo:hibernatedoclet-maven-plugin:maven-plugin:1.0- beta-1

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


[INFO] ---------------------------------------------------------------------- ------
[INFO] For more information, run Maven with the -e switch
[INFO] ---------------------------------------------------------------------- ------
[INFO] Total time: 1 minute 56 seconds
[INFO] Finished at: Fri Nov 25 18:15:25 CET 2005
[INFO] Final Memory: 4M/8M
[INFO] ---------------------------------------------------------------------- ------

c:\Documents and Settings\Srepfler Srgjan\maven-projects\hibernate- maven-plugin>mvn install
[INFO] Scanning for projects...
[INFO] ---------------------------------------------------------------------- ------
[INFO] Building hibernatedoclet
[INFO]    task-segment: [install]
[INFO] ---------------------------------------------------------------------- ------
[INFO] [plugin:descriptor]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://snapshots.maven.codehaus.org/maven2/org/ codehaus/mojo/mant/1.0-beta-2-SNAPSHOT/mant-1.0-beta-2-SNAPSHOT.pom [WARNING] Unable to get resource from repository snapshots (http:// snapshots.maven.codehaus.org/maven2)
[WARNING]
Artifact junit:junit:jar:3.8.1 retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope.

Downloading: http://snapshots.maven.codehaus.org/maven2/org/ codehaus/mojo/mant/1.0-beta-2-SNAPSHOT/mant-1.0-beta-2-SNAPSHOT.j [WARNING] Unable to get resource from repository snapshots (http:// snapshots.maven.codehaus.org/maven2) [INFO] ---------------------------------------------------------------------- ------
[ERROR] BUILD ERROR
[INFO] ---------------------------------------------------------------------- ------
[INFO] Failed to resolve artifact.

required artifacts missing:
 org.codehaus.mojo:mant:jar:1.0-beta-2-SNAPSHOT

for the artifact:
org.codehaus.mojo:hibernatedoclet-maven-plugin:maven-plugin:1.0- beta-1

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


[INFO] ---------------------------------------------------------------------- ------
[INFO] For more information, run Maven with the -e switch
[INFO] ---------------------------------------------------------------------- ------
[INFO] Total time: 21 seconds
[INFO] Finished at: Fri Nov 25 23:19:38 CET 2005
[INFO] Final Memory: 4M/8M
[INFO] ---------------------------------------------------------------------- ------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to