Can't resolve Archetype com.oxygenxml.samples:oxygen-sdk-samples-archetype:21.1.0.2
Posted: Mon Jan 06, 2020 7:09 pm
Hello,
I am trying to configure Maven and start a project, as documented here:
https://www.oxygenxml.com/oxygen_sdk/download.html
I am using:
Following the task called "Creating a Startup Project Sample from a Command Line", I've tried the following from the command line, both from the internet directly and from behind the proxy, like this:
And get the following error:
When I run it with -X, I get this additional error:
Following the task called "Creating a Startup Project from the Eclipse IDE", from both accessing the internet directly or behind the proxy, I try to add the following archetype:
What can I try next?
I've tried the following suggestions from this site, but either they don't work or they don't apply. Maybe because they are for earlier versions of Eclipse:
Thanks for your help,
Will
I am trying to configure Maven and start a project, as documented here:
https://www.oxygenxml.com/oxygen_sdk/download.html
I am using:
- Windows 10
- Eclipse Version: 2019-12 (4.14.0)
- Oxygen 21.1
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<repositories>
<repository>
<id>oxygenxml</id>
<name>Oxygen XML</name>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
<url>http://www.oxygenxml.com/maven</url>
<layout>default</layout>
</repository>
</repositories>
</profile>
</profiles>
<proxies>
<proxy>
<id>myproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>a.proxy.com</host>
<port>9090</port>
<username></username>
<password></password>
<nonProxyHosts>localhost,127.0.0.1</nonProxyHosts>
</proxy>
</proxies>
</settings>
Code: Select all
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.oxygenxml.samples -DarchetypeArtifactId=oxygen-sdk-samples-archetype -DarchetypeVersion=21.1.0.2 -DgroupId=myGroup -DartifactId=mySample -Dversion=1.0-SNAPSHOT -DarchetypeRepository=http://oxygenxml.com/maven/
Code: Select all
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.oxygenxml.samples:oxygen-sdk-samples-archetype:21.1.0.2) -> [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/MojoFailureException
Code: Select all
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- archetypeGroupId: com.oxygenxml.samples
- archetypeArtifactId: oxygen-sdk-samples-archetype
- archetypeVersion: 21.1.0.2
- archetypeRepository: http://oxygenxml.com/maven/
Code: Select all
Can't resolve Archetype com.oxygenxml.samples:oxygen-sdk-samples-archetype:21.1.0.2
org.eclipse.core.runtime.CoreException: Could not resolve artifact
I've tried the following suggestions from this site, but either they don't work or they don't apply. Maybe because they are for earlier versions of Eclipse:
Thanks for your help,
Will