小编tec*_*012的帖子

获取最新的Maven依赖关系.

可能重复:
如何告诉Maven使用最新版本的依赖项?

获得Maven依赖.我想要最新版本.现在,我的pom中包含了我的Dependecy项目,如下例所示.我们正试图找到一种方式,我们不需要其中的版本标签,它将采用最新版本.可以这样做吗?

<dependency>
  <groupId>org.xxxx.maven.test</groupId>
  <artifactId>MavenJARTest</artifactId>
  <version>0.0.1-SNAPSHOT</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)

java maven

3
推荐指数
1
解决办法
1159
查看次数

为什么我会收到Log4J 1.2.17的警告?

为什么我会收到Log4J 1.2.17的警告?我试图在我的java项目中使用log4j,但我一直收到以下警告.有谁能告诉我为什么?

警告:

log4j:WARN Continuable parsing error 2 and column 87
log4j:WARN Document root element "log4j:configuration", must match DOCTYPE root "null".
log4j:WARN Continuable parsing error 2 and column 87
log4j:WARN Document is invalid: no grammar found.
Run Code Online (Sandbox Code Playgroud)

我的log4j.xml文件:

<?xml version="1.0" encoding="UTF-8"?>
<log4j:configuration xmlns:log4j = "http://jakarta.apache.org/log4j/" debug = "false">
    <appender name = "FILE" class = "org.apache.log4j.RollingFileAppender">
        <param name = "File" value = "test.log"/>
        <param name = "MaxFileSize" value = "5MB"/>
        <param name = "MaxBackupIndex" value = "50"/>
        <layout class = "org.apache.log4j.PatternLayout">
            <param …
Run Code Online (Sandbox Code Playgroud)

java spring log4j spring-webflow

2
推荐指数
1
解决办法
6223
查看次数

Spring项目如何访问JBoss JNDI数据源

下面是我的Spring Project的当前database.xml文件.有人可以告诉我什么必须改变,所以我可以在其中使用JBoss JNDI数据源..我想这样做,所以我不需要配置文件与数据库用户和密码和网址.

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:tx="http://www.springframework.org/schema/tx" 
       xmlns:jdbc="http://www.springframework.org/schema/jdbc"

    xsi:schemaLocation="http://www.springframework.org/schema/beans 
                            http://www.springframework.org/schema/beans/spring-beans.xsd
                            http://www.springframework.org/schema/context 
                            http://www.springframework.org/schema/context/spring-context-3.1.xsd
                            http://www.springframework.org/schema/tx
                            http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
                            http://www.springframework.org/schema/jdbc
                            http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd">

                            <!-- 

     Last changed: $LastChangedDate: 2012-11-19 08:53:13 -0500 (Mon, 19 Nov 2012) $
     @author $Author: johnathan.smith@uftwf.org $
     @version $Revision: 829 $

    -->

    <context:property-placeholder location="classpath:app.properties" />

    <context:component-scan base-package="org.uftwf" />

    <tx:annotation-driven transaction-manager="hibernateTransactionManager" />



    <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
        destroy-method="close">

        <!-- these are C3P0 properties      --> 
        <property name="acquireIncrement" value="${database.c3p0.acquireIncrement}" />
        <property name="minPoolSize" value="${database.c3p0.minPoolSize}" />
        <property name="maxPoolSize" value="${database.c3p0.maxPoolSize}" />
        <property name="maxIdleTime" value="${database.c3p0.maxIdleTime}" />
        <property name="maxIdleTimeExcessConnections" value="${database.c3p0.maxIdleTimeExcessConnections}" /> …
Run Code Online (Sandbox Code Playgroud)

java jboss spring jndi datasource

2
推荐指数
1
解决办法
1万
查看次数

Spring Web Flow Action-State控制器应该返回什么?

Spring Web Flow Action-State控制器应该返回什么?看看下面我的流程我有一个动作状态,基于对控制器的调用我可以去4个差异路径..

我不知道我必须在控制器中做出哪些更改才能传回去哪里.

以下是我的流程:

<action-state id="checkStatus">
        <evaluate expression="flowControllerActions.checkStatus(member)" />
        <transition on="NoSSN" to="NoSSN"/>
        <transition on="MemberExists" to="endStateMemberExists" />
        <transition on="IsDeceased" to="endStateMemberDeceased" />
        <transition on="OK" to="address" />
    </action-state>
Run Code Online (Sandbox Code Playgroud)

这是我在控制器中的方法.有人可以请告诉我该做些什么来使tranistions工作:

public String checkStatus(Member member) {
        LOGGER.debug("[" + member.toString() + "]");

        //
        // HOW DO I RETURN??
        //

    }
Run Code Online (Sandbox Code Playgroud)

java spring spring-webflow

1
推荐指数
1
解决办法
708
查看次数

intellij Idea 12.0.2的新功能,如何删除项目

如何从IDEA列表中删除项目.另外,有人可以告诉我使用IntelliJ的专业人士所以也许我可以和一些Eclipse用户讨论使用这个产品吗?

java intellij-idea

1
推荐指数
1
解决办法
7578
查看次数

为什么Hibernate3会导入我的项目?

为什么Hibernate3会导入我的项目?我正在尝试使用Hibernate4,但Maven也在导入Hibernate3?

这是我的POM.XML

<?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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.uftwf.schoolvisit</groupId>
    <artifactId>SchoolVisit</artifactId>
    <name>School Visit</name>
    <packaging>war</packaging>
    <version>1.0.0-BUILD-SNAPSHOT</version>

    <properties>
        <java-version>1.5</java-version>
        <springframework-version>3.1.1.RELEASE</springframework-version>
        <springwebflow-version>2.3.1.BUILD-SNAPSHOT</springwebflow-version>
        <springsecurity-version>3.1.1.RELEASE</springsecurity-version>
        <org.slf4j-version>1.5.10</org.slf4j-version>
        <hibernate.version>4.1.1.Final</hibernate.version>
    </properties>

    <dependencies>

        <!-- Spring -->

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-orm</artifactId>
            <version>${springframework-version}</version>
            <!-- will come with all needed Spring dependencies such as spring-core 
                and spring-beans -->
        </dependency>

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

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>${springframework-version}</version>
            <exclusions>
                <exclusion>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.springframework.webflow</groupId>
            <artifactId>spring-faces</artifactId>
            <version>${springwebflow-version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-core</artifactId>
            <version>${springsecurity-version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-config</artifactId>
            <version>${springsecurity-version}</version>
        </dependency>
        <dependency> …
Run Code Online (Sandbox Code Playgroud)

java spring hibernate maven

0
推荐指数
1
解决办法
311
查看次数

将Eclipse与Subversion和Maven结合使用

我正在尝试将Eclipse,Subversion和Maven用于我的项目,每个人都告诉我永远不要检查以下文件:

target/
.classpath
.project
.settings
Run Code Online (Sandbox Code Playgroud)

但是,如果我不检查它们和其他一些项目从Eclipse中检查项目,那么Eclipse不知道它是什么类型的项目..我们是否正在做一些事情?

你如何工作的?

java eclipse svn maven

0
推荐指数
1
解决办法
2106
查看次数