Thanks!
Because it is quite large, I opt to just attach it, not paste it.
I have it is okay with you.

2007/7/4, Renat Zubairov <[EMAIL PROTECTED]>:

Hi

Could you please post your pom.xml here it would be much simpler to
see what's going on.

Renat

On 04/07/07, Eko S.W. <[EMAIL PROTECTED]> wrote:
> Dear community,
>
> I use jetty as the mean to achieve hot development in Maven.
> And it works very fine.
>
> But, when I try to package it into WAR and have it deployed to Tomcat,
it
> doesn't works.
> And when I try to understand what happen, I realize that in the WAR
there
> are required JAR missing.
> Such as tapestry-ioc.jar, and other.
>
> And then, I try to declare the required JARS (who already included
> automatically in using mvn jetty:run), e.g.
> <dependency>
>    <artifactId>tapestry-ioc</artifactId>
>    ...
> </dependency>
>
> Of course this is not the right way (and not easy anyway, because I have
to
> predict, what dependency needed)
> What am I doing wrong?
>
> Thanks in advance!
>
> * FYI : I am using Maven 2.0.7
>
> --
> Best wishes,
> Eko SW
> http://swdev.blogs.friendster.com/my_blog/
>


--
Best regards,
Renat Zubairov

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




--
Best wishes,
Eko SW
http://swdev.blogs.friendster.com/my_blog/
<?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>
  <groupId>org.swdev</groupId>
  <artifactId>Project</artifactId>
  <packaging>war</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>Project Lukman, Abdul Muiz dan Eko SW</name>
  <url>http://en.wikipedia.org/wiki/Tabligh_Jamaat</url>
  <dependencies>

<!-- From Tapestry Quick Start Archetype -->
        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-core</artifactId>
            <version>${tapestry-release-version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-ioc</artifactId>
            <version>${tapestry-release-version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-spring</artifactId>
            <version>${tapestry-release-version}</version>
        </dependency>
<!--        <dependency>
            <groupId>javassist</groupId>
            <artifactId>javassist</artifactId>
            <version>3.0</version>
        </dependency>
-->        
<!--
        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-hibernate</artifactId>
            <version>${tapestry-release-version}</version>
        </dependency>
-->
        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-test</artifactId>
            <version>${tapestry-release-version}</version>
        </dependency>

    <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <version>5.5</version>
      <classifier>jdk15</classifier>
      <scope>compile</scope>
    </dependency>

        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.9</version>
        </dependency>

<!-- Spiking Hibernate -->

		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate</artifactId>
			<version>3.2.1.ga</version>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-annotations</artifactId>
			<version>3.2.0.ga</version>
		</dependency>
		<dependency>
			<groupId>javax.persistence</groupId>
			<artifactId>persistence-api</artifactId>
			<version>1.0</version>
		</dependency>

<!-- From Tapestry Quick Start Archetype -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring</artifactId>
			<version>2.0.4</version>
		</dependency>
		<dependency>	
			<groupId>org.springframework</groupId>
			<artifactId>spring-mock</artifactId>
			<version>2.0.4</version>
		</dependency>
		<dependency>	
			<groupId>commons-dbcp</groupId>
			<artifactId>commons-dbcp</artifactId>
			<version>1.2.1</version>
		</dependency>
		<dependency>	
			<groupId>commons-pool</groupId>
			<artifactId>commons-pool</artifactId>
			<version>1.2</version>
		</dependency>

		<dependency>
			<groupId>jetty</groupId>
			<artifactId>org.mortbay.jetty</artifactId>
			<version>5.1.10</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>5.0.3</version>			
		</dependency>
	</dependencies>

	<build>
		<finalName>skripsi</finalName>
		<plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId><!--set ke JDK 1.5 u/ Generic awalnya -->
                <version>2.0.2</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target><!-- u/ keperluan annotasi Generic -->
                </configuration>
             
            </plugin>
			<plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>maven-jetty-plugin</artifactId>

				<configuration>
					<scanIntervalSeconds>1</scanIntervalSeconds>
					<requestLog implementation="org.mortbay.jetty.NCSARequestLog">
                                            <!-- This doesn't do anything for Jetty, but is a workaround for a Maven bug
                                            that prevents the requestLog from being set. -->
                                            <append>true</append>
                                        </requestLog>
					<connectors>
						<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
							<port>8111</port>
							<maxIdleTime>60000</maxIdleTime>
						</connector>
					</connectors>
				</configuration>
			</plugin>

            <!-- This changes the WAR file packaging so that what would normally go into WEB-INF/classes
             is instead packaged as WEB-INF/lib/hilo.jar.  This is necessary for Tapestry
             to be able to search for page and component classes at startup. Only
             certain application servers require this configuration, please see the documentation
             at the Tapestry 5 project page (http://tapestry.apache.org/tapestry5/). -->

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <archiveClasses>true</archiveClasses>
                </configuration>
            </plugin>
        </plugins>
	</build>
        <!-- Adds a report detailing the components, mixins and base classes defined by this module. -->     
        <!--
    <reporting>
        <plugins>
            <plugin>
                <artifactId>maven-surefire-report-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.tapestry</groupId>
                <artifactId>tapestry-component-report</artifactId>
                <version>${tapestry-release-version}</version>
                <configuration>
                    <rootPackage>crms</rootPackage>
                </configuration>
            </plugin>
        </plugins>
    </reporting>
  -->
<!-- nah lho, cuman alamat repositorynya yg diilangin jd gak download surefire-junit plugin -->
  <repositories>
  <repository>
     <snapshots />
     <id>tapestry-snapshots</id>
     <url>http://people.apache.org/~hlship/tapestry-snapshot-repository/</url>
   </repository>
   <repository>
     <id>codehaus.snapshots</id>
     <url>http://snapshots.repository.codehaus.org</url>
   </repository>
   <repository>
     <id>openqa</id>
     <name>OpenQA Maven Repository</name>
     <url>http://maven.openqa.org/</url>
   </repository>
   <repository>
     <id>repo1</id>
     <name>Main Maven Repository</name>
     <url>http://repo1.maven.org/maven2/</url>
   </repository>
    <repository>
      <id>apache.snapshots</id>
      <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
    </repository>
    <repository>
      <id>codehaus.snapshots</id>
      <url>http://snapshots.repository.codehaus.org</url>
    </repository>
    <repository>
    <id>tapestry-snapshots</id>
    <url>http://people.apache.org/~hlship/tapestry-repository/</url>
    </repository>


    <repository>
      <id>openqa</id>
      <name>OpenQA Maven Repository</name>
      <url>http://maven.openqa.org/</url>
    </repository>
  </repositories>
  
  
  <pluginRepositories>
  <!--
    <pluginRepository>
      <id>apache.snapshots</id>
      <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
    </pluginRepository>
    -->
    <!-- A necessary version of the surefire plugin, 2.8-SNAPSHOT, lives here. -->
    <!--
    <pluginRepository>
      <id>howardlewisship.com</id>
      <url>http://howardlewisship.com/repository</url>
    </pluginRepository>
    -->
  </pluginRepositories>
    <properties>
        <tapestry-release-version>5.0.5-SNAPSHOT</tapestry-release-version>
    </properties>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to