First, edit your project's project.xml to make sure Ashcroft is among your dependencies:
| Code Block |
|---|
| xml |
|---|
| borderStyle | solid |
|---|
| title | project.xml |
|---|
|
<!-- Test time only -->
<dependency>
<id>ashcroft</id>
<version>0.1</version>
</dependency>
|
Second, edit project.properties to enable Ashcroft: repository. You might have to add this to
| Code Block |
|---|
| borderStyle | solid |
|---|
| title | project.properties |
|---|
|
# make sure the ashcroft jar you're using is available in the remote repository (it is at codehaus)
maven.repo.remote=http://www.ibiblio.org/maven,http://dist.codehaus.org
# install ashcroft as your security manager
maven.junit.jvmargs=-Djava.security.manager=com.thoughtworks.ashcroft.runtime.JohnAshcroft
# make sure the jvm forks, otherwise the jvmargs will be ignored
maven.junit.fork=true
|
That's it!