[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[m2e-users] How to compile a project properly?
|
My site is a static site generated by a Ruby script called Jekyll:
https://github.com/mojombo/jekyll
Here is an example of the POM's plugin in action:
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<version>1.0.0-beta</version>
<configuration>
<rubySourceDirectory>
${basedir}/src/main/site/_override
</rubySourceDirectory>
<installRDoc>false</installRDoc>
<jrubyVerbose>true</jrubyVerbose>
<jrubyVersion>1.7.3</jrubyVersion>
<supportNative>true</supportNative>
</configuration>
<executions>
<execution>
<id>init</id>
<goals>
<goal>initialize</goal>
</goals>
</execution>
<execution>
<id>compile-jekyll</id>
<goals>
<goal>exec</goal>
</goals>
<phase>compile</phase>
<configuration>
<launchDirectory>${basedir}/src/main/site</launchDirectory>
<execArgs>${project.build.directory}/rubygems/bin/jekyll
${basedir}/src/main/site
${project.build.directory}/${project.artifactId}-${project.version}/WEB-INF/site</execArgs>
</configuration>
</execution>
</executions>
</plugin>
When I build my project using mvn install the WAR file is packaged
properly with all the compiled static stuff that I expect.
However, when using m2e's WTP connector, starting the tomcat server in
eclipse works fine but the static content is not there (404's). I am
unsure how to fix this...
thanks
--alex