user5479362
user5479362

Reputation:

What does "[ERROR] file doesn't exist" means when doing maven install?

When I execute maven install in my gitlab build, I get the following error message:

12338 [INFO] Installing com.mycompany:myartifact:1.0.0-SNAPSHOT at end 12338 [INFO] 12338 [INFO] --- maven-bundle-plugin:3.3.0:install (default-install) @ myartifact --- 12411 [ERROR] file doesn't exist: file:/root/.m2/repository/com/mycompany/myartifact/1.0.0-SNAPSHOT/myartifact-1.0.0-SNAPSHOT.jar

I don't understand what does it mean. The file obviously doesn't exist because it was never installed in that environment, so it's strange that maven would complain about it.

I suppose this error hides some other error, like no write rights? But I see not other error in log. The build seems to be successful.

Upvotes: 0

Views: 717

Answers (2)

Rakesh
Rakesh

Reputation: 466

When you do maven install, It usually looks into your .m2 folder and searches for the existence of the dependencies(mentioned in pom.xml). If it doesn't exist, maven will automatically download it. So the build will be successful.

Upvotes: 0

Anas EL KORCHI
Anas EL KORCHI

Reputation: 2048

Try to make a clean install, maybe it's just a local repository issue

mvn clean install

Upvotes: 1

Related Questions