As per the link provided in last mail, 'ant' must work out of the box. I
ran following commands:
*>git statusOn branch trunkYour branch is up to date with 'origin/trunk'.*
*>antBuildfile: D:\work\oss\cassandra\build.xmlvalidate-build-conf:BUILD
FAILEDD:\work\oss\cassandra\build.xml:339: -Duse.jdk11=true or
$CASSANDRA_USE_JDK11=true must be set when building from java 11*
*>set CASSANDRA_USE_JDK11=true*
*>ant*
Log for last command is attached.
nothing to commit, working tree clean
On Wed, Jun 2, 2021 at 4:04 PM Mick Semb Wever <[email protected]> wrote:
> Manish, images don't come through the mailing list, so we can't see those
> errors you've posted :(
>
> And you may find this doc more up to date:
> https://cassandra.apache.org/doc/latest/development/ide.html
>
> On Wed, 2 Jun 2021 at 12:11, Manish G <[email protected]>
> wrote:
>
> > I have no local changes.
> >
> > [image: image.png]
> >
> > I am following this
> > <
> https://cwiki.apache.org/confluence/display/CASSANDRA2/RunningCassandraInIDEA
> >
> > .
> > After cloning the repo, when I run 'ant generate-idea-files', I see this:
> >
> > [image: image.png]
> >
> > So I do: set CASSANDRA_USE_JDK11=true, and rerun 'ant
> > generate-idea-files', and how I see error:
> >
> > [image: image.png]
> >
> >
> >
> > On Wed, Jun 2, 2021 at 3:14 PM Mick Semb Wever <[email protected]> wrote:
> >
> >> > I tried both 'ant realclean' and ''git clean -xdff' before running the
> >> > 'ant' command, but still build fails.
> >>
> >>
> >> Manish, the failure should list (some of) the offending files (instead
> >> of `${rat.failed.files}`).
> >> What are the offending files listed in build/rat.txt ?
> >>
> >> Are you by chance working on a patch, and have added new files which
> >> don't have the correct license headers?
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
>
>ant
Buildfile: D:\work\oss\cassandra\build.xml
validate-build-conf:
init:
_resolver_download:
resolver-init:
[resolver:resolve] Resolving artifacts
[resolver:resolve] Resolving artifacts
[resolver:resolve] Resolving artifacts
[resolver:resolve] Resolving artifacts
[resolver:resolve] Resolving artifacts
write-poms:
validate-build-conf:
init:
maven-ant-tasks-localrepo:
maven-ant-tasks-download:
_resolver_download:
resolver-init:
maven-ant-tasks-init:
maven-declare-dependencies:
_write-poms:
resolver-retrieve-build:
[resolver:resolve] The POM for org.perfkit.sjk.parsers:sjk-jfr5:jar:0.5 is
invalid, transitive dependencies (if any) will not be available: 2 problems
were encountered while building the effective model for
org.perfkit.sjk.parsers:sjk-jfr5:0.5
[resolver:resolve] [ERROR] 'dependencies.dependency.systemPath' for
com.jrockit.mc:com.jrockit.mc.common:jar must specify an absolute path but is
${jmc5.path}/plugins/com.jrockit.mc.common_${jmc5.version}.jar @
[resolver:resolve] [ERROR] 'dependencies.dependency.systemPath' for
com.jrockit.mc:com.jrockit.mc.flightrecorder:jar must specify an absolute path
but is ${jmc5.path}/plugins/com.jrockit.mc.flightrecorder_${jmc5.version}.jar @
[resolver:resolve] The POM for org.perfkit.sjk.parsers:sjk-jfr6:jar:0.7 is
invalid, transitive dependencies (if any) will not be available: 2 problems
were encountered while building the effective model for
org.perfkit.sjk.parsers:sjk-jfr6:0.7
[resolver:resolve] [ERROR] 'dependencies.dependency.systemPath' for
com.oracle.jmc:com.oracle.jmc.common:jar must specify an absolute path but is
${jmc6.path}/plugins/com.oracle.jmc.common_${jmc6.version}.jar @
[resolver:resolve] [ERROR] 'dependencies.dependency.systemPath' for
com.oracle.jmc:com.oracle.jmc.flightrecorder:jar must specify an absolute path
but is ${jmc6.path}/plugins/com.oracle.jmc.flightrecorder_${jmc6.version}.jar @
[resolver:resolve] The POM for org.perfkit.sjk.parsers:sjk-nps:jar:0.5 is
invalid, transitive dependencies (if any) will not be available: 3 problems
were encountered while building the effective model for
org.perfkit.sjk.parsers:sjk-nps:0.5
[resolver:resolve] [ERROR] 'dependencies.dependency.systemPath' for
jdk.org.netbeans:profiler:jar must specify an absolute path but is
${visualvm.path}/profiler/modules/org-netbeans-modules-profiler.jar @
[resolver:resolve] [ERROR] 'dependencies.dependency.systemPath' for
jdk.org.netbeans:lib-profiler:jar must specify an absolute path but is
${visualvm.path}/profiler/modules/org-netbeans-lib-profiler.jar @
[resolver:resolve] [ERROR] 'dependencies.dependency.systemPath' for
jdk.org.netbeans:lib-profiler-common:jar must specify an absolute path but is
${visualvm.path}/profiler/modules/org-netbeans-lib-profiler-common.jar @
[resolver:resolve] Resolving artifacts
[resolver:resolve] Resolving artifacts
[unzip] Expanding:
C:\Users\manis\.m2\repository\org\jacoco\org.jacoco.agent\0.8.6\org.jacoco.agent-0.8.6.jar
into D:\work\oss\cassandra\build\lib\jars
check-gen-cql3-grammar:
gen-cql3-grammar:
generate-cql-html:
generate-jflex-java:
_rat_init:
_build_ratinclude:
[copy] Copying 1 file to D:\work\oss\cassandra\build
rat-check:
[exec] Execute failed: java.io.IOException: Cannot run program "grep" (in
directory "D:\work\oss\cassandra"): CreateProcess error=2, The system cannot
find the file specified
build-project:
[echo] apache-cassandra: D:\work\oss\cassandra\build.xml
_build_java:
[echo] Compiling for Java 11...
[javac] Compiling 1889 source files to
D:\work\oss\cassandra\build\classes\main
[javac] javac: invalid target release: 11
[javac] Usage: javac <options> <source files>
[javac] use --help for a list of possible options
BUILD FAILED
D:\work\oss\cassandra\build.xml:891: The following error occurred while
executing this line:
D:\work\oss\cassandra\build.xml:876: Compile failed; see the compiler error
output for details.
Total time: 7 seconds
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]