Question: I have a issue with some tests in sibling modules. 

I have the following folder in module 1 in resources/: sql/statements 
all the files in that folder is loaded with the following code:

```
URL url = this.getClass().getClassLoader().getResource("sql/statements");
assert url != null;
Collection<File> files = FileUtils.listFiles(new File(url.getPath()),
    FileFilterUtils.suffixFileFilter("sql.xml"), TrueFileFilter.INSTANCE);

```

This works fine:

* inside intellij for the sibling module
* inside intellij in the module with the xml files
* with maven clean install in the module with the xml files

**but for some reason when I reference this class in a test in the sibling module it is unable to find the xml files when I run clean install from command line.**

how can I solve this?

edit: when it fails it print the follwing url path, which seem ok (?):
url: `jar:file:/home/<user>/.m2/repository/<path>/1.0.0/<jar-name>1.0.0.jar!/sql/statements`

Answer: 
You can turn of the Advanced button by overriding `createAdvancedControls`:

```
@Override
protected void createAdvancedControls(Composite parent)
{
}

```

You could also create your button in this method.
Beside override createAdvancedControls method, you also need to override createLinkTarget and validateLinkedResource methods. Those are also involved.

```
    // Hide create link target
    @Override 
    protected void createLinkTarget() {
        return;
    }
    //Hide link validation
    @Override 
    protected IStatus validateLinkedResource() {        
        return Status.OK_STATUS;
    }

```