The SCons maven plugin is used to glue the SCons and the maven buildsystem together.
The main goals
Include plugin in the project configuration and add a build architecture.
<project> <build> <plugins> <plugin> <groupId>de.gsi.cs.co.maven.plugins</groupId> <artifactId>scons-maven-plugin</artifactId> <version>...</version> <extensions>true</extensions> </plugin> </plugins> </build> </project>
TODO the build architecture should be moved to a scons plugin.
Create a SConscript file in your projects source directory ($project/src/SConscript)
Import('env') # get the preconfigured environment # compile helloworld from helloWorld.cc hello = env.Program('helloworld', ['helloWorld.cc']) # install the program into the default bin folder env.InstallBin(hello)
The plugin will provide the SCons environment. For all dependencies declared in the pom, header include paths, library search paths and library linker flags are automaticly added.