Skip to content

Commit

Permalink
devonfw/ide#181: added settings to new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Aug 16, 2019
1 parent 7642e14 commit 49e9c69
Show file tree
Hide file tree
Showing 49 changed files with 12,138 additions and 13 deletions.
14 changes: 1 addition & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
*.bak
141 changes: 141 additions & 0 deletions checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">

<!--
This configuration file was written by the eclipse-cs plugin configuration editor
-->
<!--
Checkstyle-Configuration: devon
Description: none
-->
<module name="Checker">
<property name="severity" value="warning"/>
<property name="charset" value="UTF-8"/>
<module name="TreeWalker">
<module name="FileContentsHolder"/>
<module name="ConstantName"/>
<module name="LocalFinalVariableName"/>
<module name="LocalVariableName"/>
<module name="MemberName"/>
<module name="MethodName"/>
<module name="PackageName"/>
<module name="ParameterName"/>
<module name="StaticVariableName"/>
<module name="TypeName"/>
<module name="AvoidStarImport"/>
<module name="IllegalImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<module name="LineLength">
<property name="severity" value="info"/>
<property name="ignorePattern" value="^.*@see.*$"/>
<property name="max" value="128"/>
</module>
<module name="MethodLength">
<property name="max" value="250"/>
<property name="countEmpty" value="false"/>
</module>
<module name="ParameterNumber"/>
<module name="EmptyForIteratorPad"/>
<module name="MethodParamPad"/>
<module name="NoWhitespaceAfter">
<property name="tokens" value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
</module>
<module name="NoWhitespaceBefore"/>
<module name="OperatorWrap"/>
<module name="ParenPad"/>
<module name="TypecastParenPad"/>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround">
<property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAND,LCURLY,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND"/>
</module>
<module name="ModifierOrder"/>
<module name="RedundantModifier">
<property name="tokens" value="METHOD_DEF,VARIABLE_DEF,ANNOTATION_FIELD_DEF"/>
</module>
<module name="EmptyBlock">
<property name="option" value="text"/>
</module>
<module name="LeftCurly"/>
<module name="NeedBraces"/>
<module name="RightCurly"/>
<module name="AvoidNestedBlocks"/>
<module name="CovariantEquals"/>
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
<module name="HiddenField">
<property name="ignoreConstructorParameter" value="true"/>
<property name="ignoreSetter" value="true"/>
</module>
<module name="IllegalInstantiation"/>
<module name="InnerAssignment"/>
<module name="MissingSwitchDefault"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="StringLiteralEquality"/>
<module name="NestedIfDepth">
<property name="max" value="5"/>
</module>
<module name="NestedTryDepth">
<property name="max" value="5"/>
</module>
<module name="ParameterAssignment">
<property name="severity" value="warning"/>
</module>
<module name="VisibilityModifier"/>
<module name="SuperClone"/>
<module name="SuperFinalize"/>
<module name="PackageDeclaration"/>
<module name="DeclarationOrder"/>
<module name="DefaultComesLast"/>
<module name="MultipleVariableDeclarations"/>
<module name="MagicNumber">
<property name="ignoreNumbers" value="-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 16, 32, 64, 100, 128, 255, 256, 1000"/>
</module>
<module name="FinalClass"/>
<module name="HideUtilityClassConstructor"/>
<module name="JavadocMethod">
<property name="scope" value="protected"/>
</module>
<module name="JavadocType"/>
<module name="JavadocVariable">
<property name="scope" value="protected"/>
</module>
<module name="JavadocStyle">
<property name="checkHtml" value="false"/>
</module>
<module name="UpperEll"/>
<module name="ArrayTypeStyle"/>
<module name="TodoComment">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="BooleanExpressionComplexity">
<property name="severity" value="info"/>
</module>
<module name="CyclomaticComplexity">
<property name="severity" value="info"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="System.(out|err).print"/>
<property name="message" value="Use logger"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="System.exit"/>
<property name="message" value="Only exit from main methods (inside main() use SuppressionCommentFilter)"/>
</module>
</module>
<module name="FileLength"/>
<module name="FileTabCharacter"/>
<module name="JavadocPackage">
<property name="severity" value="info"/>
</module>
<module name="NewlineAtEndOfFile">
<property name="severity" value="info"/>
<property name="lineSeparator" value="lf"/>
</module>
<module name="Translation"/>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CHECKSTYLE\:OFF \([a-zA-Z].*\)"/>
</module>
</module>
61 changes: 61 additions & 0 deletions devon/conf/.m2/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<!-- The "localRepository" has to be set to ensure consistent behaviour across command-line and Eclipse.
To change it edit conf/variables-customized.bat -->
<localRepository>${M2_REPO}</localRepository>

<!--
ATTENTION:
Never ever hardcode passwords as plain text!!!
Instead simply follow this guide:
https://maven.apache.org/guides/mini/guide-encryption.html
devon-ide already genreates settings-security.xml for you
so all you need to do is call:
mvn -ep
hit return and then type your password (do not supply as argument as otherwise it will be saved to the history of your shell)
Then copy the encrypted password as according password to this settings.xml
-->
<servers>
<server>
<id>project</id>
<username>${USER}</username>
<!-- Put your encrypted password here -->
<password>TODO</password>
</server>
</servers>

<!--
<mirrors>
<mirror>
<id>nexus.central</id>
<mirrorOf>central</mirrorOf>
<name>central-mirror</name>
<url>https://my-production-line.s2-eu.capgemini.com/nexus3/repository/public</url>
</mirror>
</mirrors>
-->

<profiles>
<profile>
<id>devon-ide</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!--
<sonar.host.url>http://localhost:9000/</sonar.host.url>
<sonar.login>${USER}</sonar.login>
<sonar.password>TODO</sonar.password>
<jarsigner.storepass>TODO</jarsigner.storepass>
<jarsigner.keystore>/projects/myproject/workspaces/main/keystore.p12</jarsigner.keystore>
<gpg.keyname>[email protected]</gpg.keyname>
-->
</properties>
</profile>
</profiles>
<activeProfiles>
<!--
<activeProfile>my-profile</activeProfile>
-->
</activeProfiles>
</settings>
16 changes: 16 additions & 0 deletions devon/conf/devon.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#********************************************************************************
# This file contains user sepcific environment variables
# You may reconfigure some variables to tweak devon-ide to your personal needs
# However, you do so at your own risk!!!
# Only change variables if you know exactly what you are doing!!!
# For details see https://github.com/devonfw/devon-ide/wiki/configuration
#********************************************************************************

# Uncomment the following line to use your shared maven repository
# This will save diskspace but comes with the risk that other projects could
# accidentally (or due to an security attack) access and use artifacts from this project
# If you are working in a project that is highly sensitive never use this feature
#export M2_REPO=~/.m2/repository

# In case you are sitting behind a proxy these JVM options may help
#export JAVA_OPTS=-Dhttp.proxyHost=myproxy.com -Dhttp.proxyPort=8080
8 changes: 8 additions & 0 deletions devon/conf/npm/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This is the configuration file for npm and yarn
# See https://docs.npmjs.com/files/npmrc

# here some common examples for configurations:
#registry=https://registry.npmjs.org/
#@test-scope:registry=https://my-production-line.s2-eu.capgemini.com/nexus3/content/repository/npm/
#//https://my-production-line.s2-eu.capgemini.com/nexus3/content/repository/npm/:_authToken=...
#[email protected]
10 changes: 10 additions & 0 deletions devon/devon.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#********************************************************************************
# This file contains project sepcific environment variables
# For user-specific environment variables please edit
# ${DEVON_IDE_HOME}/conf/variables
# For details see https://github.com/devonfw/devon-ide/wiki/configuration
#********************************************************************************

# Uncomment the following line to get the legacy default config back for the settings
#SETTINGS_PATH=${DEVON_IDE_HOME}/workspaces/main/development/settings

13 changes: 13 additions & 0 deletions eclipse/archetype-catalog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0 http://maven.apache.org/xsd/archetype-catalog-1.0.0.xsd"
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<archetypes>
<archetype>
<groupId>com.devonfw.java.templates</groupId>
<artifactId>devon4j-template-server</artifactId>
<version>3.1.0</version>
<repository></repository>
</archetype>
</archetypes>
</archetype-catalog>
Loading

0 comments on commit 49e9c69

Please sign in to comment.