- Installed JDK JavaSE (1.7 is recommend)
- Installed Apache Maven
- Internet connection (to download dependencies by maven)
- [optional] a IDE like Eclipse or IntelliJ IDEA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Official Lua community site ### | |
http://lua-users.org/ | |
### Lua cumunity wiki ### | |
http://lua-users.org/wiki/ | |
### Lua Documentation ### | |
http://www.lua.org/docs.html | |
#### Lua 5.2 Reference Manual ### |
Goto http://www.sonatype.com/ and click on 'Resources'. Then click on 'Books' and select 'Repository Management with Nexus'. You can download the pdf file or you can read it online.
Goto http://www.sonatype.com/ and click on 'Resources'. Then click on 'Books' and select 'Maven by Example'. You can download the pdf file or you can read it online.
Goto http://www.sonatype.com/ and click on 'Resources'. Then click on 'Books' and select 'Maven: The Complete Reference'.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Substitute appropriate type. | |
ArrayList<...> a = new ArrayList<...>(); | |
// Add elements to list. | |
// Generate an iterator. Start just after the last element. | |
ListIterator li = a.listIterator(a.size()); | |
// Iterate in reverse. | |
while(li.hasPrevious()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<resources> | |
<resource> | |
<!-- define a folder 'etc' where the resource files a stored --> | |
<targetPath>../daemon/appassembler/jsw/parameterdb-daemon/etc</targetPath> | |
<directory>${project.basedir}/src/main/resources/</directory> | |
<includes> | |
<include>**/*.xls</include> | |
<include>**/*.xml</include> | |
<include>**/*.properties</include> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example if a jar file called 'maryclient.jar' is stored in 'lib' folder in project root. | |
# The parameter of '-Durl' need a full path name to local repository | |
$> mvn deploy:deploy-file -Dfile=".\lib\maryclient.jar" -DgroupId=de.mary.dfki -DartifactId=maryclient -Dversion=1.0 -Dpackaging=jar -Durl="file://C:\Users\domann\workspace\juno\SmartNutritionAssistant\CookingAssistant\repo" | |
# After the import is finished. The project structure should be like this: | |
project | |
| | |
+--src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example; | |
import java.beans.XMLEncoder; | |
import java.io.ByteArrayOutputStream; | |
import java.util.Vector; | |
public class XmlEncodeToString { | |
public static void main(String[] args) throws Exception { |
NewerOlder