Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Java [игнор отключен] [закрыт для гостей] / Hector, maven, зависимости.. / 8 сообщений из 8, страница 1 из 1
12.05.2012, 16:37:13
    #37791340
Devider
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Hector, maven, зависимости..
После обновления в проекте версии hector с
<dependency>
<groupId>me.prettyprint</groupId>
<artifactId>hector-core</artifactId>
<version>1.0-2</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>

на
<version>1.0-5</version>

получаю
автор[ERROR] Error building bundle my.project:jar:1.0.0-SNAPSHOT : Unresolved references to [org.apache.avalon.framework.logger, org.apache.log] by class(es)
on the Bundle-Classpath[Jar:dot, Jar:target/dependency/speed4j-0.9.jar, Jar:target/dependency/commons-pool-1.5.3.jar, Jar:target/dependency/junit-4.8.1.jar, Jar:target/dependency/p
rotostuff-api-1.0.5.jar, Jar:target/dependency/cassandra-thrift-1.0.9.jar, Jar:target/dependency/httpclient-4.0.1.jar, Jar:target/dependency/libthrift-0.6.1.jar, Jar:target/depende
ncy/commons-logging-1.1.1.jar, Jar:target/dependency/uuid-3.2.0.jar, Jar:target/dependency/commons-lang-2.4.jar, Jar:target/dependency/protostuff-core-1.0.5.jar, Jar:target/depende
ncy/servlet-api-2.5.jar, Jar:target/dependency/commons-codec-1.3.jar, Jar:target/dependency/guava-r09.jar, Jar:target/dependency/httpcore-4.0.1.jar, Jar:target/dependency/hector-co
re-1.0-5.jar]: [org/apache/commons/logging/impl/AvalonLogger.class, org/apache/commons/logging/impl/LogKitLogger.class]
[ERROR] Error(s) found in bundle configuration
Вопрос: кто все эти джарники и чего от меня хочет мавен?
...
Рейтинг: 0 / 0
12.05.2012, 17:02:57
    #37791395
Basil A. Sidorov
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Hector, maven, зависимости..
DeviderВопрос: кто все эти джарникиКлассПутя.чего от меня хочет мавен?Увидеть log4j и avalon logkit, насколько я понимаю.
...
Рейтинг: 0 / 0
12.05.2012, 17:34:32
    #37791444
Devider
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Hector, maven, зависимости..
Basil A. Sidorovчего от меня хочет мавен?Увидеть log4j и avalon logkit, насколько я понимаю.
Хорошо. org/apache/commons/logging/impl/AvalonLogger.class и org/apache/commons/logging/impl/LogKitLogger.class это из авалона, добавляем.
Код: java
1.
2.
3.
4.
5.
6.
	</dependency>  
	      <dependency>
        <groupId>avalon</groupId>
        <artifactId>avalon-framework</artifactId>
        <version>4.1.4</version>
      </dependency>


Получаем:
Код: java
1.
2.
3.
4.
5.
6.
7.
8.
[ERROR] Error building bundle target.eyes.vag:persistence.cassandra:jar:1.0.0-SNAPSHOT : Unresolved references to [org.apache.log, org.apache.log.format, org.apache.log.util] by cl
ass(es) on the Bundle-Classpath[Jar:dot, Jar:target/dependency/speed4j-0.9.jar, Jar:target/dependency/commons-pool-1.5.3.jar, Jar:target/dependency/junit-4.8.1.jar, Jar:target/depe
ndency/protostuff-api-1.0.5.jar, Jar:target/dependency/hector-core-1.0-3.jar, Jar:target/dependency/httpclient-4.0.1.jar, Jar:target/dependency/libthrift-0.6.1.jar, Jar:target/depe
ndency/commons-logging-1.1.1.jar, Jar:target/dependency/uuid-3.2.0.jar, Jar:target/dependency/commons-lang-2.4.jar, Jar:target/dependency/protostuff-core-1.0.5.jar, Jar:target/depe
ndency/servlet-api-2.5.jar, Jar:target/dependency/avalon-framework-4.1.4.jar, Jar:target/dependency/commons-codec-1.3.jar, Jar:target/dependency/guava-r09.jar, Jar:target/dependenc
y/httpcore-4.0.1.jar, Jar:target/dependency/cassandra-thrift-1.0.6.jar]: [org/apache/avalon/framework/logger/LogKitLogger.class, org/apache/avalon/framework/logger/Loggable.class, 
org/apache/avalon/framework/logger/AbstractLoggable.class, org/apache/avalon/framework/logger/AvalonFormatter.class, org/apache/commons/logging/impl/LogKitLogger.class, org/apache/
avalon/framework/logger/LogKit2AvalonLoggerAdapter.class]


