[build] Modify build to produce source bundles
diff --git a/bridges/org.eclipse.mylyn.docs.intent.bridge.tags/build.properties b/bridges/org.eclipse.mylyn.docs.intent.bridge.tags/build.properties
new file mode 100644
index 0000000..f52edcc
--- /dev/null
+++ b/bridges/org.eclipse.mylyn.docs.intent.bridge.tags/build.properties
@@ -0,0 +1,5 @@
+source.. = src/, src-gen
+output.. = bin/
+bin.includes = META-INF/,\
+               .,\
+               plugin.xml
diff --git a/plugins/org.eclipse.mylyn.docs.intent.exporter/build.properties b/plugins/org.eclipse.mylyn.docs.intent.exporter/build.properties
index 5fb7ae4..06bcc4a 100644
--- a/plugins/org.eclipse.mylyn.docs.intent.exporter/build.properties
+++ b/plugins/org.eclipse.mylyn.docs.intent.exporter/build.properties
@@ -7,11 +7,9 @@
                about.html,\
                build.properties,\
                plugin.properties,\
-               tasks/,\
                build.acceleo
 customBuildCallbacks = build.acceleo
 jre.compilation.profile = J2SE-1.5
-src.includes = tasks/,\
-               build.acceleo,\
+src.includes = build.acceleo,\
                about.html
 	
diff --git a/pom.xml b/pom.xml
index 53f3ed4..a116028 100644
--- a/pom.xml
+++ b/pom.xml
@@ -37,7 +37,8 @@
   </licenses>
 
   <properties>
-    <tycho-version>0.13.0</tycho-version>
+    <tycho-version>0.17.0</tycho-version>
+	<tycho-extras-version>0.17.0</tycho-extras-version>
   </properties>
 
 
@@ -125,9 +126,7 @@
         <artifactId>target-platform-configuration</artifactId>
         <version>${tycho-version}</version>
         <configuration>
-        <resolver>p2</resolver>
-        <ignoreTychoRepositories>false</ignoreTychoRepositories>
-		
+        <resolver>p2</resolver>		
         <environments>
 			<environment>
 					<os>linux</os>
@@ -157,84 +156,157 @@
 		</environments>
         </configuration>
       </plugin>
-    </plugins>
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <groupId>org.eclipse.tycho</groupId>
-          <artifactId>tycho-compiler-plugin</artifactId>
-          <version>${tycho-version}</version>
-          <configuration>
-            <encoding>UTF-8</encoding>
-          </configuration>
-        </plugin>
      <!-- enable source bundle generation -->
-     <plugin>
-       <groupId>org.eclipse.tycho</groupId>
-       <artifactId>tycho-source-plugin</artifactId>
-       <version>${tycho-version}</version>
-       <executions>
-         <execution>
-           <id>plugin-source</id>
-           <goals>
-             <goal>plugin-source</goal>
-           </goals>
-         </execution>
-       </executions>
-     </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-resources-plugin</artifactId>
-          <version>2.4.1</version>
-          <configuration>
-            <encoding>ISO-8859-1</encoding>
-          </configuration>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-antrun-plugin</artifactId>
-          <version>1.3</version>
-        </plugin>
-        <plugin>
-          <groupId>org.codehaus.mojo</groupId>
-          <artifactId>findbugs-maven-plugin</artifactId>
-          <version>2.3.2</version>
-          <configuration>
-            <findbugsXmlOutput>true</findbugsXmlOutput>
-            <failOnError>false</failOnError>
-          </configuration>
-          <executions>
-            <execution>
-              <goals>
-                <goal>check</goal>
-              </goals>
-            </execution>
-          </executions>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-pmd-plugin</artifactId>
-          <version>2.5</version>
-          <configuration>
-            <sourceEncoding>utf-8</sourceEncoding>
-            <minimumTokens>100</minimumTokens>
-            <targetJdk>1.5</targetJdk>
-            <format>xml</format>
-            <failOnViolation>false</failOnViolation>
-          </configuration>
-          <executions>
-            <execution>
-              <goals>
-                <goal>cpd-check</goal>
-              </goals>
-            </execution>
-          </executions>
-        </plugin>
-      </plugins>
+				 <plugin>
+				   <groupId>org.eclipse.tycho</groupId>
+				   <artifactId>tycho-source-plugin</artifactId>
+				   <version>${tycho-version}</version>
+				   <executions>
+					 <execution>
+					   <id>plugin-source</id>
+					   <goals>
+						 <goal>plugin-source</goal>
+					   </goals>
+					 </execution>
+				   </executions>
+				 </plugin>
+				 <plugin>
+				<groupId>org.eclipse.tycho.extras</groupId>
+				<artifactId>tycho-source-feature-plugin</artifactId>
+				<version>${tycho-extras-version}</version>
+				<executions>
+					<execution>
+						<id>source-feature</id>
+						<phase>package</phase>
+						<goals>
+							<goal>source-feature</goal>
+						</goals>
+					</execution>
+				</executions>
+				</plugin>
+				<plugin>
+					<groupId>org.eclipse.tycho</groupId>
+					<artifactId>tycho-p2-plugin</artifactId>
+					<version>${tycho-version}</version>
+					 <executions>
+						  <!-- These two should allow us not to get "duplicate artifact" warnings during the build. -->
+						  <execution>
+								<!-- Don't attach (default) metadata before the source-feature execution.-->
+								<id>default-p2-metadata-default</id>
+								<configuration>
+								  <attachP2Metadata>false</attachP2Metadata>
+								</configuration>
+						  </execution>
+						  <execution>
+								<!-- Do attach metadata after the source-feature execution.-->
+								<id>attach-p2-metadata</id>
+								<goals>
+								  <goal>p2-metadata</goal>
+								</goals>
+								<phase>package</phase>
+						  </execution>
+					</executions>
+				</plugin>
+	<!-- Other plugins -->
+	 </plugins> 
+      <pluginManagement>
+          <plugins>
+              <plugin>
+                  <groupId>org.eclipse.tycho</groupId>
+                  <artifactId>tycho-compiler-plugin</artifactId>
+                  <version>${tycho-version}</version>
+                  <configuration>
+                      <encoding>UTF-8</encoding>
+            		  <source>1.5</source>
+                      <target>1.5</target>
+                  </configuration>
+              </plugin>
+			<plugin>
+			  <groupId>org.apache.maven.plugins</groupId>
+			  <artifactId>maven-resources-plugin</artifactId>
+			  <version>2.4.1</version>
+			  <configuration>
+				<encoding>ISO-8859-1</encoding>
+			  </configuration>
+			</plugin>
+			<plugin>
+			  <groupId>org.apache.maven.plugins</groupId>
+			  <artifactId>maven-antrun-plugin</artifactId>
+			  <version>1.3</version>
+			</plugin>
+			<plugin>
+			  <groupId>org.codehaus.mojo</groupId>
+			  <artifactId>findbugs-maven-plugin</artifactId>
+			  <version>2.3.2</version>
+			  <configuration>
+				<findbugsXmlOutput>true</findbugsXmlOutput>
+				<failOnError>false</failOnError>
+			  </configuration>
+			  <executions>
+				<execution>
+				  <goals>
+					<goal>check</goal>
+				  </goals>
+				</execution>
+			  </executions>
+			</plugin>
+			<plugin>
+			  <groupId>org.apache.maven.plugins</groupId>
+			  <artifactId>maven-pmd-plugin</artifactId>
+			  <version>2.5</version>
+			  <configuration>
+				<sourceEncoding>utf-8</sourceEncoding>
+				<minimumTokens>100</minimumTokens>
+				<targetJdk>1.5</targetJdk>
+				<format>xml</format>
+				<failOnViolation>false</failOnViolation>
+			  </configuration>
+			  <executions>
+				<execution>
+				  <goals>
+					<goal>cpd-check</goal>
+				  </goals>
+				</execution>
+			  </executions>
+			</plugin>
+		  </plugins>
     </pluginManagement>
   </build>
-  
-  <profiles>
+ 
+  <profiles>  
+	<profile>
+    <id>quality</id>
+		<activation>
+		  <activeByDefault>true</activeByDefault>
+		</activation>
+		<properties>
+			<!-- Sonar properties -->
+			<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
+			<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
+			<!-- Points to the target folder of the global parent project  -->
+			<sonar.jacoco.reportPath>../../target/jacoco.exec</sonar.jacoco.reportPath>
+		</properties>
+		<build>
+			<plugins>
+				<plugin>
+					<groupId>org.jacoco</groupId>
+					<artifactId>jacoco-maven-plugin</artifactId>
+					<version>0.5.6.201201232323</version>
+					<executions>
+						<execution>
+							<goals>
+								<goal>prepare-agent</goal>
+							</goals>
+							<configuration>
+								<append>true</append>
+								<destFile>${sonar.jacoco.reportPath}</destFile>
+							</configuration>
+						</execution>
+					</executions>
+				</plugin>
+			</plugins>
+		</build>
+	</profile>
 	<profile>
 		<id>checkstyle</id>
 		<activation>
@@ -263,8 +335,7 @@
 			</plugins>
 		</build>
 	</profile>
-    
-    <profile>
+	 <profile>
       <id>coverage</id>
       <activation>
         <activeByDefault>false</activeByDefault>
@@ -289,39 +360,6 @@
       </build>
     </profile>
 	<profile>
-    <id>quality</id>
-		<activation>
-		  <activeByDefault>true</activeByDefault>
-		</activation>
-		<properties>
-			<!-- Sonar properties -->
-			<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
-			<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
-			<!-- Points to the target folder of the global parent project -->
-			<sonar.jacoco.reportPath>../../target/jacoco.exec</sonar.jacoco.reportPath>
-		</properties>
-		<build>
-			<plugins>
-				<plugin>
-					<groupId>org.jacoco</groupId>
-					<artifactId>jacoco-maven-plugin</artifactId>
-					<version>0.5.6.201201232323</version>
-					<executions>
-						<execution>
-							<goals>
-								<goal>prepare-agent</goal>
-							</goals>
-							<configuration>
-								<append>true</append>
-								<destFile>${sonar.jacoco.reportPath}</destFile>
-							</configuration>
-						</execution>
-					</executions>
-				</plugin>
-			</plugins>
-		</build>
-	</profile>
-	<profile>
       <id>kepler</id>
 		<activation>
           <activeByDefault>true</activeByDefault>