tadayosi opened a new issue #1062:
URL: https://github.com/apache/camel-kafka-connector/issues/1062


   For instance, this works:
   ```
   mvn -DskipIntegrationTests=false verify -pl tests/itests-timer
   ```
   but this doesn't:
   ```
   mvn -DskipIntegrationTests=false -Dtest=CamelSourceTimerITCase verify -pl 
tests/itests-timer
   ```
   
   Looking at the `target/tests.log` I can see these lines:
   ```
   2021-02-25 12:22:38,065 [main           ] DEBUG 
org.apache.camel.kafkaconnector.common.PluginPathHelper - Base dir used for 
search: 
/home/tasato/projects/apache/camel-kafka-connector/tests/itests-timer/null/connectors/camel-timer-kafka-connector
   2021-02-25 12:22:38,067 [main           ] INFO 
org.apache.camel.kafkaconnector.common.PluginPathHelper - Returning the 
following directories for the plugin path: 
   ```
   so this code from PluginPathHelper doesn't work well when a test runs with 
`-Dtest=...`. The system property `project.basedir` doesn't seem to be always 
reliable.
   ```java
               String path = System.getProperty("project.basedir") + 
File.separator + module;
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to