> "Wayne Fay" <wayne...@gmail.com> wrote in message > news:52bab8690904071513q6dc03722tbf6c57a788458...@mail.gmail.com... > > I'm not quite sure I understand what you mean... It's not really sample > > code; it is the jsp code for the application that I am building. > > Currently > > just the compiled jsp's are being included in the source jar. I'd like > > the > > original source jsps to be included as well. > > So what you're saying is the following: > 1. You have a <packaging>war</packaging> project. > 2. You have JSP files in src/main/webapp. > 3. You're using the m-source-p to package up your source code. > 4. Those JSP files are not being added to the source code jar. > Instead, they are coming in as Java files after being compiled by > Jspc.
Correct. I've looked at the jspc-maven-plugin but couldn't find anywhere that it might be removing the original jsp's from the file list, so I actually commented out the entire plugin from my pom to see if that would make a difference. The only difference it makes is that the jsps now don't get compiled - pretty much as expected. However, I would then have thought / expected that the src/main/webapp directory would then appear in my -sources.jar file, but they still dont. It seems as though only the src/main/java and src/main/resources directories show up in the sources.jar file. Which now makes me even more confused. >From looking at the source code for the m-source-p plugin, it shows that the list of source files comes from MavenProject.getCompiledSources() or MavenProject.getResources(). I guess that by default, Maven only includes src/main/java as the getCompiledSources(), and I can't figure out how to add to that list. But then again, am not sure that I would want to, as I assume the compiler plugin uses that list as the list of files to compile. Similarly, the getResrouces() gets the list of resources from teh build arguments. So by default, src/main/resources, plus anything additional that I would put in the <build></build> section of the pom. But then, all those resrouces end up in the war unless I explicitly ignore them. It would seem to me that the sources under src/main/webapp should be included in the source jar. I find it really surprising that noone else has encountered this problem before.... Thanks, Eric --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org