You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Thomas Marek <Ma...@biosolveit.de> on 2005/11/15 15:23:09 UTC
[m2] EJB3 and PAR - Including the classes of the par package...
Hi,
I want to include the classes of a par package in a ejb3 package.
I tried to use a dependency, but it doesn't work.
Here are the pom's:
<project>
<groupId>bla-group</groupId>
<artifactId>bla-par</artifactId>
<version>1.0.0</version>
<packaging>par</packaging>
<parent>
<groupId>bla-group</groupId>
<artifactId>bla</artifactId>
<version>1.0.0</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-par-plugin</artifactId>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>ejb</artifactId>
<version>3.0-public_review</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>bla-group</groupId>
<artifactId>bla-ejb3</artifactId>
<version>1.0.0</version>
<packaging>ejb3</packaging>
<parent>
<groupId>bla-group</groupId>
<artifactId>bla</artifactId>
<version>1.0.0</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb3-plugin</artifactId>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax.ejb</groupId>
<artifactId>ejb</artifactId>
<version>3.0-public_review</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>bla-group</groupId>
<artifactId>bla-par</artifactId>
<version>1.0.0</version>
<type>par</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.12</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
Or is there a way to package a module as a par and as a jar?
Thanks,
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] EJB3 and PAR - Including the classes of the par package...
Posted by Thomas Marek <Ma...@biosolveit.de>.
Isn't it possible to add a path to the classpath of a module at compile
time?
Thanks,
Thomas
Arik Kfir schrieb:
>Use a "Class-Path" entry in the MANIFEST.MF file of the .ejb3 file
>(this is standard in j2ee, not a hack :)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] EJB3 and PAR - Including the classes of the par package...
Posted by Arik Kfir <ar...@gmail.com>.
Use a "Class-Path" entry in the MANIFEST.MF file of the .ejb3 file
(this is standard in j2ee, not a hack :)
On 11/15/05, Thomas Marek <Ma...@biosolveit.de> wrote:
> I use some classes of the par package in the ejb3 package.
> So the classes of the par package should be in the classpath.
> How can i do that?
>
> Thanks,
> Thomas
>
> Stephane Nicoll schrieb:
>
> >It's not supported. I am not sure to fully understand what you are trying to
> >achieve based on the POMs below You want to geneerate an .ejb3 file with the
> >content of a .par file?
> >
> >s/
> >
> >
>
> ---------------------------------------------------------------------
> 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] EJB3 and PAR - Including the classes of the par package...
Posted by Thomas Marek <Ma...@biosolveit.de>.
I use some classes of the par package in the ejb3 package.
So the classes of the par package should be in the classpath.
How can i do that?
Thanks,
Thomas
Stephane Nicoll schrieb:
>It's not supported. I am not sure to fully understand what you are trying to
>achieve based on the POMs below You want to geneerate an .ejb3 file with the
>content of a .par file?
>
>s/
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] EJB3 and PAR - Including the classes of the par package...
Posted by Stephane Nicoll <st...@gmail.com>.
It's not supported. I am not sure to fully understand what you are trying to
achieve based on the POMs below You want to geneerate an .ejb3 file with the
content of a .par file?
s/
On 11/15/05, Thomas Marek <Ma...@biosolveit.de> wrote:
>
> Hi,
>
> I want to include the classes of a par package in a ejb3 package.
> I tried to use a dependency, but it doesn't work.
>
> Here are the pom's:
>
> <project>
> <groupId>bla-group</groupId>
> <artifactId>bla-par</artifactId>
> <version>1.0.0</version>
> <packaging>par</packaging>
> <parent>
> <groupId>bla-group</groupId>
> <artifactId>bla</artifactId>
> <version>1.0.0</version>
> </parent>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-par-plugin</artifactId>
> <extensions>true</extensions>
> </plugin>
> </plugins>
> </build>
> <dependencies>
> <dependency>
> <groupId>javax.persistence</groupId>
> <artifactId>ejb</artifactId>
> <version>3.0-public_review</version>
> <scope>compile</scope>
> </dependency>
> </dependencies>
> </project>
>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>bla-group</groupId>
> <artifactId>bla-ejb3</artifactId>
> <version>1.0.0</version>
> <packaging>ejb3</packaging>
> <parent>
> <groupId>bla-group</groupId>
> <artifactId>bla</artifactId>
> <version>1.0.0</version>
> </parent>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-ejb3-plugin</artifactId>
> <extensions>true</extensions>
> </plugin>
> </plugins>
> </build>
> <dependencies>
> <dependency>
> <groupId>javax.ejb</groupId>
> <artifactId>ejb</artifactId>
> <version>3.0-public_review</version>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>bla-group</groupId>
> <artifactId>bla-par</artifactId>
> <version>1.0.0</version>
> <type>par</type>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>log4j</groupId>
> <artifactId>log4j</artifactId>
> <version>1.2.12</version>
> <scope>compile</scope>
> </dependency>
> </dependencies>
> </project>
>
> Or is there a way to package a module as a par and as a jar?
>
> Thanks,
> Thomas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
.::You're welcome ::.