moueza / CSP-COP-Google-OR-tools-for-tasks-scheduling

https://moueza.github.io/CSP-COP-Google-OR-tools-for-tasks-scheduling/
Apache License 2.0
2 stars 0 forks source link

or-tools make: *** No rule to make target 'examples/java/my_program/pom.xml', needed by 'build'. Stop #6

Open moueza opened 3 years ago

moueza commented 3 years ago

https://github.com/google/or-tools/issues/2280

moueza commented 3 years ago

IF building from source, i.e. having cloned this repository, you just have to provide your .java file and put it in a directory where there are other java file e.g. examples/java in this case we have custom rules which will generate the pom.xml for you...

moueza commented 3 years ago

So you may need:

  1. create a directory examples/java/MyProgram
  2. move your java file in examples/java/MyProgram/src/main/java/com/google/ortools/MyProgram.java note: here com/google/ortools correspond to the package you use in your java file
  3. create a pom.xml in examples/java/MyProgram