> -----Original Message-----
> From: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 07, 2003 1:27 PM
> To: 'Turbine Maven Users List'
> Subject: RE: Dependency on ejb-jar
> 
> 
> Hi Michal,
> 
> > 
> > Is it possible to set dependency on ejb-jar in new snapshot 
> of maven?
> > 
> > I tried something like 
> >   
> >     <dependency>
> >       <groupId>mygroup</groupId>     
> >       <id>myejbjar</id>
> >       <type>ejb</type>
> >       <version>1.0.0</version>
> >      </dependency> 
> > 
> > 
> > Is it possible in any straightforward way without renaming 
> the file by
> > myself?
> > 
> > 
> > Michal 
> 
> Does this helps?
> 
> <dependency>         
>   <id>ejb</id>
>   <version/>
>   <jar>ejb.jar</jar>
> </dependency>          
> 
> Bye
> Toby

No :(

As I understand (correct me if I am wrong):
If you use <jar>NAME-OF_YOUR_FILE</jar> file specified by this tag will be
searched in location jars/NAME-OF_YOUR_FILE
while ejb plugin installs them (correctly) in folder 'ejbs'.

[Bit off Topic] I think also that <jar> should be replaced in favor of other
tag e.g. <file> to make it more generic. 
I know that jars are the most frequently used artifacts, but...

Other thing:

Taken from
http://jakarta.apache.org/turbine/maven/reference/user-guide.html#Building
<project>
          <id>bar</id>
          <name>Baradelic Groove Machine</name>
          <groupId>org.bar.foo</groupId>
          ...
          
          <dependencies>
          
            <dependency>
              <groupId>org.foo.bar</groupId>
              <artifactId>foo</artifactId>
              <artifactType>jar</artifactType>
              <category>runtime</category>
              <version>1.0</version>
            </dependency>
          
          </dependencies>
          
        </project>
        


I thing this description is gently speaking is "not accurate". I would
really enjoy to see correct documentation of 
how to use <dependency> tag.

Apart from sub-tags there are some undocumented features like "+" notation
- e.g.

   <dependency>
    <id>xdoclet+ejb-module</id>
    <version>1.2b2</version>
   </dependency>

what is a relation of "+" notation to groupId ?
Will this notation be deprecated or removed since groupId started to work
properly?

For example I suppose that I can rewrite example mentioned above in a
following way:

   <dependency>
     <groupId>xdoclet</groupId>
     <id>xdoclet-ejb-module</id>
     <version>1.2b2</version>
   </dependency>
   






I think than in dependencies mechanism at least two things can be improved:

1. Type handling 

The value of  <type> tag can be used for resolving some extra information
about artifacts. 
E.g. config file like:


<type-definitions>
  <type-def>
    <name>ejb-jar<type>
    <ext>jar<ext>
    <dir>ejbs<dir>
    <description>ejb-jar module of J2EE application</description>
  </type-def>
  <type-def>
    <name>war<type>
    <ext>war<ext>
    <dir>wars<dir>
    <description>Web Application Archive (WAR)module of J2EE
application</description>
  </type-def>
  <type-def>
    <name>dtd<type>
    ...
<type-definitions>


can be used.


2. Multiple dependencies

It will be nice if one can set dependency for group of files. Then it will
be possible to set dependencies for entire frameworks like struts-1.1b3 
without a need of making it file by file.



While point #2 is just extension (or mad man's vision) , point #1 is in my
opinion important 
to enable smooth usage of artifacts of different type that jars

Michal




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

Reply via email to