[ 
https://issues.apache.org/activemq/browse/CAMEL-914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45799#action_45799
 ] 

Claus Ibsen commented on CAMEL-914:
-----------------------------------

Thanks Martin

The INFO logging of classpath is recent added, so you have to wait until the 
Apache INFRA has build a new snapshot of the plugin. Wait X hours and try 
again. It should then have the classpath logged just as jetty does it.

eg a sample from running the spring example on my local laptop
{code}
[INFO] [camel:run]
[INFO] Classpath = 
[file:/D:/project/camel/examples/camel-example-spring/target/classes/, 
file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/org/apache/camel/camel-spring/1.5-SNAPSHOT/camel-spring-1.5-SNAPSHOT.jar,
 file:/C:/Documents and Settings/Claus Ibsen/.m2/repository/org/apache/camel/c
amel-core/1.5-SNAPSHOT/camel-core-1.5-SNAPSHOT.jar, file:/C:/Documents and 
Settings/Claus 
Ibsen/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar,
 file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar, 
file:/C:/Docume
nts and Settings/Claus 
Ibsen/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar, 
file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar, 
file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.6/j
axb-impl-2.1.6.jar, file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/org/springframework/spring-core/2.5.5/spring-core-2.5.5.jar,
 file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar,
 file:/C:/Documents and Settings/Clau
s 
Ibsen/.m2/repository/org/springframework/spring-context/2.5.5/spring-context-2.5.5.jar,
 file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, 
file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/org/springframework/spring-beans/2.5.5/spri
ng-beans-2.5.5.jar, file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/org/springframework/spring-tx/2.5.5/spring-tx-2.5.5.jar, 
file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/org/springframework/spring-aop/2.5.5/spring-aop-2.5.5.jar, 
file:/C:/Documents and Settings/Claus Ibsen/.m
2/repository/org/apache/camel/camel-jms/1.5-SNAPSHOT/camel-jms-1.5-SNAPSHOT.jar,
 file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/org/springframework/spring-jms/2.5.5/spring-jms-2.5.5.jar, 
file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/commons-pool/commons-pool/1.4/commons-pool
-1.4.jar, file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/org/springframework/spring-context-support/2.5.5/spring-context-support-2.5.5.jar,
 file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1.jar,
 fi
le:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar,
 file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/org/apache/activemq/activemq-core/5.1.0/activemq-core-5.1.0.jar,
 file:/C:/Documents and Settings/
Claus 
Ibsen/.m2/repository/org/apache/activemq/activeio-core/3.1.0/activeio-core-3.1.0.jar,
 file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/backport-util-concurrent/backport-util-concurrent/2.1/backport-util-concurrent-2.1.jar,
 file:/C:/Documents and Settings/Claus Ibsen/.m2/repository/or
g/apache/geronimo/specs/geronimo-j2ee-management_1.0_spec/1.1/geronimo-j2ee-management_1.0_spec-1.1.jar,
 file:/C:/Documents and Settings/Claus 
Ibsen/.m2/repository/org/apache/activemq/activeio-core/3.1.0/activeio-core-3.1.0-tests.jar]
2008-09-18 12:06:21 org.apache.camel.spring.Main doStart
INFO: Apache Camel 1.5-SNAPSHOT starting
{code}

> Camel Maven plugin should not look for routes in target/test-classes
> --------------------------------------------------------------------
>
>                 Key: CAMEL-914
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-914
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 1.4.0
>            Reporter: Martin Gilday
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> Currently the Maven Plugin attempts to load Camel Routes from both 
> target/classes and target/test-classes.  This causes an issue when you have 
> the same package defined for testing as you have in your Camel Context.  An 
> example problem is using a super class for a test which is only available a 
> test dependency which results in a ClassNotFoundException.
> I would propose one of the following:
> # Prevent the plugin from using target/test-classes altogther
> # Add a mojo parameter to allow for routes under test-classes to be scanned
> #* This should default to False
> #* If this parameter is set to True then the plugin should add dependencies 
> marked as "test" to the classpath

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to