TotalCross is a Software Development Kit that helps cross platform application development. Currently supported platforms are: Windows, Wince, Android, iOS, Linux and Linux ARM for embedded systems.
Back to basics with the example provided on your website...
Totalcross project fails to package or deploy. Traced back to Maven which fails to get dependencies.
Seems similar to another bug launched 25 days ago...
I can browse to the Repo myself so it's not being blocked on my network...
Output from Packaging Project
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Users\jmvn packagee\OneDrive \Documents\Visual Studio 2019\LightSwitch1>
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< com.totalcross:LightSwitch1 >---------------------
[INFO] Building LightSwitch1 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.333 s
[INFO] Finished at: 2021-05-21T07:06:06+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin com.totalcross:totalcross-maven-plugin:2.0.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.totalcross:totalcross-maven-plugin:jar:2.0.3: Could not transfer artifact com.totalcross:totalcross-maven-plugin:pom:2.0.3 from/to maven-default-http-blocker (http://0.0.0.0/):
Blocked mirror for repositories: [totalcross-repo (http://maven.totalcross.com/artifactory/repo1, default, releases+snapshots)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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/PluginResolutionException
Output from viewing Maven Dependencies
Spawn {"command":"\"c:\Program Files\Maven\apache-maven-3.8.1\bin\mvn.cmd\"","args":["dependency:tree","-Dverbose","-DoutputFile=\"c:\Users\[NAME]\AppData\Roaming\Code\User\workspaceStorage\688967d6e54cff60326a2cc55e422151\vscjava.vscode-maven\f1ba6ee7c5bb21292dfcb2887541833d\"","-f","\"c:\Users\[NAME]\OneDrive\Documents\Visual Studio 2019\LightSwitch1\pom.xml\""]}
[INFO] Scanning for projects...
[WARNING] Failed to retrieve plugin descriptor for com.totalcross:totalcross-maven-plugin:2.0.3: Plugin com.totalcross:totalcross-maven-plugin:2.0.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.totalcross:totalcross-maven-plugin:jar:2.0.3
[INFO]
[INFO] --------------------< com.totalcross:LightSwitch1 >---------------------
[INFO] Building LightSwitch1 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Failed to retrieve plugin descriptor for com.totalcross:totalcross-maven-plugin:2.0.3: Plugin com.totalcross:totalcross-maven-plugin:2.0.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.totalcross:totalcross-maven-plugin:jar:2.0.3
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.583 s
[INFO] Finished at: 2021-05-21T06:48:35+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project LightSwitch1: Could not resolve dependencies for project com.totalcross:LightSwitch1:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.totalcross:totalcross-sdk:jar:7.1.0: Failed to read artifact descriptor for com.totalcross:totalcross-sdk:jar:7.1.0: Could not transfer artifact com.totalcross:totalcross-sdk:pom:7.1.0 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [totalcross-repo (http://maven.totalcross.com/artifactory/repo1, default, releases+snapshots)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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/DependencyResolutionException
Devices:
Please complete the following information:
Windows 10
TotalCross Extension v0.0.13 vsCode
Maven: 3.8.1
JDK 15.0.2
Deploying to: linux-arm
To Reproduce
Package the example lightswitch project
or
Check dependencies on any Maven project attached to TotalCross
Back to basics with the example provided on your website...
Totalcross project fails to package or deploy. Traced back to Maven which fails to get dependencies. Seems similar to another bug launched 25 days ago...
I can browse to the Repo myself so it's not being blocked on my network...
Output from Packaging Project
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\jmvn packagee\OneDrive \Documents\Visual Studio 2019\LightSwitch1> [INFO] Scanning for projects... [INFO] [INFO] --------------------< com.totalcross:LightSwitch1 >--------------------- [INFO] Building LightSwitch1 1.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.333 s [INFO] Finished at: 2021-05-21T07:06:06+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Plugin com.totalcross:totalcross-maven-plugin:2.0.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.totalcross:totalcross-maven-plugin:jar:2.0.3: Could not transfer artifact com.totalcross:totalcross-maven-plugin:pom:2.0.3 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [totalcross-repo (http://maven.totalcross.com/artifactory/repo1, default, releases+snapshots)] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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/PluginResolutionException
Output from viewing Maven Dependencies
Spawn {"command":"\"c:\Program Files\Maven\apache-maven-3.8.1\bin\mvn.cmd\"","args":["dependency:tree","-Dverbose","-DoutputFile=\"c:\Users\[NAME]\AppData\Roaming\Code\User\workspaceStorage\688967d6e54cff60326a2cc55e422151\vscjava.vscode-maven\f1ba6ee7c5bb21292dfcb2887541833d\"","-f","\"c:\Users\[NAME]\OneDrive\Documents\Visual Studio 2019\LightSwitch1\pom.xml\""]} [INFO] Scanning for projects... [WARNING] Failed to retrieve plugin descriptor for com.totalcross:totalcross-maven-plugin:2.0.3: Plugin com.totalcross:totalcross-maven-plugin:2.0.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.totalcross:totalcross-maven-plugin:jar:2.0.3 [INFO] [INFO] --------------------< com.totalcross:LightSwitch1 >--------------------- [INFO] Building LightSwitch1 1.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] Failed to retrieve plugin descriptor for com.totalcross:totalcross-maven-plugin:2.0.3: Plugin com.totalcross:totalcross-maven-plugin:2.0.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.totalcross:totalcross-maven-plugin:jar:2.0.3 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.583 s [INFO] Finished at: 2021-05-21T06:48:35+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project LightSwitch1: Could not resolve dependencies for project com.totalcross:LightSwitch1:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.totalcross:totalcross-sdk:jar:7.1.0: Failed to read artifact descriptor for com.totalcross:totalcross-sdk:jar:7.1.0: Could not transfer artifact com.totalcross:totalcross-sdk:pom:7.1.0 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [totalcross-repo (http://maven.totalcross.com/artifactory/repo1, default, releases+snapshots)] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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/DependencyResolutionException
Devices:
Please complete the following information:
To Reproduce
Package the example lightswitch project or Check dependencies on any Maven project attached to TotalCross
POM
<?xml version="1.0" encoding="UTF-8"?> <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">