Assuming your project has a war packaging, I would suggest adding a
specific maven-war-plugin configuration so m2e-wtp could tag your generated
site for publishing in WTP :

<profiles>
 <profile>
<id>m2e</id>
<activation>
 <property>
<name>m2e.version</name>
</property>
 </activation>
<build>
<plugins>
 <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
 <version>2.3</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
 <webResources>
<resource>
<directory>${project.build.directory}/${project.artifactId}-${project.version}/WEB-INF/site</directory>
 <targetPath>WEB-INF/site</targetPath>
</resource>
</webResources>
 </configuration>
</plugin>
</plugins>
 </build>
</profile>

</profiles>

This setup assumes your site is generated via a maven CLI build (refresh
the target folder in eclipse to see the changes)



On Wed, May 1, 2013 at 5:43 PM, v0idnull <[email protected]> wrote:

> My site is a static site generated by a Ruby script called Jekyll:
>
> https://github.com/mojombo/**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
> ______________________________**_________________
> m2e-users mailing list
> [email protected]
> https://dev.eclipse.org/**mailman/listinfo/m2e-users<https://dev.eclipse.org/mailman/listinfo/m2e-users>
>



-- 
"Have you tried turning it off and on again" - The IT Crowd
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to