You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jacek Lewandowski (Jira)" <ji...@apache.org> on 2021/11/09 07:43:00 UTC

[jira] [Updated] (CASSANDRA-17129) Classpath can be broken when multiple artifacts are present in build dir

     [ https://issues.apache.org/jira/browse/CASSANDRA-17129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacek Lewandowski updated CASSANDRA-17129:
------------------------------------------
     Bug Category: Parent values: Packaging(13660)
       Complexity: Low Hanging Fruit
      Component/s: Build
    Discovered By: User Report
        Reviewers: Michael Semb Wever
         Severity: Low
           Status: Open  (was: Triage Needed)

> Classpath can be broken when multiple artifacts are present in build dir
> ------------------------------------------------------------------------
>
>                 Key: CASSANDRA-17129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17129
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Build
>            Reporter: Jacek Lewandowski
>            Assignee: Jacek Lewandowski
>            Priority: Normal
>
> {noformat}
> $ ant artifacts
> $ ls -1 build/apache-cassandra-*.jar
> build/apache-cassandra-4.1-SNAPSHOT-javadoc.jar
> build/apache-cassandra-4.1-SNAPSHOT-sources.jar
> build/apache-cassandra-4.1-SNAPSHOT.jar
> $ bin/cassandra -f
> ...
> Error: Could not find or load main class org.apache.cassandra.service.CassandraDaemon
> {noformat}
> Classpath is something like:
> {noformat}
> ...bin/../conf:bin/../build/apache-cassandra-4.1-SNAPSHOT-javadoc.jar bin/../build/apache-cassandra-4.1-SNAPSHOT-sources.jar bin/../build/apache-cassandra-4.1-SNAPSHOT.jar:bin/../lib/HdrHistogram-2.1.9.jar:bin/../lib/ST4-4.0.8.jar:bin/../lib/airline-0.8.jar:bin/../lib/antlr-runtime-3.5.2.jar:bin/../lib/asm-7.1.jar:bin/../lib/caffeine-2.9.2.jar:bin...
> {noformat}
> notice that:
> - javadoc and sources jars are on the classpath
> - classpath is broken because javadoc, sources and main jar are separated by blankspaces instead of colons
> The problem is in {{cassandra.in.sh}} where the main jar gets added to the classpath:
> {noformat}
> cassandra_bin=`ls -1 $CASSANDRA_HOME/build/apache-cassandra*.jar`
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org