I get a different error running the build on Windows 11 via Parallels on an
M1 MacBook Pro.

[ERROR] Failed to execute goal
org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile (default) on
project camel-salesforce: Unable to resolve artifact: Missing:
[ERROR] ----------
[ERROR] 1) com.google.protobuf:protoc:exe:windows-aarch_64:3.25.3
[ERROR]
[ERROR]   Try downloading the file manually from the project website.
[ERROR]
[ERROR]   Then, install it using the command:
[ERROR]       mvn install:install-file -DgroupId=com.google.protobuf
-DartifactId=protoc -Dversion=3.25.3 -Dclassifier=windows-aarch_64
-Dpackaging=exe -Dfile=/path/to/file
[ERROR]
[ERROR]   Alternatively, if you host your own repository you can deploy the
file there:
[ERROR]       mvn deploy:deploy-file -DgroupId=com.google.protobuf
-DartifactId=protoc -Dversion=3.25.3 -Dclassifier=windows-aarch_64
-Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]   Path to dependency:
[ERROR]         1) org.apache.camel:camel-salesforce:jar:4.5.0-SNAPSHOT
[ERROR]         2) com.google.protobuf:protoc:exe:windows-aarch_64:3.25.3
[ERROR]
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR]
[ERROR] for artifact:
[ERROR]   org.apache.camel:camel-salesforce:jar:4.5.0-SNAPSHOT
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR]   central (https://repo1.maven.org/maven2/, releases=true,
snapshots=false),
[ERROR]   apache.snapshots (https://repository.apache.org/snapshots,
releases=false, snapshots=true)

It appears that there is no support for protocol buffers for Windows
running on ARM. Admittedly, that is probably a pretty small audience, but
it's still a problem with the build. I noticed that camel-kudo skips
building on Windows due to lack of library support. Perhaps the same should
be done here.



On Tue, Mar 5, 2024 at 3:46 AM Otavio Rodolfo Piske <angusyo...@gmail.com>
wrote:

> Folks,
>
> Recently I noticed that Apache Camel is not building on Windows anymore.
> Most of the people in my network use Linux or macOS, so I'm sending this
> here to reach a larger audience.
>
> In case anyone has access to Windows, understands the platform and want to
> take a look, here's the problem we are having:
>
> [ERROR] Failed to execute goal
> org.apache.camel:camel-package-maven-plugin:4.5.0-SNAPSHOT:prepare-catalog
> (default) on project camel-catalog: Error preparing catalog: Error reading
> json file:
>
> D:\a\camel\camel\catalog\camel-catalog\..\..\components\camel-salesforce\camel-salesforce-component\target\classes\META-INF\org\apache\camel\component\salesforce\salesforce.json:
> Input length = 3 -> [Help 1]
>
> I created the following ticket for this problem:
> https://issues.apache.org/jira/browse/CAMEL-20518
>
> Kind regards
> --
> Otavio R. Piske
> http://orpiske.net
>

Reply via email to