Build Failure: Error al compilar el buildSentilo.sh

106 views
Skip to first unread message

Felipe Ruiz

unread,
Apr 26, 2022, 6:09:27 AM4/26/22
to Sentilo
Hola, 
Al compilar el buildSentilo.sh me sale este error, la verdad es que soy bastante novato con este tema y me gustaría ver si me podéis ayudar, ya que no se exactamente donde estaría el fallo, las variables de entorno de jdk y maven están correctamente.
Adjunto el error.
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17.163 s
[INFO] Finished at: 2022-04-26T12:06:26+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project sentilo-platform-common: Compilation failure: Compilation failure:
[ERROR] /opt/sentilo/sentilo-master/sentilo-platform/sentilo-platform-common/src/main/java/org/sentilo/platform/common/ratelimiter/service/InMemoryTokenBucketServiceImpl.java:[40,23] error: package javax.annotation does not exist
[ERROR] /opt/sentilo/sentilo-master/sentilo-platform/sentilo-platform-common/src/main/java/org/sentilo/platform/common/ratelimiter/service/InMemoryTokenBucketServiceImpl.java:[69,3] error: cannot find symbol
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :sentilo-platform-common
Error code : 1
Gracias y un saludo.
Felipe.

Sentilo IO

unread,
May 2, 2022, 7:35:04 AM5/2/22
to Sentilo

Hola Felipe,

¿Podrías volver a probar estos comandos?

git clone https://github.com/sentilo/sentilo.git
cd sentilo/
chmod +x scripts/buildSentilo.sh
scripts/buildSentilo.sh


¿Qué versión de Java y Maven tienes?

Un saludo,
Sentilo Team.

mehdi.al...@gmail.com

unread,
May 5, 2022, 8:37:16 AM5/5/22
to Sentilo
I think you are using java 9 or above
I had the same problem and fixing it by using java 8 

suggestion to sentilo team  
javax.annotation  is depreciated in java 9 and removed in java 11  it is better to replace it with  jakarta libraries

Jordi Marqués Casado

unread,
Jul 4, 2022, 9:37:51 AM7/4/22
to Sentilo
Thanks a lot for the annotation, we'll keep it in mind


Thanks for the messages.

Bets regards,
The Sentilo Team

El dia dijous, 5 de maig de 2022 a les 14:37:16 UTC+2, mehdi.al...@gmail.com va escriure:
Reply all
Reply to author
Forward
0 new messages