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

Mule Extension Archetype is not Camel Casing Extension Name for Classes

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: To be reviewed
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tools: Archetypes
    • Labels:
    • Severity:
      S4
    • Story Points:
      3
    • Sprint:
      SDK 2018-03-14 Bobba Fett

      Description

      When an extension module is generated using mule-extension-archetype, extension name is not camel cased while generated classes. 

      Example command - 

      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-zip5 -Dpackage=com.javastreets -Dversion=0.0.1-SNAPSHOT -DextensionName=zip5 -DextensionNameNoSpaces=zip5

       

      Generated Classed - 

      mule-modules-zip5
      ├── README.md
      ├── pom.xml
      └── src
      ├── main
      │   ├── java
      │   │   └── com
      │   │   └── javastreets
      │   │   └── internal
      │   │   ├── zip5Configuration.java
      │   │   ├── zip5Connection.java
      │   │   ├── zip5ConnectionProvider.java
      │   │   ├── zip5Extension.java
      │   │   └── zip5Operations.java
      │   └── resources
      └── test
      ├── java
      │   └── com
      │   └── javastreets
      │   └── zip5OperationsTestCase.java
      └── resources
      └── test-mule-config.xml

      This is NOT the behavior when modules are generated using plugin -
      mvn org.mule.extensions:mule-extensions-archetype-maven-plugin:generate

      with extension name as zip3, Class Names generated are -
      │   │   └── internal
      │   │   ├── Zip3Configuration.java
      │   │   ├── Zip3Connection.java
      │   │   ├── Zip3ConnectionProvider.java
      │   │   ├── Zip3Extension.java
      │   │   └── Zip3Operations.java

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: