Here it is:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <parent>
     <groupId>org.apache.struts</groupId>
     <artifactId>struts2-apps</artifactId>
     <version>2.0.9</version>
  </parent>
  <groupId>com.mycompany.portlet</groupId>
  <artifactId>myportlet</artifactId>
  <packaging>war</packaging>
  <name>Portlet</name>
  <url>http://www.mycompany.com</url>

  <scm>
     <connection></connection>
     <developerConnection></developerConnection>
     <url></url>
  </scm>

  <developers>
     <developer>
        <id>1</id>
        <name>Frederick N. Brier</name>
        <email>fbrier at multideck.com</email>
        <timezone>EDT5</timezone>
     </developer>
  </developers>
  <build>
     <resources>
        <!-- Include resources under src/main/java in WEB-INF/classes -->
        <resource>
           <directory>src/main/resources</directory>
           <filtering>true</filtering>
        </resource>
        <resource>
           <directory>src/main/java</directory>
           <filtering>true</filtering>
           <includes>
              <include>**/*.properties</include>
              <include>**/*.xml</include>
           </includes>
        </resource>
     </resources>
     <defaultGoal>package</defaultGoal>
     <plugins>
        <plugin>
           <artifactId>maven-idea-plugin</artifactId>
           <version>2.1</version>
           <configuration>
              <downloadSources>true</downloadSources>
              <downloadJavadocs>true</downloadJavadocs>
              <dependenciesAsLibraries>true</dependenciesAsLibraries>
              <useFullNames>false</useFullNames>
              <libraries>
                 <library>
                    <name>Generated XMLBeans Source</name>
                    <sources>target/xmlbeans-source</sources>
                 </library>
              </libraries>
           </configuration>
        </plugin>
        <plugin>
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>xmlbeans-maven-plugin</artifactId>
           <executions>
              <execution>
                 <goals>
                    <goal>xmlbeans</goal>
                 </goals>
              </execution>
           </executions>
           <dependencies>
              <dependency>
                 <groupId>xmlbeans</groupId>
                 <artifactId>xbean</artifactId>
                 <version>2.2.0</version>
              </dependency>
           </dependencies>
           <inherited>true</inherited>
           <configuration>
              <schemaDirectory>src/main/xsd</schemaDirectory>
<sourceGenerationDirectory>target/xmlbeans-source</sourceGenerationDirectory>
           </configuration>
        </plugin>
     </plugins>
  </build>
  <dependencies>

     <dependency>
        <groupId>portlet-api</groupId>
        <artifactId>portlet-api</artifactId>
        <version>1.0</version>
        <scope>provided</scope>
     </dependency>

     <dependency>
        <groupId>org.apache.struts</groupId>
        <artifactId>struts2-spring-plugin</artifactId>
        <version>${pom.version}</version>
     </dependency>

     <dependency>
        <groupId>org.apache.struts</groupId>
        <artifactId>struts2-core</artifactId>
        <version>${pom.version}</version>
     </dependency>

     <dependency>
        <groupId>velocity</groupId>
        <artifactId>velocity</artifactId>
        <version>1.4</version>
     </dependency>

     <dependency>
        <groupId>velocity-tools</groupId>
        <artifactId>velocity-tools</artifactId>
        <version>1.1</version>
     </dependency>

     <dependency>
        <groupId>commons-digester</groupId>
        <artifactId>commons-digester</artifactId>
        <version>1.8</version>
     </dependency>

     <dependency>
        <groupId>commons-dbcp</groupId>
        <artifactId>commons-dbcp</artifactId>
        <version>1.1</version>
     </dependency>

     <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.4</version>
        <scope>provided</scope>
     </dependency>

     <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.0</version>
     </dependency>

     <dependency>
        <groupId>xmlbeans</groupId>
        <artifactId>xbean</artifactId>
        <version>2.2.0</version>
     </dependency>

     <dependency>
        <groupId>com.googlecode.tabletags</groupId>
        <artifactId>tabletags</artifactId>
        <version>1.0.1-SNAPSHOT</version>
     </dependency>

     <dependency>
        <groupId>javax.persistence</groupId>
        <artifactId>persistence-api</artifactId>
        <version>1.0</version>
     </dependency>
  </dependencies>

  <properties>
     <!-- Application settings -->
     <copyright.year>2007</copyright.year>

<hibernate.dialect>org.hibernate.dialect.MySQLInnoDBDialect</hibernate.dialect>
     <jdbc.groupId>mysql</jdbc.groupId>
     <jdbc.artifactId>mysql-connector-java</jdbc.artifactId>
     <jdbc.version>5.0.5</jdbc.version>
     <jdbc.driverClassName>com.mysql.jdbc.Driver</jdbc.driverClassName>
     <jdbc.url>
<![CDATA[jdbc:mysql://localhost/gridportlet?createDatabaseIfNotExist=true&amp;useUnicode=true&amp;characterEncoding=utf-8]]></jdbc.url>
     <jdbc.username>root</jdbc.username>
     <jdbc.password></jdbc.password>
  </properties>
</project>


Wayne Fay wrote:
Show us your pom. You must be doing something wrong -- I've never seen
any of those jars including in any wars I've ever constructed.

Wayne

On 7/30/07, Frederick N. Brier <[EMAIL PROTECTED]> wrote:
I am relatively new to Maven and my project is including a number of
.jars which I believe are only needed by Maven at build time into my
.war.  How do I stop them from being included?

maven-artifact-20.0.jar
maven-artifact-manager-2.0.jar
maven-model-2.0.jar
maven-plugin-api-2.0.jar
maven-profile-2.0.jar
maven-project-2.0.jar
maven-repository-metadata-2.0.jar
plexus-container-default-1.0-alpha-8.jar
plexus-utils-1.0.0.jar
plexus-utils-1.0.4.jar
wagon-provider-api-1.0-alpha-5.jar

It is also including the junit-2.8.1.jar and two copies of the
xbean-*.jar, specifically xbean-2.0.0.jar and xbean-2.2.0.jar.  Also
note that two versions of the plexus-utils-*.jar are included above.
Now I am using the xmlbeans-maven-plugin mojo plugin.  Could this be
causing some of the jar issues?  Thank you.

Fred

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



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




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

Reply via email to