Thanks for the feedback. I doubt that it is a permission problem, because everything is executed with the same user...
Unfortunately, after deleting the link manually, I cannot reproduce the error any more... Btw: the error occurred with "mvn -DskipTests clean install" as well as "mvn clean" followed by "mvn -DskipTests install". If the error occurs again, I will try maven debug mode to get more insight... For anybody else hitting this error: "rm build-target" on Flink top level folder resolved the problem for me. -Matthias On 09/10/2015 03:27 PM, Maximilian Michels wrote: > The junction plugin could not create the link "build-target" to the > build directory in flink-dist. Maybe this is a permission problem. You > could have turned on the Maven debug mode to see the underlying > exception. > > On Thu, Sep 10, 2015 at 1:37 PM, Matthias J. Sax <mj...@apache.org> wrote: >> I could resolve this by manually deleting the link >> "/home/mjsax/workspace_flink_asf/flink-asf/build-target" >> >> But I still don't understand why this is necessary... >> >> On 09/10/2015 12:14 PM, Matthias J. Sax wrote: >>> Hi, >>> >>> I am picking up on this old thread, because I have the same error now. I >>> just created a new branch from a freshly rebased master branch. >>> >>> mvn -DskipTests clean install >>> >>>> Failed to execute goal com.pyx4j:maven-junction-plugin:1.0.3:link >>>> (default) on project flink-dist: Can't create junction source >>>> [/home/mjsax/workspace_flink_asf/flink-asf/flink-dist/target/flink-0.10-SNAPSHOT-bin/flink-0.10-SNAPSHOT] >>>> -> [/home/mjsax/workspace_flink_asf/flink-asf/flink-dist/../build-target] >>>> -> [Help 1] >>> >>> This email thread did not show a fix/reason for this issue. >>> >>> >>> -Matthias >>> >>> On 06/03/2015 05:24 PM, Theodore Vasiloudis wrote: >>>> mvn clean package -Dmaven.javadoc.skip=true -DskipTests >>>> >>>> Called from the flink root. >>>> >>>> On Wed, Jun 3, 2015 at 5:21 PM, Robert Metzger <rmetz...@apache.org> wrote: >>>> >>>>> The WARNING is okay. >>>>> >>>>> How did you call maven, and from which directory (flink root or >>>>> flink-dist?) >>>>> >>>>> On Wed, Jun 3, 2015 at 5:10 PM, Theodore Vasiloudis < >>>>> theodoros.vasilou...@gmail.com> wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> I'm having some problems with building the project. The error I get is >>>>> for >>>>>> the flink-dist module is: >>>>>> >>>>>> [ERROR] Failed to execute goal com.pyx4j:maven-junction-plugin:1.0.3:link >>>>>>> (default) on project flink-dist: Can't create junction source >>>>>>> >>>>>> >>>>> [/long/dir/here//flink-dist/target/flink-0.9-SNAPSHOT-bin/flink-0.9-SNAPSHOT] >>>>>>> -> [/long/dir/here/build-target/flink-dist/../build-target] -> [Help 1] >>>>>>> >>>>>> >>>>>> Before that I get this warning in maven-assembly-plugin:2.4:single (bin) >>>>> @ >>>>>> flink-dist ---: >>>>>> >>>>>> [WARNING] Assembly file: >>>>>>> long/dir/here/flink-dist/target/flink-0.9-SNAPSHOT-bin is not a regular >>>>>>> file (it may be a directory). It cannot be attached to the project >>>>> build >>>>>>> for installation or deployment. >>>>>>> >>>>>> >>>>>> Has anyone else encountered this? Any ideas on how it can be fixed? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> View this message in context: >>>>>> >>>>> http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/Build-failure-with-maven-junction-plugin-tp6056.html >>>>>> Sent from the Apache Flink Mailing List archive. mailing list archive at >>>>>> Nabble.com. >>>>>> >>>>> >>>> >>> >>
signature.asc
Description: OpenPGP digital signature