"extensions" are only valid under the main level "build", not within a
profile's "build". Note that the "build" element under profile is only a
subset of the "build" element under "project".

Eric

On 10/25/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote:

On 10/24/06, pjungwir <[EMAIL PROTECTED]> wrote:
>
> Hi Jeff,
>
> Could you please post your whole pom, and also the version of maven
you're
> running?
>
> Thanks,
> Paul
>
>

The  top level pom  i.e

Maven-Work
|-- pom.xml


<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>za.co.pragmaticus.portal</groupId>
  <artifactId>pragmaticus-portal</artifactId>
  <name>Pragmaticus Portal</name>
  <packaging>pom</packaging>
  <version>1.0.0</version>
  <description>Web Portal Solution</description>
  <inceptionYear>2005</inceptionYear>
  <developers>
    <developer>
      <name>Jeff  Mutonho</name>
      <id>mutonj</id>
      <email>[EMAIL PROTECTED]</email>
      <organization>pragmaticus</organization>
      <roles>
        <role>Java Geek</role>
      </roles>
      <timezone>+2</timezone>
    </developer>
  </developers>
  <contributors>
    <contributor>
      <name>Jeff  Mutonho</name>
      <email>[EMAIL PROTECTED]</email>
      <organization>pragmaticus</organization>
      <roles>
        <role>Development Manager</role>
      </roles>
      <timezone>+2</timezone>
    </contributor>
  </contributors>
  <pluginRepositories>
     <pluginRepository>
       <id>apache.snapshots</id>
       <name>Apache Snapshot Repository</name>
       <url>http://people.apache.org/repo/m2-snapshot-repository</url>
       <releases>
         <enabled>false</enabled>
       </releases>
     </pluginRepository>
   </pluginRepositories>
<dependencies>
    <dependency>
      <groupId>org.apache.log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.13</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
   <build>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
         <version>1.0</version>
        </plugin>
    </plugins>
   </build>
    <reporting>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <configuration>
          <showSuccess>false</showSuccess>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jxr-plugin</artifactId>
        <version>2.0</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <links>
            <link>http://java.sun.com/j2se/1.4.2/docs/api</link>
            <link>http://plexus.codehaus.org/ref/1.0-alpha-9/apidocs
</link>
          </links>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
        <configuration>
          <rulesets>
            <ruleset>/rulesets/basic.xml</ruleset>
            <ruleset>/rulesets/imports.xml</ruleset>
            <ruleset>/rulesets/unusedcode.xml</ruleset>
            <ruleset>/rulesets/finalizers.xml</ruleset>
          </rulesets>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <configuration>
          <configLocation>config/sun_checks.xml</configLocation>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>taglist-maven-plugin</artifactId>
        <configuration>
          <tags>
            <tag>TODO</tag>
            <tag>@todo</tag>
            <tag>FIXME</tag>
            <tag>XXX</tag>
          </tags>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
      </plugin>
         <plugin>
          <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-changelog-plugin</artifactId>
         <version>2.0-SNAPSHOT</version>
        </plugin>
      <!--plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-changelog-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
         <artifactId>jdepend-maven-plugin</artifactId>
      </plugin-->
    </plugins>
  </reporting>
  <organization>
    <name>pragmaticus Limited</name>
    <url>http://www.pragmaticus.co.za/</url>
  </organization>
  <modules>
    <module>portal-services</module>
    <!--module>portal-services-junit</module-->
    <module>portal-messaging</module>
    <module>portal-messaging-support</module>
    <module>portal-webservices</module>
    <module>portal-domain</module>
    <module>portal-exceptions</module>
    <module>portal</module>
    <module>portal-ear</module>
    <module>portal-ejb-ear</module>
    <!--module>portal-webservices-junit-tests</module-->
  </modules>
  <ciManagement>
   <system>continuum</system>
   <url>http://localhost:8080/continuum</url>
   <notifiers>
     <notifier>
       <type>mail</type>
        <configuration>
         <address>[EMAIL PROTECTED]</address>
        </configuration>
     </notifier>
    </notifiers>
</ciManagement>
<scm>
<connection>
   scm:cvs:pserver:mutonj:[EMAIL PROTECTED]
:/var/lib/cvsroot:pragmaticusportal/dev
</connection>
<developerConnection>
   scm:cvs:pserver:mutonj:[EMAIL PROTECTED]
:/var/lib/cvsroot:pragmaticusportal/dev
</developerConnection>
</scm>
<distributionManagement>
    <site>
      <id>165.148.216.14</id>
      <name>Pragmaticus Portal</name>
      <url>scp://165.148.216.14/var/www/html/projects/portal</url>
    </site>
    <repository>
     <id>portal-repository</id>
     <name>portal Repository</name>
     <url>sftp://165.148.216.14/home/maven/portal-releases</url>
    </repository>
  </distributionManagement>
</project>



and the ear sub project  pom

Maven-Work
|
`-- portal-ear
    `-- pom.xml


<project>
  <modelVersion>4.0.0</modelVersion>
  <parent>
   <groupId>za.co.pragmaticus.portal</groupId>
   <artifactId>pragmaticus-portal</artifactId>
   <version>1.0.0</version>
  </parent>
  <artifactId>portal-ear</artifactId>
  <name>Pragmaticus Portal Ear</name>
  <packaging>ear</packaging>
  <description>Portal Ear</description>
  <dependencies>
    <dependency>
      <groupId>za.co.pragmaticus.portal</groupId>
      <artifactId>portal</artifactId>
      <version>1.0.0</version>
      <type>war</type>
    </dependency>
  </dependencies>
  <profiles>
    <profile>
      <id>portal-war</id>
      <activation>
        <activeByDefault>true</activeByDefault>
        <property>
          <name>enableCiProfile</name>
          <value>true</value>
        </property>
      </activation>
      <build>
      <plugins>
       <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <configuration>
          <displayName>Pragmaticus Portal</displayName>
          <description>Pragmaticus Portal</description>
          <modules>
            <webModule>
              <groupId>za.co.pragmaticus.portal</groupId>
              <artifactId>portal</artifactId>
              <contextRoot>/portal</contextRoot>
              <bundleFileName>portal.war</bundleFileName>
            </webModule>
          </modules>
          <earName>portal</earName>
        </configuration>
       </plugin>
      </plugins>
      <extensions>
       <extension>
         <groupId>org.apache.maven.wagon</groupId>
         <artifactId>wagon-ftp</artifactId>
         <version>1.0-alpha-6</version>
       </extension>
     </extensions>
    </build>
    </profile>
  </profiles>
</project>


and Maven version: 2.0.4

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




--
Eric Redmond
http://codehaus.org/~eredmond

Reply via email to