You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Дикевич Евгений Александрович <ev...@becloud.by> on 2022/03/14 09:12:37 UTC
Build CS from Sources
Hi all!
Does somebody try to build CS from sources?
Try It with official documentation and on one step I get ERROR:
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project cloud-apidoc: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
I try to build rmps for el8.
Внимание!
Это электронное письмо и все прикрепленные к нему файлы являются конфиденциальными и предназначены исключительно для использования лицом (лицами), которому (которым) оно предназначено. Если Вы не являетесь лицом (лицами), которому (которым) предназначено это письмо, не копируйте и не разглашайте его содержимое и удалите это сообщение и все вложения из Вашей почтовой системы. Любое несанкционированное использование, распространение, раскрытие, печать или копирование этого электронного письма и прикрепленных к нему файлов, кроме как лицом (лицами) которому (которым) они предназначены, является незаконным и запрещено. Принимая во внимание, что передача данных посредством Интернет не является безопасной, мы не несем никакой ответственности за любой потенциальный ущерб, причиненный в результате ошибок при передаче данных или этим сообщением и прикрепленными к нему файлами.
Attention!
This email and all attachments to it are confidential and are intended solely for use by the person (or persons) referred to (mentioned) as the intended recipient (recipients). If you are not the intended recipient of this email, do not copy or disclose its contents and delete the message and any attachments to it from your e-mail system. Any unauthorized use, dissemination, disclosure, printing or copying of this e-mail and files attached to it, except by the intended recipient, is illegal and is prohibited. Taking into account that data transmission via Internet is not secure, we assume no responsibility for any potential damage caused by data transmission errors or this message and the files attached to it.
Re: [!!Mass Mail]Re: Build CS from Sources
Posted by Rohit Yadav <ro...@shapeblue.com>.
When building for source, it may make sense to have jenv installed and configured; and when building using mvn or otherwise it will automatically pick up the right jdk version:
https://www.jenv.be/
https://github.com/shapeblue/hackerbook/blob/main/2-dev.md#setting-up-development-environment
Regards.
________________________________
From: Дикевич Евгений Александрович <ev...@becloud.by>
Sent: Monday, March 14, 2022 20:57
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: RE: [!!Mass Mail]Re: Build CS from Sources
Hi all
For unknown reasons java switched to java-1.8-openjdk instead java-11-openjdk
After 'update-alternatives --config java' all look good:) Except error after 'mvn clean install -DskipTests' in tools directory. But Slavka sad that it is normal:)
-----Original Message-----
From: Wei ZHOU [mailto:ustcweizhou@gmail.com]
Sent: Monday, March 14, 2022 3:46 PM
To: users <us...@cloudstack.apache.org>
Subject: Re: [!!Mass Mail]Re: Build CS from Sources
good explanation !
It is better to share the versions like
mvn -v
java -version
javac -version
-Wei
On Mon, 14 Mar 2022 at 13:39, Slavka Peleva <sl...@storpool.com.invalid>
wrote:
> This means that the class is compiled with a higher version of java
> than the version with which you try to run it (compiled with 11 and
> try to run it now with 8). You need to set the `JAVA_HOME` environment
> variable with the correct version of java (needed for the project - if
> I remember correct from 4.14 it is java 11 before that java 8) and rerun the build.
>
> Best regards,
> Slavka
>
> On Mon, Mar 14, 2022 at 2:17 PM Дикевич Евгений Александрович <
> evgeniy.dikevich@becloud.by> wrote:
>
> > Thx, Slavka!
> >
> > But when I try command `mvn clean install -DskipTests` in tools
> > directory now I have new error:
> >
> > [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
> > Error: A JNI error has occurred, please check your installation and
> > try again Exception in thread "main"
> > java.lang.UnsupportedClassVersionError:
> > com/cloud/api/doc/ApiXmlDocWriter has been compiled by a more recent
> > version of the Java Runtime (class file version 55.0), this version
> > of
> the
> > Java Runtime only recognizes class file versions up to 52.0
> > at java.lang.ClassLoader.defineClass1(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
> > at
> > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
> > at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
> > at
> > sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601
> > )
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] Reactor Summary:
> > [INFO]
> > [INFO] Apache CloudStack Developer Tools ................. SUCCESS
> [1.058s]
> > [INFO] Apache CloudStack apidocs ......................... FAILURE
> [4.473s]
> > [INFO] Apache CloudStack marvin .......................... SKIPPED
> > [INFO] Apache CloudStack DevCloud4 ....................... SKIPPED
> > [INFO] Apache CloudStack DevCloud-KVM .................... SKIPPED
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] BUILD FAILURE
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] Total time: 5.715s
> > [INFO] Finished at: Mon Mar 14 15:14:59 MSK 2022 [INFO] Final
> > Memory: 36M/154M [INFO]
> > --------------------------------------------------------------------
> > ----
> > [ERROR] Failed to execute goal
> > org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project
> > cloud-apidoc: Command execution failed. Process exited with an
> > error: 1 (Exit value: 1) -> [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/MojoExecutionExcept
> > ion
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with
> > the command
> > [ERROR] mvn <goals> -rf :cloud-apidoc
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: Slavka Peleva [mailto:slavkap@storpool.com.INVALID]
> > Sent: Monday, March 14, 2022 1:53 PM
> > To: users@cloudstack.apache.org
> > Subject: [!!Mass Mail]Re: Build CS from Sources
> >
> > Hi Evgeniy,
> >
> > I don't tell that this solution is perfect, but I had this problem
> > once and those steps helped me to solve it:
> > - In the main CS directory, execute - `mvn clean install
> > -DskipTests` (this will download all required dependencies and build
> > the CS modules locally. I use the option `-DskipTests` because in
> > this case, you don't want to run all tests )
> > - when the build finishes you should go to the `tools` directory and
> > execute the same command `mvn clean install -DskipTests` it could
> > fail
> like
> > this:
> >
> > [INFO] Apache CloudStack Developer Tools .................. SUCCESS
> > [
> > 0.781 s]
> > [INFO] Apache CloudStack apidocs .......................... SUCCESS
> > [
> > 10.257 s]
> > [INFO] Apache CloudStack marvin ........................... SUCCESS
> > [
> > 3.650 s]
> > [INFO] Apache CloudStack DevCloud4 ........................ FAILURE
> > [
> > 0.059 s]
> > [INFO] Apache CloudStack DevCloud-KVM ..................... SKIPPED
> >
> > But you can proceed after that with packaging.
> >
> > Best regards,
> > Slavka
> >
> >
> > On Mon, Mar 14, 2022 at 11:12 AM Дикевич Евгений Александрович <
> > evgeniy.dikevich@becloud.by> wrote:
> >
> > > Hi all!
> > >
> > > Does somebody try to build CS from sources?
> > > Try It with official documentation and on one step I get ERROR:
> > >
> > > Failed to execute goal
> > > org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
> > > (compile) on project cloud-apidoc: Command execution failed.
> > > Process exited with an error: 1 (Exit value: 1) -> [Help 1]
> > >
> > > I try to build rmps for el8.
> > >
> > >
> > >
> > > Внимание!
> > > Это электронное письмо и все прикрепленные к нему файлы являются
> > > конфиденциальными и предназначены исключительно для использования
> > > лицом (лицами), которому (которым) оно предназначено. Если Вы не
> > > являетесь лицом (лицами), которому (которым) предназначено это
> > > письмо, не копируйте и не разглашайте его содержимое и удалите это
> > > сообщение и все вложения из Вашей почтовой системы. Любое
> > > несанкционированное использование, распространение, раскрытие,
> > > печать или копирование этого электронного письма и прикрепленных к
> > > нему файлов, кроме как лицом (лицами) которому (которым) они
> > > предназначены, является незаконным и запрещено. Принимая во
> > > внимание, что передача данных посредством Интернет не является
> > > безопасной, мы не несем никакой ответственности за любой
> > > потенциальный ущерб, причиненный в результате ошибок при передаче
> > > данных или этим сообщением и прикрепленными к нему
> > файлами.
> > >
> > > Attention!
> > > This email and all attachments to it are confidential and are
> > > intended solely for use by the person (or persons) referred to
> > > (mentioned) as the intended recipient (recipients). If you are not
> > > the intended recipient of this email, do not copy or disclose its
> > > contents and delete the message and any attachments to it from your e-mail system.
> > > Any unauthorized use, dissemination, disclosure, printing or
> > > copying of this e-mail and files attached to it, except by the
> > > intended recipient, is illegal and is prohibited. Taking into
> > > account that data transmission via Internet is not secure, we
> > > assume no responsibility for any potential damage caused by data
> > > transmission errors or this
> > message and the files attached to it.
> > >
> > Внимание!
> > Это электронное письмо и все прикрепленные к нему файлы являются
> > конфиденциальными и предназначены исключительно для использования
> > лицом (лицами), которому (которым) оно предназначено. Если Вы не
> > являетесь
> лицом
> > (лицами), которому (которым) предназначено это письмо, не копируйте
> > и не разглашайте его содержимое и удалите это сообщение и все
> > вложения из
> Вашей
> > почтовой системы. Любое несанкционированное использование,
> распространение,
> > раскрытие, печать или копирование этого электронного письма и
> прикрепленных
> > к нему файлов, кроме как лицом (лицами) которому (которым) они
> > предназначены, является незаконным и запрещено. Принимая во
> > внимание, что передача данных посредством Интернет не является
> > безопасной, мы не несем никакой ответственности за любой
> > потенциальный ущерб, причиненный в результате ошибок при передаче
> > данных или этим сообщением и
> прикрепленными
> > к нему файлами.
> >
> > Attention!
> > This email and all attachments to it are confidential and are
> > intended solely for use by the person (or persons) referred to
> > (mentioned) as the intended recipient (recipients). If you are not
> > the intended recipient of this email, do not copy or disclose its
> > contents and delete the message
> and
> > any attachments to it from your e-mail system. Any unauthorized use,
> > dissemination, disclosure, printing or copying of this e-mail and
> > files attached to it, except by the intended recipient, is illegal
> > and is prohibited. Taking into account that data transmission via
> > Internet is
> not
> > secure, we assume no responsibility for any potential damage caused
> > by
> data
> > transmission errors or this message and the files attached to it.
> >
>
Внимание!
Это электронное письмо и все прикрепленные к нему файлы являются конфиденциальными и предназначены исключительно для использования лицом (лицами), которому (которым) оно предназначено. Если Вы не являетесь лицом (лицами), которому (которым) предназначено это письмо, не копируйте и не разглашайте его содержимое и удалите это сообщение и все вложения из Вашей почтовой системы. Любое несанкционированное использование, распространение, раскрытие, печать или копирование этого электронного письма и прикрепленных к нему файлов, кроме как лицом (лицами) которому (которым) они предназначены, является незаконным и запрещено. Принимая во внимание, что передача данных посредством Интернет не является безопасной, мы не несем никакой ответственности за любой потенциальный ущерб, причиненный в результате ошибок при передаче данных или этим сообщением и прикрепленными к нему файлами.
Attention!
This email and all attachments to it are confidential and are intended solely for use by the person (or persons) referred to (mentioned) as the intended recipient (recipients). If you are not the intended recipient of this email, do not copy or disclose its contents and delete the message and any attachments to it from your e-mail system. Any unauthorized use, dissemination, disclosure, printing or copying of this e-mail and files attached to it, except by the intended recipient, is illegal and is prohibited. Taking into account that data transmission via Internet is not secure, we assume no responsibility for any potential damage caused by data transmission errors or this message and the files attached to it.
RE: [!!Mass Mail]Re: Build CS from Sources
Posted by Дикевич Евгений Алексан дрович <ev...@becloud.by>.
Hi all
For unknown reasons java switched to java-1.8-openjdk instead java-11-openjdk
After 'update-alternatives --config java' all look good:) Except error after 'mvn clean install -DskipTests' in tools directory. But Slavka sad that it is normal:)
-----Original Message-----
From: Wei ZHOU [mailto:ustcweizhou@gmail.com]
Sent: Monday, March 14, 2022 3:46 PM
To: users <us...@cloudstack.apache.org>
Subject: Re: [!!Mass Mail]Re: Build CS from Sources
good explanation !
It is better to share the versions like
mvn -v
java -version
javac -version
-Wei
On Mon, 14 Mar 2022 at 13:39, Slavka Peleva <sl...@storpool.com.invalid>
wrote:
> This means that the class is compiled with a higher version of java
> than the version with which you try to run it (compiled with 11 and
> try to run it now with 8). You need to set the `JAVA_HOME` environment
> variable with the correct version of java (needed for the project - if
> I remember correct from 4.14 it is java 11 before that java 8) and rerun the build.
>
> Best regards,
> Slavka
>
> On Mon, Mar 14, 2022 at 2:17 PM Дикевич Евгений Александрович <
> evgeniy.dikevich@becloud.by> wrote:
>
> > Thx, Slavka!
> >
> > But when I try command `mvn clean install -DskipTests` in tools
> > directory now I have new error:
> >
> > [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
> > Error: A JNI error has occurred, please check your installation and
> > try again Exception in thread "main"
> > java.lang.UnsupportedClassVersionError:
> > com/cloud/api/doc/ApiXmlDocWriter has been compiled by a more recent
> > version of the Java Runtime (class file version 55.0), this version
> > of
> the
> > Java Runtime only recognizes class file versions up to 52.0
> > at java.lang.ClassLoader.defineClass1(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
> > at
> > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
> > at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
> > at
> > sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601
> > )
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] Reactor Summary:
> > [INFO]
> > [INFO] Apache CloudStack Developer Tools ................. SUCCESS
> [1.058s]
> > [INFO] Apache CloudStack apidocs ......................... FAILURE
> [4.473s]
> > [INFO] Apache CloudStack marvin .......................... SKIPPED
> > [INFO] Apache CloudStack DevCloud4 ....................... SKIPPED
> > [INFO] Apache CloudStack DevCloud-KVM .................... SKIPPED
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] BUILD FAILURE
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] Total time: 5.715s
> > [INFO] Finished at: Mon Mar 14 15:14:59 MSK 2022 [INFO] Final
> > Memory: 36M/154M [INFO]
> > --------------------------------------------------------------------
> > ----
> > [ERROR] Failed to execute goal
> > org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project
> > cloud-apidoc: Command execution failed. Process exited with an
> > error: 1 (Exit value: 1) -> [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/MojoExecutionExcept
> > ion
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with
> > the command
> > [ERROR] mvn <goals> -rf :cloud-apidoc
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: Slavka Peleva [mailto:slavkap@storpool.com.INVALID]
> > Sent: Monday, March 14, 2022 1:53 PM
> > To: users@cloudstack.apache.org
> > Subject: [!!Mass Mail]Re: Build CS from Sources
> >
> > Hi Evgeniy,
> >
> > I don't tell that this solution is perfect, but I had this problem
> > once and those steps helped me to solve it:
> > - In the main CS directory, execute - `mvn clean install
> > -DskipTests` (this will download all required dependencies and build
> > the CS modules locally. I use the option `-DskipTests` because in
> > this case, you don't want to run all tests )
> > - when the build finishes you should go to the `tools` directory and
> > execute the same command `mvn clean install -DskipTests` it could
> > fail
> like
> > this:
> >
> > [INFO] Apache CloudStack Developer Tools .................. SUCCESS
> > [
> > 0.781 s]
> > [INFO] Apache CloudStack apidocs .......................... SUCCESS
> > [
> > 10.257 s]
> > [INFO] Apache CloudStack marvin ........................... SUCCESS
> > [
> > 3.650 s]
> > [INFO] Apache CloudStack DevCloud4 ........................ FAILURE
> > [
> > 0.059 s]
> > [INFO] Apache CloudStack DevCloud-KVM ..................... SKIPPED
> >
> > But you can proceed after that with packaging.
> >
> > Best regards,
> > Slavka
> >
> >
> > On Mon, Mar 14, 2022 at 11:12 AM Дикевич Евгений Александрович <
> > evgeniy.dikevich@becloud.by> wrote:
> >
> > > Hi all!
> > >
> > > Does somebody try to build CS from sources?
> > > Try It with official documentation and on one step I get ERROR:
> > >
> > > Failed to execute goal
> > > org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
> > > (compile) on project cloud-apidoc: Command execution failed.
> > > Process exited with an error: 1 (Exit value: 1) -> [Help 1]
> > >
> > > I try to build rmps for el8.
> > >
> > >
> > >
> > > Внимание!
> > > Это электронное письмо и все прикрепленные к нему файлы являются
> > > конфиденциальными и предназначены исключительно для использования
> > > лицом (лицами), которому (которым) оно предназначено. Если Вы не
> > > являетесь лицом (лицами), которому (которым) предназначено это
> > > письмо, не копируйте и не разглашайте его содержимое и удалите это
> > > сообщение и все вложения из Вашей почтовой системы. Любое
> > > несанкционированное использование, распространение, раскрытие,
> > > печать или копирование этого электронного письма и прикрепленных к
> > > нему файлов, кроме как лицом (лицами) которому (которым) они
> > > предназначены, является незаконным и запрещено. Принимая во
> > > внимание, что передача данных посредством Интернет не является
> > > безопасной, мы не несем никакой ответственности за любой
> > > потенциальный ущерб, причиненный в результате ошибок при передаче
> > > данных или этим сообщением и прикрепленными к нему
> > файлами.
> > >
> > > Attention!
> > > This email and all attachments to it are confidential and are
> > > intended solely for use by the person (or persons) referred to
> > > (mentioned) as the intended recipient (recipients). If you are not
> > > the intended recipient of this email, do not copy or disclose its
> > > contents and delete the message and any attachments to it from your e-mail system.
> > > Any unauthorized use, dissemination, disclosure, printing or
> > > copying of this e-mail and files attached to it, except by the
> > > intended recipient, is illegal and is prohibited. Taking into
> > > account that data transmission via Internet is not secure, we
> > > assume no responsibility for any potential damage caused by data
> > > transmission errors or this
> > message and the files attached to it.
> > >
> > Внимание!
> > Это электронное письмо и все прикрепленные к нему файлы являются
> > конфиденциальными и предназначены исключительно для использования
> > лицом (лицами), которому (которым) оно предназначено. Если Вы не
> > являетесь
> лицом
> > (лицами), которому (которым) предназначено это письмо, не копируйте
> > и не разглашайте его содержимое и удалите это сообщение и все
> > вложения из
> Вашей
> > почтовой системы. Любое несанкционированное использование,
> распространение,
> > раскрытие, печать или копирование этого электронного письма и
> прикрепленных
> > к нему файлов, кроме как лицом (лицами) которому (которым) они
> > предназначены, является незаконным и запрещено. Принимая во
> > внимание, что передача данных посредством Интернет не является
> > безопасной, мы не несем никакой ответственности за любой
> > потенциальный ущерб, причиненный в результате ошибок при передаче
> > данных или этим сообщением и
> прикрепленными
> > к нему файлами.
> >
> > Attention!
> > This email and all attachments to it are confidential and are
> > intended solely for use by the person (or persons) referred to
> > (mentioned) as the intended recipient (recipients). If you are not
> > the intended recipient of this email, do not copy or disclose its
> > contents and delete the message
> and
> > any attachments to it from your e-mail system. Any unauthorized use,
> > dissemination, disclosure, printing or copying of this e-mail and
> > files attached to it, except by the intended recipient, is illegal
> > and is prohibited. Taking into account that data transmission via
> > Internet is
> not
> > secure, we assume no responsibility for any potential damage caused
> > by
> data
> > transmission errors or this message and the files attached to it.
> >
>
Внимание!
Это электронное письмо и все прикрепленные к нему файлы являются конфиденциальными и предназначены исключительно для использования лицом (лицами), которому (которым) оно предназначено. Если Вы не являетесь лицом (лицами), которому (которым) предназначено это письмо, не копируйте и не разглашайте его содержимое и удалите это сообщение и все вложения из Вашей почтовой системы. Любое несанкционированное использование, распространение, раскрытие, печать или копирование этого электронного письма и прикрепленных к нему файлов, кроме как лицом (лицами) которому (которым) они предназначены, является незаконным и запрещено. Принимая во внимание, что передача данных посредством Интернет не является безопасной, мы не несем никакой ответственности за любой потенциальный ущерб, причиненный в результате ошибок при передаче данных или этим сообщением и прикрепленными к нему файлами.
Attention!
This email and all attachments to it are confidential and are intended solely for use by the person (or persons) referred to (mentioned) as the intended recipient (recipients). If you are not the intended recipient of this email, do not copy or disclose its contents and delete the message and any attachments to it from your e-mail system. Any unauthorized use, dissemination, disclosure, printing or copying of this e-mail and files attached to it, except by the intended recipient, is illegal and is prohibited. Taking into account that data transmission via Internet is not secure, we assume no responsibility for any potential damage caused by data transmission errors or this message and the files attached to it.
Re: [!!Mass Mail]Re: Build CS from Sources
Posted by Wei ZHOU <us...@gmail.com>.
good explanation !
It is better to share the versions like
mvn -v
java -version
javac -version
-Wei
On Mon, 14 Mar 2022 at 13:39, Slavka Peleva <sl...@storpool.com.invalid>
wrote:
> This means that the class is compiled with a higher version of java than
> the version with which you try to run it (compiled with 11 and try to run
> it now with 8). You need to set the `JAVA_HOME` environment variable with
> the correct version of java (needed for the project - if I remember
> correct from 4.14 it is java 11 before that java 8) and rerun the build.
>
> Best regards,
> Slavka
>
> On Mon, Mar 14, 2022 at 2:17 PM Дикевич Евгений Александрович <
> evgeniy.dikevich@becloud.by> wrote:
>
> > Thx, Slavka!
> >
> > But when I try command `mvn clean install -DskipTests` in tools directory
> > now I have new error:
> >
> > [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
> > Error: A JNI error has occurred, please check your installation and try
> > again
> > Exception in thread "main" java.lang.UnsupportedClassVersionError:
> > com/cloud/api/doc/ApiXmlDocWriter has been compiled by a more recent
> > version of the Java Runtime (class file version 55.0), this version of
> the
> > Java Runtime only recognizes class file versions up to 52.0
> > at java.lang.ClassLoader.defineClass1(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
> > at
> > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
> > at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
> > at
> > sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Reactor Summary:
> > [INFO]
> > [INFO] Apache CloudStack Developer Tools ................. SUCCESS
> [1.058s]
> > [INFO] Apache CloudStack apidocs ......................... FAILURE
> [4.473s]
> > [INFO] Apache CloudStack marvin .......................... SKIPPED
> > [INFO] Apache CloudStack DevCloud4 ....................... SKIPPED
> > [INFO] Apache CloudStack DevCloud-KVM .................... SKIPPED
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 5.715s
> > [INFO] Finished at: Mon Mar 14 15:14:59 MSK 2022
> > [INFO] Final Memory: 36M/154M
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> > org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project
> > cloud-apidoc: Command execution failed. Process exited with an error: 1
> > (Exit value: 1) -> [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/MojoExecutionException
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with the
> > command
> > [ERROR] mvn <goals> -rf :cloud-apidoc
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: Slavka Peleva [mailto:slavkap@storpool.com.INVALID]
> > Sent: Monday, March 14, 2022 1:53 PM
> > To: users@cloudstack.apache.org
> > Subject: [!!Mass Mail]Re: Build CS from Sources
> >
> > Hi Evgeniy,
> >
> > I don't tell that this solution is perfect, but I had this problem once
> > and those steps helped me to solve it:
> > - In the main CS directory, execute - `mvn clean install -DskipTests`
> > (this will download all required dependencies and build the CS modules
> > locally. I use the option `-DskipTests` because in this case, you don't
> > want to run all tests )
> > - when the build finishes you should go to the `tools` directory and
> > execute the same command `mvn clean install -DskipTests` it could fail
> like
> > this:
> >
> > [INFO] Apache CloudStack Developer Tools .................. SUCCESS [
> > 0.781 s]
> > [INFO] Apache CloudStack apidocs .......................... SUCCESS [
> > 10.257 s]
> > [INFO] Apache CloudStack marvin ........................... SUCCESS [
> > 3.650 s]
> > [INFO] Apache CloudStack DevCloud4 ........................ FAILURE [
> > 0.059 s]
> > [INFO] Apache CloudStack DevCloud-KVM ..................... SKIPPED
> >
> > But you can proceed after that with packaging.
> >
> > Best regards,
> > Slavka
> >
> >
> > On Mon, Mar 14, 2022 at 11:12 AM Дикевич Евгений Александрович <
> > evgeniy.dikevich@becloud.by> wrote:
> >
> > > Hi all!
> > >
> > > Does somebody try to build CS from sources?
> > > Try It with official documentation and on one step I get ERROR:
> > >
> > > Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
> > > (compile) on project cloud-apidoc: Command execution failed. Process
> > > exited with an error: 1 (Exit value: 1) -> [Help 1]
> > >
> > > I try to build rmps for el8.
> > >
> > >
> > >
> > > Внимание!
> > > Это электронное письмо и все прикрепленные к нему файлы являются
> > > конфиденциальными и предназначены исключительно для использования
> > > лицом (лицами), которому (которым) оно предназначено. Если Вы не
> > > являетесь лицом (лицами), которому (которым) предназначено это письмо,
> > > не копируйте и не разглашайте его содержимое и удалите это сообщение и
> > > все вложения из Вашей почтовой системы. Любое несанкционированное
> > > использование, распространение, раскрытие, печать или копирование
> > > этого электронного письма и прикрепленных к нему файлов, кроме как
> > > лицом (лицами) которому (которым) они предназначены, является
> > > незаконным и запрещено. Принимая во внимание, что передача данных
> > > посредством Интернет не является безопасной, мы не несем никакой
> > > ответственности за любой потенциальный ущерб, причиненный в результате
> > > ошибок при передаче данных или этим сообщением и прикрепленными к нему
> > файлами.
> > >
> > > Attention!
> > > This email and all attachments to it are confidential and are intended
> > > solely for use by the person (or persons) referred to (mentioned) as
> > > the intended recipient (recipients). If you are not the intended
> > > recipient of this email, do not copy or disclose its contents and
> > > delete the message and any attachments to it from your e-mail system.
> > > Any unauthorized use, dissemination, disclosure, printing or copying
> > > of this e-mail and files attached to it, except by the intended
> > > recipient, is illegal and is prohibited. Taking into account that data
> > > transmission via Internet is not secure, we assume no responsibility
> > > for any potential damage caused by data transmission errors or this
> > message and the files attached to it.
> > >
> > Внимание!
> > Это электронное письмо и все прикрепленные к нему файлы являются
> > конфиденциальными и предназначены исключительно для использования лицом
> > (лицами), которому (которым) оно предназначено. Если Вы не являетесь
> лицом
> > (лицами), которому (которым) предназначено это письмо, не копируйте и не
> > разглашайте его содержимое и удалите это сообщение и все вложения из
> Вашей
> > почтовой системы. Любое несанкционированное использование,
> распространение,
> > раскрытие, печать или копирование этого электронного письма и
> прикрепленных
> > к нему файлов, кроме как лицом (лицами) которому (которым) они
> > предназначены, является незаконным и запрещено. Принимая во внимание, что
> > передача данных посредством Интернет не является безопасной, мы не несем
> > никакой ответственности за любой потенциальный ущерб, причиненный в
> > результате ошибок при передаче данных или этим сообщением и
> прикрепленными
> > к нему файлами.
> >
> > Attention!
> > This email and all attachments to it are confidential and are intended
> > solely for use by the person (or persons) referred to (mentioned) as the
> > intended recipient (recipients). If you are not the intended recipient of
> > this email, do not copy or disclose its contents and delete the message
> and
> > any attachments to it from your e-mail system. Any unauthorized use,
> > dissemination, disclosure, printing or copying of this e-mail and files
> > attached to it, except by the intended recipient, is illegal and is
> > prohibited. Taking into account that data transmission via Internet is
> not
> > secure, we assume no responsibility for any potential damage caused by
> data
> > transmission errors or this message and the files attached to it.
> >
>
Re: [!!Mass Mail]Re: Build CS from Sources
Posted by Slavka Peleva <sl...@storpool.com.INVALID>.
This means that the class is compiled with a higher version of java than
the version with which you try to run it (compiled with 11 and try to run
it now with 8). You need to set the `JAVA_HOME` environment variable with
the correct version of java (needed for the project - if I remember
correct from 4.14 it is java 11 before that java 8) and rerun the build.
Best regards,
Slavka
On Mon, Mar 14, 2022 at 2:17 PM Дикевич Евгений Александрович <
evgeniy.dikevich@becloud.by> wrote:
> Thx, Slavka!
>
> But when I try command `mvn clean install -DskipTests` in tools directory
> now I have new error:
>
> [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
> Error: A JNI error has occurred, please check your installation and try
> again
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> com/cloud/api/doc/ApiXmlDocWriter has been compiled by a more recent
> version of the Java Runtime (class file version 55.0), this version of the
> Java Runtime only recognizes class file versions up to 52.0
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
> at
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache CloudStack Developer Tools ................. SUCCESS [1.058s]
> [INFO] Apache CloudStack apidocs ......................... FAILURE [4.473s]
> [INFO] Apache CloudStack marvin .......................... SKIPPED
> [INFO] Apache CloudStack DevCloud4 ....................... SKIPPED
> [INFO] Apache CloudStack DevCloud-KVM .................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5.715s
> [INFO] Finished at: Mon Mar 14 15:14:59 MSK 2022
> [INFO] Final Memory: 36M/154M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project
> cloud-apidoc: Command execution failed. Process exited with an error: 1
> (Exit value: 1) -> [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/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR] mvn <goals> -rf :cloud-apidoc
>
>
>
>
>
> -----Original Message-----
> From: Slavka Peleva [mailto:slavkap@storpool.com.INVALID]
> Sent: Monday, March 14, 2022 1:53 PM
> To: users@cloudstack.apache.org
> Subject: [!!Mass Mail]Re: Build CS from Sources
>
> Hi Evgeniy,
>
> I don't tell that this solution is perfect, but I had this problem once
> and those steps helped me to solve it:
> - In the main CS directory, execute - `mvn clean install -DskipTests`
> (this will download all required dependencies and build the CS modules
> locally. I use the option `-DskipTests` because in this case, you don't
> want to run all tests )
> - when the build finishes you should go to the `tools` directory and
> execute the same command `mvn clean install -DskipTests` it could fail like
> this:
>
> [INFO] Apache CloudStack Developer Tools .................. SUCCESS [
> 0.781 s]
> [INFO] Apache CloudStack apidocs .......................... SUCCESS [
> 10.257 s]
> [INFO] Apache CloudStack marvin ........................... SUCCESS [
> 3.650 s]
> [INFO] Apache CloudStack DevCloud4 ........................ FAILURE [
> 0.059 s]
> [INFO] Apache CloudStack DevCloud-KVM ..................... SKIPPED
>
> But you can proceed after that with packaging.
>
> Best regards,
> Slavka
>
>
> On Mon, Mar 14, 2022 at 11:12 AM Дикевич Евгений Александрович <
> evgeniy.dikevich@becloud.by> wrote:
>
> > Hi all!
> >
> > Does somebody try to build CS from sources?
> > Try It with official documentation and on one step I get ERROR:
> >
> > Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
> > (compile) on project cloud-apidoc: Command execution failed. Process
> > exited with an error: 1 (Exit value: 1) -> [Help 1]
> >
> > I try to build rmps for el8.
> >
> >
> >
> > Внимание!
> > Это электронное письмо и все прикрепленные к нему файлы являются
> > конфиденциальными и предназначены исключительно для использования
> > лицом (лицами), которому (которым) оно предназначено. Если Вы не
> > являетесь лицом (лицами), которому (которым) предназначено это письмо,
> > не копируйте и не разглашайте его содержимое и удалите это сообщение и
> > все вложения из Вашей почтовой системы. Любое несанкционированное
> > использование, распространение, раскрытие, печать или копирование
> > этого электронного письма и прикрепленных к нему файлов, кроме как
> > лицом (лицами) которому (которым) они предназначены, является
> > незаконным и запрещено. Принимая во внимание, что передача данных
> > посредством Интернет не является безопасной, мы не несем никакой
> > ответственности за любой потенциальный ущерб, причиненный в результате
> > ошибок при передаче данных или этим сообщением и прикрепленными к нему
> файлами.
> >
> > Attention!
> > This email and all attachments to it are confidential and are intended
> > solely for use by the person (or persons) referred to (mentioned) as
> > the intended recipient (recipients). If you are not the intended
> > recipient of this email, do not copy or disclose its contents and
> > delete the message and any attachments to it from your e-mail system.
> > Any unauthorized use, dissemination, disclosure, printing or copying
> > of this e-mail and files attached to it, except by the intended
> > recipient, is illegal and is prohibited. Taking into account that data
> > transmission via Internet is not secure, we assume no responsibility
> > for any potential damage caused by data transmission errors or this
> message and the files attached to it.
> >
> Внимание!
> Это электронное письмо и все прикрепленные к нему файлы являются
> конфиденциальными и предназначены исключительно для использования лицом
> (лицами), которому (которым) оно предназначено. Если Вы не являетесь лицом
> (лицами), которому (которым) предназначено это письмо, не копируйте и не
> разглашайте его содержимое и удалите это сообщение и все вложения из Вашей
> почтовой системы. Любое несанкционированное использование, распространение,
> раскрытие, печать или копирование этого электронного письма и прикрепленных
> к нему файлов, кроме как лицом (лицами) которому (которым) они
> предназначены, является незаконным и запрещено. Принимая во внимание, что
> передача данных посредством Интернет не является безопасной, мы не несем
> никакой ответственности за любой потенциальный ущерб, причиненный в
> результате ошибок при передаче данных или этим сообщением и прикрепленными
> к нему файлами.
>
> Attention!
> This email and all attachments to it are confidential and are intended
> solely for use by the person (or persons) referred to (mentioned) as the
> intended recipient (recipients). If you are not the intended recipient of
> this email, do not copy or disclose its contents and delete the message and
> any attachments to it from your e-mail system. Any unauthorized use,
> dissemination, disclosure, printing or copying of this e-mail and files
> attached to it, except by the intended recipient, is illegal and is
> prohibited. Taking into account that data transmission via Internet is not
> secure, we assume no responsibility for any potential damage caused by data
> transmission errors or this message and the files attached to it.
>
Re: [!!Mass Mail]Re: Build CS from Sources
Posted by Suresh Anaparti <Su...@shapeblue.com>.
Hi Evgeniy,
Can you re-try with java version 11.
Regards,
Suresh
On 14/03/22, 5:47 PM, "Дикевич Евгений Александрович" <ev...@becloud.by> wrote:
Thx, Slavka!
But when I try command `mvn clean install -DskipTests` in tools directory now I have new error:
[INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/cloud/api/doc/ApiXmlDocWriter has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache CloudStack Developer Tools ................. SUCCESS [1.058s]
[INFO] Apache CloudStack apidocs ......................... FAILURE [4.473s]
[INFO] Apache CloudStack marvin .......................... SKIPPED
[INFO] Apache CloudStack DevCloud4 ....................... SKIPPED
[INFO] Apache CloudStack DevCloud-KVM .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.715s
[INFO] Finished at: Mon Mar 14 15:14:59 MSK 2022
[INFO] Final Memory: 36M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project cloud-apidoc: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :cloud-apidoc
-----Original Message-----
From: Slavka Peleva [mailto:slavkap@storpool.com.INVALID]
Sent: Monday, March 14, 2022 1:53 PM
To: users@cloudstack.apache.org
Subject: [!!Mass Mail]Re: Build CS from Sources
Hi Evgeniy,
I don't tell that this solution is perfect, but I had this problem once and those steps helped me to solve it:
- In the main CS directory, execute - `mvn clean install -DskipTests` (this will download all required dependencies and build the CS modules locally. I use the option `-DskipTests` because in this case, you don't want to run all tests )
- when the build finishes you should go to the `tools` directory and execute the same command `mvn clean install -DskipTests` it could fail like this:
[INFO] Apache CloudStack Developer Tools .................. SUCCESS [
0.781 s]
[INFO] Apache CloudStack apidocs .......................... SUCCESS [
10.257 s]
[INFO] Apache CloudStack marvin ........................... SUCCESS [
3.650 s]
[INFO] Apache CloudStack DevCloud4 ........................ FAILURE [
0.059 s]
[INFO] Apache CloudStack DevCloud-KVM ..................... SKIPPED
But you can proceed after that with packaging.
Best regards,
Slavka
On Mon, Mar 14, 2022 at 11:12 AM Дикевич Евгений Александрович < evgeniy.dikevich@becloud.by> wrote:
> Hi all!
>
> Does somebody try to build CS from sources?
> Try It with official documentation and on one step I get ERROR:
>
> Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
> (compile) on project cloud-apidoc: Command execution failed. Process
> exited with an error: 1 (Exit value: 1) -> [Help 1]
>
> I try to build rmps for el8.
>
>
>
> Внимание!
> Это электронное письмо и все прикрепленные к нему файлы являются
> конфиденциальными и предназначены исключительно для использования
> лицом (лицами), которому (которым) оно предназначено. Если Вы не
> являетесь лицом (лицами), которому (которым) предназначено это письмо,
> не копируйте и не разглашайте его содержимое и удалите это сообщение и
> все вложения из Вашей почтовой системы. Любое несанкционированное
> использование, распространение, раскрытие, печать или копирование
> этого электронного письма и прикрепленных к нему файлов, кроме как
> лицом (лицами) которому (которым) они предназначены, является
> незаконным и запрещено. Принимая во внимание, что передача данных
> посредством Интернет не является безопасной, мы не несем никакой
> ответственности за любой потенциальный ущерб, причиненный в результате
> ошибок при передаче данных или этим сообщением и прикрепленными к нему файлами.
>
> Attention!
> This email and all attachments to it are confidential and are intended
> solely for use by the person (or persons) referred to (mentioned) as
> the intended recipient (recipients). If you are not the intended
> recipient of this email, do not copy or disclose its contents and
> delete the message and any attachments to it from your e-mail system.
> Any unauthorized use, dissemination, disclosure, printing or copying
> of this e-mail and files attached to it, except by the intended
> recipient, is illegal and is prohibited. Taking into account that data
> transmission via Internet is not secure, we assume no responsibility
> for any potential damage caused by data transmission errors or this message and the files attached to it.
>
Внимание!
Это электронное письмо и все прикрепленные к нему файлы являются конфиденциальными и предназначены исключительно для использования лицом (лицами), которому (которым) оно предназначено. Если Вы не являетесь лицом (лицами), которому (которым) предназначено это письмо, не копируйте и не разглашайте его содержимое и удалите это сообщение и все вложения из Вашей почтовой системы. Любое несанкционированное использование, распространение, раскрытие, печать или копирование этого электронного письма и прикрепленных к нему файлов, кроме как лицом (лицами) которому (которым) они предназначены, является незаконным и запрещено. Принимая во внимание, что передача данных посредством Интернет не является безопасной, мы не несем никакой ответственности за любой потенциальный ущерб, причиненный в результате ошибок при передаче данных или этим сообщением и прикрепленными к нему файлами.
Attention!
This email and all attachments to it are confidential and are intended solely for use by the person (or persons) referred to (mentioned) as the intended recipient (recipients). If you are not the intended recipient of this email, do not copy or disclose its contents and delete the message and any attachments to it from your e-mail system. Any unauthorized use, dissemination, disclosure, printing or copying of this e-mail and files attached to it, except by the intended recipient, is illegal and is prohibited. Taking into account that data transmission via Internet is not secure, we assume no responsibility for any potential damage caused by data transmission errors or this message and the files attached to it.
RE: [!!Mass Mail]Re: Build CS from Sources
Posted by Дикевич Евгений Алексан дрович <ev...@becloud.by>.
Thx, Slavka!
But when I try command `mvn clean install -DskipTests` in tools directory now I have new error:
[INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/cloud/api/doc/ApiXmlDocWriter has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache CloudStack Developer Tools ................. SUCCESS [1.058s]
[INFO] Apache CloudStack apidocs ......................... FAILURE [4.473s]
[INFO] Apache CloudStack marvin .......................... SKIPPED
[INFO] Apache CloudStack DevCloud4 ....................... SKIPPED
[INFO] Apache CloudStack DevCloud-KVM .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.715s
[INFO] Finished at: Mon Mar 14 15:14:59 MSK 2022
[INFO] Final Memory: 36M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project cloud-apidoc: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :cloud-apidoc
-----Original Message-----
From: Slavka Peleva [mailto:slavkap@storpool.com.INVALID]
Sent: Monday, March 14, 2022 1:53 PM
To: users@cloudstack.apache.org
Subject: [!!Mass Mail]Re: Build CS from Sources
Hi Evgeniy,
I don't tell that this solution is perfect, but I had this problem once and those steps helped me to solve it:
- In the main CS directory, execute - `mvn clean install -DskipTests` (this will download all required dependencies and build the CS modules locally. I use the option `-DskipTests` because in this case, you don't want to run all tests )
- when the build finishes you should go to the `tools` directory and execute the same command `mvn clean install -DskipTests` it could fail like this:
[INFO] Apache CloudStack Developer Tools .................. SUCCESS [
0.781 s]
[INFO] Apache CloudStack apidocs .......................... SUCCESS [
10.257 s]
[INFO] Apache CloudStack marvin ........................... SUCCESS [
3.650 s]
[INFO] Apache CloudStack DevCloud4 ........................ FAILURE [
0.059 s]
[INFO] Apache CloudStack DevCloud-KVM ..................... SKIPPED
But you can proceed after that with packaging.
Best regards,
Slavka
On Mon, Mar 14, 2022 at 11:12 AM Дикевич Евгений Александрович < evgeniy.dikevich@becloud.by> wrote:
> Hi all!
>
> Does somebody try to build CS from sources?
> Try It with official documentation and on one step I get ERROR:
>
> Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
> (compile) on project cloud-apidoc: Command execution failed. Process
> exited with an error: 1 (Exit value: 1) -> [Help 1]
>
> I try to build rmps for el8.
>
>
>
> Внимание!
> Это электронное письмо и все прикрепленные к нему файлы являются
> конфиденциальными и предназначены исключительно для использования
> лицом (лицами), которому (которым) оно предназначено. Если Вы не
> являетесь лицом (лицами), которому (которым) предназначено это письмо,
> не копируйте и не разглашайте его содержимое и удалите это сообщение и
> все вложения из Вашей почтовой системы. Любое несанкционированное
> использование, распространение, раскрытие, печать или копирование
> этого электронного письма и прикрепленных к нему файлов, кроме как
> лицом (лицами) которому (которым) они предназначены, является
> незаконным и запрещено. Принимая во внимание, что передача данных
> посредством Интернет не является безопасной, мы не несем никакой
> ответственности за любой потенциальный ущерб, причиненный в результате
> ошибок при передаче данных или этим сообщением и прикрепленными к нему файлами.
>
> Attention!
> This email and all attachments to it are confidential and are intended
> solely for use by the person (or persons) referred to (mentioned) as
> the intended recipient (recipients). If you are not the intended
> recipient of this email, do not copy or disclose its contents and
> delete the message and any attachments to it from your e-mail system.
> Any unauthorized use, dissemination, disclosure, printing or copying
> of this e-mail and files attached to it, except by the intended
> recipient, is illegal and is prohibited. Taking into account that data
> transmission via Internet is not secure, we assume no responsibility
> for any potential damage caused by data transmission errors or this message and the files attached to it.
>
Внимание!
Это электронное письмо и все прикрепленные к нему файлы являются конфиденциальными и предназначены исключительно для использования лицом (лицами), которому (которым) оно предназначено. Если Вы не являетесь лицом (лицами), которому (которым) предназначено это письмо, не копируйте и не разглашайте его содержимое и удалите это сообщение и все вложения из Вашей почтовой системы. Любое несанкционированное использование, распространение, раскрытие, печать или копирование этого электронного письма и прикрепленных к нему файлов, кроме как лицом (лицами) которому (которым) они предназначены, является незаконным и запрещено. Принимая во внимание, что передача данных посредством Интернет не является безопасной, мы не несем никакой ответственности за любой потенциальный ущерб, причиненный в результате ошибок при передаче данных или этим сообщением и прикрепленными к нему файлами.
Attention!
This email and all attachments to it are confidential and are intended solely for use by the person (or persons) referred to (mentioned) as the intended recipient (recipients). If you are not the intended recipient of this email, do not copy or disclose its contents and delete the message and any attachments to it from your e-mail system. Any unauthorized use, dissemination, disclosure, printing or copying of this e-mail and files attached to it, except by the intended recipient, is illegal and is prohibited. Taking into account that data transmission via Internet is not secure, we assume no responsibility for any potential damage caused by data transmission errors or this message and the files attached to it.
Re: Build CS from Sources
Posted by Slavka Peleva <sl...@storpool.com.INVALID>.
Hi Evgeniy,
I don't tell that this solution is perfect, but I had this problem once and
those steps helped me to solve it:
- In the main CS directory, execute - `mvn clean install -DskipTests` (this
will download all required dependencies and build the CS modules locally. I
use the option `-DskipTests` because in this case, you don't want to run
all tests )
- when the build finishes you should go to the `tools` directory and
execute the same command `mvn clean install -DskipTests`
it could fail like this:
[INFO] Apache CloudStack Developer Tools .................. SUCCESS [
0.781 s]
[INFO] Apache CloudStack apidocs .......................... SUCCESS [
10.257 s]
[INFO] Apache CloudStack marvin ........................... SUCCESS [
3.650 s]
[INFO] Apache CloudStack DevCloud4 ........................ FAILURE [
0.059 s]
[INFO] Apache CloudStack DevCloud-KVM ..................... SKIPPED
But you can proceed after that with packaging.
Best regards,
Slavka
On Mon, Mar 14, 2022 at 11:12 AM Дикевич Евгений Александрович <
evgeniy.dikevich@becloud.by> wrote:
> Hi all!
>
> Does somebody try to build CS from sources?
> Try It with official documentation and on one step I get ERROR:
>
> Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
> (compile) on project cloud-apidoc: Command execution failed. Process exited
> with an error: 1 (Exit value: 1) -> [Help 1]
>
> I try to build rmps for el8.
>
>
>
> Внимание!
> Это электронное письмо и все прикрепленные к нему файлы являются
> конфиденциальными и предназначены исключительно для использования лицом
> (лицами), которому (которым) оно предназначено. Если Вы не являетесь лицом
> (лицами), которому (которым) предназначено это письмо, не копируйте и не
> разглашайте его содержимое и удалите это сообщение и все вложения из Вашей
> почтовой системы. Любое несанкционированное использование, распространение,
> раскрытие, печать или копирование этого электронного письма и прикрепленных
> к нему файлов, кроме как лицом (лицами) которому (которым) они
> предназначены, является незаконным и запрещено. Принимая во внимание, что
> передача данных посредством Интернет не является безопасной, мы не несем
> никакой ответственности за любой потенциальный ущерб, причиненный в
> результате ошибок при передаче данных или этим сообщением и прикрепленными
> к нему файлами.
>
> Attention!
> This email and all attachments to it are confidential and are intended
> solely for use by the person (or persons) referred to (mentioned) as the
> intended recipient (recipients). If you are not the intended recipient of
> this email, do not copy or disclose its contents and delete the message and
> any attachments to it from your e-mail system. Any unauthorized use,
> dissemination, disclosure, printing or copying of this e-mail and files
> attached to it, except by the intended recipient, is illegal and is
> prohibited. Taking into account that data transmission via Internet is not
> secure, we assume no responsibility for any potential damage caused by data
> transmission errors or this message and the files attached to it.
>