An error occurred while collecting items to be installed

When installing p3C plug-ins in eclipse, I will not elaborate here. This is a plug-in developed by Ali’s internal code standards that can help developers better regulate the code. If necessary, it can be installed. In addition ali Java development manual you can also read, the specification of the purple code style. Okay, theme, the following error will be reported when installing the plug-in:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.aspectj.runtime.source,1.7.0.20120507134200
No repository found containing: osgi.bundle,org.eclipse.contribution.weaving.jdt.source,2.2.0.e36x-20120507-1400
No repository found containing: org.eclipse.update.feature,org.eclipse.contribution.weaving.source,2.2.0.e36x-20120507-1400
No repository found containing: osgi.bundle,org.eclipse.contribution.xref.core.source,2.2.0.e36x-20120507-1400
No repository found containing: org.eclipse.update.feature,org.eclipse.contribution.xref.source,2.2.0.e36x-20120507-1400
No repository found containing: osgi.bundle,org.eclipse.contribution.xref.ui.source,2.2.0.e36x-20120507-1400
No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.0.0.v20110215-1551
No repository found containing: osgi.bundle,org.springframework.roo.wrapping.protobuf-java-lite,2.3.0.0001

This is because some libraries can not connect, resulting in online installation failed, just add the url address of the library where the installation is.
The specific steps are as follows:

    click on the Windows of the Eclipse window — > Perference go to Install\update and click Available Software Sites
    3. Click Add and, after calling the name, copy the missing path in the error message.

The above errors, for example, add the following path:
name: eclipse
location:https://www.eclipse.org/ajdt/downloads/
Therefore, if you encounter similar errors later, you can first look at what library is missing, and then add the corresponding library address.

Read More: