加载中
_寸芒_ 2015/06/27 12:53 回答了问题: java客户端连接zookeeper
谢谢,我已经解决问题了。
@_寸芒_
模仿Apache ZooInspector做一个用java写的客户端连接zookeeper时,遇到一个问题,连接没...
_寸芒_ 2015/06/25 14:28 发布了问题:
_寸芒_ 2015/05/20 09:03 回答了问题: Maven项目运行maven install 出错
其实那个是有version的,后来我自己看了下,由于疏忽父项目下的子项目又一个地方拼写错误,当时就是没法解决,后来才发现的。
@_寸芒_
这是输出的错误详细信息,子类项目依赖父类项目,网上也找了很多办法,有说jdk的问题等等,尝试了很多办法就是没办法解...
_寸芒_ 2015/05/19 19:35 回答了问题: Maven项目运行maven install 出错
试了把依赖去掉但是会报错啊!
@_寸芒_
这是输出的错误详细信息,子类项目依赖父类项目,网上也找了很多办法,有说jdk的问题等等,尝试了很多办法就是没办法解...
_寸芒_ 2015/05/19 19:15 回答了问题: Maven项目运行maven install 出错
按照你说的,我看了下 redis-base/pom.xml下配置,不知道你说的是哪个,是maven-compiler-plugin这个artifactId的version吗?里面是有version的,不过还有maven-jar-plugin、maven-dependency-plugin这些没有version,以下是我redis-base/pom.xml里面的配置:
<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>com.song</groupId>
 <artifactId>redis-base</artifactId>
 <version>0.0.1</version>
 <packaging>pom</packaging>
 <modules>
 <module>../redis-core</module>
 <module>../redis-db-connection</module>
 </modules>
 <properties>
 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 <junit.version>4.10</junit.version>
 </properties>
<!-- 
 <repositories>
 <repository>
 <id>nexus</id>
 <name>Team Nexus Repository</name>
 <url>http://10.9.20.130:8081/nexus/content/groups/public/</url>


 </repository>




 </repositories>
 -->


 <dependencyManagement>
 <dependencies>
 <dependency>
 <groupId>com.song</groupId>
 <artifactId>redis-core</artifactId>
 <version>${project.version}</version>
 </dependency>
 <dependency>
 <groupId>junit</groupId>
 <artifactId>junit</artifactId>
 <version>${junit.version}</version>
 </dependency>
 <dependency>
 <groupId>org.codehaus.jackson</groupId>
 <artifactId>jackson-mapper-asl</artifactId>
 <version>1.9.13</version>
 </dependency>
 <dependency>
 <groupId>org.apache.zookeeper</groupId>
 <artifactId>zookeeper</artifactId>
 <version>3.4.6</version>
 </dependency>
 <dependency>
 <groupId>org.apache.curator</groupId>
 <artifactId>curator-framework</artifactId>
 <version>2.4.0</version>
 </dependency>
 <dependency>
 <groupId>org.apache.curator</groupId>
 <artifactId>curator-recipes</artifactId>
 <version>2.4.0</version>
 </dependency>
 <dependency>
 <groupId>org.apache.httpcomponents</groupId>
 <artifactId>httpclient</artifactId>
 <version>4.3</version>
 </dependency>
 <dependency>
 <groupId>org.slf4j</groupId>
 <artifactId>slf4j-log4j12</artifactId>
 <version>1.6.4</version>
 </dependency>
 <dependency>
 <groupId>commons-logging</groupId>
 <artifactId>commons-logging</artifactId>
 <version>1.1.3</version>
 </dependency>
 <dependency>
 <groupId>commons-collections</groupId>
 <artifactId>commons-collections</artifactId>
 <version>3.2.1</version>
 </dependency>
 <dependency>
 <groupId>org.apache.commons</groupId>
 <artifactId>commons-pool2</artifactId>
 <version>2.2</version>
 </dependency>
 <dependency>
 <groupId>com.google.guava</groupId>
 <artifactId>guava</artifactId>
 <version>15.0</version>
 </dependency>
 <dependency>
 <groupId>com.redis.clients</groupId>
 <artifactId>jedis</artifactId>
 <version>2.4.2</version>
 </dependency>
 <dependency>
 <groupId>redis.clients</groupId>
 <artifactId>jedis</artifactId>
 <version>2.5.1</version>
 </dependency>
 <dependency>
 <groupId>com.sun.jdmk</groupId>
 <artifactId>jmxtools</artifactId>
 <version>1.2.1</version>
 </dependency>
 <dependency>
 <groupId>com.sun.jmx</groupId>
 <artifactId>jmxri</artifactId>
 <version>1.2.1</version>
 </dependency>
 <dependency>
 <groupId>org.hyperic</groupId>
 <artifactId>sigar</artifactId>
 <version>1.6.4</version>
 </dependency>
 <dependency>
 <groupId>com.alibaba</groupId>
 <artifactId>fastjson</artifactId>
 <version>1.1.40</version>
 </dependency>
 <dependency>
 <groupId>com.101tec</groupId>
 <artifactId>zkclient</artifactId>
 <version>0.4</version>
 </dependency>
 <dependency>
 <groupId>common.toolkit</groupId>
 <artifactId>common-toolkit</artifactId>
 <version>0.0.4</version>
 </dependency>
 <dependency>
 <groupId>commons-dbutils</groupId>
 <artifactId>commons-dbutils</artifactId>
 <version>1.5</version>
 </dependency>
 <dependency>
 <groupId>mysql</groupId>
 <artifactId>mysql-connector-java</artifactId>
 <version>5.1.18</version>
 </dependency>
 <dependency>
 <groupId>com.netflix.blitz4j</groupId>
 <artifactId>blitz4j</artifactId>
 <version>1.35</version>
 </dependency>
 <dependency>
 <groupId>javax.jms</groupId>
 <artifactId>jms</artifactId>
 <version>3.1.2.2</version>
 </dependency>
 <dependency>
 <groupId>log4j</groupId>
 <artifactId>log4j</artifactId>
 <version>1.2.17</version>
 </dependency>
 </dependencies>
 </dependencyManagement>
 <build>
 <pluginManagement>
 <plugins>
 <plugin>
 <groupId>org.eclipse.m2e</groupId>
 <artifactId>lifecycle-mapping</artifactId>
 <version>1.0.0</version>
 <configuration>
 <lifecycleMappingMetadata>
 <pluginExecutions>
 <pluginExecution>
 <pluginExecutionFilter>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-dependency-plugin</artifactId>
 <versionRange>[2.0,)</versionRange>
 <goals>
 <goal>copy-dependencies</goal>
 <goal>unpack</goal>
 </goals>
 </pluginExecutionFilter>
 <action>
 <ignore />
 </action>
 </pluginExecution>
 </pluginExecutions>
 </lifecycleMappingMetadata>
 </configuration>
 </plugin>
 </plugins>
 </pluginManagement>
 <plugins>
 <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-compiler-plugin</artifactId>
 <version>3.1</version>
 <configuration>
 <defaultLibBundleDir>lib</defaultLibBundleDir>
 <target>1.6</target>
 <encoding>UTF-8</encoding>
 </configuration>
 </plugin>
 <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
 <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-jar-plugin</artifactId>
 <configuration>
 <archive>
 <manifest>
 <addClasspath>true</addClasspath>
 <classpathPrefix>lib/</classpathPrefix>
 <mainClass>com.song.redis.startup.RedisDBMain</mainClass>
 </manifest>
 </archive>
 </configuration>
 </plugin>
 <!-- 拷贝依赖的jar包到lib目录 -->
 <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-dependency-plugin</artifactId>
 <executions>
 <execution>
 <id>copy</id>
 <phase>package</phase>
 <goals>
 <goal>copy-dependencies</goal>
 </goals>
 <configuration>
 <outputDirectory>${project.build.directory}/lib</outputDirectory>
 <excludeTransitive>false</excludeTransitive>
 </configuration>
 </execution>
 </executions>
 </plugin>
 <!-- 解决资源文件的编码问题 -->
 <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-resources-plugin</artifactId>
 <version>2.4</version>
 <configuration>
 <encoding>UTF-8</encoding>
 </configuration>
 </plugin>
 <!-- 打包source文件为jar文件 -->
 <plugin>
 <artifactId>maven-source-plugin</artifactId>
 <version>2.1</version>
 <configuration>
 <attach>true</attach>
 <encoding>UTF-8</encoding>
 </configuration>
 <executions>
 <execution>
 <phase>compile</phase>
 <goals>
 <goal>jar</goal>
 </goals>
 </execution>
 </executions>
 </plugin>
 </plugins>
 </build>
 <!-- 
 <distributionManagement>
 <repository>
 <id>releases</id>
 <name>Nexus Release Repository</name>
 <url>http://10.9.20.130:8081/nexus/content/repositories/releases/</url>
 </repository>
 <snapshotRepository>
 <id>snapshots</id>
 <name>Nexus Snapshot Repository</name>
 <url>http://10.9.20.130:8081/nexus/content/repositories/snapshots/</url>
 </snapshotRepository>
 </distributionManagement> -->
