Monday, 29.04.2024, 13:35
Welcome Guest | RSS

Tapestry learning

Site menu
Statistics

How to start

Setting up a development environment:
1. Install Java Development Kit (you can download it from http://www.java.com/en/download/index.jsp).
2. In Start-Settings-Control Panel-System-Advanced-Environment Variables to set the variable JAVA_HOME (for example, C:\ProgramFiles\Java\jdk1.6.0_16).
3. Environment variable to set a variable JRE_HOME (eg, C:\Program Files\Java\jdk1.6.0_16\jre).
4. In the PATH environment variable add C:\Program Files\Java\jdk1.6.0_16\bin\.
5. Install NetBeans from the distribution (you can download it from http://www.netbeans.org/downloads/index.html).
6. In the configuration file for NetBeans C:\Program Files\NetBeans 6.8\etc\netbeans.conf added the in
netbeans_default_options = -J-Dfile.encoding = UTF-8 (All of which add to the line that in quotes).
7. Download Maven from http://maven.apache.org/download.html and unpack it in C:\apache-maven or another place.
8. Create a folder for example C:\maven-repo to repo Maven.
9. Edit the following sections of the C:\apache-maven\conf\settings.xml:
<localRepository> C:\maven-repo\m2 </ localRepository>
and if you need
<proxy>
      
<id> optional </ id>
      
<active> true </ active>
      
<protocol> http </ protocol>
      
<username> </ username>
      
<password> </ password>
      
<host> 172.16.1.254 </ host>
      
<port> 8080 </ port>
      
<nonProxyHosts> localhost </ nonProxyHosts>
</ proxy>
ITEMS 10-13 is not required in the event of its share of problems with installation of external Apache Tomcat YOU CAN USE the Apache TomCat 6.0.18 (as of this writing) that goes in the distribution Netbeans from http://www.netbeans.org/downloads/index.html
10. Download Apache TomCat from http://tomcat.apache.org.
11. Install Apache TomCat (enter root password - and specify any path to the JRE) (for example, C:\Program Files\Java\jdk1.6.0_16\jre).
12. Go to the tab in the NetBeans Services (in the box on the left), right-click on Servers, then click Add Server ... and go through the wizard, which connects to the NetBeans Apache TomCat.
13. Run NetBeans, do Tools-Options-Miscellaneous-Maven. In the External Maven Home indicate the location of Maven
(C:\apache-maven).
14. In the Global Execution Options add: 
-- fail-fast -Djava.util.logging.config.file = "logging.properties"
15. In the Local Repository to add the path to the repository (C:\maven-repo\m2)
16. Select Tools-Plugins-Downloaded. Click Add Plugin and install plug-ins:
org-netbeans-modules-tapestry.nbm
org-netbeans-modules-tapestry-codetemplates.nbm
org-netbeans-modules-web-tapestry-templates.nbm
(They can take with https://nbtapestrysupport.dev.java.net - description, https://nbtapestrysupport.dev.java.net/servlets/ProjectDocumentList?FolderID=11159&expandFolder=11159&folderID=0-position).
They will be listed in Tools-Plugins-Installed-User Installed Plugins
Reboot the IDE.
17. Include tips javadoc - Tools-Options-Editord-Hints. By clicking near Javadoc, Create Javadoc, Error in Javadoc.
18. Add Javadoc window in the IDE: Windows-Other-Javadoc. In the resulting window will be displayed documentation elements highlighted in the main window (or under-Hsia in a row where the cursor is, moreover, if the element is commented in terms of Javadoc after his selection on the left, you are prompted with the actions of Javadoc, you can use the Tools-Analyze Javadoc for automatic generirova-tion comments (cursor must be in the main window)).
19. For correct display of characters in the project file in the file pom.xml (in the folder Project Files) in the plugins section must be connected plugin Javadoc:
      <plugin>
           <artifactId> maven-javadoc-plugin </ artifactId>
                
<version> 2.6 </ version>
                
<configuration>
                    
<encoding> UTF-8 </ encoding>
                
</ Configuration>
      </ plugin>
20. Javadoc for the current project is generated by the command Run-Generate Javadoc, documentation pages are located in the folder target/site/apidocs project (the project file structure is displayed on the Files tab of the navigator (left)).
Setting up the environment is complete.

Search
Entries archive

Copyright ZmeyStudio © 2024
Hosted by uCoz