You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ashley Williams <ag...@mac.com> on 2005/11/25 01:08:04 UTC

[m2] new ejbdoclet+webdoclet plugin announcement

I have placed new ejbdoclet and webdoclet plugins in the sandbox here
https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/

And to see their use in a sample ear project try the following link:
https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/sample-ear-proj/

---

Briefly they provide the following features:

1. Familiar ant xdoclet syntax can be used in configuration

2. Maven properties are automatically applied to the ant task - for  
example
you don't have to specify attributes such as destDir="target/ 
generated-sources",
because the plugin applies a list of known mappings!

3. Can execute plugins in the same mvn session - eg a pom.xml that  
kicks off
an ejb and then web build won't bomb out.

4. Works by creating an actual build.xml file on the fly.

- Ashley

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


Re: [m2] new hibernate+ejbdoclet+webdoclet plugin announcement

Posted by Ashley Williams <ag...@mac.com>.
Thanks for the pointer, I've seen it too - however the code looked  
very time consuming
to reverse engineer so I spent my time elsewhere.

Patches welcome of course!

On 26 Nov 2005, at 23:22, Srepfler Srgjan wrote:

> Ashley Williams wrote:
>
>> Sorry, yes - for the time being ;)
>>
>> Not sure how to inject config xml into a mojo so for now it's got  
>> to  be a string - and
>> all the angled brackets would cause trouble without the CDATA  
>> section.
>>
>> As soon as I can work it out I will definitely change this though!
>
> I think I've noted that the antrun plugin allows such a functionality.
>
>
> ---------------------------------------------------------------------
> 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


Re: [m2] new hibernate+ejbdoclet+webdoclet plugin announcement

Posted by Srepfler Srgjan <sr...@lnksystem.com>.
Ashley Williams wrote:

> Sorry, yes - for the time being ;)
>
> Not sure how to inject config xml into a mojo so for now it's got to  
> be a string - and
> all the angled brackets would cause trouble without the CDATA section.
>
> As soon as I can work it out I will definitely change this though!

I think I've noted that the antrun plugin allows such a functionality.


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


Re: [m2] new hibernate+ejbdoclet+webdoclet plugin announcement

Posted by Ashley Williams <ag...@mac.com>.
Sorry, yes - for the time being ;)

Not sure how to inject config xml into a mojo so for now it's got to  
be a string - and
all the angled brackets would cause trouble without the CDATA section.

As soon as I can work it out I will definitely change this though!



On 26 Nov 2005, at 22:43, Srepfler Srgjan wrote:

> I should write the tasks using the CDATA to delimit them?
>
> Ashley Williams wrote:
>
>> 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
>
>
>
> ---------------------------------------------------------------------
> 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


Re: [m2] new hibernate+ejbdoclet+webdoclet plugin announcement

Posted by Srepfler Srgjan <sr...@lnksystem.com>.
I should write the tasks using the CDATA to delimit them?

Ashley Williams wrote:

> 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 



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


Re: [m2] new hibernate+ejbdoclet+webdoclet plugin announcement

Posted by Ashley Williams <ag...@mac.com>.
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.
>>
>> agwilliams1000@codehaus.org
>>
>> 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: 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


Re: [m2] new hibernate+ejbdoclet+webdoclet plugin announcement

Posted by Srepfler Srgjan <sr...@lnksystem.com>.
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.
>
> agwilliams1000@codehaus.org
>
> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] new hibernate+ejbdoclet+webdoclet plugin announcement

Posted by Ashley Williams <ag...@mac.com>.
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.

agwilliams1000@codehaus.org

Thanks
- Ashley

>>> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/

On 25 Nov 2005, at 10:42, Ashley Williams wrote:

> Hi Srepfler,
>
> It should be quite similar to achieve the same behavior for  
> hibernate etc since there are only 2 stages to writing plugins of  
> your own.
> To start with copy the ejbdoclet plugin (rename as necessary) and  
> then:
>
> 1. Edit the dependencies in the pom.xml file. The dependencies will  
> be used to form the ant taskdef classpath - I believe you won't need
> to alter them as I included rather too many in the ejbdoclet  
> pom.xml, so that likely includes the hibernate dependencies.
>
> 2. Edit the mojo. I've included the code snipped below and if you  
> know xpath you'll immediately see the left hand side is the xpath for
> the ant attribute and the right hand side is the constant that will  
> be used to set it's value, meaning users of the plugin don't have to.
> For example notice that ejbdoclet/@destDir ant attribute will have  
> the generated java source directory assigned to it.
>
>         String[] mappings = new String[] {
>             "@destDir",                                           
> MantGoal.JAVA_GEN,
>             "deploymentdescriptor/@destDir",  MantGoal.META_INF_GEN,
>             "fileset/@dir",                                        
> MantGoal.JAVA,
>             "jboss/@destDir",                                 
> MantGoal.META_INF_GEN
>         };
>         MantGoal goal = new MantGoal(this, project,  
> "xdoclet.modules.ejb.EjbDocletTask", task, mappings);
>         goal.execute("xdoclet.class.path");
>
>
> Don't know if it's feasible (don't know enough about writing  
> plugins) but in future I'd like to make it so that you don't have  
> to write
> a plugin, just simply provide a properties file with the mappings.
>
>
> On 25 Nov 2005, at 04:01, Srepfler Srgjan wrote:
>
>> Hi Ashley,
>> Can you please tell me what would it take to make similar doclets  
>> but for hibernate or if you know there are already some existing  
>> ones?
>> Thanks
>>
>> Ashley Williams wrote:
>>
>>> I have placed new ejbdoclet and webdoclet plugins in the sandbox  
>>> here
>>> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/
>>>
>>> And to see their use in a sample ear project try the following link:
>>> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/sample-ear- 
>>> proj/
>>>
>>> ---
>>>
>>> Briefly they provide the following features:
>>>
>>> 1. Familiar ant xdoclet syntax can be used in configuration
>>>
>>> 2. Maven properties are automatically applied to the ant task -  
>>> for  example
>>> you don't have to specify attributes such as destDir="target/  
>>> generated-sources",
>>> because the plugin applies a list of known mappings!
>>>
>>> 3. Can execute plugins in the same mvn session - eg a pom.xml  
>>> that  kicks off
>>> an ejb and then web build won't bomb out.
>>>
>>> 4. Works by creating an actual build.xml file on the fly.
>>>
>>> - Ashley
>>>
>>> -------------------------------------------------------------------- 
>>> -
>>> 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
>>
>
>
> ---------------------------------------------------------------------
> 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


Re: [m2] new ejbdoclet+webdoclet plugin announcement

Posted by Ashley Williams <ag...@mac.com>.
Hi Srepfler,

It should be quite similar to achieve the same behavior for hibernate  
etc since there are only 2 stages to writing plugins of your own.
To start with copy the ejbdoclet plugin (rename as necessary) and then:

1. Edit the dependencies in the pom.xml file. The dependencies will  
be used to form the ant taskdef classpath - I believe you won't need
to alter them as I included rather too many in the ejbdoclet pom.xml,  
so that likely includes the hibernate dependencies.

2. Edit the mojo. I've included the code snipped below and if you  
know xpath you'll immediately see the left hand side is the xpath for
the ant attribute and the right hand side is the constant that will  
be used to set it's value, meaning users of the plugin don't have to.
For example notice that ejbdoclet/@destDir ant attribute will have  
the generated java source directory assigned to it.

         String[] mappings = new String[] {
             "@destDir",                                           
MantGoal.JAVA_GEN,
             "deploymentdescriptor/@destDir",  MantGoal.META_INF_GEN,
             "fileset/@dir",                                        
MantGoal.JAVA,
             "jboss/@destDir",                                 
MantGoal.META_INF_GEN
         };
         MantGoal goal = new MantGoal(this, project,  
"xdoclet.modules.ejb.EjbDocletTask", task, mappings);
         goal.execute("xdoclet.class.path");


