Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

plugin #7

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target/
.project
.settings
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The app demonstrates how to get a Sakai tool styled, internationalised and regis
The 1.1 and up releases also include multi database support via Spring JDBC. It could easily be used as a base for a real tool.

## Latest version
1.6.0, based on Wicket 6.25.0
1.6.0, based on Wicket 8.12.0

## Getting started

Expand Down
272 changes: 136 additions & 136 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,142 +1,142 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>

<name>Sakai Wicket Maven Archetype</name>

<groupId>org.sakaiproject.maven-archetype</groupId>
<artifactId>sakai-wicket-maven-archetype</artifactId>
<version>1.7-SNAPSHOT</version>
<packaging>maven-archetype</packaging>
<description>
The Sakai Wicket Maven Archetype allows you to generate a sample Sakai app via a single Maven command.
The app is based on Apache Wicket which integrates nicely with Sakai.
The app demonstrates how to get a Sakai tool styled, internationalised and registered, setup your own APIs, wire them up with Spring and inject them via annotations.
The 1.1 and up releases also include multi database support via Spring JDBC. It could easily be used as a base for a real tool.
</description>
<url>https://github.com/sakaiproject/sakai-wicket-maven-archetype</url>

<developers>
<developer>
<name>Steve Swinsburg</name>
<email>steve.swinsburg@gmail.com</email>
<timezone>10</timezone>
</developer>
</developers>
<contributors>
<contributor>
<name>Michael Mertins</name>
<email>mertins@zedat.fu-berlin.de</email>
<organization>Freie Universität Berlin</organization>
<timezone>1</timezone>
</contributor>
</contributors>

<organization>
<name>The Sakai Foundation</name>
<url>http://www.sakaiproject.org</url>
</organization>

<inceptionYear>2011</inceptionYear>

<licenses>
<license>
<name>Educational Community License, Version 2.0</name>
<url>http://www.opensource.org/licenses/ecl2.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<issueManagement>
<system>jira</system>
<url>https://jira.sakaiproject.org/browse/MARCH</url>
</issueManagement>

<scm>
<connection>scm:git:https://github.com/sakaiproject/sakai-wicket-maven-archetype/</connection>
<developerConnection>scm:git:https://github.com/sakaiproject/sakai-wicket-maven-archetype/</developerConnection>
<url>https://github.com/sakaiproject/sakai-wicket-maven-archetype/</url>
<tag>HEAD</tag>
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>9</version>
</parent>

<name>Sakai Wicket Maven Archetype</name>

<groupId>org.sakaiproject.maven-archetype</groupId>
<artifactId>sakai-wicket-maven-archetype</artifactId>
<version>1.7-SNAPSHOT</version>
<packaging>maven-archetype</packaging>
<description>
The Sakai Wicket Maven Archetype allows you to generate a sample Sakai app via a single Maven command.
The app is based on Apache Wicket which integrates nicely with Sakai.
The app demonstrates how to get a Sakai tool styled, internationalised and registered, setup your own APIs, wire them up with Spring and inject them via annotations.
The 1.1 and up releases also include multi database support via Spring JDBC. It could easily be used as a base for a real tool.
</description>
<url>https://github.com/sakaiproject/sakai-wicket-maven-archetype</url>

<developers>
<developer>
<name>Steve Swinsburg</name>
<email>steve.swinsburg@gmail.com</email>
<timezone>10</timezone>
</developer>
</developers>
<contributors>
<contributor>
<name>Michael Mertins</name>
<email>mertins@zedat.fu-berlin.de</email>
<organization>Freie Universität Berlin</organization>
<timezone>1</timezone>
</contributor>
</contributors>

<organization>
<name>The Sakai Foundation</name>
<url>http://www.sakaiproject.org</url>
</organization>

<inceptionYear>2011</inceptionYear>

<licenses>
<license>
<name>Educational Community License, Version 2.0</name>
<url>http://www.opensource.org/licenses/ecl2.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<issueManagement>
<system>jira</system>
<url>https://jira.sakaiproject.org/browse/MARCH</url>
</issueManagement>

<scm>
<connection>scm:git:https://github.com/sakaiproject/sakai-wicket-maven-archetype/</connection>
<developerConnection>scm:git:https://github.com/sakaiproject/sakai-wicket-maven-archetype/</developerConnection>
<url>https://github.com/sakaiproject/sakai-wicket-maven-archetype/</url>
<tag>HEAD</tag>
</scm>
<prerequisites>
<maven>2.2.1</maven>
</prerequisites>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<build>

<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.0</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<!-- release plugin, special setup for gpg signing -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.3</version>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
</configuration>
</plugin>
</plugins>

<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>2.0</version>
</extension>
</extensions>

</build>

<!-- release profile to sign the artifacts -->
<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<prerequisites>
<maven>3.5.0</maven>
</prerequisites>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<build>

<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>3.2.0</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<!-- release plugin, special setup for gpg signing -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
</configuration>
</plugin>
</plugins>

<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>3.2.0</version>
</extension>
</extensions>

</build>

<!-- release profile to sign the artifacts -->
<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>


</project>
10 changes: 8 additions & 2 deletions src/main/resources/META-INF/maven/archetype-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
<include>**/*.java</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/webapp</directory>
<includes>
<include>**/*.xml</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/resources</directory>
<includes>
Expand All @@ -62,7 +68,7 @@
</fileSet>
</fileSets>
</module>
<module id="${rootArtifactId}-pack" dir="pack" name="${rootArtifactId}-pack">
<!-- <module id="${rootArtifactId}-pack" dir="pack" name="${rootArtifactId}-pack">
<fileSets>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/webapp</directory>
Expand All @@ -71,6 +77,6 @@
</includes>
</fileSet>
</fileSets>
</module>
</module> -->
</modules>
</archetype-descriptor>
42 changes: 18 additions & 24 deletions src/main/resources/archetype-resources/api/pom.xml
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<name>${rootArtifactId} - API</name>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<modelVersion>4.0.0</modelVersion>
<name>${rootArtifactId} - API</name>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>

<packaging>jar</packaging>
<packaging>jar</packaging>

<properties>
<deploy.target>shared</deploy.target>
</properties>
<dependencies>
<properties>
<deploy.target>shared</deploy.target>
</properties>
<dependencies>

<!-- project dependencies -->

<!-- third party dependencies -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!-- project dependencies -->

<!-- Sakai dependencies -->
<!-- Sakai dependencies -->
<dependency>
<groupId>org.sakaiproject.kernel</groupId>
<artifactId>sakai-kernel-api</artifactId>
</dependency>
</dependencies>
<build />
</dependencies>
<build />
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#set( $symbol_escape = '\' )
package ${package}.logic;

import java.util.Locale;


/**
* An interface to abstract all Sakai related API calls in a central method that can be injected into our app.
*
Expand Down Expand Up @@ -60,4 +63,9 @@ public interface SakaiProxy {
* @return
*/
public String getConfigParam(String param, String dflt);

/**
* @return
*/
public Locale getCurrentUserLocale();
}
Loading