I'm trying to pack the source code of my application into a.JAR file, I used the maven-source-plugin for the same. I added the following section into pom.xml for the same -
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.1.0</version>
<extensions>false</extensions>
<inherited>true</inherited>
<configuration>
<outputDirectory>c:\app\workspace</outputDirectory>
<finalName>app.jar</finalName>
<attach>false</attach>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
I can see the source files in the jar generated at the outputDirectory location, but the JSP files are missing, I can see only.java files. How can I also pack.jsp files? My application has these jsp files stored under src/main/webapps folder. I do not see webapps folder in the jar generated. Please advise.
I'm trying to pack the source code of my application into a.JAR file, I used the maven-source-plugin for the same. I added the following section into pom.xml for the same -
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.1.0</version>
<extensions>false</extensions>
<inherited>true</inherited>
<configuration>
<outputDirectory>c:\app\workspace</outputDirectory>
<finalName>app.jar</finalName>
<attach>false</attach>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
I can see the source files in the jar generated at the outputDirectory location, but the JSP files are missing, I can see only.java files. How can I also pack.jsp files? My application has these jsp files stored under src/main/webapps folder. I do not see webapps folder in the jar generated. Please advise.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.