Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Commit

Permalink
Add new stacks-archetype (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michail Kuznetsov committed Jun 22, 2017
1 parent f2c6c1c commit d250b58
Show file tree
Hide file tree
Showing 17 changed files with 930 additions and 0 deletions.
110 changes: 110 additions & 0 deletions stacks-archetype/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012-2017 Codenvy, S.A.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Codenvy, S.A. - initial API and implementation
-->
<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>
<parent>
<artifactId>eclipse-che-archetype-parent</artifactId>
<groupId>org.eclipse.che.archetype</groupId>
<version>5.13.0-SNAPSHOT</version>
</parent>
<groupId>org.eclipse.che.archetype</groupId>
<artifactId>stacks-archetype</artifactId>
<packaging>maven-archetype</packaging>
<name>stacks-archetype</name>
<description>Contains sample stack packaging module, for using custom stacks in assemblies</description>
<build>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-webdav-jackrabbit</artifactId>
<version>2.7</version>
</extension>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-file</artifactId>
<version>2.7</version>
</extension>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http</artifactId>
<version>2.7</version>
</extension>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>2.3</version>
</extension>
</extensions>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.3</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/assembly/pom.xml</exclude>
<exclude>**/goal.txt</exclude>
<exclude>**/archetype-resources/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-various-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.eclipse.che.archetype</groupId>
<artifactId>che-archetype-resources</artifactId>
<outputDirectory>${project.build.outputDirectory}/archetype-resources</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<replace dir="${project.build.outputDirectory}/archetype-resources" token="$${cheVersion}" value="${che.version}" />
<replace dir="${project.build.outputDirectory}/archetype-resources" token="$${codenvyVersion}" value="${codenvy.version}" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012-2017 Codenvy, S.A.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Codenvy, S.A. - initial API and implementation
-->
<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="stacks-parent"
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="false" encoding="UTF-8">
<directory></directory>
<includes>
<include>build.include</include>
<include>build.sh</include>
<include>run.sh</include>
<include>stop.sh</include>
<include>LICENSE</include>
<include>.mvn/*</include>
</includes>
</fileSet>
</fileSets>
<modules>
<module id="ide" dir="ide" name="ide">
<modules>
<module id="__rootArtifactId__" dir="__rootArtifactId__" name="__rootArtifactId__">
<fileSets>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/main/resources</directory>
<includes>
<include>**/*.json</include>
<include>**/*.svg</include>
</includes>
</fileSet>
</fileSets>
</module>
</modules>
</module>
<module id="stacks-archetype-assembly-parent" dir="assembly-che" name="stacks-archetype-assembly-parent">
<modules>
<module id="assembly-wsmaster-war" dir="assembly-wsmaster-war" name="assembly-wsmaster-war">
</module>
<module id="assembly-main" dir="assembly-main" name="assembly-main">
<fileSets>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/assembly</directory>
<includes>
<include>**/*.xml</include>
</includes>
</fileSet>
</fileSets>
</module>
</modules>
</module>
<module id="stacks-archetype-assembly-parent" dir="assembly-codenvy" name="stacks-archetype-assembly-parent">
<modules>
<module id="assembly-wsmaster-war" dir="assembly-wsmaster-war" name="assembly-wsmaster-war">
</module>
<module id="assembly-main" dir="assembly-main" name="assembly-main">
<fileSets>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/assembly</directory>
<includes>
<include>**/*.xml</include>
</includes>
</fileSet>
</fileSets>
</module>
</modules>
</module>
</modules>
</archetype-descriptor>
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012-2017
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>stacks-archetype-assembly-parent</artifactId>
<groupId>${groupId}.che</groupId>
<version>${version}</version>
</parent>
<artifactId>${artifactId}</artifactId>
<packaging>pom</packaging>
<name>Stacks Sample :: Che Assembly :: Assemblies Tomcat</name>
<dependencies>
<dependency>
<groupId>${groupId}.che</groupId>
<artifactId>assembly-wsmaster-war</artifactId>
<type>war</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<updateOnly>false</updateOnly>
<descriptor>${project.basedir}/src/assembly/assembly.xml</descriptor>
<finalName>eclipse-che-${project.version}</finalName>
<tarLongFileMode>posix</tarLongFileMode>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-tomcat</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.eclipse.che</groupId>
<artifactId>assembly-main</artifactId>
<type>zip</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/dependency</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
<!--
Copyright (c) 2012-2017
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
-->
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>tomcat-zip</id>
<formats>
<format>dir</format>
<format>zip</format>
<format>tar.gz</format>
</formats>
<dependencySets>
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
<unpack>false</unpack>
<outputDirectory>tomcat/webapps</outputDirectory>
<outputFileNameMapping>wsmaster.war</outputFileNameMapping>
<includes>
<include>${groupId}.che:assembly-wsmaster-war</include>
</includes>
</dependencySet>
</dependencySets>

<fileSets>
<fileSet>
<directory>${symbol_dollar}{project.build.directory}/dependency/eclipse-che-${symbol_dollar}{che.version}</directory>
<outputDirectory></outputDirectory>
<excludes>
<exclude>**/tomcat/webapps/wsmaster.war</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012-2017
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
-->
<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>
<parent>
<artifactId>stacks-archetype-assembly-parent</artifactId>
<groupId>${groupId}.che</groupId>
<version>${version}</version>
</parent>
<artifactId>${artifactId}</artifactId>
<packaging>war</packaging>
<name>Stacks Sample :: Che Assembly :: Workspace Master War Packaging</name>
<dependencies>
<dependency>
<groupId>org.eclipse.che</groupId>
<artifactId>assembly-wsmaster-war</artifactId>
<type>war</type>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>che-stacks-sample</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<configuration>
<skip>true</skip>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<overlays>
<overlay>
<groupId>org.eclipse.che</groupId>
<artifactId>assembly-wsmaster-war</artifactId>
<type>war</type>
<includes>
<include>**/**</include>
<include>META-INF/context.xml</include>
<include>META-INF/web.xml</include>
</includes>
<excludes>
<exclude>WEB-INF/lib/che-core-ide-stacks-${che.version}.jar</exclude>
</excludes>
</overlay>
</overlays>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit d250b58

Please sign in to comment.