[OPENAM-14053] Cannot build openam-ui in Windows for Yarn using mvn Created: 30/Nov/18  Updated: 16/May/19  Resolved: 14/Dec/18

Status: Resolved
Project: OpenAM
Component/s: build
Affects Version/s: 6.0.0,,,,,,
Fix Version/s:,, 6.5.1, 6.0.1, 7.0.0

Type: Bug Priority: Minor
Reporter: C-Weng C Assignee: Phil Ostler [X] (Inactive)
Resolution: Fixed Votes: 0
Labels: AME, Must-Fix, TURING
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File yarn-mutexwinblock.png    
Target Version/s:
Rank: 1|hzk3y7:
Sprint: 2018.16 - Tin
Support Ticket IDs:
QA Assignee: Ľubomír Mlích
Verified Version/s:


Bug description

When using a clean Windows box to but the am-external, this will block forever in yarn

[ERROR] warning Waiting for the other yarn instance to finish (pid undefined, inside undefined)

How to reproduce the issue

Get a fresh clean Windows box

  1. On a Windows box without c:\tmp or even on mounted directory where there is no <drive>:\tmp
  2. cd openam-ui ; mvn clean package
Expected behaviour
Current behaviour
Hangs at Yarn

Work around

a) Run yarn without --mutex=
b) (or mkdir c:\tmp)
c) Or run in Windows "bash" where there is probably some /tmp exists


Or edit the pom.xml from using /tmp to ${java.io.tmpdir}

Code analysis

The mvn code works only on Unix and not on windows
Maybe an instruction given to update the pom.xml to set and
temp directory or mkdir c:\tmp


Change the pom.xml for openam-ui-ria/pom.xml that is /tmp with  ${java.io.tmpdir}


Comment by Andy Hall [ 30/Nov/18 ]

Phil Ostler [X] Right up your street.

Comment by Phil Ostler [X] (Inactive) [ 30/Nov/18 ]

I know what this is. Simple fix can be done. *thumbsup

Comment by Phil Ostler [X] (Inactive) [ 14/Dec/18 ]

Adam Heath Hey Adam, could you add the Fix Version for 6.5.x that this will end up in (merged to 6.5.x branch). Cheers.

Comment by Adam Heath [ 14/Dec/18 ]

Phil Ostler [X] - Sorted - also updated target versions to highlight the other locations this is likely to be backported.

Comment by Phil Ostler [X] (Inactive) [ 14/Dec/18 ]

Thank you!

Comment by Ľubomír Mlích [ 11/Jan/19 ]

Reproduced block in 6.5.0 release branch
Verified there is no such block in current 6.5.0.x branch (

Comment by Ľubomír Mlích [ 16/May/19 ]

successfuly built on 6.0.0.x branch

Generated at Wed Feb 24 17:26:39 UTC 2021 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.