and yes, the ear, war and jar projects have parent tags pointing to the pom
project ....


On 1/18/06, Karthik V <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Thank you. I couldn't find a single difference :( ... As for the super
> pom, I have a pom project that has modules like this -
>
>   <packaging>pom</packaging>
>   <modules>
>     <module>abc-bean</module>
>     <module>abc-war</module>
>     <module>abc-ear</module>
>   </modules>
>
> the bean and war projects dont have any dependencies on the ear, but ear
> has <dependency> tags pointing to both. Can you guess what could be wrong?
>
> thanks
> Karthik.
>
> On 1/18/06, Dário Luís Coneglian Oliveros <[EMAIL PROTECTED]> wrote:
> >
> > Hi Karthik,
> >
> > I have an EAR project using M2 that does something similar, but it works
> > for me though. All the artifacts as added into the final EAR.
> > I can´t think of a reason why yours is not working, since it´s quite
> > similar to mine.
> > You may check if the super pom already define some of the dependencies
> > and that may be causing the problem. It´s just a guess.
> >
> > my pom.xml
> > ----------
> > <project>
> >   <parent>
> >     <groupId>whatever</groupId>
> >     <artifactId>root-project</artifactId>
> >     <version>1.0-SNAPSHOT</version>
> >   </parent>
> >   <modelVersion>4.0.0</modelVersion>
> >   <groupId>whatever</groupId>
> >   <artifactId>ear-project</artifactId>
> >   <version>1.0-SNAPSHOT</version>
> >   <packaging>ear</packaging>
> >   <dependencies>
> >     <dependency>
> >       <groupId>whatever</groupId>
> >       <artifactId>java-project</artifactId>
> >       <version> 1.0-SNAPSHOT</version>
> >       <type>jar</type>
> >     </dependency>
> >     <dependency>
> >       <groupId>whatever</groupId>
> >       <artifactId>ejb-project</artifactId>
> >       <version>1.0-SNAPSHOT</version>
> >       <type>ejb</type>
> >     </dependency>
> >     <dependency>
> >       <groupId>whatever</groupId>
> >       <artifactId>web-project</artifactId>
> >       <version>1.0-SNAPSHOT</version>
> >       <type>war</type>
> >     </dependency>
> >   </dependencies>
> >   <build>
> >     <plugins>
> >       <plugin>
> >         <groupId> org.apache.maven.plugins</groupId>
> >         <artifactId>maven-ear-plugin</artifactId>
> >       </plugin>
> >     </plugins>
> >   </build>
> > </project>
> >
> > Regards,
> > Dário
> >
> > -----Original Message-----
> > From: Karthik V [mailto:[EMAIL PROTECTED]
> > Sent: quarta-feira, 18 de janeiro de 2006 14:09
> > To: Maven Users List
> > Subject: Re: Ear file doesnt contain war and jar
> >
> >
> > Hi Henry,
> >
> > Below is my ear projects pom ... I've *** ed the proprietary stuff
> > ...  I'm
> > trying to include abc-bean.jar, abc-war.war and commons-collection.jarinto
> > the ear file (in the directory i need) ...  Note that, I tried the
> > <javamodule> section (now commented) but it didnt work ...
> >
> >
> > <project>
> >   <modelVersion>4.0.0</modelVersion>
> >   <groupId>***</groupId>
> >   <version>1.0</version>
> >   <artifactId>abc-ear</artifactId>
> >   <name>ABC Ear</name>
> >   <packaging>ear</packaging>
> >   <parent>
> >     <groupId>***</groupId>
> >     <version>1.0</version>
> >     <artifactId>***</artifactId>
> >   </parent>
> >
> >   <dependencyManagement>
> >   <dependencies>
> >     <dependency>
> >       <groupId>***</groupId>
> >       <version> 1.0</version>
> >       <artifactId>abc-bean</artifactId>
> >       <type>jar</type>
> >     </dependency>
> >
> >     <dependency>
> >       <groupId>***</groupId>
> >       <version> 1.0</version>
> >       <artifactId>abc-war</artifactId>
> >       <type>war</type>
> >     </dependency>
> >
> >     <dependency>
> >       <groupId>commons-collections</groupId>
> >       <artifactId>commons-collections</artifactId>
> >       <version>2.1.1</version>
> >       <type>jar</type>
> >     </dependency>
> >
> >   </dependencies>
> >   </dependencyManagement>
> >   <build>
> >     <plugins>
> >       <plugin>
> >         <groupId>org.apache.maven.plugins</groupId>
> >         <artifactId>maven-ear-plugin</artifactId>
> >         <configuration>
> >           <modules>
> >              <!-- <javaModule>
> >            <groupId>commons-collections</groupId>
> >                <artifactId>commons-collections</artifactId>
> >                <includeInApplicationXml>true</includeInApplicationXml>
> >              </javaModule> -->
> >         </modules>
> >
> >
> > <applicationXml>${basedir}/src/main/resources/META-INF/application.xml</applicationXml>
> >
> >         </configuration>
> >       </plugin>
> >     </plugins>
> >
> >     <resources>
> >       <resource>
> >         <directory>${basedir}/src/main/resources</directory>
> >       </resource>
> >     </resources>
> >
> >   </build>
> >
> > </project>
> >
> >
> >
> >
> > On 1/17/06, Henry Isidro <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi Karthik V,
> > >
> > > The <properties> tag for dependencies are no longer suppported. Can
> > you
> > > post your pom so that we can see what you are actually doing?
> > >
> > > Regards,
> > > Henry
> > >
> > > Karthik V wrote:
> > >
> > > > looks like things have changed :( ... the <properties> tag is not
> > being
> > > > recognized.
> > > >
> > > >
> > > > On 1/17/06, Max Cooper <[EMAIL PROTECTED]> wrote:
> > > >
> > > >>Note: this is for Maven 1 (1.0.2 , 1.1-beta-2, I don't know if
> > anything
> > > >>has changed for Maven 2)
> > > >>
> > > >>In the ear project where you specify the dependencies, you specify
> > > >>properties to tell the ear plugin what to do with your jars and
> > wars.
> > > >>Here's an example:
> > > >>
> > > >><!-- ejb jar -->
> > > >><dependency>
> > > >>  <groupId>myproject</groupId>
> > > >>  <artifactId>ejb</artifactId>
> > > >>  <version>${pom.currentVersion}</version>
> > > >>  <type>ejb</type>
> > > >>  <properties>
> > > >>    <ear.bundle>true</ear.bundle>
> > > >>  </properties>
> > > >></dependency>
> > > >><!-- war -->
> > > >><dependency>
> > > >>  <groupId>myproject</groupId>
> > > >>  <artifactId>web</artifactId>
> > > >>  <version>${pom.currentVersion}</version>
> > > >>  <type>war</type>
> > > >>  <properties>
> > > >>    <ear.bundle>true</ear.bundle>
> > > >>    <ear.appxml.war.context-root>/</ear.appxml.war.context-root>
> > > >>  </properties>
> > > >></dependency>
> > > >><!-- utility jar -->
> > > >><dependency>
> > > >>  <groupId>myproject</groupId>
> > > >>  <artifactId>util</artifactId>
> > > >>  <version>${pom.currentVersion}</version>
> > > >>  <type>jar</type>
> > > >>  <properties>
> > > >>    <ear.module>true</ear.module>
> > > >>  </properties>
> > > >></dependency>
> > > >>
> > > >>This is all described at the bottom of this page:
> > > >>
> > http://maven.apache.org/maven-1.x/reference/plugins/ear/properties.html
> > > >>
> > > >>Note that the ear.bundle.dir property will allow you to control the
> > > >>directory (inside the ear file) where the dependency ends up.
> > > >>
> > > >>-Max
> > > >>
> > > >>On Tue, 2006-01-17 at 13:18 -0500, Karthik V wrote:
> > > >>
> > > >>>when someone answers this question, please give a general answer to
> > > this
> > > >>>question - how do I copy a jar file specified as dependency into
> > the
> > > >>
> > > >>final
> > > >>
> > > >>>artifact, inside the folder I want?
> > > >>>
> > > >>>
> > > >>>On 1/17/06, Karthik V < [EMAIL PROTECTED]> wrote:
> > > >>>
> > > >>>>I have an ear project that needs to pack 2 other projects
> > artifacts
> > > >>
> > > >>(jar
> > > >>
> > > >>>>and war). In the ear project pom, I've added dependencies on both.
> >
> > > >>
> > > >>However,
> > > >>
> > > >>>>the ear file produced doesnt contain these. How do I fix this
> > problem?
> > > >>
> > > >>
> > >
> > >>---------------------------------------------------------------------
> > > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >>For additional commands, e-mail: [EMAIL PROTECTED]
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > > >
> > ------------------------------------------------------------------------
> > > >
> > > > No virus found in this incoming message.
> > > > Checked by AVG Free Edition.
> > > > Version: 7.1.371 / Virus Database: 267.14.19/231 - Release Date:
> > > 1/16/2006
> > >
> > > ---------------------------------------------------------------------
> > > 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