First step, create a new war package with:
1 | jar -cvf mywebapp.war myproject
|
1 | jar -uvf mywebapp.war myproject
|
1 | jar -xvf mywebapp.war
|
The topics will be related to Information Technology, some of them will be: Linux and Bash scripting; Programming languages as Java, Nodejs; Frameworks for development as Spring; Continuous Integration Tools as Jenkins; DevOps; Binary Repositories as Artifactory; Cloud computing; Design and Architecture; SCM tools as Subversion and Git; Build tools as maven and ant; Configuration management tools as Puppet; Various and possibly related to the IT world.
1 | jar -cvf mywebapp.war myproject
|
1 | jar -uvf mywebapp.war myproject
|
1 | jar -xvf mywebapp.war
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
application.name=${project.name}-${project.version}
application.package.name=${project.build.finalName}
$ mvn process-resources
application.name=myapp-1.0
application.package.name=my-app
<build>
<filters>
<filter>src/main/filters/filter.properties</filter>
</filters>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
devMode=true
application.name=${project.name}-${project.version} application.package.name=${project.build.finalName}
application.devMode=${devMode}
<properties>
<devMode>true</devMode>
</properties>
application.name=${project.name}-${project.version}
application.package.name=${project.build.finalName}
java.version=${java.version}
server.ip=${server.ip}
$ mvn process-resources "-Dserver.ip=localhost"
<project>
...
<build>
<plugins>
<plugin>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>maven-mybuild-plugin</artifactId>
<version>1.0</version>
<configuration>
<myString>a string</myString>
<myBoolean>true</myBoolean>
<myInteger>10</myInteger>
</configuration>
</plugin>
</plugins>
</build>
...
</project>
<project>
...
<build>
<plugins>
<plugin>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>maven-mybuild-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>execution1</id>
<phase>test</phase>
<configuration>
<myString>a string</myString>
<myBoolean>true</myBoolean>
<myInteger>10</myInteger>
</configuration>
<goals>
<goal>mygoal</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
</project>
<project>
...
<build>
<plugins>
<plugin>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>maven-mybuild-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>execution1</id>
<phase>test</phase>
<configuration>
<myString>a string</myString>
<myBoolean>true</myBoolean>
<myInteger>10</myInteger>
</configuration>
<goals>
<goal>mygoal</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>my-app</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
...
</project>
<project>
...
<build>
<plugins>
<plugin>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>maven-mybuild-plugin</artifactId>
<version>1.0</version>
<inherited>false</inherited>
.......
</plugin>
</plugins>
</build>
...
</project>
<project>
...
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${plugin.version}</version>
<reportSets>
<reportSet>
<reports>
<report>project-team</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
...
</project>
<reportSets>
<reportSet>
<reports/>
</reportSet>
</reportSets>
<inherited>false</inherited>
<project>
...
<dependencies>
<dependency>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>my-app</artifactId>
<version>1.0</version>
<exclusions>
<exclusion>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>my-artifact</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
</project>
<project>
...
<dependencies>
<dependency>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>my-artifact-b</artifactId>
<version>1.0</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
</project>
<project>
...
<dependencyManagement>
<dependencies>
<dependency>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>my-artifact-b</artifactId>
<version>1.0</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>my-app</artifactId>
<version>1.0</version>
<exclusions>
<exclusion>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>my-artifact</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>
<project>
...
<dependencies>
<dependency>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>my-artifact-b</artifactId>
<!-- This is not a jar dependency, so we must specify type. -->
<type>war</type>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
</dependencies>
</project>
<project>
...
<dependencies>
<dependency>
<groupId>it.blogspot.informaticaamodomio</groupId>
<artifactId>my-artifact-b</artifactId>
<!-- This is not a jar dependency, so we must specify type. -->
<type>war</type>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
</dependencies>
</project>
<dependency>
<groupId>${mydependency.groupId}</groupId>
<artifactId>${mydependency.artifactId}</artifactId>
<version>${mydependency.version}</version>
<scope>${mydependency.scope}</scope>
<type>${mydependecy.type}</type>
</dependency>
Hello everybody, Welcome in my blog called "Information technology archive". Obviously the topics will be related to Informatio...