Код: Выделить всё
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
com.example.shipcloud
shipcloud-api
The Java API for ShipCloud.
1.0-SNAPSHOT
3.0
UTF-8
1.8
1.8
org.springframework
spring-web
4.2.0.RELEASE
com.fasterxml.jackson.core
jackson-databind
2.6.3
org.apache.commons
commons-lang3
3.4
commons-io
commons-io
2.4
junit
junit
4.12
test
org.hamcrest
hamcrest-all
1.3
test
org.springframework
spring-test
4.2.0.RELEASE
test
org.assertj
assertj-core
2.2.0
test
com.jayway.jsonpath
json-path
2.0.0
test
org.apache.maven.plugins
maven-compiler-plugin
1.8
1.8
Код: Выделить всё
class UrlParameterStringAssert extends AbstractCharSequenceAssert {
ИНФО] -------------------------------------------------------------
[ОШИБКА] ОШИБКА КОМПИЛЯЦИИ:
[ИНФО] ------------------------------------------------------------
[ОШИБКА] /home/fschaetz/workspaces/workspace5/.../shipcloud-api/src/test/java/com/example/shipcloud/rest/shipcloud/domain/AddressSearchFieldsTest.java:[103,39]
ошибка: невозможно найти символ [ОШИБКА] символ: class
AbstractCharSequenceAssert
Я просмотрел выходные данные отладки, и при запуске testCompile jar AssertJ фактически находится в пути к классам, указанном компилятору:
-classpath ...:/home/fschaetz/.m2/repository/org/assertj/assertj-core/2.2.0/assertj-core-2.2.0.jar:...
(Файл существует, доступен для чтения, содержит класс и отлично работает в Eclipse).
Я пробовал очистить (maven/eclipse), запускаю обновление проекта и т. д., но, похоже, ничего не работает. То же самое происходит, когда я пытаюсь запустить установку maven в Дженкинсе, кстати.
Импорт класса, создающий проблемы,...
Код: Выделить всё
import static de.assona.rest.shipcloud.domain.UrlParameterStringAssert.assertThat;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.assertj.core.api.AbstractCharSequenceAssert;
import org.junit.Before;
import org.junit.Test;
Подробнее здесь: https://stackoverflow.com/questions/339 ... -classpath
Мобильная версия