-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download cn1libs doesn't working in Settings app #3882
Comments
Hi Shai, As you can see, the codenameone-settings-app says that the json library is installed and up to date (version 5) Now, below you are the video showing what happens in my IntelliJ IDE: I executed the maven sync option, as you oriented. Please, reopen this issue. The problem in my project hasn't been solved yet. I remain frozen and cannot make either fixes or new features in my production app. |
We didn't close the issue. Did you modify your Can you include a listing of the |
Hi Shai. Good to see you here. I am concerned with the message the IntelliJ community returns when it executes the Maven clear package (see the video). The message says the package CN1JSON doesn't exist in the Meven Central registry. Is it true? Attending what you requested, below you are my common pom.xml: Comparing with the same pom.xml before Codenameone Settings modifications, I saw this XML snippet below was inserted: <dependency>
<artifactId>iwcareapp-CN1JSON</artifactId>
<groupId>com.iw.mobile</groupId>
<version>1.0-SNAPSHOT</version>
<type>pom</type>
</dependency> After, executing the Intellij maven sync option, this message is launched: Even after Try to run Maven import with -U flag (force update snapshots), |
Have you tried to run it in simulator already? When you run in simulator while connected to internet, it will download all dependencies in |
That dependency seems deeply incorrect, @shannah do you understand why that dependency was generated by the settings? @hrugani what's the content of the top level pom xml file? What's the plugin version? Did you generate the project via the migration tool or through start.codenameone.com? If the former then I suggest starting a fresh project with start and manually copying over the code and settings. |
Hi Shai and Shannah, I am using the plugin version 7.0.174 In the link below you will find the content of my top level pom.xml: My project was started as a fresh project, using the starter web app from Code Name One. I described it in this issue description. Additional info: |
@shannah I was able to reproduce this with a clean download from the initilizr:
The problem seems to be due to the 7.0.86 version of the plugin that's the default from Initializr... @hrugani the workaround is to download a fresh version of the project from initilizr. Before you do anything open the main pom.xml file and update the version of the plugin to: <cn1.plugin.version>7.0.175</cn1.plugin.version> Once you do that refresh the project in Sync -> Reload all maven projects. Then proceed as usual and select Reload all maven projects again after the installation. |
I have updated the Initializr to use 7.0.175 by default now, which should resolve this. |
Describe the bug
We created a new codenameone app using the starter web app (for Java, intellij-idea, hello would template). so far so good. But when we try to install the CN1JSON using condenameone settings app, It says that the common pom was updated with the necessary new dependency. Then, we added a little bit of code that imports ca.weblite.codename1.json.JSONObject, When We try to compile the app using maven goals (in Intellij), the compiler launches an error saying it cannot find ca.weblite.codename1.json.JSONObject.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The maven goals ( compile or package) should be executed with no errors
Screenshots
not applicable.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
We believe that all the information is present above.
Our production app uses several cn1libs.
Any help to fix that will be well appreciated.
The text was updated successfully, but these errors were encountered: