[ 
https://issues.apache.org/jira/browse/PIG-2599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506578#comment-13506578
 ] 

major seitan commented on PIG-2599:
-----------------------------------

[coming soon to a theater near you]
   
[maven-pig.1.zip|https://issues.apache.org/jira/secure/attachment/12555367/maven-pig.1.zip]
   Attached is a preview of the effort
   to port pig from ant to maven in hopes
   of getting feedback.  So if folks can
   kick the tires, it would be great.

q. Is there a recommended way to do such review?
q. Is there someone that I can correspond with if I need help?
   
[no code was harmed]
   The approach taken was to migrate the
   build.xml to a set of pom.xml.
   A shell script is used to move around
   directories and fields, and no code was 
   altered in the migration.  So far the 
   pom's are 100% maven and no ant is used.

q. Should it be ant instead of a shell script?

[let's get the party started]
   Instructions:
   tested : Ubuntu, MacOS
   1. Set JAVA_HOME (tools.jar)
   2. Download 
[jdo2-api-2.3-ec.jar|http://www.datanucleus.org/downloads/maven2/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar]
   3. mvn install:install-file -DgroupId=javax.jdo -DartifactId=jdo2-api 
-Dversion=2.3-ec -Dpackaging=jar -Dfile=jdo2-api-2.3-ec.jar
   4. Create a work directory
      e.g. mkdir pig-2599 && cd pig-2599
   5. Download and unzip : maven-pig.1.zip
   6. Run 
     ./mvn-pig.sh 2>&1
   
[remains of the day]
   If the script ran sucessfuly there will be two 
   directories:
   pig-ant : containing the ant version
   pig-mvn : containing the mvn version

   The project has the following layout
   pig (pig-mvn)
   - pig-core
   - pig-bzip2
   - pig-shock
   - pig-piggybank
   - pig-zebra
   - pig-tutorial

q. Are the names reasonable?
q. Is the layout reasonable?

[issues]
   There is work to be done and feedback is appreciated.
   Here are some of the known issues: 
   - pig-core needs the "mvn clean test" target to run the tests
   - jdo2-api2.3-jar has to be manually installed
   - e2e, documentation are not migrated yet
   - zebra tests are not completed (also zebra fails to compile)
   - checkstyle, findbugs not supported

q. Did I miss any thing?

                
> Mavenize Pig
> ------------
>
>                 Key: PIG-2599
>                 URL: https://issues.apache.org/jira/browse/PIG-2599
>             Project: Pig
>          Issue Type: New Feature
>          Components: build
>            Reporter: Daniel Dai
>              Labels: gsoc2012
>         Attachments: maven-pig.1.zip
>
>
> Switch Pig build system from ant to maven.
> This is a candidate project for Google summer of code 2012. More information 
> about the program can be found at 
> https://cwiki.apache.org/confluence/display/PIG/GSoc2012

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to