AH!!

just figured out that m2eclipse was configured to be offline... i use multiple workspaces (for different project groups) and this workspace has never used the plugin before ... :(

however, i now have the surefire problem fixed, and i assume perhaps the T5.2 maven issues listed earlier ...

p.

On 6/11/2010 12:39 PM, Paul Stanton wrote:
Hi Andreas,

Rest assured, I am connected ... but my concern is more regards to why there is no 'tried and true' setup path for new users wanting to use the latest and or recommended stack.

Many developers aren't familiar with maven and therefore need their hands held through this step.

Others, like myself are partially familiar, but would appreciate confirmation that they aren't 'doing it wrong', the simplest way to provide this is through a clear and concise setup doc, which stays up to date with the project.

by the way, i've given up on getting 5.2 working for now, instead starting a 5.1 project following howards screencast as closely as it's 'out-of-dateness' allows.

I've installed "run-jetty-run" and created a hello world app which runs fine via eclipse.

however when i try to run a maven install, i get the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project MyProject: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.4.3 or one of its dependencies could not be resolved: Unable to get dependency information for org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.4.3: Failed to process POM for org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.4.3: Non-resolvable parent POM org.apache.maven.surefire:surefire:2.4.3 for org.apache.maven.plugins:maven-surefire-plugin:2.4.3: Failed to resolve POM for org.apache.maven.surefire:surefire:2.4.3 due to The repository system is offline and the requested artifact is not locally available at C:\dir\.m2\repository\org\apache\maven\surefire\surefire\2.4.3\surefire-2.4.3.pom
  org.apache.maven.surefire:surefire:pom:2.4.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

I possibly need to add a repository?

regards, p.

On 6/11/2010 11:36 AM, Andreas Andreou wrote:
Not sure why you get "The
     repository system is offline and the requested artifact is not
     locally available"

That usually shows up when a build is offline - you'd need to be online
for maven to download the deps... or perhaps that's a maven/eclipse
issue, gg it.

As for the archetype catalog, i just reuploaded an update for it that should give the option to create 5.2.3-SNAPSHOT projects. It may take a couple of
hours before the web server sync and this becomes available.

On Sat, Nov 6, 2010 at 02:08, Paul Stanton<p...@mapshed.com.au>  wrote:
Howard,

After reading all the responses to my question and trying a few things I'm
confused.

I'm not a new user and have been using tapestry since T3, however I've never been 100% satisfied by how I've managed to setup T5 projects in the past and
keep coming back to this step for new projects in the hope that it has
somehow improved.

I think documentation of project setup is one of the most important aspects of a framework, and one which seems to be routinely neglected in tapestry.
This is possibly why people's setups become "tortured"?

   * The most up-to-date 'getting started' instruction i can find is
     the 'tutorial 1' which is pretty outdated, especially if you
     intend to use T5.2.
   * 'Tutorial 1' also mentions that Jetty 5 should be used (instead of
     6), however that was supposedly in 2006, jetty 5.1 is now
'deprecated' according to the jetty site, while jetty 7 is available.
   * Alternatively there is the Screencast, created in 2006 and written
     for T5.0.
   * Using the 5.2.2 quickstart archetype results in maven errors
     (group id: org.apache.tapestry, artifact id: quickstart, version:
     5.2.2, repository: http://repo1.maven.org/maven2).
   * Adding the T5.2 dependency (any sub-version) fails  - "The
     repository system is offline and the requested artifact is not
     locally available.
   * The download for the 5.2.0 binary doesn't work
(http://www.apache.org/dyn/closer.cgi/tapestry/tapestry-bin-5.2.0.zip)
   * Downloading the binarys for 5.1.0.5 includes many jars, but no
     instructions regarding project setup or which dependencies are
     needed for which types of applications.

So for a T5.2 project, using the most compatible and up-to-date versions of
eclipse and jetty, where should new users start?

regards, p.

On 5/11/2010 10:27 AM, Howard Lewis Ship wrote:
I'm always amazed at how tortured people's setups are.

It's really simple:

Create a project (using Maven, or otherwise).

Use the RunJettyRun Eclipse plugin.

Make sure you are NOT compiling to src/main/webapp/WEB-INF/classes
  (compile
to target/classes or something)

Make sure your libraries are NOT in src/main/webapp/WEB-INF/lib (they
won't
be if you are using Maven/Gradle/etc.)

(The above two resolve potential class resolution problems where classes
are
loaded by the wrong class loader).

Start RunJettyRun targetted at src/main/webapp

You're done!




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to