Skip to content

Commit 5f12476

Browse files
committed
move server project in a subdirectory
1 parent b11b320 commit 5f12476

File tree

10 files changed

+112
-71
lines changed

10 files changed

+112
-71
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,3 @@ npm-debug.log
2424
.rubygems-gem-maven-plugin
2525
*.sublime-*
2626
.temp/
27-
28-
29-
# Projekt-specific additions
30-
dependency-reduced-pom.xml

maven-nodejs-proxy/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dependency-reduced-pom.xml

maven-nodejs-proxy/pom.xml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
#%L
4+
wcm.io
5+
%%
6+
Copyright (C) 2015 wcm.io
7+
%%
8+
Licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this file except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
#L%
20+
-->
21+
22+
<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">
23+
<modelVersion>4.0.0</modelVersion>
24+
25+
<parent>
26+
<groupId>io.wcm.devops</groupId>
27+
<artifactId>io.wcm.devops.parent_toplevel</artifactId>
28+
<version>1.0.0</version>
29+
<relativePath />
30+
</parent>
31+
32+
<groupId>io.wcm.devops.maven</groupId>
33+
<artifactId>io.wcm.devops.maven.nodejs-proxy</artifactId>
34+
<version>1.0.0-SNAPSHOT</version>
35+
<packaging>jar</packaging>
36+
37+
<name>Maven NodeJS Proxy</name>
38+
<description>Maven proxy to download NodeJS binaries as Maven artifacts.</description>
39+
40+
<properties>
41+
<dropwizard.version>0.9.0-rc4</dropwizard.version>
42+
</properties>
43+
44+
<dependencies>
45+
<dependency>
46+
<groupId>io.dropwizard</groupId>
47+
<artifactId>dropwizard-core</artifactId>
48+
<version>${dropwizard.version}</version>
49+
</dependency>
50+
</dependencies>
51+
52+
<build>
53+
<plugins>
54+
55+
<plugin>
56+
<groupId>org.apache.maven.plugins</groupId>
57+
<artifactId>maven-shade-plugin</artifactId>
58+
<version>2.3</version>
59+
<configuration>
60+
<createDependencyReducedPom>true</createDependencyReducedPom>
61+
<filters>
62+
<filter>
63+
<artifact>*:*</artifact>
64+
<excludes>
65+
<exclude>META-INF/*.SF</exclude>
66+
<exclude>META-INF/*.DSA</exclude>
67+
<exclude>META-INF/*.RSA</exclude>
68+
</excludes>
69+
</filter>
70+
</filters>
71+
</configuration>
72+
<executions>
73+
<execution>
74+
<phase>package</phase>
75+
<goals>
76+
<goal>shade</goal>
77+
</goals>
78+
<configuration>
79+
<transformers>
80+
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
81+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
82+
<mainClass>com.example.helloworld.HelloWorldApplication</mainClass>
83+
</transformer>
84+
</transformers>
85+
</configuration>
86+
</execution>
87+
</executions>
88+
</plugin>
89+
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-jar-plugin</artifactId>
93+
<configuration>
94+
<archive>
95+
<manifest>
96+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
97+
</manifest>
98+
</archive>
99+
</configuration>
100+
</plugin>
101+
102+
</plugins>
103+
</build>
104+
105+
</project>

src/main/java/com/example/helloworld/HelloWorldApplication.java renamed to maven-nodejs-proxy/src/main/java/com/example/helloworld/HelloWorldApplication.java

File renamed without changes.

src/main/java/com/example/helloworld/HelloWorldConfiguration.java renamed to maven-nodejs-proxy/src/main/java/com/example/helloworld/HelloWorldConfiguration.java

File renamed without changes.

src/main/java/com/example/helloworld/core/Saying.java renamed to maven-nodejs-proxy/src/main/java/com/example/helloworld/core/Saying.java

File renamed without changes.

src/main/java/com/example/helloworld/health/TemplateHealthCheck.java renamed to maven-nodejs-proxy/src/main/java/com/example/helloworld/health/TemplateHealthCheck.java

File renamed without changes.

src/main/java/com/example/helloworld/resources/HelloWorldResource.java renamed to maven-nodejs-proxy/src/main/java/com/example/helloworld/resources/HelloWorldResource.java

File renamed without changes.

pom.xml

Lines changed: 6 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
</parent>
3131

3232
<groupId>io.wcm.devops.maven</groupId>
33-
<artifactId>io.wcm.devops.maven.nodejs-proxy</artifactId>
33+
<artifactId>io.wcm.devops.maven.nodejs-proxy.root</artifactId>
3434
<version>1.0.0-SNAPSHOT</version>
35-
<packaging>jar</packaging>
35+
<packaging>pom</packaging>
3636

37-
<name>Maven NodeJS Proxy</name>
37+
<name>Maven NodeJS Proxy Root</name>
3838
<description>Maven proxy to download NodeJS binaries as Maven artifacts.</description>
3939

4040
<scm>
@@ -44,69 +44,8 @@
4444
<tag>HEAD</tag>
4545
</scm>
4646

47-
<properties>
48-
<dropwizard.version>0.9.0-rc4</dropwizard.version>
49-
</properties>
50-
51-
<dependencies>
52-
<dependency>
53-
<groupId>io.dropwizard</groupId>
54-
<artifactId>dropwizard-core</artifactId>
55-
<version>${dropwizard.version}</version>
56-
</dependency>
57-
</dependencies>
58-
59-
<build>
60-
<plugins>
61-
62-
<plugin>
63-
<groupId>org.apache.maven.plugins</groupId>
64-
<artifactId>maven-shade-plugin</artifactId>
65-
<version>2.3</version>
66-
<configuration>
67-
<createDependencyReducedPom>true</createDependencyReducedPom>
68-
<filters>
69-
<filter>
70-
<artifact>*:*</artifact>
71-
<excludes>
72-
<exclude>META-INF/*.SF</exclude>
73-
<exclude>META-INF/*.DSA</exclude>
74-
<exclude>META-INF/*.RSA</exclude>
75-
</excludes>
76-
</filter>
77-
</filters>
78-
</configuration>
79-
<executions>
80-
<execution>
81-
<phase>package</phase>
82-
<goals>
83-
<goal>shade</goal>
84-
</goals>
85-
<configuration>
86-
<transformers>
87-
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
88-
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
89-
<mainClass>com.example.helloworld.HelloWorldApplication</mainClass>
90-
</transformer>
91-
</transformers>
92-
</configuration>
93-
</execution>
94-
</executions>
95-
</plugin>
96-
97-
<plugin>
98-
<groupId>org.apache.maven.plugins</groupId>
99-
<artifactId>maven-jar-plugin</artifactId>
100-
<configuration>
101-
<archive>
102-
<manifest>
103-
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
104-
</manifest>
105-
</archive>
106-
</configuration>
107-
</plugin>
108-
109-
</plugins>
110-
</build>
47+
<modules>
48+
<module>maven-nodejs-proxy</module>
49+
</modules>
11150

11251
</project>

0 commit comments

Comments
 (0)