все классы, на которые он жалуется, есть в джарнике.
...
Рейтинг: 0 / 0
12.05.2012, 18:13:32
    #37791490
Leonidv
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Hector, maven, зависимости..
Полный pom.xml выложите.
...
Рейтинг: 0 / 0
12.05.2012, 18:27:45
    #37791515
Devider
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Hector, maven, зависимости..
Код: java
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>vag.parent</artifactId>
    <groupId>tev</groupId>
    <version>1.0.0-SNAPSHOT</version>
  </parent>
  <artifactId>persistence.cassandra</artifactId>
  <name>VagPersistenceCassandra</name>
  <description>VAG Cassandra client module </description>
  
  
  <dependencies>
	<dependency>
		<groupId>tev</groupId>
		<artifactId>core</artifactId>
		<scope>compile</scope>
	</dependency>	
	
	<dependency>
		<groupId>com.dyuproject.protostuff</groupId>
		<artifactId>protostuff-core</artifactId>
		<version>${protostuff.version}</version>
	</dependency>	

	<dependency>
		<groupId>com.dyuproject.protostuff</groupId>
		<artifactId>protostuff-api</artifactId>
		<version>${protostuff.version}</version>
	</dependency>			

	
	<dependency>
	    <groupId>me.prettyprint</groupId>
	    <artifactId>hector-core</artifactId>
	    <version>1.0-5</version>
 	    <exclusions>
		    <exclusion>
			    <groupId>org.slf4j</groupId>
			    <artifactId>slf4j-api</artifactId>
	        </exclusion>
		    <exclusion>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-log4j12</artifactId>
	        </exclusion>
	        <exclusion>
				<groupId>log4j</groupId>
				<artifactId>log4j</artifactId>
  	        </exclusion>
        </exclusions> 
	</dependency>  
  </dependencies>
  
  
	<build>
	<plugins>
		<plugin>
			<groupId>org.apache.felix</groupId>
			<artifactId>maven-bundle-plugin</artifactId>
			<configuration>
				<unpackBundle>true</unpackBundle>
				<instructions>
					<!-- Additionally copy Spring context configuration files from META-INF/spring -->
					<Include-Resource>{maven-resources},META-INF/spring=META-INF/spring</Include-Resource>
					<Embed-Dependency>*;groupId=!pt|pt.irrf|org.slf4j|tev</Embed-Dependency>
					<Embed-Transitive>true</Embed-Transitive>
					<Embed-Directory>target/dependency</Embed-Directory>
					<Embed-StripGroup>true</Embed-StripGroup>
					<Export-Package>
    					tev.persistence.cassandra,
    					tev.persistence.cassandra.logging,
  					</Export-Package>
					<Import-Package>
						javax.*|com.sun.*|org.apache.http|org.apache.http.*|org.ietf.*|org.omg.*|org.w3c.*|org.xml.*|sun.misc|org.apache.log4j;resolution:=optional,
						org.slf4j,
						pt.commons.text,
						pt.commons.lang,
						pt.commons.buffer,
						pt.commons.data,
						pt.irrf,
						tev.core.persistence
					</Import-Package>
				</instructions>
			</configuration>
		</plugin>
		<plugin>
			<artifactId>maven-dependency-plugin</artifactId>
			<executions>
				<execution>
					<id>copy-dependencies</id>
					<phase>package</phase>
					<goals>
						<goal>copy-dependencies</goal>
					</goals>
					<configuration>
						<excludeGroupIds>pt,pt.irrf,tev,org.slf4j</excludeGroupIds>
					</configuration>
				</execution>
			</executions>
		</plugin>
	</plugins>
	</build>
  
  
</project>


