creating a link in windows for a directory

The apache cxf maven plugin does not completely honor the maven structure for generated sources.

Netbeans gives a hint in the project properties that generated sources should be placed under


The cxf-codegen-plugin places the sources for the customer projecct under generated and therefore
netbeans shows errors in the code.

Now windows also has the functionality to create links, but the command is only in cmd.exe and not
in the powershell.


mklink /J cxf ..\generated\cxf

My source for the mklink is from here.
In a cmd.exe does the trick and netbeans doesn't show any errors in the source code.