> "Wayne Fay" <[email protected]> wrote in message 
> news:[email protected]...
> > However, I'd like to include some extra external files in my sources.jar
> > file but am not quite sure how to do this (for reference purposes). From
> > what I can tell the source-plugin gets it resource list from the build
> > resources. However, I don't want to put the resources directly in the 
> > build
> > information, or they will make their way into my war and try to be 
> > compiled.
>
> Perhaps put them in src/site somewhere? Or under src/test/java? You
> don't really tell us enough about what the resources are to say for
> sure. Its also possible that there is no "good" place, so you just put
> them in src/main/java/examples and then specify that directory to be
> excluded from usual compiling etc.

Actually, they are already part of my source tree.  They are all my jsp 
source files.
My tree looks like the following:
src
    -main
        -java
        -resources
        -webapp

My java & resources files show up in my sources.jar, however, the contents 
of the webapp are mysteriously missing.  I have the compiled version of my 
jsps (as .java) files that are included in the source jar, however, i'd 
obviously prefer having a copy of the non-compiled/original jsps in the 
sources as well.

I don't know if it has anything to do with the maven-war-plugin settings 
which specifically excludes the **/*.jsp files from my war, but I figured 
the war plugin was seperate from the source plugin, and shoulnd't be sharing 
configuration information.

My jspc plugin is configured as the following:
   <!-- war jspc plugin -->
   <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>jspc-maven-plugin</artifactId>
    <executions>
     <execution>
      <goals>
       <goal>compile</goal>
      </goals>
     </execution>
    </executions>
    <configuration>
     <source>1.5</source>
     <target>1.5</target>
     <setCompile>true</setCompile>
     <showSuccess>false</showSuccess>
     <verbose>true</verbose>
     <listErrors>true</listErrors>
    </configuration>
   </plugin>


Any ideas?

Thanks!

Eric





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to