И парент
Код: java
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
212.
213.
214.
215.
216.
217.
218.
219.
220.
221.
222.
223.
224.
225.
226.
227.
228.
229.
230.
231.
232.
233.
234.
235.
236.
237.
238.
239.
240.
241.
242.
243.
244.
245.
246.
247.
248.
249.
250.
251.
252.
253.
254.
255.
256.
257.
258.
259.
260.
261.
262.
263.
264.
265.
266.
267.
268.
269.
270.
271.
272.
273.
274.
275.
276.
277.
278.
279.
280.
281.
282.
283.
284.
285.
286.
287.
288.
289.
290.
291.
292.
293.
294.
295.
296.
297.
298.
299.
300.
301.
302.
303.
304.
305.
306.
307.
308.
309.
310.
311.
312.
313.
314.
315.
316.
317.
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>tev</groupId>
	<artifactId>vag.parent</artifactId>
	<version>1.0.0-SNAPSHOT</version>
	<packaging>pom</packaging>
	<name>VagParent</name>
	<description>VAG Parent</description>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<slf4j.version>1.6.1</slf4j.version>
		<protostuff.version>1.0.5</protostuff.version>
		<osgi.required.execution.env>JavaSE-1.6</osgi.required.execution.env>
		<platform.bundles.location>undefined-location(DO NOT EDIT HERE!!! USE maven -Dplatform.bundles.location=file:/...</platform.bundles.location>
	</properties>

	<build>
		<finalName>${project.groupId}.${project.artifactId}-${project.version}</finalName>

		<resources>
			<!-- standard Maven folder -->
			<resource>
				<directory>src/main/resources</directory>
			</resource>
			<!-- plus root folder -->
			<resource>
				<directory>.</directory>
				<includes>
					<include>plugin.xml</include>
					<include>META-INF/*</include>
				</includes>
			</resource>
		</resources>


		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>2.3.2</version>
					<configuration>
						<source>1.6</source>
						<target>1.6</target>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.7.1</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-resources-plugin</artifactId>
					<version>2.5</version>
				</plugin>


				<plugin>
					<groupId>org.apache.felix</groupId>
					<artifactId>maven-bundle-plugin</artifactId>
					<version>2.0.1</version>
					<extensions>true</extensions>
					<configuration>
						<obrRepository>${settings.localRepository}/repository.xml</obrRepository>
						<manifestLocation>META-INF</manifestLocation>
						<instructions>
							<Bundle-RequiredExecutionEnvironment>${osgi.required.execution.env}</Bundle-RequiredExecutionEnvironment>
						</instructions>
					</configuration>
					<executions>
						<execution>
							<id>bundle-manifest</id>
							<phase>package</phase>
							<goals>
								<goal>bundle</goal>
							</goals>
						</execution>
						<execution>
							<id>install</id>
							<phase>install</phase>
							<goals>
								<goal>install</goal>
							</goals>
						</execution>
					</executions>
				</plugin>


				<!-- Ignore/Execute plugin execution -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<!-- copy-dependency plugin -->
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
										<artifactId>maven-dependency-plugin</artifactId>
										<versionRange>[1.0.0,)</versionRange>
										<goals>
											<goal>copy-dependencies</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.ops4j</groupId>
					<artifactId>maven-pax-plugin</artifactId>
					<version>1.5</version>
					<configuration>
						<deployURLs>
							${platform.bundles.location},
							mvn:pt/pt.commons/2.0.0-SNAPSHOT,
							mvn:pt.irrf/pt.irrf.core/2.0.0-SNAPSHOT,
							mvn:pt.awsj/pt.awsj.core/2.0.0-SNAPSHOT,
							mvn:pt.awsj/pt.awsj.netty/2.0.0-SNAPSHOT,
							mvn:tev/core/1.0.0-SNAPSHOT,
							mvn:tev/impl/1.0.0-SNAPSHOT,
							mvn:tev/interfaces.awsj/1.0.0-SNAPSHOT,
							mvn:tev/openrtb.frontend.jackson/1.0.0-SNAPSHOT,
							mvn:tev/be.cxad/1.0.0-SNAPSHOT,
							mvn:tev/be.appnexus/1.0.0-SNAPSHOT,
							mvn:tev/persistence.cassandra/1.0.0-SNAPSHOT,
							mvn:tev/dpi.li/1.0.0-SNAPSHOT,
							mvn:tev/codec.xml.javolution/1.0.0-SNAPSHOT,
							mvn:tev/dss.hazelcast/1.0.0-SNAPSHOT,
							mvn:tev/rtb.proprietary/1.0.0-SNAPSHOT,
							mvn:tev/tdmn/1.0.0-SNAPSHOT,
						</deployURLs>
					</configuration>
				</plugin>

			</plugins>
		</pluginManagement>
	</build>

	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.8.1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>com.springsource.slf4j.api</artifactId>
			<version>${slf4j.version}</version>
			<scope>compile</scope>
		</dependency>
	</dependencies>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>tev</groupId>
				<artifactId>core</artifactId>
				<version>1.0.0-SNAPSHOT</version>
				<type>jar</type>
			</dependency>

			<dependency>
				<groupId>tev</groupId>
				<artifactId>impl</artifactId>
				<version>1.0.0-SNAPSHOT</version>
				<type>jar</type>
			</dependency>

			<dependency>
				<groupId>tev</groupId>
				<artifactId>interfaces.awsj</artifactId>
				<version>1.0.0-SNAPSHOT</version>
				<type>jar</type>
			</dependency>
			
	    	<dependency>
	    		<groupId>tev</groupId>
	    		<artifactId>be.cxad</artifactId>
				<version>1.0.0-SNAPSHOT</version>
				<type>jar</type>
	    	</dependency>
			
			<dependency>
				<groupId>tev</groupId>
				<artifactId>openrtb.frontend.jackson</artifactId>
				<version>1.0.0-SNAPSHOT</version>
				<type>jar</type>
			</dependency>
			
			<dependency>
				<groupId>tev</groupId>
				<artifactId>codec.xml.javolution</artifactId>
				<version>1.0.0-SNAPSHOT</version>
			</dependency>
			
	    	<dependency>
	    		<groupId>tev</groupId>
	    		<artifactId>bootstrap.spring</artifactId>
				<version>1.0.0-SNAPSHOT</version>
				<type>jar</type>				
	    	</dependency>

			<dependency>
				<groupId>pt</groupId>
				<artifactId>pt.commons</artifactId>
				<version>2.0.0-SNAPSHOT</version>
				<type>jar</type>
			</dependency>

			<dependency>
				<groupId>pt.irrf</groupId>
				<artifactId>pt.irrf.core</artifactId>
				<version>2.0.0-SNAPSHOT</version>
				<type>jar</type>
			</dependency>

			<dependency>
				<groupId>pt.awsj</groupId>
				<artifactId>pt.awsj.core</artifactId>
				<version>2.0.0-SNAPSHOT</version>
				<type>jar</type>
			</dependency>

			<dependency>
				<groupId>pt.awsj</groupId>
				<artifactId>pt.awsj.netty</artifactId>
				<version>2.0.0-SNAPSHOT</version>
				<type>jar</type>
			</dependency>


			<dependency>
				<groupId>org.dom4j</groupId>
				<artifactId>com.springsource.org.dom4j</artifactId>
				<version>1.6.1</version>
				<type>jar</type>
			</dependency>
			<dependency>
				<groupId>tev.dss</groupId>
				<artifactId>dss.hazelcast</artifactId>
				<version>0.0.1-SNAPSHOT</version>
			</dependency>
			<dependency>
				<groupId>tev</groupId>
				<artifactId>tdmn</artifactId>
				<version>1.0.0-SNAPSHOT</version>
			</dependency>
			
			
			<dependency>
				<groupId>com.googlecode.guava-osgi</groupId>
				<artifactId>guava-osgi</artifactId>
				<version>11.0.1</version>
			</dependency>
			
		</dependencies>
	</dependencyManagement>

	<repositories>

		<repository>
			<id>com.springsource.repository.bundles.external</id>
			<name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
			<url>http://repository.springsource.com/maven/bundles/external</url>
		</repository>

		<repository>
			<id>com.springsource.repository.bundles.release</id>
			<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
			<url>http://repository.springsource.com/maven/bundles/release</url>
		</repository>

		<repository>
			<id>repository.jboss.org</id>
			<url>http://repository.jboss.org/nexus/content/groups/public/</url>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>

	</repositories>

	<modules>
		<module>core</module>
		<module>bootstrap.spring</module>
		<module>assembly</module>
		<module>be.cxad</module>
		<module>osgi</module>
		<module>interfaces.awsj</module>
		<module>impl</module>
		<module>persistence.cassandra</module>
		<module>openrtb.frontend.jackson</module>
		<module>dpi.li</module>
		<module>codec.xml.javolution</module>
		<module>dss.hazelcast</module>
		<module>ui</module>
		<module>be.appnexus</module>
		<module>rtb.proprietary</module>
		<module>tdmn</module>
	</modules>

</project>
...
Рейтинг: 0 / 0
12.05.2012, 21:41:01
    #37791665
Basil A. Sidorov
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Hector, maven, зависимости..
Deviderвсе классы, на которые он жалуется, есть в джарнике."Хозяин очень любил свою собаку и рубил ей хвост по кусочкам":
Код: sql
1.
2.
04.01.2010  15:28           790808 avalon-framework-4.2.0.zip
30.08.2005  11:03           259640 avalon-logkit-2.1.zip
...
Рейтинг: 0 / 0
12.05.2012, 22:33:11
    #37791722
Devider
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Hector, maven, зависимости..
Basil A. SidorovDeviderвсе классы, на которые он жалуется, есть в джарнике."Хозяин очень любил свою собаку и рубил ей хвост по кусочкам":
Код: sql
1.
2.
04.01.2010  15:28           790808 avalon-framework-4.2.0.zip
30.08.2005  11:03           259640 avalon-logkit-2.1.zip


Сорри, можно чуть более развернуто?
...
Рейтинг: 0 / 0
14.05.2012, 18:51:18
    #37793731
Basil A. Sidorov
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Hector, maven, зависимости..
DeviderСорри, можно чуть более развернуто?В ваших класспутях есть avalon-framework, но нет avalon-logkit.
...
Рейтинг: 0 / 0
Форумы / Java [игнор отключен] [закрыт для гостей] / Hector, maven, зависимости.. / 8 сообщений из 8, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]