Brett Porter wrote:
> As you can see from the trace, it is not attempting to use your
> internal repository.

Yes, hence my question.

> You need to add a <pluginRepository> element.

I'm a bit confused here.

According to the pom.xml and settings.xml descriptors there is no
<pluginRepository> element.

There is a <pluginRepositories> element that contains <repository> elements.

If I attempt to insert a fully specified <repository> element (ie with
<id> and <url> elements) within a <pluginRepositories> element I receive
 an error reading my settings.xml [1]. m2 appears to simply want a
pointer to a pre-defined repository name. Specifying the plugin
repository in this manner does not, however, appear to work (m2 only
checks central and not my internal repository).

The relevant portion of my settings.xml is appended [2].

Listing 1:

$ m2 clean:clean package
Error reading settings.xml: TEXT must be immediately followed by END_TAG
and not START_TAG (position: START_TAG seen ...<repository>\n
<id>... @33:15)
  Line:   33
  Column: 15

Listing 2:

  ...
  <profiles>
    <profile>
      <id>distra</id>
      <repositories>
        <repository>
          <id>distra</id>
          <name>local Distra artefacts</name>
          <url>file:///secure/development/bt3/m2/distra</url>
        </repository>
        <repository>
          <id>libraries</id>
          <name>local libraries</name>
          <url>file:///secure/development/bt3/m2/libraries</url>
        </repository>
      </repositories>
      <pluginRepositories>
<!--
        m2 runs but does not work.
        Plugin resolution problems as previously discussed.
-->
        <repository>distra</repository>
<!--
        m2 will not run, aborts on reading settings.xml
        <repository>
          <id>distrap</id>
          <name>local Distra plugins</name>
          <url>file:///secure/development/bt3/m2/distra</url>
        </repository>
-->
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>distra</activeProfile>
  </activeProfiles>
  ...

Thanks,
...andrew
--

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to