-
FEATURED COMPONENTS
First time here? Check out the FAQ!
In the pom.xml,I add the repository like this:
<repositories>
<repository>
<id>zk repository</id>
<url>http://mavensync.zkoss.org/maven2</url>
</repository>
</repositories>
when i update index for the zk repository,maven console said like this:
2/28/11 9:46:48 AM CST: Updating index zk repository|http://mavensync.zkoss.org/maven2
2/28/11 9:46:49 AM CST: Unable to update index for zk repository|http://mavensync.zkoss.org/maven2
I tested on eclipse 3.6.2 with m2clipse, java1.6&java1.7,maven 3.0.2
Is there somebody have the same problem?
Use Maven version 2.2.1
best
Stephan
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> . . . <build> <finalName>yourAppName</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.0</version> <configuration> <source>1.6</source> <target>1.6</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.2</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> </plugins> </build> . . .
thanks
and I add the content you give,
set the M2_HOME,MAVEN_HOME to my maven-2.2.1 folder,
the eclipse still report that can not update zk repository
but update the maven central repository(http://repo1.maven.org/maven2) index is fine with both maven 3.0.2 and 2.2.1
Means it works now ?
sorry for my poor english
it's still cann't work
which zk version you will downloaded ? If the version is correctly in your maven pom-file ?
I want to download the lastest version,but in the maven central repository, there is only 5.0.0.rc.
Because of I cann't update the zk repository fromhttp://mavensync.zkoss.org/maven2,so i currently use the 5.0.0.rc from the maven central repository
By the way, my os is win 7
In maven central repository(http://repo1.maven.org/maven2),I found some additional files:
THE_NEW_REPO1_MACHINE.txt 27-May-2007 14:01 0
archetype-catalog.xml 27-Feb-2011 08:26 494351
diff.sh 28-Oct-2005 01:27 251
index.html.bak 03-Feb-2010 02:24 90
last_updated.txt 01-Mar-2011 06:29 29
maven-metadata.xml.md5 06-Dec-2007 02:46 0
maven-metadata.xml.sha1 06-Dec-2007 02:46 0
robots.txt 10-Nov-2009 12:12 26
but in zk repository(http://mavensync.zkoss.org/maven2/),there is no such file,just the folder,Is this right?
And I also create a question in stackoverflow,the link is:
http://stackoverflow.com/questions/5142758/unable-to-update-index-for-zkhttp-www-zkoss-org-repository
Raghuram also point that the zk repository is possibly not having a repository index file
Have you seen the different paths to the different versions here ?
. . . <repositories> <repository> <id>zk repository</id> <url>http://mavensync.zkoss.org/maven2</url> </repository> <repository> <id>zk ee evaluation repository</id> <url>http://mavensync.zkoss.org/zk/ee-eval/</url> </repository> </repositories> . . . <dependency> <groupId>org.zkoss.zk</groupId> <artifactId>zk</artifactId> <version>${zkoss.version}</version> </dependency> . . . <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <zkoss.version>5.0.6.FL.20110223</zkoss.version> </properties> . . .
best
Stephan
terrytornado, thank you very much,now I known two things:
1.add the zk repository(http://mavensync.zkoss.org/maven2) and the right version of zk(zul etc.) dependency,then it's works fine, even use maven 3.0.2
someone can find the right version by use the browser to browse the address http://mavensync.zkoss.org/maven2
2.about the m2clipse's log:Unable to update index for zk repository|http://mavensync.zkoss.org/maven2
because of zk repository don't having a repository index file,so m2clipse can't update the index, so we can't use pom editor to search the zk repository, we must explicit define the dependency's right groupId,artifactId,version
At last,hope zkoss can provide the repository index file in the zk repository
thank to terrytornado again
best regards
Asked: 2011-02-27 19:53:22 +0800
Seen: 735 times
Last updated: Mar 01 '11