Thingsboard: : Failed to create assembly: Error adding file to archive: /home/ethics/Documents/thingsboard-master/msa/js-executor/target/package/windows/bin/tb-js-executor.exe

Created on 17 Oct 2018  Â·  21Comments  Â·  Source: thingsboard/thingsboard

This error happends when i compile thingsboard 2.2.0

Most helpful comment

-Dassembly.skipAssembly=true did the trick..
mvn install -DskipTests -Dassembly.skipAssembly=true -Dgpg.skip=true

All 21 comments

I have the same error. Building on Ubuntu 16.04:

[INFO] --- maven-assembly-plugin:3.0.0:single (assembly) @ js-executor ---
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=0, ConflictMarker.nodeCount=142, ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=42, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1, ConflictResolver.conflictItemCount=125, DefaultDependencyCollector.collectTime=289, DefaultDependencyCollector.transformTime=2}
[DEBUG] org.apache.maven.plugins:maven-assembly-plugin:jar:3.0.0:
[DEBUG]    org.apache.maven:maven-plugin-api:jar:3.0:compile
[DEBUG]       org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile
[DEBUG]          org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile
[DEBUG]             org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile
[DEBUG]    org.apache.maven:maven-core:jar:3.0:compile
[DEBUG]       org.apache.maven:maven-settings:jar:3.0:compile
[DEBUG]       org.apache.maven:maven-settings-builder:jar:3.0:compile
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:3.0:compile
[DEBUG]       org.apache.maven:maven-model-builder:jar:3.0:compile
[DEBUG]       org.apache.maven:maven-aether-provider:jar:3.0:runtime
[DEBUG]       org.sonatype.aether:aether-impl:jar:1.7:compile
[DEBUG]          org.sonatype.aether:aether-spi:jar:1.7:compile
[DEBUG]       org.sonatype.aether:aether-api:jar:1.7:compile
[DEBUG]       org.sonatype.aether:aether-util:jar:1.7:compile
[DEBUG]       org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile
[DEBUG]       org.codehaus.plexus:plexus-component-annotations:jar:1.6:compile
[DEBUG]       org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
[DEBUG]          org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG]    org.apache.maven:maven-artifact:jar:3.0:compile
[DEBUG]    org.apache.maven:maven-model:jar:3.0:compile
[DEBUG]    org.apache.maven.shared:maven-common-artifact-filters:jar:3.0.1:compile
[DEBUG]       org.apache.maven.shared:maven-shared-utils:jar:3.1.0:compile
[DEBUG]    org.apache.maven.shared:maven-artifact-transfer:jar:0.9.0:compile
[DEBUG]       org.slf4j:slf4j-api:jar:1.7.5:compile
[DEBUG]    org.codehaus.plexus:plexus-interpolation:jar:1.24:compile
[DEBUG]    org.codehaus.plexus:plexus-archiver:jar:3.4:compile
[DEBUG]       org.apache.commons:commons-compress:jar:1.11:compile
[DEBUG]       org.iq80.snappy:snappy:jar:0.4:compile
[DEBUG]       org.tukaani:xz:jar:1.5:runtime
[DEBUG]    org.apache.maven.shared:file-management:jar:3.0.0:compile
[DEBUG]    org.apache.maven.shared:maven-shared-io:jar:3.0.0:compile
[DEBUG]       org.apache.maven:maven-compat:jar:3.0:compile
[DEBUG]       org.apache.maven.wagon:wagon-provider-api:jar:2.10:compile
[DEBUG]    commons-io:commons-io:jar:2.5:compile
[DEBUG]    org.apache.maven.shared:maven-filtering:jar:3.1.1:compile
[DEBUG]       org.sonatype.plexus:plexus-build-api:jar:0.0.7:compile
[DEBUG]    org.codehaus.plexus:plexus-io:jar:2.7.1:compile
[DEBUG]    org.apache.maven:maven-archiver:jar:3.1.1:compile
[DEBUG]    org.codehaus.plexus:plexus-utils:jar:3.0.24:compile
[DEBUG]    commons-codec:commons-codec:jar:1.6:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-assembly-plugin:3.0.0
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-assembly-plugin:3.0.0
[DEBUG]   Imported:  < project>org.thingsboard:thingsboard:2.2.0-SNAPSHOT
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-assembly-plugin:3.0.0
[DEBUG]   Included: org.apache.maven.plugins:maven-assembly-plugin:jar:3.0.0
[DEBUG]   Included: org.sonatype.sisu:sisu-inject-bean:jar:1.4.2
[DEBUG]   Included: org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7
[DEBUG]   Included: org.sonatype.aether:aether-util:jar:1.7
[DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations:jar:1.6
[DEBUG]   Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3
[DEBUG]   Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG]   Included: org.apache.maven.shared:maven-common-artifact-filters:jar:3.0.1
[DEBUG]   Included: org.apache.maven.shared:maven-shared-utils:jar:3.1.0
[DEBUG]   Included: org.apache.maven.shared:maven-artifact-transfer:jar:0.9.0
[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.24
[DEBUG]   Included: org.codehaus.plexus:plexus-archiver:jar:3.4
[DEBUG]   Included: org.apache.commons:commons-compress:jar:1.11
[DEBUG]   Included: org.iq80.snappy:snappy:jar:0.4
[DEBUG]   Included: org.tukaani:xz:jar:1.5
[DEBUG]   Included: org.apache.maven.shared:file-management:jar:3.0.0
[DEBUG]   Included: org.apache.maven.shared:maven-shared-io:jar:3.0.0
[DEBUG]   Included: commons-io:commons-io:jar:2.5
[DEBUG]   Included: org.apache.maven.shared:maven-filtering:jar:3.1.1
[DEBUG]   Included: org.sonatype.plexus:plexus-build-api:jar:0.0.7
[DEBUG]   Included: org.codehaus.plexus:plexus-io:jar:2.7.1
[DEBUG]   Included: org.apache.maven:maven-archiver:jar:3.1.1
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:3.0.24
[DEBUG]   Included: commons-codec:commons-codec:jar:1.6
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-assembly-plugin:3.0.0:single from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-assembly-plugin:3.0.0, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-assembly-plugin:3.0.0:single' with basic configurator -->
[DEBUG]   (s) appendAssemblyId = true
[DEBUG]   (f) attach = true
[DEBUG]   (s) basedir = /thingsboard/msa/js-executor
[DEBUG]   (s) descriptors = [src/main/assembly/windows.xml]
[DEBUG]   (f) dryRun = false
[DEBUG]   (f) encoding = UTF-8
[DEBUG]   (s) finalName = tb-js-executor
[DEBUG]   (f) ignoreDirFormatExtensions = true
[DEBUG]   (f) ignoreMissingDescriptor = false
[DEBUG]   (f) ignorePermissions = false
[DEBUG]   (f) includeProjectBuildFilters = true
[DEBUG]   (s) localRepository =       id: local
      url: file:///root/.m2/repository/
   layout: default
snapshots: [enabled => true, update => always]
 releases: [enabled => true, update => always]

[DEBUG]   (f) mavenSession = org.apache.maven.execution.MavenSession@2301b75
[DEBUG]   (s) outputDirectory = /thingsboard/msa/js-executor/target
[DEBUG]   (f) plugin = Component Descriptor: role: 'org.apache.maven.plugin.Mojo', implementation: 'org.apache.maven.plugins.assembly.mojos.HelpMojo', role hint: 'org.apache.maven.plugins:maven-assembly-plugin:3.0.0:help'
role: 'org.apache.maven.plugin.Mojo', implementation: 'org.apache.maven.plugins.assembly.mojos.SingleAssemblyMojo', role hint: 'org.apache.maven.plugins:maven-assembly-plugin:3.0.0:single'
---
[DEBUG]   (f) project = MavenProject: org.thingsboard.msa:js-executor:2.2.0-SNAPSHOT @ /thingsboard/msa/js-executor/pom.xml
[DEBUG]   (s) reactorProjects = [MavenProject: org.thingsboard.msa:js-executor:2.2.0-SNAPSHOT @ /thingsboard/msa/js-executor/pom.xml, MavenProject: org.thingsboard.msa:web-ui:2.2.0-SNAPSHOT @ /thingsboard/msa/web-ui/pom.xml, MavenProject: org.thingsboard.msa:tb-node:2.2.0-SNAPSHOT @ /thingsboard/msa/tb-node/pom.xml, MavenProject: org.thingsboard.msa:transport:2.2.0-SNAPSHOT @ /thingsboard/msa/transport/pom.xml, MavenProject: org.thingsboard.msa.transport:mqtt:2.2.0-SNAPSHOT @ /thingsboard/msa/transport/mqtt/pom.xml, MavenProject: org.thingsboard.msa.transport:http:2.2.0-SNAPSHOT @ /thingsboard/msa/transport/http/pom.xml, MavenProject: org.thingsboard.msa.transport:coap:2.2.0-SNAPSHOT @ /thingsboard/msa/transport/coap/pom.xml, MavenProject: org.thingsboard.msa:black-box-tests:2.2.0-SNAPSHOT @ /thingsboard/msa/black-box-tests/pom.xml]
[DEBUG]   (f) recompressZippedFiles = true
[DEBUG]   (f) remoteRepositories = [      id: jenkins
      url: http://repo.jenkins-ci.org/releases
   layout: default
snapshots: [enabled => false, update => daily]
 releases: [enabled => true, update => daily]
,       id: central
      url: http://repo1.maven.org/maven2/
   layout: default
snapshots: [enabled => true, update => daily]
 releases: [enabled => true, update => daily]
,       id: spring-snapshots
      url: https://repo.spring.io/snapshot
   layout: default
snapshots: [enabled => true, update => daily]
 releases: [enabled => true, update => daily]
,       id: spring-milestones
      url: https://repo.spring.io/milestone
   layout: default
snapshots: [enabled => false, update => daily]
 releases: [enabled => true, update => daily]
,       id: typesafe
      url: http://repo.typesafe.com/typesafe/releases/
   layout: default
snapshots: [enabled => true, update => daily]
 releases: [enabled => true, update => daily]
,       id: sonatype
      url: https://oss.sonatype.org/content/groups/public
   layout: default
snapshots: [enabled => true, update => daily]
 releases: [enabled => true, update => daily]
]
[DEBUG]   (f) runOnlyAtExecutionRoot = false
[DEBUG]   (s) siteDirectory = /thingsboard/msa/js-executor/target/site
[DEBUG]   (f) skipAssembly = false
[DEBUG]   (s) tarLongFileMode = warn
[DEBUG]   (s) tempRoot = /thingsboard/msa/js-executor/target/archive-tmp
[DEBUG]   (f) updateOnly = false
[DEBUG]   (f) useJvmChmod = false
[DEBUG]   (s) workDirectory = /thingsboard/msa/js-executor/target/assembly/work
[DEBUG] -- end configuration --
[INFO] Reading assembly descriptor: src/main/assembly/windows.xml
[DEBUG] Field directory source: ${pkg.win.dist} interpolated to: target/package/windows
[DEBUG] Field directory source: ${pkg.win.dist}/conf interpolated to: target/package/windows/conf
[DEBUG] Field source source: ${pkg.win.dist}/bin/${pkg.name}.exe interpolated to: target/package/windows/bin/tb-js-executor.exe
[DEBUG] Field destName source: ${pkg.name}.exe interpolated to: tb-js-executor.exe
[DEBUG] Field source source: ${pkg.win.dist}/service.exe interpolated to: target/package/windows/service.exe
[DEBUG] Field destName source: ${pkg.name}.exe interpolated to: tb-js-executor.exe
[DEBUG] Field source source: ${pkg.win.dist}/service.xml interpolated to: target/package/windows/service.xml
[DEBUG] Field destName source: ${pkg.name}.xml interpolated to: tb-js-executor.xml
[DEBUG] Field source source: ${pkg.win.dist}/install.bat interpolated to: target/package/windows/install.bat
[DEBUG] Field source source: ${pkg.win.dist}/uninstall.bat interpolated to: target/package/windows/uninstall.bat
[DEBUG] After assembly is interpolated:

<?xml version="1.0"?>
<assembly xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd" xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <id>windows</id>
  <formats>
    <format>zip</format>
  </formats>
  <fileSets>
    <fileSet>
      <outputDirectory>logs</outputDirectory>
      <excludes>
        <exclude>*/**</exclude>
      </excludes>
      <directory>target/package/windows</directory>
    </fileSet>
    <fileSet>
      <outputDirectory>conf</outputDirectory>
      <directory>target/package/windows/conf</directory>
      <lineEnding>windows</lineEnding>
    </fileSet>
  </fileSets>
  <files>
    <file>
      <source>target/package/windows/bin/tb-js-executor.exe</source>
      <outputDirectory>bin</outputDirectory>
      <destName>tb-js-executor.exe</destName>
    </file>
    <file>
      <source>target/package/windows/service.exe</source>
      <outputDirectory></outputDirectory>
      <destName>tb-js-executor.exe</destName>
    </file>
    <file>
      <source>target/package/windows/service.xml</source>
      <outputDirectory></outputDirectory>
      <destName>tb-js-executor.xml</destName>
      <lineEnding>windows</lineEnding>
    </file>
    <file>
      <source>target/package/windows/install.bat</source>
      <outputDirectory></outputDirectory>
      <lineEnding>windows</lineEnding>
    </file>
    <file>
      <source>target/package/windows/uninstall.bat</source>
      <outputDirectory></outputDirectory>
      <lineEnding>windows</lineEnding>
    </file>
  </files>
</assembly>



[DEBUG] All known ContainerDescriptorHandler components: [plexus, file-aggregator, metaInf-spring, metaInf-services]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ThingsBoard JavaScript Executor Microservice ....... FAILURE [ 10.183 s]
[INFO] ThingsBoard Web UI Microservice .................... SKIPPED
[INFO] ThingsBoard Node Microservice ...................... SKIPPED
[INFO] ThingsBoard Transport Microservices ................ SKIPPED
[INFO] ThingsBoard MQTT Transport Microservice ............ SKIPPED
[INFO] ThingsBoard HTTP Transport Microservice ............ SKIPPED
[INFO] ThingsBoard COAP Transport Microservice ............ SKIPPED
[INFO] ThingsBoard Black Box Tests ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.033 s
[INFO] Finished at: 2018-11-22T10:25:06+00:00
[INFO] Final Memory: 28M/171M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.0.0:single (assembly) on project js-executor: Failed to create assembly: Error adding file to archive: /thingsboard/msa/js-executor/target/package/windows/bin/tb-js-executor.exe -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.0.0:single (assembly) on project js-executor: Failed to create assembly: Error adding file to archive: /thingsboard/msa/js-executor/target/package/windows/bin/tb-js-executor.exe
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        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:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create assembly: Error adding file to archive: /thingsboard/msa/js-executor/target/package/windows/bin/tb-js-executor.exe
        at org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:530)
        at org.apache.maven.plugins.assembly.mojos.SingleAssemblyMojo.execute(SingleAssemblyMojo.java:58)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
        ... 20 more
Caused by: org.apache.maven.plugins.assembly.archive.ArchiveCreationException: Error adding file to archive: /thingsboard/msa/js-executor/target/package/windows/bin/tb-js-executor.exe
        at org.apache.maven.plugins.assembly.archive.phase.FileItemAssemblyPhase.execute(FileItemAssemblyPhase.java:131)
        at org.apache.maven.plugins.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:181)
        at org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:476)
        ... 23 more
Caused by: java.nio.file.NoSuchFileException: /thingsboard/msa/js-executor/target/package/windows/bin/tb-js-executor.exe
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileAttributeViews$Posix.readAttributes(UnixFileAttributeViews.java:218)
        at sun.nio.fs.UnixFileAttributeViews$Unix.readAttributes(UnixFileAttributeViews.java:345)
        at sun.nio.fs.AbstractFileSystemProvider.readAttributes(AbstractFileSystemProvider.java:92)
        at java.nio.file.Files.readAttributes(Files.java:1964)
        at org.codehaus.plexus.components.io.attributes.Java7FileAttributes.<init>(Java7FileAttributes.java:65)
        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPathJava7(PlexusIoResourceAttributeUtils.java:336)
        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:198)
        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributes(PlexusIoResourceAttributeUtils.java:175)
        at org.codehaus.plexus.components.io.resources.ResourceFactory.createResource(ResourceFactory.java:40)
        at org.apache.maven.plugins.assembly.archive.phase.FileItemAssemblyPhase.execute(FileItemAssemblyPhase.java:120)
        ... 25 more
[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

I have the same err on centos 7

I have commented out assembly plugin in js-executor/pom.xml and it works.

I have the same error.Ubuntu 18.04:
screenshot from 2019-01-21 01-02-15
I changed the version of npm and node like pom.xml /ui directory. But the problem is over
please help

I also have this problem. Please let me know if someone has found a solution. Thanks
@marcozanghi @hutushu @gopirathnamt @andyesys @m0o0hammad

I have the same problem. Anyone found a fix yet?

Please remove ‘npm-modules‘ directory inside module and rebuild project. This issue can be reproduced in all modules that use npm. Please update this ticket when you will try this workaround.

Please try the following

npm install -g pkg

cd /home/opt/iot/thingsboard/msa/web-ui

npm install && pkg -t node8-linux-x64,node8-win-x64 --out-path ./target . && node install.js

cd /home/opt/iot/thingsboard/msa/js-executor

npm install && npm run build-proto && pkg -t node8-linux-x64,node8-win-x64 --out-path ./target . && node install.js

I have the same problem, hope someone can help

@zhanglt @vparomskiy dont work....It looks like this is a Windows error. What is the solution?

i have same error on .... on other project..... i don`t know why search engine take me here.....

Same here

remove assemble windows plugin in
msa/js-executor/pom.xml
msa/web-ui/pom.xml


org.apache.maven.plugins
maven-assembly-plugin
3.0.0

${pkg.name}

src/main/assembly/windows.xml




assembly
package

single



remove assemble windows plugin in
msa/js-executor/pom.xml
msa/web-ui/pom.xml
org.apache.maven.plugins maven-assembly-plugin 3.0.0 ${pkg.name} src/main/assembly/windows.xml assembly package single

Thank you, this helped.
Commented out <!--<pkg.win.dist>${project.build.directory}/package/windows</pkg.win.dist>-->
and <!--<execution> <id>copy-win-conf</id> <phase>process-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${pkg.win.dist}/conf</outputDirectory> <resources> <resource> <directory>config</directory> <excludes> <exclude>tb-web-ui.conf</exclude> </excludes> <filtering>true</filtering> </resource> </resources> <filters> <filter>src/main/filters/windows.properties</filter> </filters> </configuration> </execution>-->

and <!--<execution> <id>copy-windows-control</id> <phase>process-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${pkg.win.dist}</outputDirectory> <resources> <resource> <directory>src/main/scripts/windows</directory> <filtering>true</filtering> </resource> </resources> <filters> <filter>src/main/filters/windows.properties</filter> </filters> </configuration> </execution>-->,
then <!--<descriptors> <descriptor>src/main/assembly/windows.xml</descriptor> </descriptors>-->
and <!--<execution> <id>assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution>-->

This is most likely local problem. Try to clear maven cache (~/.m2) or node_modules in ui and js_executor folders. ThingsBoard team is using Ubuntu 18 and everything builds ok for all the projects.

I have tried clearing the cache and am building on Ubuntu 18.04 with the same error. Using release-3.0 branch.

I will give this a try. Thanks.

On Mon, Jun 15, 2020 at 11:47 PM mcrusi notifications@github.com wrote:

-Dassembly.skipAssembly=true solved my problem

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/thingsboard/thingsboard/issues/1160#issuecomment-644380833,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALAREFBCHY337QRCYWBQLTRW2CHLANCNFSM4F4MX7AA
.

--

Tim N.
[email protected]

I solved this issue after running maven with '-X' and found npm was throwing a warning '...cannot run in wd...' which turns out to be related to a permissions issue that was preventing npm from building (see https://stackoverflow.com/questions/18136746/npm-install-failed-with-cannot-run-in-wd). The quick and dirty solution was to change the argument for npm install execution from 'install' to 'install --unsafe-perm' in the pom.xml of the offending project(s). Or a better way would be to specify 'unsafe-perm = true' in .npmrc where all projects running npm can see the file.

I solved this issue after running maven with '-X' and found npm was throwing a warning '...cannot run in wd...' which turns out to be related to a permissions issue that was preventing npm from building (see https://stackoverflow.com/questions/18136746/npm-install-failed-with-cannot-run-in-wd). The quick and dirty solution was to change the argument for npm install execution from 'install' to 'install --unsafe-perm' in the pom.xml of the offending project(s). Or a better way would be to specify 'unsafe-perm = true' in .npmrc where all projects running npm can see the file.

This solved issue for me - Thanks !!

-Dassembly.skipAssembly=true did the trick..
mvn install -DskipTests -Dassembly.skipAssembly=true -Dgpg.skip=true

This is most likely local problem. Try to clear maven cache (~/.m2) or node_modules in ui and js_executor folders. ThingsBoard team is using Ubuntu 18 and everything builds ok for all the projects.

you guys can't blame local enviroment all the time,when one guy refer to this problem,that maybe local enviroment problem,but when may guys refer to this,i think you'd better think about how to solve this!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fotis400 picture fotis400  Â·  18Comments

affoltep picture affoltep  Â·  29Comments

openedhardware picture openedhardware  Â·  24Comments

myfreescalewebpage picture myfreescalewebpage  Â·  22Comments

nitinware picture nitinware  Â·  21Comments