0

Unable to update index for zk repository

asked 2011-02-27 19:53:22 +0800

jack3dot1415 gravatar image jack3dot1415
60 2
http://turbo00.7168.net/

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?

delete flag offensive retag edit

10 Replies

Sort by ยป oldest newest

answered 2011-02-28 03:47:43 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2011-02-28 03:49:44 +0800

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>

  . . .

link publish delete flag offensive edit

answered 2011-02-28 07:36:29 +0800

jack3dot1415 gravatar image jack3dot1415
60 2
http://turbo00.7168.net/

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

link publish delete flag offensive edit

answered 2011-02-28 08:28:29 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Means it works now ?

link publish delete flag offensive edit

answered 2011-02-28 09:30:31 +0800

jack3dot1415 gravatar image jack3dot1415
60 2
http://turbo00.7168.net/

sorry for my poor english

it's still cann't work

link publish delete flag offensive edit

answered 2011-02-28 15:15:33 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

which zk version you will downloaded ? If the version is correctly in your maven pom-file ?

link publish delete flag offensive edit

answered 2011-02-28 23:31:14 +0800

jack3dot1415 gravatar image jack3dot1415
60 2
http://turbo00.7168.net/

updated 2011-03-01 00:03:01 +0800

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

link publish delete flag offensive edit

answered 2011-03-01 01:54:26 +0800

jack3dot1415 gravatar image jack3dot1415
60 2
http://turbo00.7168.net/

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?

link publish delete flag offensive edit

answered 2011-03-01 03:00:13 +0800

jack3dot1415 gravatar image jack3dot1415
60 2
http://turbo00.7168.net/

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

link publish delete flag offensive edit

answered 2011-03-01 05:00:15 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2011-03-01 05:01:54 +0800

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

link publish delete flag offensive edit

answered 2011-03-01 07:41:46 +0800

jack3dot1415 gravatar image jack3dot1415
60 2
http://turbo00.7168.net/

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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-02-27 19:53:22 +0800

Seen: 735 times

Last updated: Mar 01 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More