Commit 2fbd9339 by Tuomas Riihimäki

Move maven stuff around to allow mvn versions:set usage

1 parent 095c260d
...@@ -14,3 +14,4 @@ ...@@ -14,3 +14,4 @@
/code/*/test-output/ /code/*/test-output/
moya-git.properties moya-git.properties
*/*/bin */*/bin
pom.xml.versionsBackup
#!/bin/sh #!/bin/sh
exec mvn -f ${0%/*}/moya-parent/pom.xml ${@:-package} exec mvn -f ${0%/*}/pom.xml ${@:-package}
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
<artifactId>moya-authmodule-client</artifactId> <artifactId>moya-authmodule-client</artifactId>
<parent> <parent>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-parent-root</artifactId> <artifactId>moya</artifactId>
<version>1.0</version> <version>1.2-SNAPSHOT</version>
<relativePath>../moya-parent/pom-root.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<dependencies> <dependencies>
<dependency> <dependency>
...@@ -16,4 +16,5 @@ ...@@ -16,4 +16,5 @@
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file
...@@ -12,13 +12,13 @@ ...@@ -12,13 +12,13 @@
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-authmodule-client</artifactId> <artifactId>moya-authmodule-client</artifactId>
<version>${moya.version}</version> <version>1.2-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
<parent> <parent>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-parent-root</artifactId> <artifactId>moya</artifactId>
<version>1.0</version> <version>1.2-SNAPSHOT</version>
<relativePath>../moya-parent/pom-root.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
</project> </project>
\ No newline at end of file
...@@ -9,14 +9,14 @@ ...@@ -9,14 +9,14 @@
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-database</artifactId> <artifactId>moya-database</artifactId>
<version>${moya.version}</version> <version>1.2-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
<parent> <parent>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-parent</artifactId> <artifactId>moya-parent</artifactId>
<version>1.0</version> <version>1.2-SNAPSHOT</version>
<relativePath>../moya-parent/pom.xml</relativePath> <relativePath>../moya-parent/pom.xml</relativePath>
</parent> </parent>
</project> </project>
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<exclude>**/*.java</exclude> <exclude>**/*.java</exclude>
</excludes> </excludes>
</resource> </resource>
</resources> </resources>
<plugins> <plugins>
<plugin> <plugin>
...@@ -29,24 +29,18 @@ ...@@ -29,24 +29,18 @@
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-beans-client</artifactId> <artifactId>moya-beans-client</artifactId>
<version>${moya.version}</version> <version>1.2-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-authmodule-client</artifactId> <artifactId>moya-authmodule-client</artifactId>
<version>${moya.version}</version> <version>1.2-SNAPSHOT</version>
</dependency> </dependency>
<!-- <!-- <dependency> <groupId>javax.ejb</groupId> <artifactId>javax.ejb-api</artifactId>
<dependency> <version>3.2</version> <scope>test</scope> </dependency> -->
<groupId>javax.ejb</groupId>
<artifactId>javax.ejb-api</artifactId>
<version>3.2</version>
<scope>test</scope>
</dependency>
-->
<dependency> <dependency>
<groupId>org.glassfish.main.extras</groupId> <groupId>org.glassfish.main.extras</groupId>
<artifactId>glassfish-embedded-web</artifactId> <artifactId>glassfish-embedded-web</artifactId>
...@@ -58,7 +52,7 @@ ...@@ -58,7 +52,7 @@
<parent> <parent>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-parent</artifactId> <artifactId>moya-parent</artifactId>
<version>1.0</version> <version>1.2-SNAPSHOT</version>
<relativePath>../moya-parent/pom.xml</relativePath> <relativePath>../moya-parent/pom.xml</relativePath>
</parent> </parent>
</project> </project>
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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"> 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> <modelVersion>4.0.0</modelVersion>
<artifactId>moya-cardprinter</artifactId> <artifactId>moya-cardprinter</artifactId>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>ch.qos.logback</groupId> <groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId> <artifactId>logback-classic</artifactId>
<version>1.1.2</version> <version>1.1.2</version>
</dependency> </dependency>
</dependencies> </dependencies>
<parent> <parent>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-parent</artifactId> <artifactId>moya-parent</artifactId>
<version>1.0</version> <version>1.1-SNAPSHOT</version>
<relativePath>../moya-parent/pom.xml</relativePath> <relativePath>../moya-parent/pom.xml</relativePath>
</parent> </parent>
</project> </project>
\ No newline at end of file
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-utils</artifactId> <artifactId>moya-utils</artifactId>
<version>${moya.version}</version> <version>1.2-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ancoron.postgresql</groupId> <groupId>org.ancoron.postgresql</groupId>
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
<parent> <parent>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-parent</artifactId> <artifactId>moya-parent</artifactId>
<version>1.0</version> <version>1.2-SNAPSHOT</version>
<relativePath>../moya-parent/pom.xml</relativePath> <relativePath>../moya-parent/pom.xml</relativePath>
</parent> </parent>
</project> </project>
...@@ -34,26 +34,26 @@ ...@@ -34,26 +34,26 @@
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-beans</artifactId> <artifactId>moya-beans</artifactId>
<version>${moya.version}</version> <version>1.2-SNAPSHOT</version>
<type>ejb</type> <type>ejb</type>
</dependency> </dependency>
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-web</artifactId> <artifactId>moya-web</artifactId>
<version>${moya.version}</version> <version>1.2-SNAPSHOT</version>
<type>war</type> <type>war</type>
</dependency> </dependency>
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-mgmt-web</artifactId> <artifactId>moya-mgmt-web</artifactId>
<version>${moya.version}</version> <version>1.2-SNAPSHOT</version>
<type>war</type> <type>war</type>
</dependency> </dependency>
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-terminal-web</artifactId> <artifactId>moya-terminal-web</artifactId>
<version>${moya.version}</version> <version>1.2-SNAPSHOT</version>
<type>war</type> <type>war</type>
</dependency> </dependency>
</dependencies> </dependencies>
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-parent</artifactId> <artifactId>moya-parent</artifactId>
<relativePath>../moya-parent/pom.xml</relativePath> <relativePath>../moya-parent/pom.xml</relativePath>
<version>1.0</version> <version>1.2-SNAPSHOT</version>
</parent> </parent>
<profiles> <profiles>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-beans-client</artifactId> <artifactId>moya-beans-client</artifactId>
<version>${moya.version}</version> <version>1.2-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<parent> <parent>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-parent</artifactId> <artifactId>moya-parent</artifactId>
<version>1.0</version> <version>1.2-SNAPSHOT</version>
<relativePath>../moya-parent/pom.xml</relativePath> <relativePath>../moya-parent/pom.xml</relativePath>
</parent> </parent>
</project> </project>
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<artifactId>moya-parent</artifactId> <artifactId>moya-parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<modules> <modules>
<module>../moya-utils</module> <module>../moya-utils</module>
<module>../moya-authmodule</module>
<module>../moya-authmodule-client</module> <module>../moya-authmodule-client</module>
<module>../moya-database</module> <module>../moya-database</module>
<module>../moya-restpojo</module> <module>../moya-restpojo</module>
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<dependency> <dependency>
<groupId>fi.iudex</groupId> <groupId>fi.iudex</groupId>
<artifactId>utils-standalone</artifactId> <artifactId>utils-standalone</artifactId>
<version>1.0.12</version> <version>1.0.13</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.sf.barcode4j</groupId> <groupId>net.sf.barcode4j</groupId>
...@@ -150,8 +150,8 @@ ...@@ -150,8 +150,8 @@
<parent> <parent>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-parent-root</artifactId> <artifactId>moya</artifactId>
<version>1.0</version> <version>1.2-SNAPSHOT</version>
<relativePath>pom-root.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
</project> </project>
...@@ -2,42 +2,7 @@ ...@@ -2,42 +2,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 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> <modelVersion>4.0.0</modelVersion>
<artifactId>moya-restpojo</artifactId> <artifactId>moya-restpojo</artifactId>
<groupId>fi.codecrew.moya</groupId>
<version>1.0.7</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>2.7</version>
</extension>
</extensions>
</build>
<distributionManagement> <distributionManagement>
<downloadUrl>http://codecrew.fi/mvn</downloadUrl> <downloadUrl>http://codecrew.fi/mvn</downloadUrl>
<repository> <repository>
...@@ -47,12 +12,18 @@ ...@@ -47,12 +12,18 @@
</repository> </repository>
</distributionManagement> </distributionManagement>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.wordnik</groupId> <groupId>com.wordnik</groupId>
<artifactId>swagger-annotations</artifactId> <artifactId>swagger-annotations</artifactId>
<version>1.3.12</version> <version>${swagger.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<parent>
<groupId>fi.codecrew.moya</groupId>
<artifactId>moya</artifactId>
<version>1.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
</project> </project>
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<artifactId>moya-terminal-web</artifactId> <artifactId>moya-terminal-web</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-war-plugin</artifactId> <artifactId>maven-war-plugin</artifactId>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-beans-client</artifactId> <artifactId>moya-beans-client</artifactId>
<version>${moya.version}</version> <version>1.2-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.primefaces</groupId> <groupId>org.primefaces</groupId>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<parent> <parent>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-parent</artifactId> <artifactId>moya-parent</artifactId>
<version>1.0</version> <version>1.2-SNAPSHOT</version>
<relativePath>../moya-parent/pom.xml</relativePath> <relativePath>../moya-parent/pom.xml</relativePath>
</parent> </parent>
</project> </project>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<parent> <parent>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-parent</artifactId> <artifactId>moya-parent</artifactId>
<version>1.0</version> <version>1.2-SNAPSHOT</version>
<relativePath>../moya-parent/pom.xml</relativePath> <relativePath>../moya-parent/pom.xml</relativePath>
</parent> </parent>
<dependencies> <dependencies>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-beans-client</artifactId> <artifactId>moya-beans-client</artifactId>
<version>${moya.version}</version> <version>1.2-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.bull.javamelody</groupId> <groupId>net.bull.javamelody</groupId>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<dependency> <dependency>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-restpojo</artifactId> <artifactId>moya-restpojo</artifactId>
<version>1.0.7</version> <version>1.2-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<parent> <parent>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<artifactId>moya-parent</artifactId> <artifactId>moya-parent</artifactId>
<version>1.0</version> <version>1.2-SNAPSHOT</version>
<relativePath>../moya-parent/pom.xml</relativePath> <relativePath>../moya-parent/pom.xml</relativePath>
</parent> </parent>
......
...@@ -2,13 +2,18 @@ ...@@ -2,13 +2,18 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd"> http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>moya-parent-root</artifactId>
<groupId>fi.codecrew.moya</groupId> <groupId>fi.codecrew.moya</groupId>
<version>1.0</version> <artifactId>moya</artifactId>
<name>Moya Online Youth Accumulator</name> <name>Moya Online Youth Accumulator</name>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>1.2-SNAPSHOT</version>
<modules>
<module>moya-parent</module>
<module>moya-authmodule</module>
</modules>
<properties> <properties>
<moya.version>1.0</moya.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java-version>1.8</java-version> <java-version>1.8</java-version>
<!-- plugin versions --> <!-- plugin versions -->
...@@ -23,6 +28,7 @@ ...@@ -23,6 +28,7 @@
<ejb-spec-version>3.2</ejb-spec-version> <ejb-spec-version>3.2</ejb-spec-version>
<swagger.version>1.3.12</swagger.version> <swagger.version>1.3.12</swagger.version>
</properties> </properties>
<url>http://codecrew.fi</url> <url>http://codecrew.fi</url>
<organization> <organization>
<name>Codecrew RY</name> <name>Codecrew RY</name>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!