Questions tagged [Apache Maven] (159)

0
answer

Why Mockito can't find the method clearInvokations()?

In the tutorial use the method of Mockito.clearInvokations(), I have version 5.1 and there is no reason this method.. maybe he like something else is called? Please help, need to reset random
Camren.Hilll asked April 19th 20 at 12:46
0
answer

IntelliJ idea writes access mockito is not legal, how to fix?

Downloaded from maven, have all versions available tried (1.0, 3.2, 4.3, 5.1), no one does not accept
walton37 asked April 19th 20 at 12:39
1
answer

Why when I deploy war to remote Tomcat error: Cannot invoke Tomcat manager: Connection reset by peer: socket write error?

Trying to deploy war using tomcat7:deploy on Tomcat. Do everything according to the instructions from the site https://mkyong.com/maven/how-to-deploy-maven-based... On the local computer all teplitsa to cheer. And on the remote server an error occurs: Cannot invoke Tomcat manager: Connection reset by peer: socket write er...
marquise.Dool asked April 19th 20 at 12:38
1
answer

How to add a package?

Hi. The second night blunt with Maven. Ask the audience for help. Trying to add dependencies to the project. Add in pom.xml all as written (actually I want to add it, but not important ) Here pom.xml: pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:...
myra.Hansen asked April 8th 20 at 18:07
0
answer

Why Maven cannot find a dependency from a GitHub repository?

I want to add a dependency that I published on Github. That's all I added pom.xml: <dependency> <groupId>io.github.company</groupId> <artifactId>dep</artifactId> <version>1.0.0</version> </dependency> As specified on the page of the artifact. Maven throws an error when execu...
caterina42 asked April 7th 20 at 09:24
1
answer

How to work with maven in offline mode in intellij idea?

Good day! Unfortunately, on the corporate PC ports to the Central maven repositorie closed ( or rather a proxy work only). Please tell me whether it is real Spring Boot to run on community edition with, let's say you copied a folder m2 with all necessary dependencies?
retta asked April 4th 20 at 13:57
2
answers

How to learn Maven?

Advise please the literature or video on Maven.
Keira23 asked April 4th 20 at 13:47
2
answers

Not connected connection = getConnection(URL, USERNAME, PASSWORD);. How to connect a database to the environment?

Mounts the database. If you zakamentuj line connection = getConnection(URL, USERNAME, PASSWORD);, everything works. Can't understand what the error is. PS pattern as it was fucking darkness of errors, working with multiple directories, but the fix does not work<?xml version="1.0" encoding="UTF-8"?> <project xmlns=...
Lorenza_Larson asked April 4th 20 at 13:04
1
answer

How to fix compile maven?

When you try to compile using maven project As the bot, an error occurserrorFailed to execute goal on project SunderBot: Could not resolve dependencies for project com.pigeon:SunderBot:jar:0.0.1: Failed to collect dependencies at net.dv8tion:JDA:jar:4.1.0_100: Failed to read artifact descriptor for net.dv8tion:JDA:jar:4.1.0...
kara_Satterfield asked April 4th 20 at 12:47
1
answer

How to clear cache nexus sonatype?

Good day, there are a few repositories. How to cleanup cache in nexus ?
Jasmin48 asked April 4th 20 at 12:18