You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2020/09/12 07:14:00 UTC
[jira] [Created] (CAMEL-15525) camel-archetype-java: main class on
pom file different than actual main class
Otavio Rodolfo Piske created CAMEL-15525:
--------------------------------------------
Summary: camel-archetype-java: main class on pom file different than actual main class
Key: CAMEL-15525
URL: https://issues.apache.org/jira/browse/CAMEL-15525
Project: Camel
Issue Type: Bug
Components: camel-archetypes
Affects Versions: 3.5.0, 3.4.3
Reporter: Otavio Rodolfo Piske
When you generate a project using the command below, the main class on the pom file does not match the actual pom file generated.
{code:java}
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
{code}
On the pom.xml:
{code:java}
<configuration>
<logClasspath>true</logClasspath>
<mainClass>primeiro.app.camel.MainApp</mainClass>
</configuration>
{code}
On the project:
{code:java}
find src -iname '*.java'
src/main/java/primeiro/app/camel/MainApp.java
src/main/java/primeiro/app/camel/MyRouteBuilder.java
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)