You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by maxmil <ma...@alwayssunny.com> on 2007/01/25 17:14:00 UTC

Use jar not in repository

Hi,

i'm new to Maven and need to use a jar that is not in the central repository
(apache fop 0.93 and its dependencies). Is the best way to get around this
to add it (and all the jars that it depends on) to my local repository or is
there another way of getting these jars onto my classpath so that they will
be compiled and packaged with my project?

Thanks in advance

max
-- 
View this message in context: http://www.nabble.com/Use-jar-not-in-repository-tf3116331s177.html#a8632051
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: Use jar not in repository

Posted by Wayne Fay <wa...@gmail.com>.
http://maven.apache.org/plugins/maven-install-plugin/examples/specific-local-repo.html

Wayne

On 1/25/07, JayBee <te...@hotmail.com> wrote:
>
> True,  but I did not want to use default HOME/.m2/repository, so I set this
> to <root>/mavenlocal, could this be problematic?
>
> Also,  I did not manually copy my jar files to this repository,  I use mvn
> install:install-file..............., to let maven install my 3rd party jars
> to local repository.
>
>
>
> Nick Stolwijk wrote:
> >
> > Your local repository resides (with all the other downloaded artifacts)
> > in your HOME/.m2/repository. If you use the install:install-file goal
> > maven will also put the artifacts in there. Don't put jar files in there
> > yourself, then Maven won't have the right information (the pom.xml files
> > and the metadata files) to find your artifact.
> >
> > Hth,
> >
> > Nick Stolwijk
> >
> > JayBee wrote:
> >> I have the similar issue, even installing jars in local repository
> >> dosen't
> >> seem to satisfy dependencies.  I have set localrepository to
> >> <root>\mavenlocal where I have installed my jars and from error messages
> >> it
> >> seems that mvn compile dosen't probe local repository at all.
> >>
> >> [INFO] Using default encoding to copy filtered resources.
> >>
> >> Downloading:
> >> http://repo1.maven.org/maven2/org/bouncycastle/bouncycastle/1.0/bouncycastle-1.0.pom
> >>
> >> [WARNING] Unable to get resource from repository central
> >> (http://repo1.maven.org/maven2)
> >>
> >> [INFO]
> >> ------------------------------------------------------------------------
> >>
> >> [ERROR] BUILD ERROR
> >>
> >> [INFO]
> >> ------------------------------------------------------------------------
> >>
> >> [INFO] Failed to resolve artifact.
> >>
> >>
> >>
> >>
> >> Wayne Fay wrote:
> >>
> >>> Just install the file into your local repo using Maven. Search for
> >>> "mvn install:install-file" on Google or the Maven Users mailing list
> >>> for this information.
> >>>
> >>> Wayne
> >>>
> >>> On 1/25/07, maxmil <ma...@alwayssunny.com> wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>> i'm new to Maven and need to use a jar that is not in the central
> >>>> repository
> >>>> (apache fop 0.93 and its dependencies). Is the best way to get around
> >>>> this
> >>>> to add it (and all the jars that it depends on) to my local repository
> >>>> or
> >>>> is
> >>>> there another way of getting these jars onto my classpath so that they
> >>>> will
> >>>> be compiled and packaged with my project?
> >>>>
> >>>> Thanks in advance
> >>>>
> >>>> max
> >>>> --
> >>>> View this message in context:
> >>>> http://www.nabble.com/Use-jar-not-in-repository-tf3116331s177.html#a8632051
> >>>> 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
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > 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/Use-jar-not-in-repository-tf3116331s177.html#a8641797
> 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: Use jar not in repository

Posted by JayBee <te...@hotmail.com>.
True,  but I did not want to use default HOME/.m2/repository, so I set this
to <root>/mavenlocal, could this be problematic?

Also,  I did not manually copy my jar files to this repository,  I use mvn
install:install-file..............., to let maven install my 3rd party jars
to local repository.



Nick Stolwijk wrote:
> 
> Your local repository resides (with all the other downloaded artifacts) 
> in your HOME/.m2/repository. If you use the install:install-file goal 
> maven will also put the artifacts in there. Don't put jar files in there 
> yourself, then Maven won't have the right information (the pom.xml files 
> and the metadata files) to find your artifact.
> 
> Hth,
> 
> Nick Stolwijk
> 
> JayBee wrote:
>> I have the similar issue, even installing jars in local repository
>> dosen't
>> seem to satisfy dependencies.  I have set localrepository to
>> <root>\mavenlocal where I have installed my jars and from error messages
>> it
>> seems that mvn compile dosen't probe local repository at all. 
>>
>> [INFO] Using default encoding to copy filtered resources.
>>
>> Downloading:
>> http://repo1.maven.org/maven2/org/bouncycastle/bouncycastle/1.0/bouncycastle-1.0.pom
>>
>> [WARNING] Unable to get resource from repository central
>> (http://repo1.maven.org/maven2)
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [ERROR] BUILD ERROR
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] Failed to resolve artifact.
>>
>>
>>
>>
>> Wayne Fay wrote:
>>   
>>> Just install the file into your local repo using Maven. Search for
>>> "mvn install:install-file" on Google or the Maven Users mailing list
>>> for this information.
>>>
>>> Wayne
>>>
>>> On 1/25/07, maxmil <ma...@alwayssunny.com> wrote:
>>>     
>>>> Hi,
>>>>
>>>> i'm new to Maven and need to use a jar that is not in the central
>>>> repository
>>>> (apache fop 0.93 and its dependencies). Is the best way to get around
>>>> this
>>>> to add it (and all the jars that it depends on) to my local repository
>>>> or
>>>> is
>>>> there another way of getting these jars onto my classpath so that they
>>>> will
>>>> be compiled and packaged with my project?
>>>>
>>>> Thanks in advance
>>>>
>>>> max
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Use-jar-not-in-repository-tf3116331s177.html#a8632051
>>>> 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
>>>
>>>
>>>
>>>     
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> 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/Use-jar-not-in-repository-tf3116331s177.html#a8641797
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: Use jar not in repository

