Project

General

Profile

Actions

None #8390

open

Exception while building WSO2 IoT Server from Source

Added by Entgra Admin almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
None
Assignee:
-
Category:
-
Start date:
06/04/2020
Due date:
% Done:

0%

Estimated time:
0:00 h
Device Type:
Component:
Type:

Description

From Gitlab
------------------------
gitlabId --> 391 https://gitlab.com/entgra/product-iots/-/issues/391
labels -->
assignees -->
created_at --> 2020-04-06 12:30:16 IST +0530
updated_at --> 2020-04-24 14:48:54 IST +0530
------------------------

My environment:
OS: Windows10
jdk: openjdk 1.8.0_242
Maven: 3.6.3
When I execute "mvn clean install -X" in the CMD terminal, the problem occurs below:

```
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for WSO2 IoT - Parent 3.8.3-SNAPSHOT:
[INFO]
[INFO] WSO2 IoT - Parent .................................. SUCCESS [ 7.866 s]
[INFO] WSO2 IoT - Components Module ....................... SUCCESS [ 0.704 s]
[INFO] WSO2 IoT - UI Styles ............................... SUCCESS [ 14.595 s]
[INFO] WSO2 IoT - Features Module ......................... SUCCESS [ 0.623 s]
[INFO] WSO2 IoT - Styles Feature .......................... SUCCESS [ 4.968 s]
[INFO] WSO2 IoT - Scripts ................................. SUCCESS [ 0.635 s]
[INFO] WSO2 IoT - QSG Script .............................. SUCCESS [ 12.909 s]
[INFO] WSO2 IoT - Tools ................................... SUCCESS [ 0.638 s]
[INFO] WSO2 IoT - Device Type Archetype ................... SUCCESS [ 9.181 s]
[INFO] Identity Server : cxf filters ...................... SUCCESS [ 3.742 s]
[INFO] WSO2 IoT - P2 Profile Module ....................... SUCCESS [ 0.613 s]
[INFO] WSO2 IoT - Core P2 Profile Gen ..................... FAILURE [05:22 min]
[INFO] WSO2 IoT - Analytics P2 Profile Gen ................ SKIPPED
[INFO] WSO2 IoT - Broker P2 Profile Gen ................... SKIPPED
[INFO] Entgra IoT - Distribution .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:26 min
[INFO] Finished at: 2020-04-06T10:05:37+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:5.2.19:p2-repo-gen (2-p2-repo-generation) on project wso2iot-core-p2-profile: Error occured when extracting the Feature Artifact: org.wso2.maven.p2.FeatureArtifact@15d68a50: Unexpected end of ZLIB input stream -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.wso2.maven:carbon-p2-plugin:5.2.19:p2-repo-gen (2-p2-repo-generation) on project wso2iot-core-p2-profile: Error occured when extracting the Feature Artifact: org.wso2.maven.p2.FeatureArtifact@15d68a50
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error occured when extracting the Feature Artifact: org.wso2.maven.p2.FeatureArtifact@15d68a50
at org.wso2.maven.p2.RepositoryGenMojo.createRepo (RepositoryGenMojo.java:210)
at org.wso2.maven.p2.RepositoryGenMojo.execute (RepositoryGenMojo.java:191)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error occured when extracting the Feature Artifact: org.wso2.maven.p2.FeatureArtifact@15d68a50
at org.wso2.maven.p2.RepositoryGenMojo.extractFeatures (RepositoryGenMojo.java:281)
at org.wso2.maven.p2.RepositoryGenMojo.createRepo (RepositoryGenMojo.java:200)
at org.wso2.maven.p2.RepositoryGenMojo.execute (RepositoryGenMojo.java:191)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill (InflaterInputStream.java:240)
at java.util.zip.InflaterInputStream.read (InflaterInputStream.java:158)
at java.util.zip.ZipInputStream.read (ZipInputStream.java:194)
at org.wso2.maven.p2.generate.utils.FileManagementUtil.unzip (FileManagementUtil.java:436)
at org.wso2.maven.p2.RepositoryGenMojo.extractFeatures (RepositoryGenMojo.java:279)
at org.wso2.maven.p2.RepositoryGenMojo.createRepo (RepositoryGenMojo.java:200)
at org.wso2.maven.p2.RepositoryGenMojo.execute (RepositoryGenMojo.java:191)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[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 <args> -rf :wso2iot-core-p2-profile
```
Any help will be greatly appreciated from these problem!


