1

我试图编译我克隆的 Oltu 源代码

https://github.com/apache/oltu.git

我无法将项目打包,因为它被 Apache mvn package -DskipTestsOltu -Demos-Clientmvn compile package -DskipTests处的错误中断,

[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

但是,如果我有两个明确的步骤,我可以编译它,即

  1. mvn compile
  2. mvn package -DskipTests

我的问题是,它不mvn package包括compile吗?为什么当我显式运行它时它会打包项目?谢谢

4

0 回答 0