hi
silly me!! i was not declaring packaging=ejb on my pom.xml

sorry for bothering, everything is fine now

regards
marco

On 8/17/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:

Hi alan,
  thanks for link but it didnt work out for me..
i am using maven-2.0.4, here's my pom.xml..

i'd need egenEJB adn egenCommon to go inside manifest ClassPath entry, but
somehow they don't go...

any help?

thanks and regards
 marco

<?xml version="1.0"?><project>
  <parent>
    <artifactId>middleware</artifactId>
    <groupId>middleware</groupId>
    <version>1.0-SNAPSHOT</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>middleware</groupId>
  <artifactId>ngenMiddleware</artifactId>
  <name>Maven Quick Start Archetype</name>
  <version>1.0-SNAPSHOT</version>
  <url>http://maven.apache.org</url>
  <dependencies>

      <dependency>
         <groupId>geronimo-spec</groupId>
         <artifactId>geronimo-spec-j2ee</artifactId>
     <scope>provided</scope>
      </dependency>

      <dependency>
         <groupId>myfaces</groupId>
         <artifactId>myfaces-all</artifactId>
         <version>1.1.1</version>
     <scope>provided</scope>
      </dependency>
      <dependency>
         <groupId>org.testng</groupId>
         <artifactId>testng</artifactId>
         <version>5.0.1</version>
         <scope>test</scope>
         <classifier>jdk15</classifier>
      </dependency>
      <dependency>
         <groupId>dbunit</groupId>
         <artifactId>dbunit</artifactId>
     <version>2.1</version>
     <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>egen</groupId>
         <artifactId>egenEJB</artifactId>
     <version>3.3.2.3</version>
     <optional>true</optional>
      </dependency>
      <dependency>
         <groupId>egen</groupId>
         <artifactId>egenCommon</artifactId>
     <version>3.3.2.3</version>
     <optional>true</optional>
      </dependency>
      <dependency>
         <groupId>castor</groupId>
         <artifactId>castor</artifactId>
         <version>1.0M4</version>
     </dependency>
     <dependency>
         <groupId>middleware</groupId>
         <artifactId>CommonsEJB</artifactId>
          <version>1.0-SNAPSHOT</version>
          <scope>compile</scope>
     </dependency>
   </dependencies>
  <build>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/resources</directory>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>xdoclet-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>xdoclet</goal>
            </goals>
            <configuration>
              <tasks>
                <ejbdoclet
            destDir="${project.build.directory}/generated-sources/xdoclet"
            excludedTags="@author,@version">
                <fileset
                    dir="src/main/java"
                    includes="**/*Bean.java" />
                <entitycmp 
destDir="${project.build.directory}/generated-sources/xdoclet"
/>
                <homeinterface destDir="${ project.build.directory
}/generated-sources/xdoclet">
                        <!-- <packagesubstitution packages="session"
                          substituteWith="interfaces" useFirst="  true"/>
-->
                </homeinterface>
                <localinterface destDir="${project.build.directory
}/generated-sources/xdoclet"/>
                <localhomeinterface 
destDir="${project.build.directory}/generated-sources/xdoclet"/>
                <remoteinterface destDir="${project.build.directory
}/generated-sources/xdoclet"/>
                <deploymentdescriptor
                        destDir="${ project.build.outputDirectory
}/META-INF"/>
                    <jboss version="3.2"
                        destDir="${project.build.outputDirectory
}/META-INF"/>
        </ejbdoclet>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <encoding>iso-8859-1</encoding>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins </groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.8-SNAPSHOT</version>
        <configuration>
        <!--  <suiteXmlFiles>
            <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
          </suiteXmlFiles>-->
        </configuration>
      </plugin>

      <plugin>
        <groupId> org.apache.maven.plugins</groupId>
        <artifactId>maven-ejb-plugin</artifactId>
        <configuration>
         <generateClient>true</generateClient>
         <clientExcludes>
            <clientExclude>**/*Bean.class</clientExclude>
         </clientExcludes>
        <archive>
           <manifest>
               <addClasspath>true</addClasspath>
           </manifest>
        </archive>
         </configuration>
      </plugin>
      <!--
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      -->
    </plugins>
  </build>
  <repositories>
    <repository>
      <releases />
      <snapshots />
      <id>codehaus</id>
      <url>http://dist.codehaus.org/</url>
    </repository>
    <repository>
      <releases />
      <snapshots />
      <id>codehaus-legacy</id>
      <url>http://dist.codehaus.org/</url>
      <layout>legacy</layout>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>apache.snapshots</id>
      <url>http://cvs.apache.org/maven-snapshot-repository </url>
    </pluginRepository>
    <pluginRepository>
      <releases />
      <snapshots />
      <id>codehaus-plugins</id>
      <url> http://dist.codehaus.org/</url>
    </pluginRepository>
    <pluginRepository>
      <id>tapestry.javaforge</id>
      <url> http://howardlewisship.com/repository</url>
    </pluginRepository>
  </pluginRepositories>

</project>


On 8/16/06, Alan D. Salewski <[EMAIL PROTECTED]> wrote:
>
> On Wed, Aug 16, 2006 at 07:35:21PM +0100, Marco Mistroni spake thus:
> > hi all,
> >  i am using maven2, i have 2 ejb projects that have as dependency
> > two external jars
> > maven2 included those 2 jars in my ear, but i need to have a ClassPath
>
> > reference
> > also in the manifest file of both ejbs...
> > how can i do that?
> > i am using maven-ear plugin.. i know there was some tags to be used ,
> such
> > as addToClasspath
> > but if i remember correctly that was for building jars....
> >
> > can anyone help me out?
>
>
> Hi Marco,
>
> Check this out:
>
>     http://www.mail-archive.com/users@maven.apache.org/msg47020.html
>
> In short, you can configure the maven-ejb-plugin in the same way as the
> maven-jar-plugin.
>
> HTH,
> -Al
>
> --
> :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
> ::
> Alan D. Salewski
> Software Developer
> Health Market Science, Inc.
> :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
> ::
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to