Skip to content
Snippets Groups Projects
Commit 7bb9c86c authored by Goik Martin's avatar Goik Martin
Browse files

Completing resource part

parent 2c6c84d0
No related branches found
No related tags found
No related merge requests found
/target/
Final success via http://maven.apache.org/archetype/maven-archetype-plugin/examples/create-with-property-file.html
<archetype-catalog
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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">
<archetypes>
<archetype>
<groupId>de.hdm-stuttgart.mi</groupId>
<artifactId>mi-maven-archetype-quickstart</artifactId>
<version>1.0</version>
<repository>http://xtraservice.de/maven</repository>
<description>Modified from maven-archetype-quickstart using Java 1.8 and Junit 4.11</description>
</archetype>
</archetypes>
</archetype-catalog>
<?xml version="1.0" encoding="UTF-8"?>
<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="def"
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fileSets>
<fileSet filtered="true" packaged="true" encoding="UTF-8">
<directory>src/main/java</directory>
<includes>
<include>**/*.java</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
</includes>
</fileSet>
<fileSet filtered="true" packaged="true" encoding="UTF-8">
<directory>src/test/java</directory>
<includes>
<include>**/*.java</include>
</includes>
</fileSet>
</fileSets>
</archetype-descriptor>
<archetype xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0 http://maven.apache.org/xsd/archetype-1.0.0.xsd">
<id>mi-maven-archetype-quickstart</id>
<sources>
<source>src/main/java/App.java</source>
</sources>
<testSources>
<source>src/test/java/AppTest.java</source>
</testSources>
</archetype>
......@@ -7,7 +7,9 @@
<packaging>jar</packaging>
<name>mi-maven-archetype-quickstart</name>
<url>http://mi.hdm-stuttgart.de</url>
<!--Fixme: Add a sensible project related domain here -->
<url>http://somedomain.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
......@@ -20,6 +22,7 @@
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
......
......@@ -11,7 +11,7 @@ public class App {
public static void main( String[] args ) {
System.out.println( "Hello World!" );
log.debug("You may want to configure file log4j.properties");
log.debug("in folder resources to suit your needs.");
log.debug("With respect to logging you may want to configure file");
log.debug("'src/main/resources/log4j.properties' to suit your needs.");
}
}
......@@ -8,6 +8,8 @@ log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%p: %m at %c.%M(%C{1}.java:%L)%n
# Activate per-class or package logging rules if required. For example
# reducing logging to INFO level for class ${groupId}.${artifactId}.App
# can be achieved by un-commenting the following line:
# Specific log level per-class/package rules
#log4j.logger.somepackage.parse.Group=INFO
#log4j.logger.${groupId}.${artifactId}.App.parse.Group=INFO
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment