On Tue, 13 Sep 2005, Adam Hardy wrote:

That's correct, the dependency itself is not updated to reflect
the type of the pom associated with it, and hence type has to be
specified. And yes, it defaults to jar.

However, since the type information is available in the pom, it would
be very convenient if m2 just propagated that back to the dependency.

Could you please file a JIRA issue about this, so we'll get this fixed
when time allows it?

Thanks!

-- Kenney

> I didn't explicitly declare the type attribute in my dependency
> declarations. I've done that now and maven-ear-plugin has co-operated.
>
> It seems that the plugin was looking no further than that type
> attribute, rather than delving into the dependency's pom.
>
> Does the <type> attribute in the dependency declaration default to 'jar'
> if it is left out?
>
> That would be my mistake then, I think.
>
> Edward Yakop on 12/09/05 16:07, wrote:
> > This is what I have in my pom.xml:
> >
> > <project>
> >   <modelVersion>4.0.0</modelVersion>
> >   <groupId>com.tokuii.serverside.baseapp</groupId>
> >   <artifactId>bsp-ear</artifactId>
> >   <version>1.0-SNAPSHOT</version>
> >   <name>Baseapp - EAR</name>
> >   <url>http://www.tokuii.com</url>
> >   <packaging>ear</packaging>
> >   <parent>
> >     <groupId>com.tokuii.serverside</groupId>
> >     <artifactId>baseapp</artifactId>
> >     <version>1.0-SNAPSHOT</version>
> >   </parent>
> >   <build>
> >     <plugins>
> >       <plugin>
> >         <groupId>org.apache.maven.plugins</groupId>
> >         <artifactId>maven-ear-plugin</artifactId>
> >         <configuration>
> >           <archive>
> >             <manifest>
> >               <addClasspath>true</addClasspath>
> >             </manifest>
> >           </archive>
> >           <generateApplicationXml>true</generateApplicationXml>
> >         </configuration>
> >       </plugin>
> >     </plugins>
> >   </build>
> >   <dependencies>
> >     <dependency>
> >       <groupId>com.tokuii.serverside.baseapp.presentation.flash</groupId>
> >       <artifactId>bsp-pl-fls-ejb</artifactId>
> >       <version>1.0-SNAPSHOT</version>
> >       <type>ejb</type>
> >     </dependency>
> >     <dependency>
> >       <groupId>com.tokuii.serverside.baseapp.presentation.flash</groupId>
> >       <artifactId>bsp-pl-fls-web</artifactId>
> >       <version>1.0-SNAPSHOT</version>
> >       <type>war</type>
> >     </dependency>
> >   </dependencies>
> > </project>
> >
> > and maven 2 produce the ear accordingly.
> >
> > Regards,
> > Edward Yakop
> >
> > On 9/12/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> >
> >>It seems I didn't send my reply, so if it arrives twice, my apologies.
> >>
> >>garg-ejb is declared as ejb packaging.
> >>
> >>No modules declarations at all appear in the application xml. This is
> >>what it has:
> >>
> >><?xml version="1.0" encoding="UTF-8"?>
> >><application xmlns="http://java.sun.com/xml/ns/j2ee";
> >>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >>xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> >>http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"; version="1.4">
> >>   <display-name>garg-ear</display-name>
> >>   <description>Garg Application EAR Package with EJBs and
> >>Jars</description>
> >></application>
> >>
> >>Edward Yakop on 12/09/05 08:06, wrote:
> >>
> >>>what is garg-ejb packaging? an ejb packaging?
> >>>
> >>>regards,
> >>>Edward Yakop
> >>>
> >>>Note: By default, all dependency will not be generated inside
> >>>application.xml unless if it is either ejb-client, ejb or war.
> >>>
> >>>On 9/11/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>>I'm bootstrapping m2 from svn source and I cannot work out how to get
> >>>>maven-ear-plugin to enter the module list into the application.xml.
> >>>>
> >>>>My application.xml contains only the project description and that's it.
> >>>>
> >>>>I've looked in the source code and it seems that the
> >>>>GenerateApplicationXmlMojo is not getting any modules in its modules
> >>>>collection - but if you look at my pom below, you'll see that the
> >>>>modules are all set up there (and the .ear file looks good apart from
> >>>>this application.xml).
> >>>>
> >>>>Any help would be gladly received!
> >>>>
> >>>>Here's my pom.xml:
> >>>>
> >>>><?xml version="1.0" encoding="UTF-8"?>
> >>>><project xmlns="http://maven.apache.org/POM/4.0.0";
> >>>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >>>>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >>>>http://maven.apache.org/maven-v4_0_0.xsd";>
> >>>>  <modelVersion>4.0.0</modelVersion>
> >>>>  <groupId>org.garg</groupId>
> >>>>  <artifactId>garg-ear</artifactId>
> >>>>  <packaging>ear</packaging>
> >>>>  <version>1.0-SNAPSHOT</version>
> >>>>  <name>Garg EAR</name>
> >>>>  <description>Garg Application EAR Package with EJBs and
> >>>>Jars</description>
> >>>>  <url>http://www.garg.com</url>
> >>>>  <dependencies>
> >>>>    <dependency>
> >>>>      <groupId>org.garg</groupId>
> >>>>      <artifactId>garg-delegate</artifactId>
> >>>>      <version>1.0-SNAPSHOT</version>
> >>>>      <scope>compile</scope>
> >>>>    </dependency>
> >>>>    <dependency>
> >>>>      <groupId>org.garg</groupId>
> >>>>      <artifactId>garg-ejb</artifactId>
> >>>>      <version>1.0-SNAPSHOT</version>
> >>>>      <scope>compile</scope>
> >>>>    </dependency>
> >>>>  </dependencies>
> >>>>  <build>
> >>>>    <plugins>
> >>>>      <plugin>
> >>>>        <artifactId>maven-ear-plugin</artifactId>
> >>>>        <version>2.0-beta-1-SNAPSHOT</version>
> >>>>        <configuration>
> >>>>          <version>1.4</version>
> >>>>          <archive>
> >>>>            <manifest>
> >>>>              <addClasspath>true</addClasspath>
> >>>>            </manifest>
> >>>>          </archive>
> >>>>        </configuration>
> >>>>        <executions>
> >>>>          <execution>
> >>>>            <goals>
> >>>>              <goal>generate-application-xml</goal>
> >>>>              <goal>ear</goal>
> >>>>            </goals>
> >>>>          </execution>
> >>>>        </executions>
> >>>>      </plugin>
> >>>>    </plugins>
> >>>>  </build>
> >>>>  <modules>
> >>>>    <module>../garg-dto</module>
> >>>>    <module>../garg-subdto</module>
> >>>>    <module>../garg-remote</module>
> >>>>    <module>../garg-delegate</module>
> >>>>    <module>../garg-ejb</module>
> >>>>  </modules>
> >>>></project>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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

Reply via email to