-
Notifications
You must be signed in to change notification settings - Fork 70
guide_dev_troubleshooting
- cobigen-eclipse or cobigen-eclipse-test has build errors after git clone or pull
- Getting Not authorized , ReasonPhrase: Unauthorized
- Testing changes on the cobigen-core
- Issues with workspace when Oomph automatic updates don’t work (especially for Indian colleagues)
- Issue when testing Eclipse plugin by Running as Eclipse Application.
This might be caused as of the fact, that the cobigen-eclipse*/lib
folder is not available after initial cloning or the contents of the lib folder are not synchonous with the dependencies specified in the pom.xml respectively with the classpath inclusions in the plugin.xml
(tab runtime).
You are facing an error like
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-ftp:1
.0-beta-6 or one of its dependencies could not be resolved: Failed to read artif
act descriptor for org.apache.maven.wagon:wagon-ftp:jar:1.0-beta-6 @
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.capgemini:cobigen-htmlplugin:1.1.0 (D:\toolscobigen\to
ols-cobigen2\tools-cobigen\cobigen\cobigen-htmlplugin\pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-f
tp:1.0-beta-6 or one of its dependencies could not be resolved: Failed to read a
rtifact descriptor for org.apache.maven.wagon:wagon-ftp:jar:1.0-beta-6: Could no
t transfer artifact org.apache.maven.wagon:wagon-ftp:pom:1.0-beta-6 from/to publ
ic (https://devon.s2-eu.capgemini.com/nexus/content/groups/public/): Not authori
zed , ReasonPhrase: Unauthorized. -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerE
xception
Please note the message Not authorized , ReasonPhrase: Unauthorized. → [Help 2]
!
-
Please check, that you run the command by using the console.bat or a simliar console initialized with the IDE environment variables.
-
Please check your corporate login in the variables-customized.bat to be correct (
DEVON_NEXUS_USER
andDEVON_NEXUS_PASSWD
). Make sure, that you restart the console.bat you are working in after changing the variables-customized.bat. Same holds for eclipse instances running. Please restart to make the new values accessible. -
Please check your password to escape special characters.
-
Please check whether you are able to login to https://devon.s2-eu.capgemini.com and Nexus is up and running. If you cannot login, contact one of the main developers.
To test changes implemented on the cobigen-core
you have to follow the next process:
-
Open a console and step into
cobigen/cobigen-core-parent
. Runmvn clean install
and remember the jar version you have just installed. -
Open a console and step into
cobigen/cobigen-eclipse
. Runmvn clean package -Pp2-build-mars
. -
On Eclipse, go to
cobigen/cobigen-eclipse
pom.xml and change the<version>
of your cobigen-core. -
Also check on the
cobigen/cobigen-core-parent
pom-xml that it is using the just installed version. -
On Eclipse, go to
cobigen/cobigen-eclipse
and double-click 'plugins.xml'. On the bottom, click on 'runtime' tab. On 'classpath', add a new library and choose the jars you have just installed. -
Refresh on Eclipse, press F5 on the
cobigen-eclipse
inside Eclipse. -
If you still see compilation errors: On Eclipse, right-click
cobigen/cobigen-eclipse
→ Maven → Update projects.
Executing eclipse-cobigen-development.bat file will open Eclipse with all the projects automatically imported. Oomph creates 'Working Sets' and set 'Top Level Elements' pointing to that working set. For Countries where proxy restricts Oomph to execute, we see no projects imported into project explorer/Navigator. Rather than trying manual import which later can give build issues we should follow below solution. Build Issues could be like:
[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install 'com.capgemini.cobigen-htmlplugin 0.0.0' but it could not be found
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: com.capgemini:com.capgemini.cobigen.eclipse.test:3.0.1 @
In Eclipse, you can click the small downward arrow in the upper right corner of the Navigator/Project Explorer view and go to 'Top Level Elements' and point them to 'Projects'. This should show all the projects inside Project Explorer View. Also, Each plugin should point to respective branch.
Error message will be like:
1) Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle com.devonfw.cobigen.eclipse
2) org.osgi.framework.BundleException: Error starting module.
3) org.eclipse.core.runtime.CoreException: Plug-in com.devonfw.cobigen.eclipse was unable to load class com.devonfw.cobigen.eclipse.workbenchcontrol.handler.XXXXHanlder.
Disclaimer
If you discover any documentation bugs or would like to request new content, please raise them as an issue or create a pull request. Contributions to this wiki are done through the main repo under the folder documentation.
License
This documentation is licensed under the Creative Commons License (Attribution-NoDerivatives 4.0 International
)