0

Maven dependency missing

asked 2011-04-21 01:59:59 +0800

ajaidka gravatar image ajaidka
196 4

Hi,

I am working on a ZK demo. Need to make Autowired working. I am using ZK+spring+maven2. I added the following dependencies in my pom.xml

<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zkspring-core</artifactId>
<version>3.0RC</version>

</dependency>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zkspring-security</artifactId>
<version>3.0RC</version>
</dependency>


Now I am getting these errors in pom.xml

- Missing artifact org.springframework:org.springframework.aop:jar:3.0.2.RELEASE:compile
- Missing artifact org.springframework:org.springframework.asm:jar:3.0.2.RELEASE:compile
- Missing artifact org.springframework:org.springframework.core:jar:3.0.2.RELEASE:compile
- Missing artifact org.springframework:org.springframework.context:jar:3.0.2.RELEASE:compile
- Missing artifact org.springframework:org.springframework.context.support:jar:3.0.2.RELEASE:compile
- Missing artifact org.springframework:org.springframework.beans:jar:3.0.2.RELEASE:compile
- Missing artifact org.springframework:org.springframework.web.servlet:jar:3.0.2.RELEASE:compile
- Missing artifact org.springframework:org.springframework.expression:jar:3.0.2.RELEASE:compile
- Missing artifact org.springframework:org.springframework.transaction:jar: 3.0.2.RELEASE:compile
- Missing artifact org.springframework:org.springframework.web:jar:3.0.2.RELEASE:compile

tried to add some dependencies but it did not work.
Please suggest what dependencies I need to add.

thanks,
Ajaidka

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2011-04-21 03:19:46 +0800

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

updated 2011-04-21 03:21:02 +0800

Add the missing jars.

   . . .
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-aop</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-tx</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>

   . . .



	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<spring.version>3.0.0.RELEASE</spring.version>
		<zkosslibs>${basedir}/src/main/webapp/WEB-INF/lib/</zkosslibs>
		<springsecurity.version>3.0.2.RELEASE</springsecurity.version>
		<zkoss.version>5.0.6</zkoss.version>
	</properties>

   . . .

best
Stephan

link publish delete flag offensive edit

answered 2011-04-21 05:38:41 +0800

ajaidka gravatar image ajaidka
196 4

Thanks for reply.

It removed the errors, but I am still not able to find class.

org.zkoss.spring.web.context.CoreContextListener

that I need as listener in web.xml

any idea?


Ajaidka

link publish delete flag offensive edit

answered 2011-04-21 10:32:12 +0800

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

it's in the zkspring-core.jar

i have it manually copied in the /lib folder :-(((((

	<dependency>
			<groupId>org.zkoss.spring</groupId>
			<artifactId>zkspring</artifactId>
			<version>3.0RC</version>
			<scope>system</scope>
			<systemPath>${zkosslibs}zkspring-core.jar</systemPath>
		</dependency>
			<dependency>
			<groupId>org.zkoss.spring</groupId>
			<artifactId>zkspring-security</artifactId>
			<version>3.0RC</version>
			<scope>system</scope>
			<systemPath>${zkosslibs}zkspring-security.jar</systemPath>
		</dependency>

link publish delete flag offensive edit

answered 2011-04-21 22:39:32 +0800

ajaidka gravatar image ajaidka
196 4

ok, thank you Stephan

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-04-21 01:59:59 +0800

Seen: 2,172 times

Last updated: Apr 21 '11

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