Я сузил проблему до простого проекта, который выглядит так:
pom.xml:
Код: Выделить всё
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0
https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
com.example.azure
azure-msgraph-demo
1.0.0
org.glassfish.jersey.core
jersey-common
2.35
org.apache.maven.plugins
maven-compiler-plugin
3.12.1
true
11
Код: Выделить всё
public class Main
{
public static void main(String[] args) {
Main main = new Main();
ResourceTest test = new ResourceTest();
main.run();
}
private void run() {
System.out.println("ok");
}
}
Код: Выделить всё
import javax.annotation.PostConstruct;
public class ResourceTest {
@PostConstruct
protected void load() {
}
}
Код: Выделить всё
ok
Код: Выделить всё
...
com.microsoft.graph
microsoft-graph
6.50.0
org.glassfish.jersey.core
jersey-common
2.35
...
Код: Выделить всё
java: package javax.annotation does not exist
Подробнее здесь: https://stackoverflow.com/questions/798 ... hmicrosoft
Мобильная версия