Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15525

camel-archetype-java: main class on pom file different than actual main class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.3, 3.5.0
    • 3.4.4, 3.6.0
    • camel-archetypes
    • None
    • Unknown

    Description

      When you generate a project using the command below, the main class on the pom file does not match the actual pom file generated.

      mvn archetype:generate -B -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-java -DarchetypeVersion=3.4.3 -DgroupId=camel-passo-a-passo -DartifactId=primeiro-app-camel -Dversion=1.0.0-SNAPSHOT -Dpackage=primeiro.app.camel
      

      On the pom.xml:

      <configuration>
                <logClasspath>true</logClasspath>
                <mainClass>primeiro.app.camel.MainApp</mainClass>
      </configuration>
      

      On the project:

      find src -iname '*.java'
      src/main/java/primeiro/app/camel/MainApp.java
      src/main/java/primeiro/app/camel/MyRouteBuilder.java
      

      Attachments

        Activity

          People

            orpiske Otavio Rodolfo Piske
            orpiske Otavio Rodolfo Piske
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: