You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Robert Lee <Ro...@rcn.com> on 2010/03/13 04:52:02 UTC
Where do I set maven.apserver.home?
I am trying to set up Turbine with Maven 1, I have modified the
build.properties in
.maven/cache/maven-turbine-plugin-1.3-resources/flavor/common/maven
to be
#maven.appserver.home = @MAVEN_APPSERVER_HOME@
#maven.appserver.name = @MAVEN_APPSERVER_NAME@
maven.appserver.home= E:/Program Files/Tomcat/apache-tomcat-6.0.26
maven.appserver.name = Tomcat
yet I still get this failure even after running maven -g again.
E:\>maven -Dturbine.app.name=HelloWorld turbine:setup
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.1
WARNING: No pom file was found, assuming default settings!
build:start:
turbine:init:
turbine:setup:
turbine:init:
turbine:check-runtime-environment:
-------------------------------------------------------------------------------
>> Unable to obtain goal [turbine:setup]
>>
--------------------------------------------------------------------------
| Plugin Configuration Error |
--------------------------------------------------------------------------
A required property is missing a value.
Property name: maven.appserver.home
Errors must be corrected before using this plugin.
--------------------------------------------------------------------------
-------------------------------------------------------------------------------
BUILD FAILED
-------------------------------------------------------------------------------
Total time : 1 seconds
Finished at : Friday, March 12, 2010 10:38:04 PM EST
Final Memory : 2M/5M
-------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@turbine.apache.org
For additional commands, e-mail: user-help@turbine.apache.org
Re: Where do I set maven.apserver.home?
Posted by Jeffery Painter <pa...@kiasoft.com>.
Try copying the build.properties to your working directory. Then issue the
command, and it should generate the skeleton app for you.
I just went through setting up everything from scratch again myself. Let
me know if you have any questions.
Also, it may help to go ahead and create a project.properties file in the
same directory and use the command
$ maven -Dturbine.setup.properties=project.properties turbine:setup
BTW, the M.E.T.A. plugin fails if you try to specify using Turbine
2.3.3... You can only specify 2.3.1 at this point in time. I'm guessing
once you generate your skeleton app though, you can update the dependency
to use the newer version.
Really basic project.properties
----
#
# app config
#
turbine.app.name = helloWorld
turbine.app.package=org.apache.helloWorld
turbine.plugin.mode=inplace
turbine.plugin.inplace.dir=WebRoot
turbine.app.flavor=turbine-2.3.1
turbine.app.om.layer=torque
turbine.app.om.package=org.apache.helloWorld.om
turbine.app.setup.demo=true
turbine.app.om.security.name=helloWorld
turbine.app.om.security.package=org.apache.helloWorld.om
#
# Initial ID values for the ID_TABLE
#
initialID = 100
initialIDValue = 100
initialIDStep = 1
torque.database=mysql
torque.database.default=helloWorld
torque.database.driver=com.mysql.jdbc.Driver
torque.database.user="username"
torque.database.password="password"
torque.database.buildUrl=jdbc:mysql://localhost/marketplace
torque.database.createUrl=jdbc:mysql://localhost/marketplace
torque.idbroker.cleverquantity=true
----
Then for later reference:
Generate new OM layer:
maven torque:om
Create a database
maven torque:create-db
maven turbine:sql
maven torque:insert-sql
Compile the project
maven java:compile
Good luck!
--
Jeffery Painter
> I am trying to set up Turbine with Maven 1, I have modified the
> build.properties in
> .maven/cache/maven-turbine-plugin-1.3-resources/flavor/common/maven
> to be
> #maven.appserver.home = @MAVEN_APPSERVER_HOME@
> #maven.appserver.name = @MAVEN_APPSERVER_NAME@
> maven.appserver.home= E:/Program Files/Tomcat/apache-tomcat-6.0.26
> maven.appserver.name = Tomcat
>
>
> yet I still get this failure even after running maven -g again.
>
> E:\>maven -Dturbine.app.name=HelloWorld turbine:setup
> __ __
> | \/ |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
> |_| |_\__,_|\_/\___|_||_| v. 1.1
>
> WARNING: No pom file was found, assuming default settings!
>
> build:start:
>
> turbine:init:
>
> turbine:setup:
> turbine:init:
>
> turbine:check-runtime-environment:
> -------------------------------------------------------------------------------
> >> Unable to obtain goal [turbine:setup]
> >>
> --------------------------------------------------------------------------
> | Plugin Configuration Error |
> --------------------------------------------------------------------------
>
> A required property is missing a value.
>
> Property name: maven.appserver.home
>
> Errors must be corrected before using this plugin.
>
> --------------------------------------------------------------------------
> -------------------------------------------------------------------------------
> BUILD FAILED
> -------------------------------------------------------------------------------
> Total time : 1 seconds
> Finished at : Friday, March 12, 2010 10:38:04 PM EST
> Final Memory : 2M/5M
> -------------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@turbine.apache.org
> For additional commands, e-mail: user-help@turbine.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@turbine.apache.org
For additional commands, e-mail: user-help@turbine.apache.org