Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvn clean package -DskipTests ERROR #377

Open
Anonymous-cxb opened this issue Sep 2, 2023 · 0 comments
Open

mvn clean package -DskipTests ERROR #377

Anonymous-cxb opened this issue Sep 2, 2023 · 0 comments

Comments

@Anonymous-cxb
Copy link

Anonymous-cxb commented Sep 2, 2023

In mvn clean package-DskipTests, I encountered an error that said:

[ERROR] D:\code\spark-redis-master\spark-redis-master\src\main\scala\com\redislabs\provider\redis\ConnectionPool.scala:28: error: overloaded method constructor JedisPool with alternatives:
[ERROR]   (x$1: org.apache.commons.pool2.impl.GenericObjectPoolConfig[redis.clients.jedis.Jedis],x$2: java.net.URI,x$3: Int,x$4: Int,x$5: Int,x$6: javax.net.ssl.SSLSocketFactory,x$7: javax.net.ssl.SSLParameters,x$8: javax.net.ssl.HostnameVerifier)redis.clients.jedis.JedisPool <and>
[ERROR]   (x$1: org.apache.commons.pool2.impl.GenericObjectPoolConfig[redis.clients.jedis.Jedis],x$2: String,x$3: Int,x$4: Int,x$5: Int,x$6: String,x$7: Int,x$8: String)redis.clients.jedis.JedisPool <and>
[ERROR]   (x$1: org.apache.commons.pool2.impl.GenericObjectPoolConfig[redis.clients.jedis.Jedis],x$2: String,x$3: Int,x$4: Int,x$5: String,x$6: Int,x$7: String,x$8: Boolean)redis.clients.jedis.JedisPool <and>
[ERROR]   (x$1: org.apache.commons.pool2.impl.GenericObjectPoolConfig[redis.clients.jedis.Jedis],x$2: String,x$3: Int,x$4: Int,x$5: String,x$6: String,x$7: Int,x$8: String)redis.clients.jedis.JedisPool <and>
[ERROR]   (x$1: org.apache.commons.pool2.impl.GenericObjectPoolConfig[redis.clients.jedis.Jedis],x$2: String,x$3: Int,x$4: Int,x$5: String,x$6: String,x$7: Int,x$8: Boolean)redis.clients.jedis.JedisPool <and>
[ERROR]   (x$1: org.apache.commons.pool2.impl.GenericObjectPoolConfig[redis.clients.jedis.Jedis],x$2: String,x$3: Int,x$4: Int,x$5: Boolean,x$6: javax.net.ssl.SSLSocketFactory,x$7: javax.net.ssl.SSLParameters,x$8: javax.net.ssl.HostnameVerifier)redis.clients.jedis.JedisPool
[ERROR]  cannot be applied to (redis.clients.jedis.JedisPoolConfig, String, Int, Int, String, String, Int, Boolean)
[ERROR]         new JedisPool(poolConfig, re.host, re.port, re.timeout, re.user, re.auth, re.dbNum, re.ssl)
[ERROR]         ^
[ERROR] one error found
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

I find this very strange, in the source code
new JedisPool(poolConfig, re.host, re.port, re.timeout, re.user, re.auth, re.dbNum, re.ssl)
the construct fuction is:

    public JedisPool(GenericObjectPoolConfig<Jedis> poolConfig, String host, int port, int timeout, String user, String password, int database, boolean ssl) {
        this(poolConfig, host, port, timeout, user, password, database, (String)null, ssl);
    }

anything to help?thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant