You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by srini indla <sr...@gmail.com> on 2005/03/07 19:23:01 UTC

Help with jar overrides

Hi,
I am trying to configure Maven to pick up dependencies from my local
file system instead of a remote repo using the jar override feature.

Based on the suggestions in this list archives I have done the following,
but still not successful in getting it to work.

project.properties entries

maven.jar.override=on
maven.jar.aolj.jar ${basedir}/libs/aolj-1.1.jar
maven.jar.jttComn.zip ${basedir}/libs/jttComn-1.1.zip
maven.jar.svc.zip ${basedir}/libs/svc-1.1.zip

project.xml entries

   <dependency>
     <groupId>apps</groupId>
     <artifactId>aolj</artifactId>
     <version>1.1</version>
   </dependency>
   <dependency>
     <groupId>apps</groupId>
     <artifactId>jttComn</artifactId>
     <version>1.1</version>
     <type>zip</type>
   </dependency>
  <dependency>
     <groupId>apps</groupId>
     <artifactId>svc</artifactId>
     <version>1.1</version>
     <type>zip</type>
   </dependency>

When I try building the project, maven is still trying to download the
dependencies from the repository.

Attempting to download aolj-1.1.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/apps/jars/aolj-1.1.
jar]: java.net.NoRouteToHostException: No route to host: connect

Is there any other configuration that I should be doing? Any help is
greatly appreciated.

Thanks,
Srini

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Help with jar overrides

Posted by srini indla <sr...@gmail.com>.
Brett,
Thanks a lot. It works now.


On Mon, 7 Mar 2005 11:04:47 -0800, Brett Porter <br...@gmail.com> wrote:
> Sorry, I should also note that you mustn't include the type, so it
> should actually be:
> 
> maven.jar.aolj=${basedir}/libs/aolj-1.1.jar
> 
> On Mon, 7 Mar 2005 11:03:53 -0800, Brett Porter <br...@gmail.com> wrote:
> > > maven.jar.override=on
> > > maven.jar.aolj.jar ${basedir}/libs/aolj-1.1.jar
> > > maven.jar.jttComn.zip ${basedir}/libs/jttComn-1.1.zip
> > > maven.jar.svc.zip ${basedir}/libs/svc-1.1.zip
> >
> > maven.jar.aolj.jar=${basedir}/libs/aolj-1.1.jar
> >
> > missing equals?
> >
> > - Brett
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Help with jar overrides

Posted by Brett Porter <br...@gmail.com>.
Sorry, I should also note that you mustn't include the type, so it
should actually be:

maven.jar.aolj=${basedir}/libs/aolj-1.1.jar

On Mon, 7 Mar 2005 11:03:53 -0800, Brett Porter <br...@gmail.com> wrote:
> > maven.jar.override=on
> > maven.jar.aolj.jar ${basedir}/libs/aolj-1.1.jar
> > maven.jar.jttComn.zip ${basedir}/libs/jttComn-1.1.zip
> > maven.jar.svc.zip ${basedir}/libs/svc-1.1.zip
> 
> maven.jar.aolj.jar=${basedir}/libs/aolj-1.1.jar
> 
> missing equals?
> 
> - Brett
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Help with jar overrides

Posted by Brett Porter <br...@gmail.com>.
> maven.jar.override=on
> maven.jar.aolj.jar ${basedir}/libs/aolj-1.1.jar
> maven.jar.jttComn.zip ${basedir}/libs/jttComn-1.1.zip
> maven.jar.svc.zip ${basedir}/libs/svc-1.1.zip

maven.jar.aolj.jar=${basedir}/libs/aolj-1.1.jar

missing equals?

- Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org