Can't run-stories-as-embeddables from test directory using Maven plugin

Description

When I tried to use it, the plugin couldn't find my .java file.
I suspect that this is because the classloader obtained under Maven with a story that uses
new LoadFromClasspath(this.getClass().getClassLoader())
as a StoryLoader doesn't include the test class directory - even though the running class is IN the test class directory. The same code works correctly under the Eclipse debugger (including the test class directory in the classpath). Everything else works correctly in Maven - unit tests, etc.
The configuration:

<configuration>
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
<testSourceDirectory>${project.build.testSourceDirectory}</testSourceDirectory>
<includes>
<include>**/ProcessorTestStory.java</include>
</includes>
<metaFilters>
<metaFilter>+author *</metaFilter>
<metaFilter>-skip</metaFilter>
</metaFilters>
<systemProperties>
<property>
<name>java.awt.headless</name>
<value>true</value>
</property>
</systemProperties>
<ignoreFailureInStories>true</ignoreFailureInStories>
<ignoreFailureInView>false</ignoreFailureInView>
</configuration>
-Ed

Assignee

Unassigned

Reporter

Edward Staub

Labels

None

Components

Affects versions

Priority

Major
Configure