Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    maven repository

    Hi to all,

    Did you have a maven 2 repository where we could grab from smartgwt ?

    We know the upload to central could take some times, so many fine to use, for now, a repository on smartclient.com.

    And to track the dev, have a snapshot and release artifact.

    Regards and continue this great works

    #2
    I have set up a maven2 - repository for my own development:

    http://rorschach.de/maven2

    you could use that until sanjiv announces the official repository location.
    until then I will try to keep my repos up to date. the versions contained so far:

    1.0b.01 => release 1.0b1
    1.0b.02 => nightly build 2008-11-21
    1.0b.03 => nightly build 2008-11-24
    1.0b.04 => nightly build 2008-12-01
    1.0b.05 => nightly build 2008-12-02
    1.0b.06 => nightly build 2008-12-04
    Last edited by nlotz; 5 Dec 2008, 02:23.

    Comment


      #3
      Thanks Nikolas. Did you upload the file using a command like below?

      Code:
      mvn install:install-file -DgroupId=com.smartgwt -DartifactId=smartgwt
                     -Dversion=1.0b1 -Dpackaging=jar -Dfile=/path/to/file
      I wanted to create maven SNAPSHOTS instead of separate versions for nightly builds in the maven repository like

      Code:
      mvn install:install-file -DgroupId=com.smartgwt -DartifactId=smartgwt
                     -Dversion=1.0b2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
      Where these commands are run on the repository server pointing to the local path of the smartgwt repository directory.

      Does this make sense? Or do you have any suggestions?

      Sanjiv

      Comment


        #4
        It would be a good idea to configure a pom.xml for the project so whenever you want a snapshot you just call

        Code:
        mvn deploy:deploy
        When you want a release you call

        Code:
        mvn release:prepare release:perform
        If your project's pom is set up correctly then these nightly snapshots can be a breeze.

        I have some skill with maven and would be happy to look at the code to see how easily this may be accomplished . . . only if your interested.

        Steve

        Comment


          #5
          I finally have the entire build system in place but it is based on Ant. It is modeled on the GWT ant build files and it works pretty good so I'm reluctant to migrate to maven right now. It does more than build jar, war and javadocs. It prepares the release notes and nicely bundles the entire distro, and is extensible to add other, say, sample projects.

          I 100% agree that for users gwt-maven is the way to go when working of projects, but I see no real gain in converting the existing smartgwt build to maven when the simple targets "ant clean" and "ant build" does the job.

          Do the commands that I posted not accomplish the same thing (even if it is a longer command than mvn deploy:deploy)?

          Sanjiv

          Comment


            #6
            Can you verify the following works :

            Repository URL : http://www.smartclient.com/smartgwt/maven2
            groupId : com.smartgwt
            artifactId : smartgwt
            version : 1.0b2-SNAPSHOT

            Comment


              #7
              The provided URL does not seem to work (404 not found)

              Comment


                #8
                currently my repos is kept up to date by a small shellscript that fetches a new snapshot of smartgwt.jar and creates the corresponding hash- and pom-file(s), since there is no source in SVN, yet. the commands posted by sanjiv should accomplish just the same.

                I don't see a problem with keeping the ant build process and adding a 'pom.xml' for maven2. I'm pretty new to maven myself, but everything seems to be straight forward as I had my first maven2-project running within a few minutes after reading this tutorial:
                http://maven.apache.org/guides/getting-started

                I like having separate source-folders for the application and testcases (as described in the tutorial), because I love testing with htmlunit:
                http://htmlunit.sourceforge.net

                I would suggest going for an ant-based 'dual build' now:
                - add ant-tasks calling the maven2-tasks mentioned above
                - users should be able to work with maven once a 'pom.xml' is in place

                Comment


                  #9
                  teasling,
                  Directory listing appears to be disabled therefore it appears like http://www.smartclient.com/smartgwt/maven2/ is not working but the actual url to the resource is there.

                  http://www.smartclient.com/smartgwt/maven2/com/smartgwt/smartgwt/1.0b2-SNAPSHOT/smartgwt-1.0b2-SNAPSHOT.jar

                  Did you try hitting it with a maven build?


                  Thanks,
                  Sanjiv

                  Comment


                    #10
                    smartgwt.dev, sjivan

                    The Maven 2 repo works, but there is no reason have the -SNAPSHOT extension on the jar file, just call the version 1.0b2 for instance.

                    Also a minor detail is that there is no checksum, it just issues a warning when building.

                    Overall it definitely works!

                    Thanx a bunch for setting this up!

                    Comment


                      #11
                      I guess the SNAPSHOT-suffix indicates that this isn't the 1.0b2 release, but a current snapshot in working towards 1.0b2.
                      when 1.0b2 is released the SNAPSHOT-suffix will be omitted and development will continue with '1.0b3-SNAPSHOT' ...

                      the checksum-files should be provided, as they are used by maven to make sure the downloaded files aren't corrupted.

                      what I didn't get so far about maven: why would someone need MD5 _and_ SHA1-hashes ?

                      Comment


                        #12
                        Originally posted by sjivan
                        I 100% agree that for users gwt-maven is the way to go when working of projects, but I see no real gain in converting the existing smartgwt build to maven when the simple targets "ant clean" and "ant build" does the job.
                        No doubt that ant is a great build system. I would suggest incorporating the creation of the appropriate files in your ant build system in order to automate the process.

                        When you do this I would also suggest a sources jar and javadoc jar so they are easily accessible in eclipse.

                        Thanks,
                        Steve

                        Comment


                          #13
                          lets get this into one of the public repos and ensure its on mvnrepository.com

                          Comment


                            #14
                            HTMLUnit

                            Originally posted by nlotz
                            currently my repos is kept up to date by a small shellscript that fetches a new snapshot of smartgwt.jar and creates the corresponding hash- and pom-file(s), since there is no source in SVN, yet. the commands posted by sanjiv should accomplish just the same.

                            I don't see a problem with keeping the ant build process and adding a 'pom.xml' for maven2. I'm pretty new to maven myself, but everything seems to be straight forward as I had my first maven2-project running within a few minutes after reading this tutorial:
                            http://maven.apache.org/guides/getting-started

                            I like having separate source-folders for the application and testcases (as described in the tutorial), because I love testing with htmlunit:
                            http://htmlunit.sourceforge.net

                            I would suggest going for an ant-based 'dual build' now:
                            - add ant-tasks calling the maven2-tasks mentioned above
                            - users should be able to work with maven once a 'pom.xml' is in place
                            Mind if I ask how you are using HTMLUnit? I am not seeing ways to set the ID of the objects that HTMLUnit looks for. For example, SmartGWT provides its own ID for DynamicForm, even though you can use setID in your code. That makes it tough to grab the form using page.getFormByName. You have to investigate the internal IDs that SmartGWT uses.

                            Or am I missing the trees for the forest?

                            Thanks,
                            Jim

                            Comment


                              #15
                              Any news on an official Maven distribution of SmartGWT

                              Either at SmartClient.com or on Maven central.

                              Cheers.

                              Comment

                              Working...
                              X