codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.

Home Page:https://www.codenameone.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot Resolve when trying to load files

Xzanderaven opened this issue · comments

Trying to load a bare-bones java app. Download, unzip, open in IntelliJ, tries to compile and I get two errors for "Cannot resolve file 'CodeNameOneBuildClient.jar'" and "Cannot resolve symbol 'cn1libs'". I don't know what I'm doing wrong or what I need to change.
Also have this popping up if that makes a difference:
"The imported module settings are stored in the internal storage due to the new fast Maven import. You can change that behavior in Maven Import Settings."

Missed the plug-ins part. Oops.

If this happens you need to run the install-codenameone target as mentioned here:
https://shannah.github.io/codenameone-maven-manual/#_install_codename_one_install_codenameone

It's not doing that. If there's a way to do it manually it's not making sense to me.

Can you provide a screenshot or ideally output from the maven console?

I try to build or run and just get this error:
Could not find artifact com.codenameone:codenameone-buildclient:jar:8.0 at specified path C:\Users[Name]/.codenameone/CodeNameOneBuildClient.jar
I don't know if that's what you're looking for. Very new to all this.

@shannah the install-codenameone target is missing from the generated start project in maven. I tried to run it manually and it seems that option is gone.

What's the current way to bootstrap a project?

When you say "tried to compile" can you describe your steps? Which build target?
I would start by choosing the simulator build target and run that.

Compile's probably the wrong term. I basically opened the file and it immediately threw errors. I try to run or build it and get the one up there. I haven't built a server yet, just run it through the simulator. I can build a server and see if that fixes it.
Edit: I get the same error trying to run it on an iOS server

Not sure what you mean by "build a server".

Can you provide a screenshot?

server
I've tried running and building the code in the "Run in Simulator" and building a server for the iOS Debug and they both throw the not artifact error.

I see. "Build Server".

So you select "Run in Simulator" and press the "Run" button (green play icon), and it says " not an artifact"?

Could be a java version issue I suppose. If you can, use jdk11. You can specify this in module settings.

Wrong thing. So I'm looking for "11 - Local variable syntax for lambda parameters"?
Changed it to that, same error.

I have it set to Oracle 17 for the SDK if that makes a difference.

We only support JDK 11 and 8 although that's a different error message typically.

@shannah I think the generated readme should be updated with some of these getting started problems.

I had it set to 8 and changed it to 11. Same error.

Can you include screenshots of what you're seeing. Which buttons you're pressing and where?

I can in the morning. I'm currently away from my computer. But I went to the project structure and changed it on the module tab. There was a myapp folder, a myapp-common, and a myapp-[forgot what the last one's called]. I changed it from 8 to 11 for all of them.

I meant how you run the target. It's ok tomorrow, we're here.

intellij
Open IntelliJ, click on the top folder.
open file
This is the code that's immediately opened. The 8 errors show up with I have it set to JDK 11, only 2 show up when I have it set to JDK 8.
issues
The errors that appear on the pom file when I have JDK 8 enabled.
error 1
error 2
Code block for both errors.

Is it possible your user name contains non-latin characters so selecting run in simulator might be failing because the download failed?

My computer username and my codename username are the same and all latin characters. Only thing that has non-Latin characters is the @ in my email. I've also downloaded it about 4 times various ways for both IntelliJ and Eclipse and neither works. They're both throwing the same errors.

I logged into the initalizr download (email is listed at the username here) to try and download a new copy of Java Bare-Bones and clicked on my profile in the top corner and got this page:
no access

I'm stumped. Maybe @shannah has an idea.

Here's a temporary link you can use to download that file: https://www.dropbox.com/s/madepoyhzqtyets/CodeNameOneBuildClient.jar?dl=0

Place it under your home directory under .codenameone. At least it will get you past that error while we try to understand the root cause.

Ok. Thank you. I'll try that. I'm also trying to see if command line will work at all for me.

I dropped it in the right folder. It's there. But it's still throwing an error.
client jar
path not found

Is it possible there's a windows permissions problem that's preventing us from writing or reading to that directory?

There was a Windows security thing that popped up, but I thought I dismissed it as safe. I also set it to not ask again so I can dig around tomorrow and see if that's it.

So I looked and I can't find the original notification or a history of it but I think it was similar to this:
https://youtrack.jetbrains.com/issue/IDEA-247817
I thought I allowed what I needed. It may be a bug on their end from what this is saying but I'll go through the settings and see if I can try to allow it or fix it there.
I've allowed the files and I'm still getting the same errors plus this one now:
'dependencyManagement.dependencies.dependency.systemPath' for com.codenameone:codenameone-buildclient:jar refers to a non-existing file C:\Users[Name].codenameone\CodeNameOneBuildClient.jar

This is unrelated to IntelliJ. Go to the home directory using the Windows Explorer. Right click on the .codenameone directory and look in the settings. Make sure it allows universal reading and writing to this directory.
Also check that when you run the build there are no hidden windows behind it or anything of that sort.

What do you mean by hidden windows?

Sometimes the IDE covers a permission dialog or similar popup and it doesn't show in the windows taskbar which is super annoying. This mostly happens when there are multiple desktops and we're doing several things at once. Just make sure that there's nothing hiding under the IDE window or in another desktop.

Still there. Also turned off Maven quick import and made sure that the boxes for auto downloading sources was checked. I also checked the link that popped up at the bottom of the build code and it gave me this:
https://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
I'm not seeing a settings file in .m2 and I don't know where I'd look for the plugin repositories.

This isn't related to the IDE, maven or the .m2 directory. This sounds like this sorry I don't have a Windows machine at the moment.

The only thing I'm missing on these are the special permissions and I don't see a way to get those added, but otherwise the system and my account have all admin permissions allowed.

Is it possible java is running an an unprivileged user or something?

Maybe there's a space in your user name?

I'm out of ideas here... If it can't see the jar file you placed manually in that exact same directory then something is seriously wrong.

No space in my username, just letters. This is what's showing up for me for both versions I have downloaded.
jdk permissions

Can you verify that the CodeNameOneBuilder.jar copy you have is indeed a valid zip file?

Does it appear when you run dir from the command line?

It shows up as a .jar for me.
dir

Yes I meant can you unzip it. In windows there's no command line unzip so just copy the file to a filename.zip and try unzipping it to make sure it's valid (jar files are technically just zip files). Although in terms of size the file looks good so this might not be necessary.

Also delete the other two files from the directory. Open the task manager and kill all the Java processes in your machine and try building again. Maybe something got botched along the way.

commented

intellij Open IntelliJ, click on the top folder. open file This is the code that's immediately opened. The 8 errors show up with I have it set to JDK 11, only 2 show up when I have it set to JDK 8. issues The errors that appear on the pom file when I have JDK 8 enabled. error 1 error 2 Code block for both errors.

Your project path has a white space which could be problematic \Downloads\my app\myapp

try to move the project to a path without white space.

Are you able to successfully run and build a simple Java maven project like Hello world?

Your project path has a white space which could be problematic \Downloads\my app\myapp

try to move the project to a path without white space.

Are you able to successfully run and build a simple Java maven project like Hello world?

I've tried several other downloads of the same package that don't have the white space and they don't work either. "Hello World!" works if I run it under maven-archetype-quickstart. It doesn't want to work if I open it as maven-archetype-archetype.

How do you open it?

Open the root folder of the project. Assuming you generated an IDEA project there should be a play button on the top that should "just work" and run the simulator target as shown in Erics screenshots.

Those are my screenshots of opening a project. I click the run button and it throws errors because it can't find the file you dropboxed me, even after I added it to the .codename file.

In this screenshot:
https://user-images.githubusercontent.com/138056993/253070731-a28399e6-0b08-4dc8-8d7e-f47488794a0e.JPG

On the left side there's a tree that isn't shown. Go to the top of the tree where it should show the full log including all the steps. Can you paste that here as code?

This is the rest of that string of text from the screenshot:
'dependencyManagement.dependencies.dependency.systemPath' for com.codenameone:codenameone-buildclient:jar refers to a non-existing file C:\Users[[Name]].codenameone\CodeNameOneBuildClient.jar

This is the code that's calling the file:

<dependency>
     <groupId>com.codenameone</groupId>
         <artifactId>codenameone-buildclient</artifactId>
                <version>${cn1.version}</version>
                      <scope>system</scope>
                              <systemPath>${user.home}/.codenameone/CodeNameOneBuildClient.jar</systemPath>
</dependency>

But that's the correct path to the file.

There should be more there. Can you provide a full screenshot?

This is my whole pom file. The ** ** parts are what's throwing an error.

**<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">**
              
<modelVersion>4.0.0</modelVersion>

   <groupId>coderad.pack.trybare</groupId>

   <artifactId>myapp</artifactId>

   <version>1.0-SNAPSHOT</version>

   <packaging>pom</packaging>

   <name>myapp</name>

   <description>myapp</description>

   <url>https://www.codenameone.com</url>

   <licenses>

    <license>

    <name>GPL v2 With Classpath Exception</name>

    <url>https://openjdk.java.net/legal/gplv2+ce.html</url>
                                          
        <distribution>repo</distribution>
                                          
      <comments>A business-friendly OSS license</comments>
                                      
    </license>
                        
  </licenses>
              
  <modules>
<module>common</module>
</modules>
          	  
  <properties>
                            
   <cn1.plugin.version>7.0.86</cn1.plugin.version>
                            
    <cn1.version>LATEST</cn1.version>
                            
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                    	      
   <java.version>1.8</java.version>
                            
    <java-tests.version>11</java-tests.version>
                            
    <rhino.version>1.7.11</rhino.version>
                            
    <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
                            
   <maven.compiler.source>1.8</maven.compiler.source>
                            
    <maven.compiler.target>1.8</maven.compiler.target>
                            
    <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
                            
    <cn1app.name>myapp</cn1app.name>
                            
     </properties>
          		  
	<dependencyManagement>
                            
    <dependencies>
                                          
      <dependency>
                                                        
        <groupId>com.codenameone</groupId>
                                                        
        <artifactId>java-runtime</artifactId>
                                                        
        <version>${cn1.version}</version>
                                                    
      </dependency>
                                          
     <dependency>
                                                        
        <groupId>com.codenameone</groupId>
                                                        
        <artifactId>codenameone-core</artifactId>
                                                        
        <version>${cn1.version}</version>
                                                    
       </dependency>
                                          
       <dependency>
                                                        
        <groupId>com.codenameone</groupId>
                                                        
        <artifactId>codenameone-javase</artifactId>
                                                        
        <version>${cn1.version}</version>
                                                    
      </dependency>
                                          
     <dependency>
                                                        
      <groupId>com.codenameone</groupId>
                                                        
        <artifactId>codenameone-buildclient</artifactId>
                                                        
        <version>${cn1.version}</version>
                                                        
       <scope>system</scope>
                                                        
        **<systemPath>${user.home}/.codenameone/CodeNameOneBuildClient.jar</systemPath>**
                                                    
      </dependency>
                                          
</dependencies>
                        
  </dependencyManagement>
              
<build>
                            
    <pluginManagement>
                                          
     <plugins>
                                                        
        <plugin>
                                                                      
        <groupId>com.codenameone</groupId>
                                                                      
          <artifactId>codenameone-maven-plugin</artifactId>
                                                                      
          <version>${cn1.plugin.version}</version>
                                                                  
        </plugin>
                                                        
        <plugin>
                                                                      
          <groupId>org.apache.maven.plugins</groupId>
                                                                      
          <artifactId>maven-compiler-plugin</artifactId>
                                                                      
         <version>${maven-compiler-plugin.version}</version>
                                                                  
        </plugin>
                                                        
        <plugin>
                                                                      
          <groupId>org.codehaus.mojo</groupId>
                                                                      
         <artifactId>exec-maven-plugin</artifactId>
                                                                      
         <version>3.0.0</version>
                                                                  
        </plugin>
                                                        
        <plugin>
                                                                      
          <artifactId>maven-antrun-plugin</artifactId>
                                                                      
          <groupId>org.apache.maven.plugins</groupId>
                                                                      
          <version>3.1.0</version>
                                                                  
       </plugin>
                                                    
    </plugins>
                                      
   </pluginManagement>
                            
  <plugins>
                                          
    <plugin>
                                                        
        <!-- Codename One Uses its own test runner currently.
                    This snippet configures Maven Surefire to use Codename One's "dummy"
                    provider so that Surefire doesn't try to run Codename One's tests
                    using its built-in test providers. -->
                                                        
        <groupId>org.apache.maven.plugins</groupId>
                                                        
        <artifactId>maven-surefire-plugin</artifactId>
                                                        
        <version>3.0.0-M5</version>
                                                        
        <dependencies>
                                                                      
         <dependency>
                                                                                    
           <groupId>com.codenameone</groupId>
                                                                                    
            <artifactId>codenameone-maven-plugin</artifactId>
                                                                                    
            <version>${cn1.plugin.version}</version>
                                                                                
          </dependency>
                                                                  
        </dependencies>
                                                    
      </plugin>
                                      
    </plugins>
                        
  </build>
              
<repositories>
</repositories>
              
  <pluginRepositories>

    </pluginRepositories>
              
  <profiles>
                            
   <profile>
                                          
      <id>javascript</id>
                                          
      <activation>
                                                        
        <property>
                                                                      
          <name>codename1.platform</name>
                                                                      
          <value>javascript</value>
                                                                  
        </property>
                                                    
      </activation>
                                          
      <modules>
                                                        
      <module>javascript</module>
                                                    
      </modules>
                                      
    </profile>
                            
    <profile>
                                          
      <id>ios</id>
                                          
      <activation>
                                                        
       <property>
                                                                      
         <name>codename1.platform</name>
                                                                      
         <value>ios</value>
                                                                  
       </property>
                                                    
      </activation>
                                          
      <modules>
                                                        
        <module>ios</module>
                                                    
      </modules>
                                      
    </profile>
                            
    <profile>
                                          
      <id>win</id>
                                          
      <activation>
                                                        
       <property>
                                                                      
       <name>codename1.platform</name>
                                                                      
          <value>win</value>
                                                                  
        </property>
                                                    
       </activation>
                                          
      <modules>
                                                        
        <module>win</module>
                                                    
      </modules>
                                      
    </profile>
                            
    <profile>
                                          
      <id>android</id>
                                          
      <activation>
                                                        
        <property>
                                                                      
          <name>codename1.platform</name>
                                                                      
          <value>android</value>
                                                                  
        </property>
                                                    
      </activation>
                                          
      <modules>
                                                        
        <module>android</module>
                                                    
       </modules>
                                      
     </profile>
                            
    <profile>
                                          
   <id>javase</id>
                                          
      <activation>
                                                        
      <property>
                                                                      
          <name>codename1.platform</name>
                                                                      
         <value>javase</value>
                                                                  
        </property>
                                                        
        <activeByDefault>true</activeByDefault>
                                                    
      </activation>
                                          
      <modules>
                                                        
        <module>javase</module>
                                                    
       </modules>
                                      
    </profile>
                            
    <profile>
                                          
     <id>cn1libs</id>
                                          
      <activation>
                                                        
        <file>
                                                                      
          <exists>${basedir}/cn1libs/pom.xml</exists>
                                                                  
        </file>
                                                    
      </activation>
                                          
      <modules>
                                                        
        **<module>cn1libs</module>**
                                                    
      </modules>
                                      
     </profile>
                        
  </profiles>
          
</project>

I don't need to see the POM. I need to see what's in the console and next to the console. If you run this from command line do you get more than just one line of error?

I want to see the whole output. There has to be some information there that will explain what's going on.

I'm not really sure what part you're asking for, but these are the errors that show up and all the files in the project. The 'cannot find CodeNameOneBuildClient.jar' error isn't showing up here because I told the program to ignore it to see if it would still run but it didn't work.

pom file with errors
directories
directories 1
directories 2
directories 3

I downloaded and "other" option of the file to run in the command line a while ago and that's now running in both command line and IntelliJ after i added the file you dropboxed me but others I downloaded for IntelliJ still won't work.

In this image https://user-images.githubusercontent.com/138056993/254923697-ec587def-3a69-4c8b-8a40-4c518f30f086.JPG

On the left side there's a button that will switch the error log to show you text. You need to do that and then move along the tree on the left to the root of the text which shows the entire log.

Then copy that text using ctrl-c and paste it as a source block here so it will be readable.

These are the two things on the left that I see. All the editor button does is open the pom file a second time. And the Structure and Bookmark just opens the whole file tree at the top.
left side
open editor
structure

This is how it's supposed to look. Notice the tree on the left is clickable so I can see the build stages and select the top of the tree to see the entire text on the right.
Screenshot 2023-07-24 at 6 05 39

It will only let me build it, not run it. And that's what it gives me for a build.
build
no run

commented

It will only let me build it, not run it. And that's what it gives me for a build. build no run

Just to confirm if it's IDE problem, have you tried another IDE like netbeans?

That's a successful build. Open the run configuration combo box. What are the options there?
(It's on the toolbar and say's "Current File" in your screenshot.

Just to confirm if it's IDE problem, have you tried another IDE like netbeans?

I tried Eclipse and it didn't work. It gave me an error that sent me here: https://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
I downloaded the generic 'other' file for cmd line and finally got that to work in IntelliJ and cmd line once I added the dropboxed file that Shai linked into the right folder. But the IntelliJ specific copy is still giving me trouble. That's the one I've been taking screenshots from.

That's a successful build. Open the run configuration combo box. What are the options there? (It's on the toolbar and say's "Current File" in your screenshot.

Current File and Edit Configurations. I manually added the CodeNameOne config to run the simulator and it would let me run it, but it threw this error and wouldn't open the simulator:
Error running 'Run in Device Simulator': Cannot invoke "com.intellij.openapi.vfs.VirtualFile.getModificationStamp()" because "this.propsVF" is null

This is a problem with your IDE installation. This:

 Error running 'Run in Device Simulator': Cannot invoke "com.intellij.openapi.vfs.VirtualFile.getModificationStamp()" because "this.propsVF" is null

Should have an option to open an error dialog which will have an option to report the error but will also show a stack that might help me narrow it down.

This generally means the IDE can't access a file to get its modification date. That means something is broken with the IDE file access which corresponds to the problem you had with the jar file.

Can I just fix it by downloading a new copy of IntelliJ?

This is the stacktrace:
java.lang.NullPointerException: Cannot invoke "com.intellij.openapi.vfs.VirtualFile.getModificationStamp()" because "this.propsVF" is null at com.codename1.plugin.intellij.run.CodenameOneRunConfiguration.refreshProps(CodenameOneRunConfiguration.java:107) at com.codename1.plugin.intellij.run.CodenameOneRunConfiguration.access$100(CodenameOneRunConfiguration.java:57) at com.codename1.plugin.intellij.run.CodenameOneRunConfiguration$1.createJavaParameters(CodenameOneRunConfiguration.java:185) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:889) at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:69) at com.intellij.execution.configurations.JavaCommandLineState.getJavaParameters(JavaCommandLineState.java:41) at com.intellij.execution.impl.DefaultJavaProgramRunner.patchJavaCommandLineParams(DefaultJavaProgramRunner.java:132) at com.intellij.execution.impl.DefaultJavaProgramRunner.lambda$doExecute$2(DefaultJavaProgramRunner.java:122) at com.intellij.execution.runners.JavaProgramPatcher.lambda$patchJavaCommandLineParamsUnderProgress$2(JavaProgramPatcher.java:41) at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:281) at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:429) at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:114) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressSynchronously$9(CoreProgressManager.java:513) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$new$0(ProgressRunner.java:84) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:252) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:252) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699) at java.base/java.lang.Thread.run(Thread.java:833)

This is an exception from the plugin. We don't support that. This should be a Maven project from https://start.codenameone.com/

uninstall the plugin. It's meant fro legacy project support only.

I uninstalled the plugin and ran it as a maven project. The run was successful but the simulator window didn't pop up and the 'cn1libs' error is still there.
run success
run error

This is what happens with I run the cmd line download with or without the plugin in IntelliJ.
cmd line
simulator

In the IDE you picked the compile target instead of "Run Simulator" which would result in it running similarly to the way it runs in the command line.

I set up the exact same run settings as the cmd line one, and it gave me a CSS error:
An error occurred while compiling the CSS files. Inputs: C:\Users\------\Downloads\MyApp\myapp\common\src\main\css\theme.css, output: C:\Users\------\Downloads\MyApp\myapp\common\target\classes\theme.res merge file: C:\Users\------\Downloads\MyApp\myapp\common\target\css\theme.css

I need to see the full error.

You need to switch this to text mode. I think it's done with the eye icon on the left. That way the actual error is shown.

`"C:\Program Files\Java\jdk-17\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\Users------\Downloads\MyApp\myapp -Djansi.passthrough=true -Dmaven.home=C:\Users------.m2\wrapper\dists\apache-maven-3.6.3-bin\1iopthnavndlasol9gbrbg6bf2\apache-maven-3.6.3 "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.1.2\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.1.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.1.2\lib\idea_rt.jar=51841:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.1.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.1.2\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.1.2\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2023.1.4 -DskipTests=true -Dcodename1.platform=javase verify -e -P idea-simulator
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for coderad.pack.trybare:myapp-javase:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.codenameone:codenameone-core:jar -> duplicate declaration of version (?) @ line 60, column 19
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.codenameone:codenameone-javase:jar -> duplicate declaration of version (?) @ line 70, column 19
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] myapp [pom]
[INFO] myapp-common [jar]
[INFO] myapp-javase [jar]
[INFO]
[INFO] ---------------------< coderad.pack.trybare:myapp >---------------------
[INFO] Building myapp 1.0-SNAPSHOT [1/3]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] -----------------< coderad.pack.trybare:myapp-common >------------------
[INFO] Building myapp-common 1.0-SNAPSHOT [2/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:3.1.0:run (default) @ myapp-common ---
[INFO] Executing tasks
[INFO] [get] Destination already exists (skipping): C:\Users-------\UpdateCodenameOne.jar
[INFO] [java] Update process in progress lock file exists at: C:\Users-------.codenameone\UpdateStatus.lock
[INFO] Executed tasks
[INFO]
[INFO] --- properties-maven-plugin:1.0.0:read-project-properties (default) @ myapp-common ---
[INFO]
[INFO] --- codenameone-maven-plugin:7.0.86:generate-gui-sources (generate-gui-sources) @ myapp-common ---
Generating GUI sources
No GUI Entries available
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ myapp-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users------\Downloads\MyApp\myapp\common\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ myapp-common ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- codenameone-maven-plugin:7.0.86:compliance-check (cn1-process-classes) @ myapp-common ---
[INFO] Running compliance check against Codename One Java Runtime API
[INFO] See https://www.codenameone.com/javadoc/ for supported Classes and Methods
[INFO] Sources haven't changed since the last compliance check. Skipping check
[INFO]
[INFO] --- codenameone-maven-plugin:7.0.86:css (cn1-process-classes) @ myapp-common ---
[INFO] Error: Invalid or corrupt jarfile C:\Users--------.m2\repository\com\codenameone\codenameone-designer\7.0.86\codenameone-designer-7.0.86-jar-with-dependencies.jar-extracted\designer_1.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for myapp 1.0-SNAPSHOT:
[INFO]
[INFO] myapp .............................................. SUCCESS [ 0.199 s]
[INFO] myapp-common ....................................... FAILURE [ 35.761 s]
[INFO] myapp-javase ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.177 s
[INFO] Finished at: 2023-07-26T10:19:53-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.codenameone:codenameone-maven-plugin:7.0.86:css (cn1-process-classes) on project myapp-common: An error occurred while compiling the CSS files. Inputs: C:\Users-------\Downloads\MyApp\myapp\common\src\main\css\theme.css, output: C:\Users-----\Downloads\MyApp\myapp\common\target\classes\theme.res, merge file: C:\Users------\Downloads\MyApp\myapp\common\target\css\theme.css -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.codenameone:codenameone-maven-plugin:7.0.86:css (cn1-process-classes) on project myapp-common: An error occurred while compiling the CSS files. Inputs: C:\Users-------\Downloads\MyApp\myapp\common\src\main\css\theme.css, output: C:\Users-------\Downloads\MyApp\myapp\common\target\classes\theme.res, merge file: C:\Users------\Downloads\MyApp\myapp\common\target\css\theme.css
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Caused by: org.apache.maven.plugin.MojoExecutionException: An error occurred while compiling the CSS files. Inputs: C:\Users-------\Downloads\MyApp\myapp\common\src\main\css\theme.css, output: C:\Users------\Downloads\MyApp\myapp\common\target\classes\theme.res, merge file: C:\Users-------\Downloads\MyApp\myapp\common\target\css\theme.css
at com.codename1.maven.CompileCSSMojo.executeImpl (CompileCSSMojo.java:206)
at com.codename1.maven.CompileCSSMojo.executeImpl (CompileCSSMojo.java:55)
at com.codename1.maven.AbstractCN1Mojo.execute (AbstractCN1Mojo.java:195)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :myapp-common

Process finished with exit code 1
`

Try running the following commands (obviously fix the home path):

cd C:\Users-------\.codenameone
java -Dcli=true -Dcef.dir=C:\Users-------\.codenameone\cef -jar designer_1.jar -css -input C:\Users-------\Downloads\MyApp\myapp\common\src\main\css\theme.css -output C:\Users------\Downloads\MyApp\myapp\common\target\classes\theme.res -merge C:\Users-------\Downloads\MyApp\myapp\common\target\css\theme.css

If it fails, what's the error?

Error: Unable to access jarfile designer_1.jar
It's in C:\Users-------.m2\repository\com\codenameone\codenameone-designer\7.0.86\codenameone-designer-7.0.86-jar-with-dependencies.jar-extracted

It should also be there. Either way did you try running that command with the jar? Did that work?

The error at the top is the output I got from running that code in cmd line. But that's the only place I found the designer file. Where do I need to move or copy it or what do I need to do to make it accessible?

Delete the file C:\Users-------\.codenameone\UpdateStatus.lock. Then run update via maven mvn cn1:update or via the IDE. It should set up the designer in place.
If you're behind a proxy or similar make sure to set it up globally for Java first.