Setting up Eclipse with Maven for Oxygen SDK
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 22
- Joined: Thu Jan 30, 2014 11:53 pm
- Contact:
Setting up Eclipse with Maven for Oxygen SDK
Post by DirkDubois »
Hello All,
I am new to using eclipse with Maven and I am trying to setup an environment to program plugins for the standalone Oxygen Author 16.1. I have followed the instructions found here: http://www.oxygenxml.com/oxygen_sdk_maven.html but can't seem to add the archtype when I am creating a new Maven project. I have added my proxy to the settings file and I am connected to the internet as I can get packages from other sources.
When I fill out the "Add Archetype" form and press add I get the following error:
Can't resolve Archetype com.oxygenxml.samples:oxygen-sdk-samples-archetype:16.1.0
org.eclipse.core.runtime.CoreException: Could not resolve artifact com.oxygenxml.samples:oxygen-sdk-samples-archetype:pom:16.1.0
Similarly, when I try to call Maven from command line with the specified arguments found in the guide I get the following error:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.070s
[INFO] Finished at: Fri Nov 21 13:50:15 EST 2014
[INFO] Final Memory: 4M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\apache-maven-3.1.
1\bin). Please verify you invoked Maven from the correct directory. -> [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/disp ... tException
It is worth mentioning that I am developing on a windows 7 machine. Any help would be greatly appreciated.
Thanks,
Dirk
I am new to using eclipse with Maven and I am trying to setup an environment to program plugins for the standalone Oxygen Author 16.1. I have followed the instructions found here: http://www.oxygenxml.com/oxygen_sdk_maven.html but can't seem to add the archtype when I am creating a new Maven project. I have added my proxy to the settings file and I am connected to the internet as I can get packages from other sources.
When I fill out the "Add Archetype" form and press add I get the following error:
Can't resolve Archetype com.oxygenxml.samples:oxygen-sdk-samples-archetype:16.1.0
org.eclipse.core.runtime.CoreException: Could not resolve artifact com.oxygenxml.samples:oxygen-sdk-samples-archetype:pom:16.1.0
Similarly, when I try to call Maven from command line with the specified arguments found in the guide I get the following error:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.070s
[INFO] Finished at: Fri Nov 21 13:50:15 EST 2014
[INFO] Final Memory: 4M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\apache-maven-3.1.
1\bin). Please verify you invoked Maven from the correct directory. -> [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/disp ... tException
It is worth mentioning that I am developing on a windows 7 machine. Any help would be greatly appreciated.
Thanks,
Dirk
XML Programmer, Technical Writing
Matrox Imaging
Matrox Imaging
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Setting up Eclipse with Maven for Oxygen SDK
Post by alex_jitianu »
Hello Dirk,
First thing to check is if the repository http://www.oxygenxml.com/maven is correctly added to .m2/settings.xml. If you send us settings.xml on support@oxygenxml.com we can also take a look to see if there's any problems on how the repository is declared.
Best regards,
Alex
First thing to check is if the repository http://www.oxygenxml.com/maven is correctly added to .m2/settings.xml. If you send us settings.xml on support@oxygenxml.com we can also take a look to see if there's any problems on how the repository is declared.
Best regards,
Alex
-
- Posts: 22
- Joined: Thu Jan 30, 2014 11:53 pm
- Contact:
Re: Setting up Eclipse with Maven for Oxygen SDK
Post by DirkDubois »
Hi Alex,
Thank you for much for the reply, I have sent an email to oxygen support. I will let you know what the conclusion of my issue is.
Thanks,
Dirk
Thank you for much for the reply, I have sent an email to oxygen support. I will let you know what the conclusion of my issue is.
Thanks,
Dirk
XML Programmer, Technical Writing
Matrox Imaging
Matrox Imaging
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Setting up Eclipse with Maven for Oxygen SDK
Post by alex_jitianu »
Hello,
Just in case anyone else bumps into a similar issue this how Dirk managed to solve the issue:
1. delete archetype-catalog.xml from user.home/.m2 (it's next to settings.xml)
2. open a console, go to a test directory and run the following command:
mvn archetype:generate -DarchetypeGroupId=com.oxygenxml.samples -DarchetypeArtifactId=oxygen-sdk-samples-archetype -DarchetypeVersion=16.1.0 -DgroupId=myGroup -DartifactId=mySample -Dversion=1.0-SNAPSHOT
The settings.xml file was correctly constructed so either archetype-catalog.xml contained some wrong data or there was an issue with the Eclipse->Maven plugin.
Best regards,
Alex
Just in case anyone else bumps into a similar issue this how Dirk managed to solve the issue:
1. delete archetype-catalog.xml from user.home/.m2 (it's next to settings.xml)
2. open a console, go to a test directory and run the following command:
mvn archetype:generate -DarchetypeGroupId=com.oxygenxml.samples -DarchetypeArtifactId=oxygen-sdk-samples-archetype -DarchetypeVersion=16.1.0 -DgroupId=myGroup -DartifactId=mySample -Dversion=1.0-SNAPSHOT
The settings.xml file was correctly constructed so either archetype-catalog.xml contained some wrong data or there was an issue with the Eclipse->Maven plugin.
Best regards,
Alex
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service