</project> 



@_寸芒_
这是输出的错误详细信息,子类项目依赖父类项目,网上也找了很多办法,有说jdk的问题等等,尝试了很多办法就是没办法解...
_寸芒_ 2015/05/19 19:01 回答了问题: Maven项目运行maven install 出错
<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>
		<groupId>com.song</groupId>
		<artifactId>redis-base</artifactId>
		<version>0.0.1</version>
		<relativePath>../redis-base/pom.xml</relativePath>
	</parent>
	<artifactId>redis-db</artifactId>
	<packaging>jar</packaging>
	<dependencies>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
		</dependency>
		<dependency>
			<groupId>com.song</groupId>
			<artifactId>redis-core</artifactId>
		</dependency>
		<dependency>
			<groupId>redis.clients</groupId>
			<artifactId>jedis</artifactId>
		</dependency>
		<dependency>
			<groupId>com.redis.clients</groupId>
			<artifactId>jedis</artifactId>
		</dependency>
		<dependency>
			<groupId>com.sun.jdmk</groupId>
			<artifactId>jmxtools</artifactId>
		</dependency>
		<dependency>
			<groupId>com.sun.jmx</groupId>
			<artifactId>jmxri</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-pool2</artifactId>
		</dependency>
		<dependency>
			<groupId>org.hyperic</groupId>
			<artifactId>sigar</artifactId>
			<version>1.6.4</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
		</dependency>
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
		</dependency>
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
		</dependency>
		<dependency>
			<groupId>com.alibaba</groupId>
			<artifactId>fastjson</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.zookeeper</groupId>
			<artifactId>zookeeper</artifactId>
		</dependency>
		<dependency>
			<groupId>com.netflix.blitz4j</groupId>
			<artifactId>blitz4j</artifactId>
		</dependency>
		<dependency>
			<groupId>org.quartz-scheduler</groupId>
			<artifactId>quartz</artifactId>
			<version>2.2.1</version>
		</dependency>
		<dependency>
			<groupId>org.quartz-scheduler</groupId>
			<artifactId>quartz-jobs</artifactId>
			<version>2.2.1</version>
		</dependency>
		<dependency>
			<groupId>javax.transaction</groupId>
			<artifactId>jta</artifactId>
			<version>1.1</version>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>



@_寸芒_
这是输出的错误详细信息,子类项目依赖父类项目,网上也找了很多办法,有说jdk的问题等等,尝试了很多办法就是没办法解...

没有更多内容

加载失败,请刷新页面

返回顶部
顶部