Uploaded image for project: 'Mule'
  1. Mule
  2. MULE-14599

Unexpected extensionNameNoSpaces archetype parameter value

    Details

    • Severity:
      S4
    • Story Points:
      3
    • Sprint:
      SDK 2018-03-14 Bobba Fett

      Description

      When creating a new extension using Archetype, an unexpected parameter `extensionNameNoSpaces` value is being asked by maven. It should actually be derived from already specified `extensionName` parameter. Note: Module generation completes successfully.

      Command Run -

      mvn archetype:generate -DarchetypeCatalog=http://repository.mulesoft.org/releases/ -DarchetypeGroupId=org.mule.extensions -DarchetypeArtifactId=mule-extensions-archetype -DarchetypeVersion=1.1.0 -DgroupId=com.javastreets -DartifactId=mule-modules-test2 -DextensionName=test

       

      Here is the output:

      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Maven Stub Project (No POM) 1
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] >>> maven-archetype-plugin:2.4:generate (default-cli) > generate-sources @ standalone-pom >>>
      [INFO]
      [INFO] <<< maven-archetype-plugin:2.4:generate (default-cli) < generate-sources @ standalone-pom <<<
      [INFO]
      [INFO]
      [INFO] — maven-archetype-plugin:2.4:generate (default-cli) @ standalone-pom —
      [INFO] Generating project in Interactive mode
      [INFO] Archetype repository not defined. Using the one from [org.mule.extensions:mule-extensions-archetype:1.0.0 -> https://repository.mulesoft.org/nexus/content/repositories/releases] found in catalog http://repository.mulesoft.org/releases/
      [INFO] Using property: groupId = com.javastreets
      [INFO] Using property: artifactId = mule-modules-test2
      [INFO] Using property: version = 1.0.0-SNAPSHOT
      [INFO] Using property: package = org.mule.extension
      [INFO] Using property: extensionName = test
      Feb 11, 2018 10:23:07 PM org.apache.velocity.runtime.log.JdkLogChute log
      INFO: FileResourceLoader : adding path '.'
      Feb 11, 2018 10:23:07 PM org.apache.velocity.runtime.log.JdkLogChute log
      INFO: Null reference [template 'extensionNameNoSpaces', line 1, column 1] : ${extensionName.replace("-", " ").replace(" ", "").replaceAll("(?i)extension", "").replaceAll("(?i)connector", "").trim()} cannot be resolved.
      Define value for property 'extensionNameNoSpaces': ${extensionName.replace("-", " ").replace(" ", "").replaceAll("(?i)extension", "").replaceAll("(?i)connector", "").trim()}: :
      Confirm properties configuration:
      groupId: com.javastreets
      artifactId: mule-modules-test2
      version: 1.0.0-SNAPSHOT
      package: org.mule.extension
      extensionName: test
      extensionNameNoSpaces: ${extensionName.replace("-", " ").replace(" ", "").replaceAll("(?i)extension", "").replaceAll("(?i)connector", "").trim()}
      Y: :
      [INFO] ----------------------------------------------------------------------------
      [INFO] Using following parameters for creating project from Archetype: mule-extensions-archetype:1.1.0
      [INFO] ----------------------------------------------------------------------------
      [INFO] Parameter: groupId, Value: com.javastreets
      [INFO] Parameter: artifactId, Value: mule-modules-test2
      [INFO] Parameter: version, Value: 1.0.0-SNAPSHOT
      [INFO] Parameter: package, Value: org.mule.extension
      [INFO] Parameter: packageInPathFormat, Value: org/mule/extension
      [INFO] Parameter: package, Value: org.mule.extension
      [INFO] Parameter: version, Value: 1.0.0-SNAPSHOT
      [INFO] Parameter: groupId, Value: com.javastreets
      [INFO] Parameter: extensionName, Value: test
      [INFO] Parameter: extensionNameNoSpaces, Value: test
      [INFO] Parameter: artifactId, Value: mule-modules-test2
      [WARNING] Don't override file /Volumes/MM/codebase/mule/mule4/mule-modules-test2/src/main/java/org/mule/extension
      [WARNING] Don't override file /Volumes/MM/codebase/mule/mule4/mule-modules-test2/src/test/java/org/mule/extension
      [WARNING] Don't override file /Volumes/MM/codebase/mule/mule4/mule-modules-test2/src/test/resources
      [INFO] project created from Archetype in dir: /Volumes/MM/codebase/mule/mule4/mule-modules-test2
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 9.094 s
      [INFO] Finished at: 2018-02-11T22:23:15-05:00
      [INFO] Final Memory: 21M/314M
      [INFO] ------------------------------------------------------------------------

       

       

      Maven Envrionment -

       mvn -version
      Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T03:58:13-04:00)
      Maven home: /Users/manik/.sdkman/candidates/maven/current
      Java version: 1.8.0_161, vendor: Oracle Corporation
      Java home: /Users/manik/.sdkman/candidates/java/8u161-oracle/jre
      Default locale: en_US, platform encoding: UTF-8
      OS name: "mac os x", version: "10.13.3", arch: "x86_64", family: "mac"

        Attachments

          Activity

            People

            • Assignee:
              ndinucci@mulesoft.com Nicolas Santiago Di Nucci
              Reporter:
              manik Manik Magar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: