Bug 1362350 - Incomplete Maven repositories in Fuse xPaaS docs
Summary: Incomplete Maven repositories in Fuse xPaaS docs
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat xPaaS
Classification: Red Hat
Component: Documentation
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: nshendye
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-02 03:09 UTC by Vikram Goyal
Modified: 2022-01-14 13:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FUSEDOC-1507 0 Major Closed Fix incomplete Maven settings in FIS docs 2018-01-18 02:45:38 UTC

Description Vikram Goyal 2016-08-02 03:09:37 UTC
Via email:

Hi,
I've been following the docs to create a Openshift fuse integration services app using the docs at https://access.redhat.com/documentation/en/red-hat-xpaas/0/single/red-hat-xpaas-fuse-integration-services-image/

In section 3.2 it says to add the listed maven repos however I think you also need to add a plugin repository as well as the dependency repository.

So add the following to the maven settings.xml

    <pluginRepositories>
  <pluginRepository>
    <id>jboss-ga-plugin-repository</id>
    <url>https://maven.repository.redhat.com/ga</url>
    <releases>
      <enabled>true</enabled>
    </releases>
    <snapshots>
      <enabled>false</enabled>
    </snapshots>
  </pluginRepository>
  <!-- <pluginRepository>
    <id>jboss-public-plugin-repository</id>
    <url>https://repository.jboss.org/nexus/content/repositories/public/</url>
    <releases>
      <enabled>true</enabled>
    </releases>
    <snapshots>
      <enabled>false</enabled>
    </snapshots>
  </pluginRepository> -->
  <pluginRepository>
    <id>jboss-fuse-plugin-repository</id>
    <name>Red Hat JBoss Fuse Plugin repository (all)</name>
    <url>https://repo.fusesource.com/nexus/content/groups/public/</url>
    <layout>default</layout>
    <releases>
      <enabled>true</enabled>
      <updatePolicy>never</updatePolicy>
    </releases>
    <snapshots>
      <enabled>false</enabled>
      <updatePolicy>never</updatePolicy>
    </snapshots>
  </pluginRepository>
</pluginRepositories>


Can you please check with engineering before updating the docs as my maven-fu is average at best and I don't want to confuse things.

cheers
Noel

Comment 1 David Simansky 2016-08-17 08:32:59 UTC
Hi Vikram,

the 3.2 section refers to Maven archetype generation, which doesn't require definition of plugin repositories in settings.xml. However it would be ideal to state that both "repositories" and "pluginRepositories" should be configured, if you would like to build archetype locally. Similarly see how archetype configures settings.xml for s2i purposes [1].

IMHO, docs don't literally state to configure "repositories and "pluginRepositories", but I would consider it as common Maven usage knowledge.

[1] https://github.com/fabric8io/ipaas-quickstarts/blob/redhat/quickstart/karaf/camel-amq/configuration/settings.xml

Comment 2 Vikram Goyal 2016-08-17 10:18:43 UTC
Thanks David.


Note You need to log in before you can comment on or make changes to this bug.