jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • xplanner
  • XPR-75

Migrating build to Maven

  • Submit Patch
  • Workflow
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Task Task
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 0.8
  • Fix Version/s: 0.9
  • Component/s: Build
  • Labels:
    None
  • Environment:
    Any OS, Maven 1.1 Beta 1

Description

For reference, the IDEA plugin docs can be found at:
http://maven.apache.org/reference/plugins/idea/
and the Eclipse plugin docs at:
http://maven.apache.org/reference/plugins/eclipse/

I've got a basic maven build... there are a few problems that will
require a bit of refactoring to fix though. FYI I'm using Maven 1.1beta1
but this stuff *should* work for Maven 1.0.3 as well.

- A few unit tests are failing legitimately... this is likely because
you were using TestAll suites and forgot to add them (a common problem
which maven doesn't suffer from) though I haven't checked that.
- The acceptance and performance tests are mixed up with your unit
tests, so I had to exclude them temporarily until the issue can be
properly addressed.
- TLDs are in the WEB-INF which is not spec, they should be in
WEB-INF/tld so I had to deviate from the standard maven war a bit to
satisfy the current code base.
- The Maven SOAP plugin works a little differently than the way you guys
have your ant build setup so after adoption we'd have to write up some
custom goals to use it the same way, or redo how those tests are run so
that everything works. Currently those tests are excluded.

I have not done any of the refactoring I mentioned but am willing to
help with it should Maven be adopted by the xplanner team.

Using Maven may have a few growing pains for you if your not used to
using it (it's very different on the outside than Ant), but the problems
are likely easy to explain and I can help with those.

Two files are attached:
codehaus-java-xplanner.zip is the xplanner demo
jmonkey-java-xtracker.zip is the current version of xtracker for comparison.

To use codehaus-java-xplanner.zip:
- extract it
- edit project.properties and change the "xplanner.module.dir" property
to point at your current (live) checkout.
- run "maven xplanner:sync". This is a custom goal (in maven.xml) I
wrote to help me port, it would be deleted if Maven is adopted.
- from here you can simply run "maven war" to generate the war, however
not all tests are passing and they would have to be fixed first. You can
force it to build the war with "maven -Dmaven.test.skip=true war" but
thats not really a good way to go :)
- run "maven idea" to generate the IDEA project files, or "maven
eclipse" to generate project files for Eclipse. Eclipse takes a minor
setup procedure to work (running "maven eclipse:add-maven-repo" should
do it though), but I've never tried it with IDEA so I don't know what
you'll find.

the xtracker zip is pretty much the same, only without the custom goal.
the hibernate and deployment stuff will only partially work in xtracker
because I've removed any of the sensitive properties they use. Maven
uses "goal" similar to Ant "tasks" except that most of them are built
into Maven. A list of existing plugin can be found at
http://maven.apache.org/ (left side under Getting Plugins).

Anyway, this should give you a good idea of how it works, although
porting is not finished. I'd recommend that if people are interested in
using it, you wait for your next release and spike after that iteration
to work out the kinks.

Feel free to ask questions or for help if you need it. There is
certainly more work to do, but I didn't want to change anything
fundamental until it's adopted, at which point refactoring can be done
to make everything run smoothly.
  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    codehaus-java-xplanner.zip
    09/Aug/05 9:16 AM
    454 kB
    Brill Pappin
    1. XML File
      maven.xml 3 kB
    2. File
      project.properties 2 kB
    3. XML File
      project.xml 24 kB
    4. Text File
      README.txt 0.9 kB
    5. Java Archive File
      src/libs/activation-1.0.2.jar 53 kB
    6. Java Archive File
      src/libs/javamail-1.3.2.jar 339 kB
    7. Java Archive File
      src/libs/jaxrpc-1.1-fr-spec-api.jar 28 kB
    8. Java Archive File
      src/libs/jta-1.0.1b.jar 9 kB
    9. Java Archive File
      src/libs/junit-addons-1.5.jar 57 kB
    10. Text File
      src/libs/readme.txt 0.2 kB
    11. Java Archive File
      src/libs/saaj-1.2-fr-api.jar 16 kB
    Download Zip
    Show
    Zip Archive
    codehaus-java-xplanner.zip
    09/Aug/05 9:16 AM
    454 kB
    Brill Pappin
  2. Hide
    Zip Archive
    jmonkey-java-xtracker.zip
    09/Aug/05 9:16 AM
    474 kB
    Brill Pappin
    1. Text File
      LICENSE.txt 24 kB
    2. File
      main/etc/eclipse/regex-tests.jpage 1 kB
    3. XML File
      main/etc/hibernate/dev-hibernate.cfg.xml 3 kB
    4. File
      main/etc/hibernate/hibernate.properties 0.7 kB
    5. Text File
      main/.../multipart-alternative-mime-message.txt 14 kB
    6. Text File
      main/.../multipart-mixed-mime-message.txt 59 kB
    7. Text File
      main/.../reply-ticket-text-plain-message.txt 1 kB
    8. Text File
      main/etc/.../text-plain-mime-message.txt 1 kB
    9. Text File
      main/.../text-plain-mime-message-no-realname.txt 1 kB
    10. XML File
      main/etc/tomcat/xtracker.xml 0.1 kB
    11. Java Source File
      main/src/.../AddDispositionAction.java 2 kB
    12. Java Source File
      main/src/.../DisplayDispositionAction.java 1 kB
    13. Java Source File
      main/src/.../DispositionForm.java 1 kB
    14. Java Source File
      main/src/.../EditDispositionAction.java 2 kB
    15. Java Source File
      main/.../ToggleDispositionActiveStateAction.java 2 kB
    16. Java Source File
      main/.../ToggleDispositionSelectableStateAction.java 2 kB
    17. Java Source File
      main/src/.../profile/AddProfileAction.java 1 kB
    18. Java Source File
      main/src/.../DisplayProfileAction.java 1 kB
    19. Java Source File
      main/src/.../profile/EditProfileAction.java 4 kB
    20. Java Source File
      main/src/java/.../profile/ProfileForm.java 6 kB
    21. Java Source File
      main/src/.../profile/SaveProfileAction.java 4 kB
    22. Java Source File
      main/src/.../UpdateProfileAction.java 4 kB
    23. Java Source File
      main/src/.../project/AddProjectAction.java 2 kB
    24. Java Source File
      main/src/.../DisplayProjectAction.java 1 kB
    25. Java Source File
      main/src/.../project/EditProjectAction.java 2 kB
    26. Java Source File
      main/src/java/.../project/ProjectForm.java 1 kB
    27. Java Source File
      main/.../ToggleProjectActiveStateAction.java 2 kB
    28. Java Source File
      main/.../ToggleProjectSelectableStateAction.java 2 kB
    29. Java Source File
      main/src/java/.../queue/AddQueueAction.java 3 kB
    30. Java Source File
      main/src/.../queue/DisplayQueueAction.java 2 kB
    Showing 30 of 418 items Download Zip
    Show
    Zip Archive
    jmonkey-java-xtracker.zip
    09/Aug/05 9:16 AM
    474 kB
    Brill Pappin

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brill Pappin added a comment - 09/Aug/05 9:17 AM
its important not to have both Ant and Maven working at the same time, because (as I've learned from expierance) you end up trying to mainting one as things change in the other which can waste a lot of time.
Show
Brill Pappin added a comment - 09/Aug/05 9:17 AM its important not to have both Ant and Maven working at the same time, because (as I've learned from expierance) you end up trying to mainting one as things change in the other which can waste a lot of time.
Hide
Permalink
Terrence Kelly Mower added a comment - 09/Aug/05 9:42 AM
Have you looked at Maven 2 yet? How hard do you think it would be to migrate to 2.0?
Just curious,
Kelly
Show
Terrence Kelly Mower added a comment - 09/Aug/05 9:42 AM Have you looked at Maven 2 yet? How hard do you think it would be to migrate to 2.0? Just curious, Kelly
Hide
Permalink
Brill Pappin added a comment - 09/Aug/05 9:57 AM
Yes, and I am very excited about the new features!
However its still too early and it would cause use more problems than its worth right at this moment... however if, when we get around to porting the build (if all the developers are not against it) I think we should check the status of Maven 2, and use it if it has been released or is at least stable enough not to cause us to much trouble.

Unfortunatly, Maven 1.x and Maven 2 are so different that we can't setup for one and switch to the other.
Show
Brill Pappin added a comment - 09/Aug/05 9:57 AM Yes, and I am very excited about the new features! However its still too early and it would cause use more problems than its worth right at this moment... however if, when we get around to porting the build (if all the developers are not against it) I think we should check the status of Maven 2, and use it if it has been released or is at least stable enough not to cause us to much trouble. Unfortunatly, Maven 1.x and Maven 2 are so different that we can't setup for one and switch to the other.
Hide
Permalink
Jacques Morel added a comment - 09/Aug/05 2:54 PM
I haven't kept up with maven. When is the 2.0 supposed to stabilize enough for us to depend on it?
Show
Jacques Morel added a comment - 09/Aug/05 2:54 PM I haven't kept up with maven. When is the 2.0 supposed to stabilize enough for us to depend on it?
Hide
Permalink
Brill Pappin added a comment - 09/Aug/05 4:01 PM
I don't see a release date for version 2. They released Maven 2.0 Alpha 3 in June though and mention that they are working on a "3-4 week development cycle"

I can't find a release date for version 2 however...

It is coming along fairly quickly (much faster than Maven 1.0 did) but the short answer is "I don't know".
Show
Brill Pappin added a comment - 09/Aug/05 4:01 PM I don't see a release date for version 2. They released Maven 2.0 Alpha 3 in June though and mention that they are working on a "3-4 week development cycle" I can't find a release date for version 2 however... It is coming along fairly quickly (much faster than Maven 1.0 did) but the short answer is "I don't know".
Hide
Permalink
Brill Pappin added a comment - 05/Sep/05 11:24 AM
Ok, so as I understand, we want to setup the Maven build for after version 0.7 is released (for the start of the 0.8 work).

When the time comes, the best way to proceed is to get all developers to check in their changes and take a break for a few days while it gets sorted out... this will of course have to be co-ordinated.

I will be around after the fact to provide assistance for those not familiar with Maven and I can provide a quick start page on the wiki.

I'd like to set a Due date on this ticket as a reminder, what's the estimated release date for version 0.7?
Show
Brill Pappin added a comment - 05/Sep/05 11:24 AM Ok, so as I understand, we want to setup the Maven build for after version 0.7 is released (for the start of the 0.8 work). When the time comes, the best way to proceed is to get all developers to check in their changes and take a break for a few days while it gets sorted out... this will of course have to be co-ordinated. I will be around after the fact to provide assistance for those not familiar with Maven and I can provide a quick start page on the wiki. I'd like to set a Due date on this ticket as a reminder, what's the estimated release date for version 0.7?
Hide
Permalink
Brill Pappin added a comment - 05/Sep/05 11:27 AM
I think it will take about 4 hours for the conversion to Maven. That is excluding tests and code that need a bit of refactoring to work.
Show
Brill Pappin added a comment - 05/Sep/05 11:27 AM I think it will take about 4 hours for the conversion to Maven. That is excluding tests and code that need a bit of refactoring to work.
Hide
Permalink
Jacques Morel added a comment - 06/Sep/05 12:58 AM
> What is the due date for version 0.7?
The beta is due out anytime now. The release I would conservatively say end of September.
Show
Jacques Morel added a comment - 06/Sep/05 12:58 AM > What is the due date for version 0.7? The beta is due out anytime now. The release I would conservatively say end of September.
Hide
Permalink
Brill Pappin added a comment - 03/Dec/05 11:29 AM
Any word on the final release of 0.7?
Show
Brill Pappin added a comment - 03/Dec/05 11:29 AM Any word on the final release of 0.7?
Hide
Permalink
Johannes Schneider added a comment - 28/Nov/06 5:05 PM
What is the actual state? Does anybody work on this issue anymore?
Show
Johannes Schneider added a comment - 28/Nov/06 5:05 PM What is the actual state? Does anybody work on this issue anymore?
Hide
Permalink
Brill Pappin added a comment - 28/Nov/06 7:52 PM
It keeps getting pushed back.
I offered to do it a while ago, but people seem o be content and there doesn't seem to be much interest.
I think the issue is still alive because people would like it to happen, but it's definitely not urgent.

Show
Brill Pappin added a comment - 28/Nov/06 7:52 PM It keeps getting pushed back. I offered to do it a while ago, but people seem o be content and there doesn't seem to be much interest. I think the issue is still alive because people would like it to happen, but it's definitely not urgent.
Hide
Permalink
Jacques Morel added a comment - 28/Nov/06 11:28 PM
Johannes, i would be happy to try it. Brill was kind enough to do the initial version but I never had the time to incorporate it. If it gets in a solid state, I commit to doing it. However all 2006, I have been completely sucked in by one of these projects. I am finally getting off so I should have some time now to devote to xplanner. Once 0.7 is officially out, we can switch to maven if you can sway my fear of maven.
Show
Jacques Morel added a comment - 28/Nov/06 11:28 PM Johannes, i would be happy to try it. Brill was kind enough to do the initial version but I never had the time to incorporate it. If it gets in a solid state, I commit to doing it. However all 2006, I have been completely sucked in by one of these projects. I am finally getting off so I should have some time now to devote to xplanner. Once 0.7 is officially out, we can switch to maven if you can sway my fear of maven.
Hide
Permalink
Brill Pappin added a comment - 29/Nov/06 12:10 AM
The files attached are actually maven 1 not Maven 2.. maven 2 is defiantly worth using now that it actually works :)

I don't have time at the moment to do it so if someone else wants to, I'd say go ahead... I can assist with it if you run into trouble.

That said, I think if people who are actively developing are comfortable with the ant build, then there really isn't a need to change it. It's only useful when you have someone new downloading and trying to build (as it would work out of the box) that it would be a help.

Jacques: Maven is quite a shift for those not used to it and I can completely understand your trepidation (I think "convince me" is the right attitude here), however I can say that everyone I've introduced to Maven is still using it.

I think this issue can be closed if there is not enough interest... maybe poll your developer base.
Show
Brill Pappin added a comment - 29/Nov/06 12:10 AM The files attached are actually maven 1 not Maven 2.. maven 2 is defiantly worth using now that it actually works :) I don't have time at the moment to do it so if someone else wants to, I'd say go ahead... I can assist with it if you run into trouble. That said, I think if people who are actively developing are comfortable with the ant build, then there really isn't a need to change it. It's only useful when you have someone new downloading and trying to build (as it would work out of the box) that it would be a help. Jacques: Maven is quite a shift for those not used to it and I can completely understand your trepidation (I think "convince me" is the right attitude here), however I can say that everyone I've introduced to Maven is still using it. I think this issue can be closed if there is not enough interest... maybe poll your developer base.
Hide
Permalink
Johannes Schneider added a comment - 29/Nov/06 3:53 AM
I really like projects that use Maven2. It is really easy to build and run those projects...
So if the developers of XPlanner can live with it, I could spend some time to switch the project structure.
Show
Johannes Schneider added a comment - 29/Nov/06 3:53 AM I really like projects that use Maven2. It is really easy to build and run those projects... So if the developers of XPlanner can live with it, I could spend some time to switch the project structure.
Hide
Permalink
Imran added a comment - 15/Jun/09 6:58 PM
Hi

I know this issue is been opened for a while now. Was wondering if anyone is actively working on this. Having gone through the comments trail I sensed a bit of reluctance on converting this to a maven build (understandably based on the time frame the comments were made). However I feel maven has come along way now and there are many who have made the transition or is willing to do so. Is there any reason why XPlanner wouldn't go down that path or is it merely a bandwidth issue. Would love to help if the votes are to implement this. I'm in the process of getting XPlanner building in my local and look forward in the possibilities of contributing to improve/add on features. Let me know your thoughts

Cheers
-- Imran
Show
Imran added a comment - 15/Jun/09 6:58 PM Hi I know this issue is been opened for a while now. Was wondering if anyone is actively working on this. Having gone through the comments trail I sensed a bit of reluctance on converting this to a maven build (understandably based on the time frame the comments were made). However I feel maven has come along way now and there are many who have made the transition or is willing to do so. Is there any reason why XPlanner wouldn't go down that path or is it merely a bandwidth issue. Would love to help if the votes are to implement this. I'm in the process of getting XPlanner building in my local and look forward in the possibilities of contributing to improve/add on features. Let me know your thoughts Cheers -- Imran

People

  • Assignee:
    Unassigned
    Reporter:
    Brill Pappin
Vote (1)
Watch (2)

Dates

  • Created:
    09/Aug/05 9:16 AM
    Updated:
    15/Jun/09 6:58 PM

Time Tracking

Estimated:
4h
Original Estimate - 4 hours
Remaining:
4h
Remaining Estimate - 4 hours
Logged:
Not Specified
Time Spent - Not Specified
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.