If I use "provided" the dependencies will never be included, my problem is
1. projects:
rar1: dependency to my-jar
rar2: dependency to my-jar
ejb1: dependency to my-jar
ear: dependency to rar1, rar2
2. inside the ear:
ejb1.jar
rar1.rar
rar2.rar
lib/my-jar.jar
3. This works fine for packaging=ejb - the my-jar.jar gets copied to the lib
dir during build of
the ear. But the same jar gets also packaged in the rar1 and in the rar2
archive. So I have it
three times instead only having the entries in MANFIFEST.MF/Class-Path and the
jar only
once in the lib subdir.
The Manifest entries are not the problem, to get the jar not packaged in the
rars is my
problem.
regards, carsten
On 30 May 2006 at 10:24, Wayne Fay wrote:
> I can't tell if you're running M2 or M1...
>
> But in M2, to exclude a dependency from being included in a package,
> we use the <scope>provided</scope> tag to override the default
> "compile" scope. Provided tells the packager that this
> dependency/artifact/library will be provided by the app server etc,
> and so it does not need to be included in the archive/package.
>
> Wayne
>
> On 5/30/06, Carsten Karkola <[EMAIL PROTECTED]> wrote:
> > Hallo,
> >
> > I have some subprojects with <packaging>rar</packaging> specified. There
> > are some dependencies specified, that need to be included in the ear. I'd
> > like to include these dependencies (like axis) only once in the ear and not
> > in
> > every rar archive.
> > This way works fine with ejb archives. But with rar archives I get these
> > depend jars always included in the rar itself.
> > <includeJar>false</includeJar>
> > doesn't help.
> >
> > regards, carsten
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]