Hi All and especially Markus,

I just had a look at the changes that were added recently to the c++ part of 
PLC4X.
One thing I noticed, is that you re-added the relative links between the 
modules.
If you do a maven build (at least to the “generate-sources” phase, maven will 
make all dependencies available as they were configured in the CMakeList.txt 
files.
You now sort of have them in there double … for a maven build there will now be 
two paths to every file. I hope this can’t cause any confusion?

In the “generate-sources” phase maven takes all the dependencies and unpacks 
them into the “target/dependencies” directory.
This then contains one “includes” and one “libs” folder, which contains all the 
includes and all the libs this module depends on.
The cool thing with with is, that this way if you add a new dependency, all you 
need to do, is to add that dependency to the pom.xml
Its content will automatically show up in the location where all the others 
have shown up and you don’t need any configuration changes.

If however you start double-doing the dependencies by introducing these 
relative paths again, I guarantee that we will be having problems.
The reason is that you will probably not add dependencies to the pom.xml

Chris

Reply via email to