You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by zzzz8 <zz...@netzero.net> on 2008/01/30 23:49:56 UTC
Maven Eclipse plugin does not evaluate systemPath dependency
I have the following in my pom.xml:
<dependency>
<groupId>oracle.apps</groupId>
<artifactId>oracle.apps.all</artifactId>
<version>11.5.10</version>
<scope>system</scope>
<systemPath>${AF_CLASSPATH}</systemPath>
</dependency>
The ${AF_CLASSPATH} should evaluate the environment variable AF_CLASSPATH to
c:\oracle\apps (where my class folder is). However, it doesn't seem to do
that. It even fails if I hard code the directory into the systemPath:
<dependency>
<groupId>oracle.apps</groupId>
<artifactId>oracle.apps.all</artifactId>
<version>11.5.10</version>
<scope>system</scope>
<systemPath>c:/oracle/apps</systemPath>
</dependency>
Interestingly, both techniques work from the Maven command line, thus
leading me to believe there's something wrong with the Maven Eclipse
plugin...
--
View this message in context: http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15194043.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Eclipse plugin does not evaluate systemPath dependency
Posted by zzzz8 <zz...@netzero.net>.
Hi Arnaud,
Thanks for the info. I tried that, too. Unfortunately, that didn't work
either. Again, both ${AF_CLASSPATH} and ${env.AF_CLASSPATH} work from the
command line.
Arnaud HERITIER wrote:
>
> If it is an environment variable it should be ${env.AF_CLASSPATH} ??
> Did you try ?
>
> Arnaud
>
> On Jan 30, 2008 11:49 PM, zzzz8 <zz...@netzero.net> wrote:
>
>>
>> I have the following in my pom.xml:
>>
>> <dependency>
>> <groupId>oracle.apps</groupId>
>> <artifactId>oracle.apps.all</artifactId>
>> <version>11.5.10</version>
>> <scope>system</scope>
>> <systemPath>${AF_CLASSPATH}</systemPath>
>> </dependency>
>>
>> The ${AF_CLASSPATH} should evaluate the environment variable AF_CLASSPATH
>> to
>> c:\oracle\apps (where my class folder is). However, it doesn't seem to
>> do
>> that. It even fails if I hard code the directory into the systemPath:
>>
>>
>> <dependency>
>> <groupId>oracle.apps</groupId>
>> <artifactId>oracle.apps.all</artifactId>
>> <version>11.5.10</version>
>> <scope>system</scope>
>> <systemPath>c:/oracle/apps</systemPath>
>> </dependency>
>>
>> Interestingly, both techniques work from the Maven command line, thus
>> leading me to believe there's something wrong with the Maven Eclipse
>> plugin...
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15194043.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
> --
> ..........................................................
> Arnaud HERITIER
> ..........................................................
> OCTO Technology - aheritier AT octo DOT com
> www.octo.com | blog.octo.com
> ..........................................................
> ASF - aheritier AT apache DOT org
> www.apache.org | maven.apache.org
> ...........................................................
>
>
--
View this message in context: http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15195088.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Eclipse plugin does not evaluate systemPath dependency
Posted by zzzz8 <zz...@netzero.net>.
Unfortunately, the class folder contains over 100,000 .class files (typical
Oracle fat)... and since jars can only contain 65K files, this will not
work (I'm using Java 5). I guess I can put it in two or more jar files, but
that's pretty messy. Also, that still doesn't address why this doesn't work
- when it should, as the command line demonstrates.
Wayne Fay wrote:
>
> Can you perhaps jar up the classes in that path, and then specify the
> full jar name, or even better check it into your local Maven repo
> cache using install:install-file?
>
> Wayne
>
> On 1/30/08, zzzz8 <zz...@netzero.net> wrote:
>>
>> Oops, I forgot to post the Eclipse error displayed:
>>
>> Required library cannot denote external folder: 'C:\oracle\apps' for
>> project
>> 'MyProgram'
>>
>> Obviously, c:\oracle\apps points to a class folder... hmm.
>>
>>
>> Arnaud HERITIER wrote:
>> >
>> > If it is an environment variable it should be ${env.AF_CLASSPATH} ??
>> > Did you try ?
>> >
>> > Arnaud
>> >
>> > On Jan 30, 2008 11:49 PM, zzzz8 <zz...@netzero.net> wrote:
>> >
>> >>
>> >> I have the following in my pom.xml:
>> >>
>> >> <dependency>
>> >> <groupId>oracle.apps</groupId>
>> >> <artifactId>oracle.apps.all</artifactId>
>> >> <version>11.5.10</version>
>> >> <scope>system</scope>
>> >> <systemPath>${AF_CLASSPATH}</systemPath>
>> >> </dependency>
>> >>
>> >> The ${AF_CLASSPATH} should evaluate the environment variable
>> AF_CLASSPATH
>> >> to
>> >> c:\oracle\apps (where my class folder is). However, it doesn't seem
>> to
>> >> do
>> >> that. It even fails if I hard code the directory into the systemPath:
>> >>
>> >>
>> >> <dependency>
>> >> <groupId>oracle.apps</groupId>
>> >> <artifactId>oracle.apps.all</artifactId>
>> >> <version>11.5.10</version>
>> >> <scope>system</scope>
>> >> <systemPath>c:/oracle/apps</systemPath>
>> >> </dependency>
>> >>
>> >> Interestingly, both techniques work from the Maven command line, thus
>> >> leading me to believe there's something wrong with the Maven Eclipse
>> >> plugin...
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15194043.html
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> >> For additional commands, e-mail: users-help@maven.apache.org
>> >>
>> >>
>> >
>> >
>> > --
>> > ..........................................................
>> > Arnaud HERITIER
>> > ..........................................................
>> > OCTO Technology - aheritier AT octo DOT com
>> > www.octo.com | blog.octo.com
>> > ..........................................................
>> > ASF - aheritier AT apache DOT org
>> > www.apache.org | maven.apache.org
>> > ...........................................................
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15195467.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
--
View this message in context: http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15199253.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Eclipse plugin does not evaluate systemPath dependency
Posted by Wayne Fay <wa...@gmail.com>.
Can you perhaps jar up the classes in that path, and then specify the
full jar name, or even better check it into your local Maven repo
cache using install:install-file?
Wayne
On 1/30/08, zzzz8 <zz...@netzero.net> wrote:
>
> Oops, I forgot to post the Eclipse error displayed:
>
> Required library cannot denote external folder: 'C:\oracle\apps' for project
> 'MyProgram'
>
> Obviously, c:\oracle\apps points to a class folder... hmm.
>
>
> Arnaud HERITIER wrote:
> >
> > If it is an environment variable it should be ${env.AF_CLASSPATH} ??
> > Did you try ?
> >
> > Arnaud
> >
> > On Jan 30, 2008 11:49 PM, zzzz8 <zz...@netzero.net> wrote:
> >
> >>
> >> I have the following in my pom.xml:
> >>
> >> <dependency>
> >> <groupId>oracle.apps</groupId>
> >> <artifactId>oracle.apps.all</artifactId>
> >> <version>11.5.10</version>
> >> <scope>system</scope>
> >> <systemPath>${AF_CLASSPATH}</systemPath>
> >> </dependency>
> >>
> >> The ${AF_CLASSPATH} should evaluate the environment variable AF_CLASSPATH
> >> to
> >> c:\oracle\apps (where my class folder is). However, it doesn't seem to
> >> do
> >> that. It even fails if I hard code the directory into the systemPath:
> >>
> >>
> >> <dependency>
> >> <groupId>oracle.apps</groupId>
> >> <artifactId>oracle.apps.all</artifactId>
> >> <version>11.5.10</version>
> >> <scope>system</scope>
> >> <systemPath>c:/oracle/apps</systemPath>
> >> </dependency>
> >>
> >> Interestingly, both techniques work from the Maven command line, thus
> >> leading me to believe there's something wrong with the Maven Eclipse
> >> plugin...
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15194043.html
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> > --
> > ..........................................................
> > Arnaud HERITIER
> > ..........................................................
> > OCTO Technology - aheritier AT octo DOT com
> > www.octo.com | blog.octo.com
> > ..........................................................
> > ASF - aheritier AT apache DOT org
> > www.apache.org | maven.apache.org
> > ...........................................................
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15195467.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: Maven Eclipse plugin does not evaluate systemPath dependency
Posted by zzzz8 <zz...@netzero.net>.
Oops, I forgot to post the Eclipse error displayed:
Required library cannot denote external folder: 'C:\oracle\apps' for project
'MyProgram'
Obviously, c:\oracle\apps points to a class folder... hmm.
Arnaud HERITIER wrote:
>
> If it is an environment variable it should be ${env.AF_CLASSPATH} ??
> Did you try ?
>
> Arnaud
>
> On Jan 30, 2008 11:49 PM, zzzz8 <zz...@netzero.net> wrote:
>
>>
>> I have the following in my pom.xml:
>>
>> <dependency>
>> <groupId>oracle.apps</groupId>
>> <artifactId>oracle.apps.all</artifactId>
>> <version>11.5.10</version>
>> <scope>system</scope>
>> <systemPath>${AF_CLASSPATH}</systemPath>
>> </dependency>
>>
>> The ${AF_CLASSPATH} should evaluate the environment variable AF_CLASSPATH
>> to
>> c:\oracle\apps (where my class folder is). However, it doesn't seem to
>> do
>> that. It even fails if I hard code the directory into the systemPath:
>>
>>
>> <dependency>
>> <groupId>oracle.apps</groupId>
>> <artifactId>oracle.apps.all</artifactId>
>> <version>11.5.10</version>
>> <scope>system</scope>
>> <systemPath>c:/oracle/apps</systemPath>
>> </dependency>
>>
>> Interestingly, both techniques work from the Maven command line, thus
>> leading me to believe there's something wrong with the Maven Eclipse
>> plugin...
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15194043.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
> --
> ..........................................................
> Arnaud HERITIER
> ..........................................................
> OCTO Technology - aheritier AT octo DOT com
> www.octo.com | blog.octo.com
> ..........................................................
> ASF - aheritier AT apache DOT org
> www.apache.org | maven.apache.org
> ...........................................................
>
>
--
View this message in context: http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15195467.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Eclipse plugin does not evaluate systemPath dependency
Posted by Arnaud HERITIER <ah...@gmail.com>.
If it is an environment variable it should be ${env.AF_CLASSPATH} ??
Did you try ?
Arnaud
On Jan 30, 2008 11:49 PM, zzzz8 <zz...@netzero.net> wrote:
>
> I have the following in my pom.xml:
>
> <dependency>
> <groupId>oracle.apps</groupId>
> <artifactId>oracle.apps.all</artifactId>
> <version>11.5.10</version>
> <scope>system</scope>
> <systemPath>${AF_CLASSPATH}</systemPath>
> </dependency>
>
> The ${AF_CLASSPATH} should evaluate the environment variable AF_CLASSPATH
> to
> c:\oracle\apps (where my class folder is). However, it doesn't seem to do
> that. It even fails if I hard code the directory into the systemPath:
>
>
> <dependency>
> <groupId>oracle.apps</groupId>
> <artifactId>oracle.apps.all</artifactId>
> <version>11.5.10</version>
> <scope>system</scope>
> <systemPath>c:/oracle/apps</systemPath>
> </dependency>
>
> Interestingly, both techniques work from the Maven command line, thus
> leading me to believe there's something wrong with the Maven Eclipse
> plugin...
> --
> View this message in context:
> http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15194043.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
..........................................................
Arnaud HERITIER
..........................................................
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...........................................................