update poms and scripts

git-svn-id: https://hyracks.googlecode.com/svn/branches/fullstack_staging@1966 123451ca-8445-de46-9d55-352943316053
diff --git a/pregelix/pregelix-dist/pom.xml b/pregelix/pregelix-dist/pom.xml
index e73f574..6bd71dd 100644
--- a/pregelix/pregelix-dist/pom.xml
+++ b/pregelix/pregelix-dist/pom.xml
@@ -45,6 +45,24 @@
 							</resources>
 						</configuration>
 					</execution>
+					<execution>
+						<id>copy-examples</id>
+						<phase>package</phase>
+						<goals>
+							<goal>copy-resources</goal>
+						</goals>
+						<configuration>
+							<outputDirectory>target/appassembler/examples</outputDirectory>
+							<resources>
+								<resource>
+									<directory>../pregelix-example/target</directory>
+									<includes>
+										<include>*.jar</include>
+									</includes>
+								</resource>
+							</resources>
+						</configuration>
+					</execution>
 				</executions>
 			</plugin>
 		</plugins>
@@ -56,5 +74,10 @@
 			<version>0.2.2-SNAPSHOT</version>
 			<scope>comile</scope>
 		</dependency>
+		<dependency>
+			<groupId>edu.uci.ics.hyracks</groupId>
+			<artifactId>pregelix-example</artifactId>
+			<version>0.2.2-SNAPSHOT</version>
+		</dependency>
 	</dependencies>
 </project>