hk2
  1. hk2
  2. HK2-185

Add Instructions on How to Build HK2 From Source

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      jdk 7
      linux mint 32bit

      Description

      I have looked around for instructions on how to build HK2 from source and was unsuccessful in finding anything on the subject. Just grabbing the source code and executing "mvn install" results in:

      Failed to execute goal org.codehaus.mojo:apt-maven-plugin:1.0-alpha-4:process (default) on project hk2-config: Apt failed
      

      It would be nice if the contribute page had instructions on how build form source. It would also be helpful if maven enforcer plugin was added to the root pom to give devs an idea of the kind of environment expected to successfully build HK2.

        Activity

        Hide
        saden added a comment -

        FYI, the issue with apt failing was due to the fact that Debian's Advanced Packaging Tool was being executed instead of the JDK's apt. Putting JAVA_HOME/bin first in my env path variable resolved the issue.

        Question, any particular reason why HK2 uses flat maven project structure? Is there an opportunity to make the project structure more modular/contextual? With feedback and guidance I would be happy to do the work.

        Show
        saden added a comment - FYI, the issue with apt failing was due to the fact that Debian's Advanced Packaging Tool was being executed instead of the JDK's apt. Putting JAVA_HOME/bin first in my env path variable resolved the issue. Question, any particular reason why HK2 uses flat maven project structure? Is there an opportunity to make the project structure more modular/contextual? With feedback and guidance I would be happy to do the work.
        Hide
        jwells added a comment -

        We are considering moving hk2 to a gradle build. If we do decide to do that we would probably fix the current directory layout.

        Show
        jwells added a comment - We are considering moving hk2 to a gradle build. If we do decide to do that we would probably fix the current directory layout.
        Hide
        jwells added a comment -

        Re-opening this for Romain to work on the maven enforcer plugin

        Show
        jwells added a comment - Re-opening this for Romain to work on the maven enforcer plugin

          People

          • Assignee:
            Romain Grécourt
            Reporter:
            saden
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: