Skip to content

Commit

Permalink
Set up minimal maven build. Fixed licenses (#6)
Browse files Browse the repository at this point in the history
* Set up minimal maven build. Fixed licenses

* fixup! Set up minimal maven build. Fixed licenses

* Removed extra licenses added jetty plugin configuration
  • Loading branch information
skabashnyuk authored Dec 26, 2016
1 parent cc9878c commit a72010c
Show file tree
Hide file tree
Showing 13 changed files with 189 additions and 60 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
target/
_site/
*.swp
pkg/
Expand Down
118 changes: 118 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012-2016 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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>maven-depmgt-pom</artifactId>
<groupId>org.eclipse.che.depmgt</groupId>
<version>5.0.0-SNAPSHOT</version>
</parent>
<groupId>org.eclipse.che.docs</groupId>
<artifactId>che-docs</artifactId>
<version>5.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>Che :: Docs War</name>
<scm>
<connection>scm:git:git@github.com:codenvy/che-docs.git</connection>
<developerConnection>scm:git:git@github.com:codenvy/che-docs.git</developerConnection>
<tag>HEAD</tag>
</scm>
<properties>
<jetty.version>9.4.0.v20161208</jetty.version>
<maven.releases.repo.url>https://maven.codenvycorp.com/content/repositories/codenvy-private-releases/</maven.releases.repo.url>
<maven.snapshots.repo.url>https://maven.codenvycorp.com/content/repositories/codenvy-private-snapshots/</maven.snapshots.repo.url>
</properties>
<repositories>
<repository>
<id>codenvy-public-repo</id>
<name>codenvy public</name>
<url>https://maven.codenvycorp.com/content/groups/public/</url>
</repository>
<repository>
<id>codenvy-public-snapshots-repo</id>
<name>codenvy public snapshots</name>
<url>https://maven.codenvycorp.com/content/repositories/codenvy-public-snapshots/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>codenvy-public-repo</id>
<name>codenvy public</name>
<url>https://maven.codenvycorp.com/content/groups/public/</url>
</pluginRepository>
<pluginRepository>
<id>codenvy-public-snapshots-repo</id>
<name>codenvy public snapshots</name>
<url>https://maven.codenvycorp.com/content/repositories/codenvy-public-snapshots/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/**/*.html</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.version}</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<webApp>
<contextPath>/docs</contextPath>
</webApp>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<exec dir="${project.basedir}/src/main" executable="jekyll" failonerror="true">
<arg value="build" />
<arg value="--config" />
<arg value="${project.basedir}/src/main/_config.yml" />
<arg value="--destination" />
<arg value="${project.basedir}/target" />
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<webResources>
<resource>
<directory>target/docs</directory>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
</project>
11 changes: 11 additions & 0 deletions src/main/_config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#
# Copyright (c) 2012-2016 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
#

markdown: kramdown
highlighter: rouge

Expand Down
11 changes: 11 additions & 0 deletions src/main/_data/artik.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#
# Copyright (c) 2012-2016 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
#

- title: ARTIK IDE
artik:
- artik-start-windows
Expand Down
11 changes: 11 additions & 0 deletions src/main/_data/docs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#
# Copyright (c) 2012-2016 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
#

- title: SETUP
docs:
- che-setup-intro
Expand Down
11 changes: 11 additions & 0 deletions src/main/_data/openshift.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#
# Copyright (c) 2012-2016 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
#

- title: OPENSHIFT PLUG-IN FOR ECLIPSE CHE
openshift:
- openshift-config
Expand Down
11 changes: 11 additions & 0 deletions src/main/_data/tutorials.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#
# Copyright (c) 2012-2016 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
#

- title: User Tutorials
tutorials:
- tutorial-multi-machine
Expand Down
12 changes: 0 additions & 12 deletions src/main/_includes/primary-nav-items.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
<!--
Copyright (c) 2012-2016 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
-->
<ul>
<li class="{% if page.overview == true %}current{% endif %}">
<a href="{{ base }}/docs/index.html">Home</a>
Expand Down
12 changes: 0 additions & 12 deletions src/main/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
<!--
Copyright (c) 2012-2016 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
-->
{% include base.html %}
{% include top.html %}

Expand Down
12 changes: 0 additions & 12 deletions src/main/_layouts/error.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
<!--
Copyright (c) 2012-2016 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
-->
{% include top.html %}

<body class="wrap">
Expand Down
12 changes: 0 additions & 12 deletions src/main/_layouts/github-io.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
<!--
Copyright (c) 2012-2016 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
-->
{% assign base = '' %}
{% include top.html %}

Expand Down
12 changes: 12 additions & 0 deletions src/main/assets/imgs/logo-eclipseche.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 3 additions & 12 deletions src/main/docs.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
#!/bin/bash
#
# Copyright (c) 2012-2016 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:
# Tyler Jewell - Initial Implementation
#
# Hardcoded for windows right now.
# Need to make this configurable for our CI systems and to work on windows or linux.
#
# Optionally - you can run 'jekyll/jekyll jekyll serve' to get a local server on port 9080
# NOTE - these files will not work without a hosted server right now - they are not static stand alone
# Codenvy, S.A. - initial API and implementation
#
# Usage: bash docs.sh [--build|--run\
#
# --build - one-time generation of the Web site into _site
# --run - runs jekyll's Web server on port 9080
#

GLOBAL_HOST_ARCH=$(docker version --format {{.Client}} | cut -d" " -f5)

docker() {
Expand Down

0 comments on commit a72010c

Please sign in to comment.