aws-toolkit-eclipse icon indicating copy to clipboard operation
aws-toolkit-eclipse copied to clipboard

Maven/Tycho Issues with AWS P2 Update Site.

Open rlarcheveque opened this issue 6 years ago • 2 comments

Hi,

When I use the following P2 update site URL through the Eclipse IDE, everything is fine. http://aws.amazon.com/eclipse/site.xml.

However, when I try to build my app with Tycho/Maven, I am getting the following error: [ERROR] Failed to resolve target definition /Users/regentl/git/data-poc-ingestion/releng/ai.stradigi.kepler.datahub.target/ai.stradigi.kepler.datahub.target.target: Failed to load p2 metadata repository from location http://aws.amazon.com/eclipse/site.xml: No repository found at http://aws.amazon.com/eclipse/site.xml. -> [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/MavenExecutionException

I suspect the P2 repo is not complete. Normally, here is the P2 structure. pom.xml target ├── repository │ ├── artifacts.jar │ ├── category.xml │ ├── content.jar │ └── plugins │ │ ├── org.apache.commons.io_2.1.0.jar │ │ ├── org.apache.commons.lang_2.4.0.jar │ │ ├── org.apache.commons.lang_2.5.0.jar │ │ ├── org.apache.commons.lang_2.6.0.jar │ │ └── org.apache.commons.lang3_3.1.0.jar │ │ │ └── features │ │ └── com.example.feature_1.0.0.jar

Is there special settings to make the repo working with Tycho? I presume there are other people who use Maven/Tycho to automatically build AWS Eclipse Based app.

Thanks for your help.

rlarcheveque avatar Aug 01 '19 16:08 rlarcheveque

The toolkit update site is still using the legacy site.xml for managing the plugin bundles instead of standard p2 structure. Curiously, why are you depending on the toolkit?

zhangzhx avatar Aug 20 '19 17:08 zhangzhx

Hi Zhaoxi,

thanks for the reply. It is really appreciated. Actually, we are building an Eclipse based RCP application that makes use of S3. In general, we try to make use of existing P2 repositories to install the required bundle. Otherwise, we access the artifacts via maven repositories or we package manually the JARs into bundle that we deploy locally. As I mentioned in my original post, I used the AWS P2 repository to install in the Eclipse IDE using Eclipse target definition file. This works but when I use Tycho/Maven it does not.

For the moment I bundled the required AWS jars into local bundle.

Thanks again.

rlarcheveque avatar Aug 26 '19 12:08 rlarcheveque