concept source code in category spark

appears as: The source code, source code
Spark in Action, Second Edition

This is an excerpt from Manning's book Spark in Action, Second Edition.

The source code is definitely more compact (I also kept only the major differences). However, the code may be a little more difficult to read for a software engineer whose Java skills do not include lambda functions.

Listing 6.3 Ensuring that Maven deploys the source code with the application
<build>
     <plugins>
...
       <plugin>
         <groupId> org.apache.maven.plugins </groupId> #1
         <artifactId> maven-source-plugin </artifactId> #1
         <version> 3.0.1 </version> #1
         <executions>
             <execution>
               <id> attach-sources </id>
               <phase> verify </phase>
               <goals>
                 <goal> jar-no-fork </goal> #2
               </goals>
             </execution>
         </executions>
       </plugin>
     </plugins>
  </build>

The source code is in a public repository on GitHub. While you are looking at the code on GitHub, feel free to star it; it always helps (thanks!). Every chapter has its own repository. The URL of the source code repository is formatted like this:

Figure D.1 Choosing the Git perspective in Eclipse to easily download the source code