Files

(2245_note_att)mvn.out.1 (3.96 MB) (2245_note_att)mvn.out.1 mvn.out.1 Entgra Admin, 25/10/2022 05:13 PM
Actions #1

Updated by Entgra Admin almost 2 years ago

From Gitlab
------------------------
author: jayasanka-sack
created_at: 2020-04-08 10:09:04 IST +0530
updated_at: 2020-04-08 10:09:04 IST +0530
------------------------

changed the description
Actions #2

Updated by Entgra Admin almost 2 years ago

From Gitlab
------------------------
author: jayasanka-sack
created_at: 2020-04-08 10:15:06 IST +0530
updated_at: 2020-04-08 10:15:57 IST +0530
------------------------

Hi @ajaypalsingh22595 ,
Thanks for using our issue tracker!

Could you please mention what is the repository you used to build the server?

Actions #3

Updated by Entgra Admin almost 2 years ago

From Gitlab
------------------------
author: v.osborne.dev
created_at: 2020-04-16 16:10:06 IST +0530
updated_at: 2020-04-16 16:10:06 IST +0530
------------------------

I have a similar issue.

I'd like to build v3.6.0. Steps to reproduce:

```sh
git clone :entgra/product-iots.git
cd product-iots/
git checkout v3.6.0
mvn --batch-mode clean install
```

Maven fails with the following error:

```
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The packaging for this project did not assign a file to the build artifact
[INFO] ------------------------------------------------------------------------
```

Attaching the full mvn output(2245_note_att)

Actions #4

Updated by Entgra Admin almost 2 years ago

From Gitlab
------------------------
author: v.osborne.dev
created_at: 2020-04-16 19:05:33 IST +0530
updated_at: 2020-04-16 19:05:33 IST +0530
------------------------

Great thanks so much :)

How would I know which versions of

1. https://gitlab.com/entgra/carbon-device-mgt
2. https://gitlab.com/entgra/carbon-device-mgt-plugins

to build respectively?

I can't find the relevant tags that line up with 3.6.0 of product-iots.

Actions #5

Updated by Entgra Admin almost 2 years ago

From Gitlab
------------------------
author: jayasanka-sack
created_at: 2020-04-16 19:47:28 IST +0530
updated_at: 2020-04-16 19:47:28 IST +0530
------------------------

Sorry, my comment was accidentally deleted.

You can get the version from the pom.xml file of product-iots.
`<carbon.device.mgt.version>` and `<carbon.device.mgt.plugin.version>`

Actions #6

Updated by Entgra Admin almost 2 years ago

From Gitlab
------------------------
author: v.osborne.dev
created_at: 2020-04-16 20:31:19 IST +0530
updated_at: 2020-04-16 20:31:19 IST +0530
------------------------

Great stuff, I see them. Let me build and I'll let you know.

Thanks

Actions #7

Updated by Entgra Admin almost 2 years ago

From Gitlab
------------------------
author: v.osborne.dev
created_at: 2020-04-17 15:36:57 IST +0530
updated_at: 2020-04-17 15:37:10 IST +0530
------------------------

Hey @jayasanka-sack

Using this [POM](https://gitlab.com/entgra/product-iots/-/blob/v3.6.0/pom.xml) to build the respective versions of `carbon-device-mgt` and `carbon-device-mgt-plugins` - using `mvn clean install`

allowed me to successfully build the zip distribution!

Thanks so much for the help.

Actions #8

Updated by Entgra Admin almost 2 years ago

From Gitlab
------------------------
author: jayasanka-sack
created_at: 2020-04-24 14:48:54 IST +0530
updated_at: 2020-04-24 14:48:54 IST +0530
------------------------

I'm happy to help you, @v.osborne.dev !
Actions

Also available in: Atom PDF