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/06 04:54:23 UTC

Help with dependencies in file system

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

Based on the suggestions in the 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 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 dependencies in file system

Posted by srini indla <sr...@gmail.com>.
Dan,

Even for aolj.jar-1.1.jar maven is trying to download from the repository.

When I run maven -X, the following is the trace

   [available] [VERBOSE] Found: src\java
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
Verifying dependencies for fwk-adf:fwk-adf
Attempting to download aolj-1.1.jar.
Getting URL: http://www.ibiblio.org/maven/apps/jars/aolj-1.1.jar
Received status code: 404
File not found on one of the repos
java.io.FileNotFoundException: http://www.ibiblio.org/maven/apps/jars/aolj-1.1.j
ar
       at org.apache.maven.util.HttpUtils.retrieveArtifact(HttpUtils.java:590)
       at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:395)
.....

Before the dependencies are loaded I am seeing the following
Exception, Does any one know what's causing this?

Now loading uncached plugins
Finished initializing Plugins!
Using userBuildPropertiesFile: C:\Documents and Settings\sindla\build.properties

Using projectPropertiesFile: C:\dev\maven_proj\fwk_adf\project.properties
Using projectBuildPropertiesFile: C:\dev\maven_proj\fwk_adf\build.properties
[MethodExpression] Cannot evaluate expression
java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.apache.commons.betwixt.expression.MethodExpression.evaluate(Metho
dExpression.java:96)
       at org.apache.commons.betwixt.io.AbstractBeanWriter.writeContent(Abstrac
tBeanWriter.java:658)
       at org.apache.commons.betwixt.io.AbstractBeanWriter.writeRestOfElement(A
bstractBeanWriter.java:539)
       at org.apache.commons.betwixt.io.AbstractBeanWriter.write(AbstractBeanWr
iter.java:481)
       at org.apache.commons.betwixt.io.AbstractBeanWriter.writeContent(Abstrac
tBeanWriter.java:643)
       at org.apache.commons.betwixt.io.AbstractBeanWriter.writeRestOfElement(A
bstractBeanWriter.java:539)
       at org.apache.commons.betwixt.io.AbstractBeanWriter.write(AbstractBeanWr
iter.java:513)
       at org.apache.commons.betwixt.io.AbstractBeanWriter.write(AbstractBeanWr
iter.java:233)
       at org.apache.commons.betwixt.io.AbstractBeanWriter.write(AbstractBeanWr
iter.java:162)
       at org.apache.commons.betwixt.io.BeanWriter.write(BeanWriter.java:217)
       at org.apache.maven.MavenUtils.getProjectString(MavenUtils.java:432)
       at org.apache.maven.MavenUtils.getInterpolatedPOM(MavenUtils.java:383)
       at org.apache.maven.MavenUtils.getJellyProject(MavenUtils.java:360)
       at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
       at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122)
       at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java
:232)
       at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
       at org.apache.maven.cli.App.doMain(App.java:475)
       at org.apache.maven.cli.App.main(App.java:1239)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at com.werken.forehead.Forehead.run(Forehead.java:551)
       at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: java.lang.NumberFormatException: For input string: "1.0"
       at java.lang.NumberFormatException.forInputString(NumberFormatException.
java:48)
       at java.lang.Integer.parseInt(Integer.java:477)
       at java.lang.Integer.parseInt(Integer.java:518)
       at org.apache.maven.project.Project.isPomCurrent(Project.java:1143)
       ... 29 more
pushing on org.apache.maven.jelly.MavenJellyContext@3b8b49 over org.apache.maven
- Show quoted text -


On Sat, 5 Mar 2005 23:07:07 -0800, dan tran <da...@gmail.com> wrote:
> How about this.
>
> maven.jar.override=on
> maven.jar.aolj=${basedir}/libs/aolj-1.1.jar
>
> not sure about this
> maven.jar.jttComn=${basedir}/libs/jttComn-1.1.zip
> maven.jar.svc=${basedir}/libs/svc-1.1.zip
>
> Also try to run maven with -X
>
> Good luck
>
> -Dan
>
>
> On Sat, 5 Mar 2005 19:54:23 -0800, srini indla <sr...@gmail.com> wrote:
> > Hi,
> > I am trying to configure Maven to pick up dependencies from my local
> > file system instead of a remote repo.
> >
> > Based on the suggestions in the 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 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
> >
> >
>



On Sat, 5 Mar 2005 23:07:07 -0800, dan tran <da...@gmail.com> wrote:
> How about this.
> 
> maven.jar.override=on
> maven.jar.aolj=${basedir}/libs/aolj-1.1.jar
> 
> not sure about this
> maven.jar.jttComn=${basedir}/libs/jttComn-1.1.zip
> maven.jar.svc=${basedir}/libs/svc-1.1.zip
> 
> Also try to run maven with -X
> 
> Good luck
> 
> -Dan
> 
> 
> On Sat, 5 Mar 2005 19:54:23 -0800, srini indla <sr...@gmail.com> wrote:
> > Hi,
> > I am trying to configure Maven to pick up dependencies from my local
> > file system instead of a remote repo.
> >
> > Based on the suggestions in the 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 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
> >
> >
>

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


Re: Help with dependencies in file system

Posted by dan tran <da...@gmail.com>.
How about this.


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

not sure about this
maven.jar.jttComn=${basedir}/libs/jttComn-1.1.zip
maven.jar.svc=${basedir}/libs/svc-1.1.zip


Also try to run maven with -X

Good luck

-Dan


On Sat, 5 Mar 2005 19:54:23 -0800, srini indla <sr...@gmail.com> wrote:
> Hi,
> I am trying to configure Maven to pick up dependencies from my local
> file system instead of a remote repo.
> 
> Based on the suggestions in the 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 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
> 
>

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