Announcement

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

    Maven 2.0 snapshots and nightly builds

    Hey,

    Since I'm using maven heavily, I'd prefer to be able to retrieve the nightly builds from the maven repository. The current 2.0-SNAPSHOT version in repository (at the moment of writing, dated Feb 3rd) , seems to be outdated, as I'm seeing issues with it that were solved in nightly builds ages ago.

    Would it be possible to deploy the nightly builds into the maven repository? I'd even go as far as to suggest the following versioning scheme, but please take it with a grain of salt, i.e., I am not sure which version number you're currently using for nightlies:
    2.5-SNAPSHOT-2010.02.01 (for testing against older builds)
    2.5-SNAPSHOT (always the latest nightly build)

    Code:
    mvn deploy:deploy-file -Durl=http://www.smartclient.com/maven2  -DrepositoryId=ajaxelements.com-internal -Dfile=smartgwt.jar -DgroupId=com.smartgwt -DartifactId=smartgwt -Dversion=2.5-SNAPSHOT -Dpackaging=jar
    and

    Code:
    mvn deploy:deploy-file -Durl=http://www.smartclient.com/maven2 -DrepositoryId=ajaxelements.com-internal -Dfile=smartgwt-skins.jar -DgroupId=com.smartgwt -DartifactId=smartgwt-skins -Dversion=2.5-SNAPSHOT -Dpackaging=jar
    for specifying the specific date, just add
    Code:
    -Dclassifier=2010.02.01
    to the parameters.

    This would greatly simplify the process of testing different builds against each other, and can be easily automated into the build process. Let me know if you need help with any of this.

    regards,
    Andrius J.

    ps. -DrepositoryId=[..] can be found in your .m2/settings.xml file, and is used to find out the credentials to access the repository:

    Code:
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                          http://maven.apache.org/xsd/settings-1.0.0.xsd">
      <servers>
          <server>
          <id>ajaxelements.com-internal</id>
          <username>YOURLOGIN</username>
          <password>YOURPASSWORD</password>
        </server>
      </servers>
    </settings>
    Last edited by phuqit; 5 Feb 2011, 03:30.
Working...
X