Hi Adam,

You shouldn't have to manually touch your repository for the tapestry
required libraries.
Your sentence about "after creating a directory and pom under
tapestry-core --> 5.0.5-SNAPSHOT" leads me to believe you did.

What you will have to do is modify the POM in your project's
directory, after you run the mvn archetype command.  For the
archetypes listed on the Tapestry web site, the project is called
myapp.

This is what I remember:
*Tap 5.0.3 Archetype
Uses 5.0.3, but creates a different AppModule.java than the one for 5.0.4

Tap 5.0.4 Archetype
Uses 5.0.4-SNAPSHOT.  But 5.0.4 is not in snapshot mode anymore, so
this should be changed to 5.0.4.  Also I think the AppModule.java
created with this Archetype does not use things like @Id() and
@Contribute.

There is no Archetype that starts you off with any version of 5.0.5.
What people have been doing is running the 5.0.4 Archetype and
changing the POM to use version 5.0.5-SNAPSHOT.
When using 5.0.5, your AppModule.java should not have the @Id() and
@Contribute() annotations.  Search the list, because other people had
noticed those annotations going away.



If all else fails, just use my POM.  I know what it feels like to be
shipwrecked.
Have fun coding with Tapestry, everyone knows that's all you really wanted. :-)

PS, my POM has a couple extra things:
An extra repository or two, so I mvn can find more things.
A dependency for JFreeChart and Hibernate, which you won't need.
A plugin for mvn tomcat, which works like mvn jetty.


Remember if you are using Eclipse WTP (a recent version), you will
need to run this:
mvn eclipse:eclipse -Dwtpversion=1.5
That will recreate necessary files for WTP to recognize it as a
Dynamic Web Project.

On to the pom.xml:

<?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.mycompany</groupId>
 <artifactId>MyApp</artifactId>
 <packaging>war</packaging>
 <name>MyApp Tapestry 5 Application</name>
 <version>1.0.0-SNAPSHOT</version>
 <build>
   <finalName>MyApp</finalName>
   <plugins>
     <plugin>
       <artifactId>maven-compiler-plugin</artifactId>
       <configuration>
         <source>1.5</source>
         <target>1.5</target>
         <optimize>true</optimize>
       </configuration>
     </plugin>
     <plugin>
       <groupId>org.mortbay.jetty</groupId>
       <artifactId>maven-jetty-plugin</artifactId>
       <configuration>
         <connectors>
           <connector
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
             <port>8000</port>
             <maxIdleTime>60000</maxIdleTime>
           </connector>
         </connectors>
       </configuration>
     </plugin>
     <plugin>
       <groupId>org.codehaus.mojo</groupId>
       <artifactId>tomcat-maven-plugin</artifactId>
       <configuration>
         <warFile>target/MyApp.war</warFile>
       </configuration>
     </plugin>
     <plugin>
       <artifactId>maven-war-plugin</artifactId>
       <configuration>
         <archiveClasses>true</archiveClasses>
       </configuration>
     </plugin>
   </plugins>
 </build>
 <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>
 </repositories>
 <pluginRepositories>
   <pluginRepository>
     <id>tapestry-snapshots</id>
     <url>http://people.apache.org/~hlship/tapestry-snapshot-repository/</url>
   </pluginRepository>
   <pluginRepository>
     <id>howardlewisship.com</id>
     <url>http://howardlewisship.com/repository</url>
   </pluginRepository>
 </pluginRepositories>
 <dependencies>
   <dependency>
     <groupId>org.apache.tapestry</groupId>
     <artifactId>tapestry-core</artifactId>
     <version>${tapestry-release-version}</version>
   </dependency>
   <dependency>
     <groupId>org.apache.tapestry</groupId>
     <artifactId>tapestry-hibernate</artifactId>
     <version>${tapestry-release-version}</version>
   </dependency>
   <dependency>
     <groupId>log4j</groupId>
     <artifactId>log4j</artifactId>
     <version>1.2.9</version>
   </dependency>
   <dependency>
     <groupId>org.testng</groupId>
     <artifactId>testng</artifactId>
     <version>5.1</version>
     <classifier>jdk15</classifier>
     <scope>test</scope>
   </dependency>
   <dependency>
     <groupId>com.lowagie</groupId>
     <artifactId>itext</artifactId>
     <version>2.0.2</version>
   </dependency>
   <dependency>
     <groupId>commons-beanutils</groupId>
     <artifactId>commons-beanutils-core</artifactId>
     <version>1.7.0</version>
   </dependency>
   <dependency>
     <groupId>jfree</groupId>
     <artifactId>jfreechart</artifactId>
     <version>1.0.3</version>
   </dependency>
   <dependency>
     <groupId>commons-lang</groupId>
     <artifactId>commons-lang</artifactId>
     <version>2.0</version>
   </dependency>
   <dependency>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate</artifactId>
     <version>3.2.1.ga</version>
   </dependency>
 </dependencies>
 <reporting>
   <plugins>
     <plugin>
       <groupId>org.apache.tapestry</groupId>
       <artifactId>tapestry-component-report</artifactId>
       <version>${tapestry-release-version}</version>
       <configuration>
         <rootPackage>org.mycompany.MyApp</rootPackage>
       </configuration>
     </plugin>
   </plugins>
 </reporting>
 <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