I trying to build maven project with scala and java sources. So I run maven build from run cofigurations in Intellij Idea and it fail with message:
[ERROR] C:\SomePath\ScalaClass.scala:3: error: object fasterxml is not a member of package com
[ERROR] import com.fasterxml.jackson.annotation.{JsonProperty, JsonCreator}
[ERROR] C:\SomePath\OtherScalaClass.scala:45: error: not found: type DateTime
[ERROR] someDate: DateTime,
There 2 crucial points wuith that:
com.fasterxml.jackson
and joda-time dependency are already downloaded in maven repository and are presented in project pom.xml. mvn clean install
the project builds successfully . What the problem can be?
The problem was with effective pom. I use Russian Windows 7, so user directory contains russian symbols. So maven uses .m2
from it's location, but Intellij Idea use %user_home%.m2 and can not load it well due to national symbols. I fix this with ovveriding Project settings->maven->Local repository property in Intellij Idea.
Also mvn help:effective-settings
helps me :)
PS Why maven does not uses default ".m2" have not figured out yet.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.