« Return to Thread: help with moving cargo settings to profiles.xml or ~/.m2/settings.xml

help with moving cargo settings to profiles.xml or ~/.m2/settings.xml

by Julian Dunn-2 :: Rate this Message:

Reply to Author | View in Thread


I'm a release manager and have Cargo working with M2 with a profile
within my POM, like this:

  <profiles>
    <profile>
      <id>jcdtest</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <configuration>
              <configuration>
                <type>runtime</type>
                <properties>
                 
<cargo.tomcat.manager.url>http://www.dev.nm.cbc.ca:6041/manager/</cargo.tomcat.manager.url>
                 
<cargo.remote.username>manager</cargo.remote.username>
                 
<cargo.remote.password>XXXXXXXDELETED</cargo.remote.password>
                </properties>
              </configuration>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

If I try to move this to my settings.xml (so that developers don't get
to see the passwords), Maven explodes with this:

Error reading settings.xml: Unrecognised tag: 'build' (position:
START_TAG seen ...</id>\n      <build>... @59:14)
  Line:   59
  Column: 14

Seems that Maven can understand <build> as a child of <profile> within
the POM only. Does this make any sense? How can I fix this?

- Julian

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: help with moving cargo settings to profiles.xml or ~/.m2/settings.xml