This message was deleted.
# dev
s
This message was deleted.
g
that's from autogenerated code; if your IDE isn't doing the generation on its own, you can do it with maven by running
mvn compile
you should just have to do that once and then you can use IDE like normal
d
ooo gotcha, thank you for your explanation.
I got this error when running
mvn compile
.
Copy code
[ERROR] /path/to/druid/sql/src/main/java/org/apache/druid/sql/calcite/parser/DruidSqlParserImplFactory.java:[33,16] cannot access org.apache.druid.sql.calcite.parser.DruidSqlParserImpl
  bad class file: /path/to/druid/sql/target/classes/org/apache/druid/sql/calcite/parser/DruidSqlParserImpl.class
    unable to access file: java.nio.file.NoSuchFileException: /path/to/druid/sql/target/classes/org/apache/druid/sql/calcite/parser/DruidSqlParserImpl.class
    Please remove or make sure it appears in the correct subdirectory of the classpath.
But that
.class
file exists.
g
i find sometimes maven gets confused and a clean helps
i.e.
mvn clean
then
mvn compile
d
When I did
mvn clean && mvn compile
, I got this error:
Copy code
[ERROR] Failed to execute goal on project druid-processing: Could not resolve dependencies for project org.apache.druid:druid-processing:jar:25.0.0-SNAPSHOT: Failure to find org.apache.druid:druid-core:jar:tests:25.0.0-SNAPSHOT in <https://repository.apache.org/snapshots> was cached in the local repository, resolution will not be reattempted until the update interval of apache.snapshots has elapsed or updates are forced -> [Help 1]
But if I run that several more times, the compilation actually failed in a different place.
Copy code
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project druid-server: Failed to clean project: Failed to delete /Users/didip/oss/druid-didip/server/target -> [Help 1]
Am I doing something wrong? Why compile task is not idempotent?
g
hmm. for the first one you might need to do
mvn install
instead of
mvn compile
. (if it's trying to read from your local repository,
install
would put it there.)
for the second one, i'm not sure. seems odd for
mvn clean
to fail and i have not encountered that before