|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
Maven repositoriesHi,
E.g. there is an artifact antlr-2.7.7.jar in "http://repository.jboss.org/maven2", but m2eclipse doesn't show it in Add Dependency. If I try to put it manual in pom.xml with <dependency>, Maven doesn't accept it. I don't want to copy an artifact from repository in my local repository. How can I configure my settings.xml or pom.xml that Maven accepts artifacts from other than central repositories? Thanks beforehand, regards, buters |
|
|
Re: Maven repositoriesYou can add jboss maven2 repository to settings.xml file. This will work
both in m2e and when you run maven build from cli. See [1] for more details. [1] http://www.sonatype.com/book/reference/settings-details.html#d0e21435 buters wrote: > Hi, > > E.g. there is an artifact antlr-2.7.7.jar in > "http://repository.jboss.org/maven2", but m2eclipse doesn't show it in Add > Dependency. If I try to put it manual in pom.xml with <dependency>, Maven > doesn't accept it. I don't want to copy an artifact from repository in my > local repository. > > How can I configure my settings.xml or pom.xml that Maven accepts artifacts > from other than central repositories? > > Thanks beforehand, > regards, buters > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Maven repositoriesPlease see documentation on the wiki at http://docs.codehaus.org/display/M2ECLIPSE/Nexus+Indexer regards, Eugene buters wrote: > Hi, > > E.g. there is an artifact antlr-2.7.7.jar in > "http://repository.jboss.org/maven2", but m2eclipse doesn't show it in Add > Dependency. If I try to put it manual in pom.xml with <dependency>, Maven > doesn't accept it. I don't want to copy an artifact from repository in my > local repository. > > How can I configure my settings.xml or pom.xml that Maven accepts artifacts > from other than central repositories? > > Thanks beforehand, > regards, buters > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Maven repositoriesThank you very much Igor,
I send you my settings.xml and a picture what I get if I try to add dependency in eclipse. But I search for jbossall-client-4.2.2.GA.jar from http://repository.jboss.com/maven2/org/jboss/client/jbossall-client/4.2.2.GA/ What do I do wrong? Thanks beforehand, regards, buters
settings.xml![]() |
|
|
Re: Maven repositoriesAnd this is my console. The jboss repository is here, but there is no jbossall-client-4.2.2.GA.jar in AddDependency to see.
console.png |
|
|
Re: Maven repositoriesThank you very much Eugene.
I've followed this instruction: ***************************************************************************** Enable Remote Index Downloads Nexus ships with three important proxy repositories for the Central Maven Repository, Apache Snapshot Repository, and the Codehaus Snapshot Repository. Each of these repositories contains thousands (or tens of thousands) of artifacts and it would be impractical to download the entire contents of each. To that end, most repositories maintain a Lucene index which catalogs the entire contents and provides for fast and efficient searching. Nexus uses these remote indexes to search for artifacts, but we've disabled the index download as a default setting. To download remote indexes, Click on Repositories under the Administration menu and change Download Remote Indexes to true for the three proxy repositories. You'll need to load the dialog shown in Section 16.5.2, “Managing Repositories” for each of the three repositories. Right-click on each proxy repository and select Re-index. This will trigger Nexus to download the remote index files. It might take Nexus a few minutes to download the entire index, but once you have it, you'll be able to search the entire contents of the Maven repository. **************************************************************************** but unfortunatly unsuccessful. It's taken a few seconds instead of a few minutes and Nexus has downloaded nothing even for central repository. What do I do wrong? Thanks beforehand, regards, buters
|
|
|
Re: Maven repositoriesI see that (picture) instead of this:
http://www.sonatype.com/book/reference/repository-manager.html#d0e18179 regards, buters
![]() |
|
|
Re: Maven repositoriesSorry, I should have been more specific. In order to see artifacts in "Add dependency" dialog, this artifact should be indexed in one of the repositories. If you already have this artifact in your local repository, then you can run "Update Index" action on the local repository from "Maven Indexes" view in Eclipse. However, if it is not in your local repository, then it would have to came from remote repository index, which need to be created by the repository owner using indexer tool I was referring to in my previous email and they should publish index it at their repository. Maven team maintains index for Central repository and you should ask owners of JBoss repository to publish index for their stuff. That would allow both Nexus repository manager and m2eclipse search trough JBoss repository. regards, Eugene buters wrote: > Thank you very much Eugene. > > I've followed this instruction: > ***************************************************************************** > Enable Remote Index Downloads > ... > **************************************************************************** > but unfortunatly unsuccessful. It's taken a few seconds instead of a few > minutes and Nexus has downloaded nothing even for central repository. What > do I do wrong? > > Thanks beforehand, > regards, buters > > Eugene Kuleshov-3 wrote: > >> Please see documentation on the wiki at >> http://docs.codehaus.org/display/M2ECLIPSE/Nexus+Indexer >> >> regards, >> Eugene >> >> >> buters wrote: >> >>> Hi, >>> >>> E.g. there is an artifact antlr-2.7.7.jar in >>> "http://repository.jboss.org/maven2", but m2eclipse doesn't show it in >>> Add >>> Dependency. If I try to put it manual in pom.xml with <dependency>, Maven >>> doesn't accept it. I don't want to copy an artifact from repository in my >>> local repository. >>> >>> How can I configure my settings.xml or pom.xml that Maven accepts >>> artifacts >>> from other than central repositories? >>> >>> Thanks beforehand, >>> regards, buters >>> >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> >> > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Maven repositoriesThank you very much Eugene.
Two questions: 1. Mavens central repository has index. Why can I not see its index tree in my Nexus? 2. How can I access without Nexus Index on jboss remote repository? I am not sure that jboss repository owner listen to me, but I try. Thanks beforehand, regards, buters
|
|
|
Re: Maven repositoriesbuters wrote:
> Thank you very much Eugene. > > Two questions: > 1. Mavens central repository has index. Why can I not see its index tree in > my Nexus? > We had a bug in m2eclipse 0.9.3 related to index updates, but it was fixed in 0.9.4. Can you please show how file <workspace>\.metadata\.plugins\org.maven.ide.eclipse\indexInfo.xml look like? You can also try to shut down Eclipse and delete index folder at <workspace>\.metadata\.plugins\org.maven.ide.eclipse\nexus then on startup m2eclipse will download fresh index copy from Central repository, assuming you have index entry for central repo pointing to http://repo1.maven.org/maven2/ (and index update url is blank) or you can force index update from the "Maven Indexes" view. > 2. How can I access without Nexus Index on jboss remote repository? I am not > sure that jboss repository owner listen to me, but I try. > You can't access repository without index, but there are good news for you. We talked to our friends at JBoss and they been very nice to index their repository using the nexus indexer tool. You can now add index for JBoss repo at http://repository.jboss.org/maven2/ and its id is jboss-maven2-release-repository regards, Eugene --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Maven repositoriesThank you very much Eugene,
Today I've reinstalled my eclipse together with all its plugins by pure chance. I was very surprised when I've found in Maven Indexes für jboss repository an indexed repository tree. Cool. Thank you very much Eugene. Best reguards, buters. P.S. Your request concerning the thing with <workspace> I'll grant later. Sorry, now I have no time.
|
| Free Forum Powered by Nabble | Forum Help |