Erick Erickson created SOLR-10868:
-------------------------------------

             Summary: Cannot run tests in IntelliJ
                 Key: SOLR-10868
                 URL: https://issues.apache.org/jira/browse/SOLR-10868
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Erick Erickson


SOLR-10647 moved a bunch of files from core to solrJ. As a result, they are no 
longer found when running tests from within IntelliJ. The error I get is:

java.lang.RuntimeException: invalid API spec: apispec/cluster.json

        at 
__randomizedtesting.SeedInfo.seed([D735CBF9DE40D88C:88E874E66B342C33]:0)
        at 
org.apache.solr.common.util.ValidatingJsonMap.parse(ValidatingJsonMap.java:318)
        at org.apache.solr.common.util.Utils.lambda$getSpec$0(Utils.java:310)

The files are in ./solr/core/src/resources/apispec which moved to 
./solrj/src/resources/apispec

If I manually copy 
./solrj/src/resources/apispec/*
to
./idea-build/solr/solr-core/classes/java/apispec

whenever I execute "ant idea" then tests run.

"ant test" runs even without the copy of course.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to