You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Mark Liu (JIRA)" <ji...@apache.org> on 2017/05/17 21:12:04 UTC

[jira] [Commented] (BEAM-2164) Build beam-sdks-java-maven-archetypes-examples Failed If Dir Contains Space

    [ https://issues.apache.org/jira/browse/BEAM-2164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16014779#comment-16014779 ] 

Mark Liu commented on BEAM-2164:
--------------------------------

I replaced "$(dirname $0)" with "$( cd "$( dirname '$0' )" && pwd )" in [generate-sources.sh|https://github.com/apache/beam/blob/master/sdks/java/maven-archetypes/examples/generate-sources.sh#L24] and solve the problem. 

Test is done on the Jenkins. Will send out a PR soon.

> Build beam-sdks-java-maven-archetypes-examples Failed If Dir Contains Space
> ---------------------------------------------------------------------------
>
>                 Key: BEAM-2164
>                 URL: https://issues.apache.org/jira/browse/BEAM-2164
>             Project: Beam
>          Issue Type: Bug
>          Components: build-system, sdk-java-extensions
>            Reporter: Mark Liu
>            Assignee: Jean-Baptiste Onofré
>
> Error log from [Jenkins console log|https://builds.apache.org/job/beam_PostCommit_Java_JDK_Versions_Test/jdk=JDK%201.8%20(latest),label=beam/6/console]:
> {code}
> rsync: change_dir "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Java_JDK_Versions_Test/jdk\#012.\#012(latest)/label/beam/sdks/java/maven-archetypes/examples/../../../../examples/java/src/main/java/org/apache/beam/examples" failed: No such file or directory (2)
> rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]
> 2017-05-03\T\19:20:56.905 [ERROR] Command execution failed.
> {code}
> beam-sdks-java-maven-archetypes-examples execute a [bash script|https://github.com/apache/beam/blob/master/sdks/java/maven-archetypes/examples/generate-sources.sh] through [exec-maven-plugin|https://github.com/apache/beam/blob/master/sdks/java/maven-archetypes/examples/pom.xml#L79]. Looks like it fails to create a directory which contains space in [previous step|https://github.com/apache/beam/blob/master/sdks/java/maven-archetypes/examples/generate-sources.sh#L32]. The root directory of above build is "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Java_JDK_Versions_Test/jdk/JDK 1.8 (latest)/label/beam/...".
> Similar error also happens in [JDK1.7|https://builds.apache.org/job/beam_PostCommit_Java_JDK_Versions_Test/jdk=JDK%201.7%20(latest),label=beam/8/] and [OpenJDK7|https://builds.apache.org/job/beam_PostCommit_Java_JDK_Versions_Test/jdk=OpenJDK%207%20(on%20Ubuntu%20only),label=beam/8/].
> I simply run [generate-sources.sh|https://github.com/apache/beam/blob/master/sdks/java/maven-archetypes/examples/generate-sources.sh] from my Linux machine in JDK1.8 under contain-space directory and it works perfectly. I guess exec-maven-plugin works differently when handling bash commands that contains space, but I failed to solve this problem by modifying commands in script.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)