Bizarre missing resource for Apigee deploy, possible Maven issue on Windows?
<p>So I get this error:</p>

<pre><code>[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.0.1:deploy (default-cli) on project reporting: MojoExecutionException: com.google.api.client.http.HttpResponseException: 400 Bad Request
[ERROR] {
[ERROR] "code" : "messaging.config.beans.InvalidResourceURLRef",
[ERROR] "message" : "Invalid resource url ref jsc://js_validateReportingWriteScope3.js in policy js_validateReportingWriteScope3 in cambiahealth-nonprod",
[ERROR] "contexts" : [ ],
[ERROR] "cause" : {
[ERROR] "code" : "messaging.config.beans.ResourceDoesNotExist",
[ERROR] "message" : "Resource with name js_validateReportingWriteScope3.js and type jsc does not exist",
</code></pre>

<p>The file definitely exists. I've tried:</p>

<ol>
<li>mvn clean</li>
<li>mvn dependency:purge-local-repository</li>
<li>IntelliJ invalidate caches and restart</li>
<li>Deleting all the local files and cloning from the remote repo</li>
<li>I tried renaming the file to a new name, in hopes it would pick up the new filename (hence why you see "3" in the filenames)</li>
</ol>

<p>My coworkers can do the deploy, but they are on Macs. I'm on Windows.</p>

<p>The command that fails is:</p>

<pre><code>mvn apigee-enterprise:deploy -P$environment -Dusername=$username -Dpassword=$password
</code></pre>

<p>The command that works (but we don't want to use, because it wipes the current deploy and replaces it, losing historical info):</p>

<pre><code>mvn apigee-enterprise:deploy -P$environment -Dapigee.options=clean -Dusername=$username -Dpassword=$password
</code></pre>

<p>What should I try? This error makes no sense to me. The .js file definitely exists.</p>