Announcement

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

    Maven password encryption using: mvn com.isomorphic:isc-maven-plugin:install

    I'm able to execute the goal if I do not encrypt my password using maven's password encryption method.

    With Maven's password encryption method, the goal does not install the SmartGWT maven dependencies.

    Please advise if Maven's password encryption should work with com.isomorphic:isc-maven-plugin.

    Code:
     $ mvn --version
      Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:47-05:00)
      Maven home: /usr/local/Cellar/maven/3.3.9/libexec
      Java version: 1.7.0_51, vendor: Oracle Corporation
      Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre
      Default locale: en_US, platform encoding: UTF-8
      OS name: "mac os x", version: "10.12.1", arch: "x86_64", family: "mac"

    #2
    Yes, standard Maven password encryption should be working. What problem are you having, specifically? Can you share the command you've issued and its output?

    Comment


      #3
      I do have the character @ in my password. I tried to both ways: not escaping and escaping the character.


      Code:
        mvn com.isomorphic:isc-maven-plugin:install -Dproduct=SMARTGWT -Dlicense=ENTERPRISE -DbuildNumber=6.1d -DincludeAnalytics=true -DincludeMessaging=true -DbuildDate=2016-10-31 > out.txt
      Code:
       
        [INFO] Scanning for projects...
        [INFO]                                                                         
        [INFO] ------------------------------------------------------------------------
        [INFO] Building Maven Stub Project (No POM) 1
        [INFO] ------------------------------------------------------------------------
        [INFO] 
        [INFO] --- isc-maven-plugin:1.1.1:install (default-cli) @ standalone-pom ---
        [INFO] Authenticating to 'www.smartclient.com/devlogin/login.jsp' with username: 'michaeljseo'
        [WARNING] No downloads found at 'www.smartclient.com/builds/SmartGWT/6.1d/Enterprise/2016-10-31/'.  Response from server: 
         
        <html>
         <head>
          <script>window.location.replace('/devlogin/login.jsp?initialTarget=/builds/SmartGWT/6.1d/Enterprise/2016-10-31/');</script> 
         </head>
         <body></body>
        </html>
         
        [WARNING] No downloads found at 'www.smartclient.com/builds/SmartGWT/6.1d/AnalyticsModule/2016-10-31/'.  Response from server: 
         
        <html>
         <head>
          <script>window.location.replace('/devlogin/login.jsp?initialTarget=/builds/SmartGWT/6.1d/AnalyticsModule/2016-10-31/');</script> 
         </head>
         <body></body>
        </html>
         
        [WARNING] No downloads found at 'www.smartclient.com/builds/SmartGWT/6.1d/RealtimeMessagingModule/2016-10-31/'.  Response from server: 
         
        <html>
         <head>
          <script>window.location.replace('/devlogin/login.jsp?initialTarget=/builds/SmartGWT/6.1d/RealtimeMessagingModule/2016-10-31/');</script> 
         </head>
         <body></body>
        </html>
         
        [INFO] Logging off at 'www.smartclient.com/logout.jsp'

      Settings.xml
      Code:
       <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
         
         
          <pluginGroups>
              <pluginGroup>com.isomorphic</pluginGroup>
              <pluginGroup>org.codehaus.modello</pluginGroup>
          </pluginGroups>
         
          <servers>
            <server>
                <id>smartclient-developer</id>
                <username>michaeljseo</username>
                <password>{H+xd0GserK9ukHqdX8kJdqjO+bDLR0xGus2tffr7Gag=}</password>
            </server>
          </servers>
         
        </settings>
      settings-security.xml (I did munge up the hash, so I'm still secure)
      Code:
        <settingsSecurity>
          <master>{7iEkBsOh8Hsq80tpCi3YnV/yIQI1DlY5AAy6YTAgZS0=}</master>
        </settingsSecurity>

      Comment


        #4
        We took a look at this and found that encrypted passwords were supported for deployment to internal repository managers, but not for the download step, as you found out. We'll release a patch to address it in the coming days, but a fix has been included in plugin version 1.1.2-SNAPSHOT if you care to test it now.

        To do so, you should be able to use the following pluginRepository configuration with the instructions at https://maven.apache.org/guides/deve...t-plugins.html

        Code:
        <pluginRepository>
            <id>sonatype-snapshots</id>
            <name>Sonatype Release Snapshots</name>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
            <layout>default</layout>
        </pluginRepository>
        Last edited by Isomorphic; 1 Nov 2016, 11:42. Reason: Included guidelines for testing snapshot release of plugin

        Comment


          #5
          Got it and it works. Thank you!

          Comment

          Working...
          X