[
https://issues.jboss.org/browse/JBIDE-10616?page=com.atlassian.jira.plugi...
]
Snjezana Peco commented on JBIDE-10616:
---------------------------------------
If you want to create only switchyard quickstarts within the bpel-service directory, you
can use the following declaration:
<project>
<category>SwitchYard</category>
<name>switchyard-quickstart-bpel-service</name>
<included-projects>switchyard-quickstart-bpel-service,
switchyard-quickstart-bpel-service-loan-approval,
switchyard-quickstart-bpel-service-say-hello</included-projects>
<shortDescription>Switchyard BPEL service</shortDescription>
<description>...</description>
<size>...</size>
<
url>https://repository.jboss.org/nexus/content/groups/public/org/switc...
<fixes>
...
</fixes>
<importType>maven</importType>
<importTypeDescription>The project example requires the m2eclipse-core,
m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
</project>
M2e names a project using artifactId. The names(artifactIds) of the projects within the
bpel-service directory are listed in the included-projects element
(switchyard-quickstart-bpel-service, switchyard-quickstart-bpel-service-loan-approval and
switchyard-quickstart-bpel-service-say-hello are artifactIds of the projects within the
bpel-service directory).
The Project Examples wizard will download a zip from the maven repository
(
https://repository.jboss.org/nexus/content/groups/public/org/switchyard/q...)
and import only those projects that are listed in the included-projects element. I
don't think we need to introduce a new type for such project examples. We only need to
choose what projects will be imported.
If you still want to introduce a new type, you could create a separate ext. point within
some of the switchyard or maven plugins.
1. Examples file download - use Maven to resolve the artifact and
locate the file for the resolved artifact.
2. Zip extraction - only extract files under a specific directory within the archive.
These actions can be done within the importProjectExamples extension point without
changing the project examples plugin. Your patch also includes some changes that
aren't related to this issue (the changes related to the caching project examples xml
files, for instance).
Allow project examples to use examples in maven artifacts
---------------------------------------------------------
Key: JBIDE-10616
URL:
https://issues.jboss.org/browse/JBIDE-10616
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: maven, project-examples
Affects Versions: 3.3.0.M5
Reporter: Rob Cernich
Assignee: Fred Bricon
Attachments: maven_project_examples.patch
Many server projects bundle quickstarts and demos with their projects. Many times, these
are generated into a single zip installed in a Maven repository. It would be beneficial
if the project examples infrastructure supported installing examples stored within a Maven
artifact, that would be very beneficial for these types of projects.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira