Well, generally I'd prefer to put the jars into a shared internal m2
repository, and then just refer to them with provided scope as I
mentioned.  This allows your pom and build to be shared more easily.

I haven't used system scope or systemPath personally.  But I assume it
works like this:

<dependency>
  <groupId>thegroup</groupId>
  <artifactId>theartifact</artifactId>
  <version>theversion</version>
  <scope>system</scope>
  <systemPath>/path/to/websphere/lib/file</systemPath>
</dependency>

with preferably using some shared property to reference the path to
where websphere is installled, or something.  But, again, I wouldn't
use system scope, I would put the jars into a shared repository and
use provided scope.

-Stephen




On 1/10/06, Sanjay Choudhary <[EMAIL PROTECTED]> wrote:
> Provided is similar to system.  For system we have <SystemPath> , how do I
> specify the path for
> provided?  Or Will  I need to copy the files to maven m2 repository?
>
> It will be helpful if someone can provide me with a dependency block from
> their pom.xml.
>
> Thanks,
> Sanjay
>
>
> On 1/10/06, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> >
> > The standard way to do this is to depend on those jars with
> > <scope>provided</scope>
> >
> > -Stephen
> >
> > On 1/10/06, Sanjay Choudhary <[EMAIL PROTECTED]> wrote:
> > > Hi All,
> > >
> > > We have several JARS that are present in Websphere Lib folder.  In my
> > > previous project we copied all these jars in maven local repository (we
> > were
> > > using maven 1.0.2).   Then defined each dependency in project.xml (was
> > very
> > > tedious :-(   )
> > >
> > > In M2, is there a way to set the classpath while performing
> > compile?  Don't
> > > need these entries in the Manifest.
> > >
> > > When we used Ant , we used to set the classpath, which used to include
> > all
> > > the jars in Websphere Lib folder. Need something similar.
> > >
> > > Thanks,
> > > Sanjay
> > >
> > >
> >
> >
> > --
> > Stephen Duncan Jr
> > www.stephenduncanjr.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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

Reply via email to