maven.rst
changeset 2395 a8f39320e076
parent 2394 7df4f3650b8a
child 2396 f6aa28b6c706
equal deleted inserted replaced
2394:7df4f3650b8a 2395:a8f39320e076
   147 
   147 
   148   mvn source:jar install
   148   mvn source:jar install
   149   mvn javadoc:jar install
   149   mvn javadoc:jar install
   150   mvn source:jar javadoc:jar install
   150   mvn source:jar javadoc:jar install
   151 
   151 
       
   152 To do that automatically on ``jar`` lifecycle::
       
   153 
       
   154   <build>
       
   155     <plugins>
       
   156       <plugin>
       
   157         <groupId>org.apache.maven.plugins</groupId>
       
   158         <artifactId>maven-source-plugin</artifactId>
       
   159         <executions>
       
   160           <execution>
       
   161             <id>attach-sources</id>
       
   162             <goals>
       
   163               <goal>jar</goal>
       
   164             </goals>
       
   165           </execution>
       
   166         </executions>
       
   167       </plugin>
       
   168     </plugins>
       
   169   </build>
       
   170 
   152 Force update of dependencies
   171 Force update of dependencies
   153 ============================
   172 ============================
   154 
   173 
   155 You can try redownload snapshots by::
   174 You can try redownload snapshots by::
   156 
   175