Posted by Nick Stolwijk <ni...@planet.nl>.
Your local repository resides (with all the other downloaded artifacts) 
in your HOME/.m2/repository. If you use the install:install-file goal 
maven will also put the artifacts in there. Don't put jar files in there 
yourself, then Maven won't have the right information (the pom.xml files 
and the metadata files) to find your artifact.

Hth,

Nick Stolwijk

JayBee wrote:
> I have the similar issue, even installing jars in local repository dosen't
> seem to satisfy dependencies.  I have set localrepository to
> <root>\mavenlocal where I have installed my jars and from error messages it
> seems that mvn compile dosen't probe local repository at all. 
>
> [INFO] Using default encoding to copy filtered resources.
>
> Downloading:
> http://repo1.maven.org/maven2/org/bouncycastle/bouncycastle/1.0/bouncycastle-1.0.pom
>
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] BUILD ERROR
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Failed to resolve artifact.
>
>
>
>
> Wayne Fay wrote:
>   
>> Just install the file into your local repo using Maven. Search for
>> "mvn install:install-file" on Google or the Maven Users mailing list
>> for this information.
>>
>> Wayne
>>
>> On 1/25/07, maxmil <ma...@alwayssunny.com> wrote:
>>     
>>> Hi,
>>>
>>> i'm new to Maven and need to use a jar that is not in the central
>>> repository
>>> (apache fop 0.93 and its dependencies). Is the best way to get around
>>> this
>>> to add it (and all the jars that it depends on) to my local repository or
>>> is
>>> there another way of getting these jars onto my classpath so that they
>>> will
>>> be compiled and packaged with my project?
>>>
>>> Thanks in advance
>>>
>>> max
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Use-jar-not-in-repository-tf3116331s177.html#a8632051
>>> 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
>>
>>
>>
>>     
>
>   


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


Re: Use jar not in repository

Posted by JayBee <te...@hotmail.com>.
I have the similar issue, even installing jars in local repository dosen't
seem to satisfy dependencies.  I have set localrepository to
<root>\mavenlocal where I have installed my jars and from error messages it
seems that mvn compile dosen't probe local repository at all. 

[INFO] Using default encoding to copy filtered resources.

Downloading:
http://repo1.maven.org/maven2/org/bouncycastle/bouncycastle/1.0/bouncycastle-1.0.pom

[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Failed to resolve artifact.




Wayne Fay wrote:
> 
> Just install the file into your local repo using Maven. Search for
> "mvn install:install-file" on Google or the Maven Users mailing list
> for this information.
> 
> Wayne
> 
> On 1/25/07, maxmil <ma...@alwayssunny.com> wrote:
>>
>> Hi,
>>
>> i'm new to Maven and need to use a jar that is not in the central
>> repository
>> (apache fop 0.93 and its dependencies). Is the best way to get around
>> this
>> to add it (and all the jars that it depends on) to my local repository or
>> is
>> there another way of getting these jars onto my classpath so that they
>> will
>> be compiled and packaged with my project?
>>
>> Thanks in advance
>>
>> max
>> --
>> View this message in context:
>> http://www.nabble.com/Use-jar-not-in-repository-tf3116331s177.html#a8632051
>> 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/Use-jar-not-in-repository-tf3116331s177.html#a8640646
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: Use jar not in repository

Posted by Wayne Fay <wa...@gmail.com>.
Just install the file into your local repo using Maven. Search for
"mvn install:install-file" on Google or the Maven Users mailing list
for this information.

Wayne

On 1/25/07, maxmil <ma...@alwayssunny.com> wrote:
>
> Hi,
>
> i'm new to Maven and need to use a jar that is not in the central repository
> (apache fop 0.93 and its dependencies). Is the best way to get around this
> to add it (and all the jars that it depends on) to my local repository or is
> there another way of getting these jars onto my classpath so that they will
> be compiled and packaged with my project?
>
> Thanks in advance
>
> max
> --
> View this message in context: http://www.nabble.com/Use-jar-not-in-repository-tf3116331s177.html#a8632051
> 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