|
Installation
Installation
mvn clean install [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] ------------------------------------------------------------------------ [INFO] spring-on-rails ....................................... SUCCESS [1.703s] [INFO] spring-on-rails-core .................................. SUCCESS [4.688s] [INFO] maven-springonrails-plugin ............................ SUCCESS [1.656s] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 seconds [INFO] Finished at: Sun Oct 07 20:05:58 EDT 2007 [INFO] Final Memory: 13M/24M [INFO] ------------------------------------------------------------------------ ant mvn jetty:run <sunny_demo>/index.jsp PS. Newly generated application does not use any relational database yet, you have to run generated DDL file and setup JDBC properties. However, Spring-On-Rails provides mock dao for immediate development environment without relational database. That is extremely useful if you are front-end designer or JSP developer, you can start development right away, and let backend developer to worry about business logic. |
Sign in to add a comment
You need to have Java SE 6 otherwise you can not compile since it uses the new API from Java 6, Properties.load(Reader).
what is the UI made with? plain JSP?
It uses JSTL and XML. You can add view=xml to your URL, it will display output in XML.
I fail at step :Run mvn jetty:run. It said that: Missing:
1) javax.transaction:jta:jar:1.0.1B
Alternatively, if you host your own repository you can deploy the file there: mvn deploy:depl ax.transaction -DartifactId?=jta \
1 required artifact is missing.
for artifact:
from the specified remote repositories:
Any comment? rgs,
Download the file using your browser, you need to accept the license
Save it in a tmp directory Then:
mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta \ -Dversion=1.0.1B -Dpackaging=jar \ -Dfile=/home/nic/tmp/jta-1_0_1B-classes.zipthen start again mvn jetty:run
After running mvn clean install, isn't it supposed to create a build.xml file? Because when I try to run ant it complies about not finding such file. Indeed there is no build.xml, so what should I do?
which download file did you download? Build file is under springonrails-core module. Here is the link to build.xml in Subversion
http://spring-on-rails.googlecode.com/svn/trunk/spring-on-rails/spring-on-rails-core/build.xml
I get ...
try here http://www.mortbay.org/maven-plugin/index.html. You may be able to find the answer for jetty related issues.
mvn install
was Ant BUILD SUCCESS.
mvn clean
or
mvn clean install
was Ant BUILD ERROR.
SoR version was 1.0.5
Did womansw... forget cd before Jetty running?
cd dist/project
mvn jetty:run
Change dist and project to your setting.
I think you should see "Getting Started", "5MinutesTutorial".
see at: http://www.nabble.com/-Jetty-support--howto-install-mvn%3Ajetty-plugin--td6728273.html add the followings to pom.xml:
Hi I was having some issues installing spring-on-rails. It raised the following TRACE: INFO? Trace org.apache.maven.lifecycle.LifecycleExecutionException?: Error assembling JAR
Caused by: org.apache.maven.plugin.MojoExecutionException?: Error assembling JAR Caused by: java.lang.NullPointerException?I solved the problem by editing the D:\Java\spring-on-rails\spring-on-rails-core\pom.xml deleting lines 34 to 37:
Just thought it might help someone in the same situation.
To: murilofla
Thank you!! It helped me!! :DD