我尝试编译从
克隆的Oltu源代码https://github.com/apache/oltu.git
我无法将项目与mvn package -DskipTests
或mvn compile package -DskipTests
打包在一起,因为它被 Apache Oltu - Demos - 客户端中的错误所打断,
[ERROR] /dev/oltu/demos/client-demo/src/main/java/o$
g/apache/oltu/oauth2/client/demo/controller/TokenController.java:[45,53] packag$
org.apache.oltu.openidconnect.client.response does not exist
[ERROR] /dev/oltu/demos/client-demo/src/main/java/o$
g/apache/oltu/oauth2/client/demo/controller/TokenController.java:[91,22] cannot
find symbol
[ERROR] symbol: class OpenIdConnectResponse
[ERROR] location: class org.apache.oltu.oauth2.client.demo.controller.TokenCont$
oller
[ERROR] /dev/oltu/demos/client-demo/src/main/java/o$
g/apache/oltu/oauth2/client/demo/controller/TokenController.java:[102,17] canno$
find symbol
[ERROR] symbol: class OpenIdConnectResponse
[ERROR] location: class org.apache.oltu.oauth2.client.demo.controller.TokenCont$
oller
[ERROR] /dev/oltu/demos/client-demo/src/main/java/o$
g/apache/oltu/oauth2/client/demo/controller/TokenController.java:[102,65] canno$
find symbol
[ERROR] symbol: class OpenIdConnectResponse
[ERROR] location: class org.apache.oltu.oauth2.client.demo.controller.TokenCont$
oller
但是,如果我有两个明确的步骤,我就可以编译它。
mvn compile
mvn package -DskipTests
我的问题是,mvn package
是否包含compile
?为什么在我明确运行它时打包项目?感谢