I am running a non-maven project using ant. Here's my setup - hopefully will be a helpful example
Directory layout:
src/
main/
java/
... Java files
resources/
META-INF
kmodule.xml
rules
... drl files
target/
... class files
My build.xml is set up to compile class files to target, and then it has an additional task to copy the rules and META-INF directory together with the classes
<target name="compile">
<!-- The runtime needs resources on the classpath. For now, we will just copy them to the target directory. In the future, we should make a resource jar -->
<copy todir="${target_dir}">
<fileset dir="src/main/resources" />
</copy>
<mkdir dir="${target_dir}"/>
<javac srcdir="${source_dir}" destdir="${target_dir}" debug="yes">
<classpath>
<path refid="classpath"/>
</classpath>
</javac>
</target>
And then I either put my "target" directory on my classpath, or package it as a jar to run.
Obviously there could be improvements, like packaging resources in a separate jar - this is just a basic example setup.
Myrosia