Don't know if it's feasible (don't know enough about writing plugins)  
but in future I'd like to make it so that you don't have to write
a plugin, just simply provide a properties file with the mappings.


On 25 Nov 2005, at 04:01, Srepfler Srgjan wrote:

> Hi Ashley,
> Can you please tell me what would it take to make similar doclets  
> but for hibernate or if you know there are already some existing ones?
> Thanks
>
> Ashley Williams wrote:
>
>> I have placed new ejbdoclet and webdoclet plugins in the sandbox here
>> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/
>>
>> And to see their use in a sample ear project try the following link:
>> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/sample-ear- 
>> proj/
>>
>> ---
>>
>> Briefly they provide the following features:
>>
>> 1. Familiar ant xdoclet syntax can be used in configuration
>>
>> 2. Maven properties are automatically applied to the ant task -  
>> for  example
>> you don't have to specify attributes such as destDir="target/  
>> generated-sources",
>> because the plugin applies a list of known mappings!
>>
>> 3. Can execute plugins in the same mvn session - eg a pom.xml  
>> that  kicks off
>> an ejb and then web build won't bomb out.
>>
>> 4. Works by creating an actual build.xml file on the fly.
>>
>> - Ashley
>>
>> ---------------------------------------------------------------------
>> 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
>


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


Re: [m2] new ejbdoclet+webdoclet plugin announcement

Posted by Srepfler Srgjan <sr...@lnksystem.com>.
Hi Ashley,
Can you please tell me what would it take to make similar doclets but 
for hibernate or if you know there are already some existing ones?
Thanks

Ashley Williams wrote:

> I have placed new ejbdoclet and webdoclet plugins in the sandbox here
> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/
>
> And to see their use in a sample ear project try the following link:
> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/sample-ear-proj/
>
> ---
>
> Briefly they provide the following features:
>
> 1. Familiar ant xdoclet syntax can be used in configuration
>
> 2. Maven properties are automatically applied to the ant task - for  
> example
> you don't have to specify attributes such as destDir="target/ 
> generated-sources",
> because the plugin applies a list of known mappings!
>
> 3. Can execute plugins in the same mvn session - eg a pom.xml that  
> kicks off
> an ejb and then web build won't bomb out.
>
> 4. Works by creating an actual build.xml file on the fly.
>
> - Ashley
>
> ---------------------------------------------------------------------
> 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


Re: [m2] new ejbdoclet+webdoclet plugin announcement

Posted by Ashley Williams <ag...@mac.com>.
Hi Marcel,

Reading between the lines I think you are asking if you need to have  
an ant
installation on your machine - the answer is no, since the plugin  
brings in
ant as one of its dependencies.

Some background: everybody has their own theory but mine is that  
maven intends
to replace all of the functionality of the ant tasks out there - and  
as a long term
goal I see no problem with that. However in the short term I see the  
following problems:

1. I need stuff that works well right now and can't wait for months  
and years. Even
when we do get maven replacements they won't have had the advantage  
of being
extensively user tested for quite some time.

2. Everybody knows ant syntax so familiarity is a big plus for  
somebody coming to maven
for the first time. I do wish that even when pure maven replacements  
come along they would
retain syntax compatibility with a reasonable subset of ant.

3. With the other ant integration stuff we already have in maven we  
don't have the
ability to easily map maven properties to ant attributes (correct me  
if I'm wrong). For me this
seemingly small point ends up being a real killer as I personally  
find it very troublesome
to supply values such as destDir="{project.output}/generated-sources/ 
main/java" (see I've
probably got that wrong and I'd have to look it up!!!) by hand and  
keep them all synchronized.

4. I create a temporary build file because I really can't get to  
grips with the slippery
ant api. Many methods are be private so I'd have to use reflection,  
also seeing problems
such as running tasks individually would work but run them as part of  
the same build
would fail. Glad to abandon that approach.

---

On balance I do look forward to the ant-maven integration plugins  
being retired
but can't see it happening any time soon.

- Ashley

On 25 Nov 2005, at 08:11, Marcel Dullaart wrote:

> Hi Ashley,
>
> sounds good, I'll try-out the webdoclet ASAP.
> Since you create an ant script on the fly, does that mean that  
> using your
> xdoclet plugin requires ant?
> Is that a good idea?
>
> Cheers,
> Marcel
> Ashley Williams <ag...@mac.com> wrote on 25-11-2005 01:08:04:
>
>> I have placed new ejbdoclet and webdoclet plugins in the sandbox here
>> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/
>>
>> And to see their use in a sample ear project try the following link:
>> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/sample-ear- 
>> proj/
>>
>> ---
>>
>> Briefly they provide the following features:
>>
>> 1. Familiar ant xdoclet syntax can be used in configuration
>>
>> 2. Maven properties are automatically applied to the ant task - for
>> example
>> you don't have to specify attributes such as destDir="target/
>> generated-sources",
>> because the plugin applies a list of known mappings!
>>
>> 3. Can execute plugins in the same mvn session - eg a pom.xml that
>> kicks off
>> an ejb and then web build won't bomb out.
>>
>> 4. Works by creating an actual build.xml file on the fly.
>>
>> - Ashley
>>
>> ---------------------------------------------------------------------
>> 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


Re: [m2] new ejbdoclet+webdoclet plugin announcement

Posted by Marcel Dullaart <md...@epo.org>.
Hi Ashley,

sounds good, I'll try-out the webdoclet ASAP.
Since you create an ant script on the fly, does that mean that using your 
xdoclet plugin requires ant?
Is that a good idea?

Cheers,
Marcel
Ashley Williams <ag...@mac.com> wrote on 25-11-2005 01:08:04:

> I have placed new ejbdoclet and webdoclet plugins in the sandbox here
> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/
> 
> And to see their use in a sample ear project try the following link:
> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/sample-ear-proj/
> 
> ---
> 
> Briefly they provide the following features:
> 
> 1. Familiar ant xdoclet syntax can be used in configuration
> 
> 2. Maven properties are automatically applied to the ant task - for 
> example
> you don't have to specify attributes such as destDir="target/ 
> generated-sources",
> because the plugin applies a list of known mappings!
> 
> 3. Can execute plugins in the same mvn session - eg a pom.xml that 
> kicks off
> an ejb and then web build won't bomb out.
> 
> 4. Works by creating an actual build.xml file on the fly.
> 
> - Ashley
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>