You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jamborta <ja...@gmail.com> on 2009/10/13 19:42:53 UTC
Maven system dependencies
Hi all,
I have added some system (local) dependencies to my project, and they show
up in netbeans under libraries and compiles, but when I try to run the
project (from netbeans) I get java.lang.NoClassDefFoundError.
I moved everyting to a conventional java project in netbeans and it runs
correctly there, so I assume the problem is in the pom file.
this is how I did it:
</dependency>
<dependency>
<groupId>matlab</groupId>
<artifactId>optimizer</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>C:/java_lib/OptimDemo.jar</systemPath>
thanks a lot,
Tom
--
View this message in context: http://www.nabble.com/Maven-system-dependencies-tp25877508p25877508.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 system dependencies
Posted by jamborta <ja...@gmail.com>.
thanks. it works this way.
Wayne Fay wrote:
>
>> I have added some system (local) dependencies to my project, and they
>> show
>> up in netbeans under libraries and the project compiles, but when I try
>> to
>> run the project (from netbeans) I get java.lang.NoClassDefFoundError.
>
> Don't use system scope. Use install-file to add the jar to your local
> repo cache, and a proper scope (probably compile).
>
> Wayne
>
>
> ---------------------------------------------------------------------
> 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-system-dependencies-tp25877508p25878499.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 system dependencies
Posted by Wayne Fay <wa...@gmail.com>.
> I have added some system (local) dependencies to my project, and they show
> up in netbeans under libraries and the project compiles, but when I try to
> run the project (from netbeans) I get java.lang.NoClassDefFoundError.
Don't use system scope. Use install-file to add the jar to your local
repo cache, and a proper scope (probably compile).
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org