I have created a maven project in eclipse and took the java classes from another folder. I have chosen the create links in work space option instead of import. But while generating the war file maven is not including the java files. How to build a project with source links in maven?
Asked
Active
Viewed 114 times
1 Answers
0
Look at this question:
How to properly include Java sources in Maven?
This is helpful information in above post:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>

Community
- 1
- 1

vikram singh
- 38
- 4