]> source.dussan.org Git - pf4j.git/commitdiff
prepare for maven central repository
authorDecebal Suiu <decebal.suiu@gmail.com>
Tue, 16 Oct 2012 12:12:43 +0000 (15:12 +0300)
committerDecebal Suiu <decebal.suiu@gmail.com>
Tue, 16 Oct 2012 12:12:43 +0000 (15:12 +0300)
demo/app/pom.xml
demo/plugin1/pom.xml
demo/plugin2/pom.xml
pf4j/pom.xml
pom.xml

index 38867a92d7386afe3f3c1a7c538fea54e69c87b4..4a054a29bd211c7937ed07e64d63cbfd67f944d6 100644 (file)
@@ -23,6 +23,7 @@
 
     <properties>
         <main.class>ro.fortsoft.pf4j.demo.Boot</main.class>
+        <slf4j.version>1.6.4</slf4j.version>
     </properties>
     
     <build>
             <artifactId>pf4j</artifactId>
             <version>${project.version}</version>
         </dependency>    
+
         <dependency>
             <groupId>ro.fortsoft.pf4j.demo</groupId>
             <artifactId>pf4j-demo-api</artifactId>
             <version>${project.version}</version>
         </dependency>        
+
+        <!-- Logs -->
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>1.2.16</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>jul-to-slf4j</artifactId>
+            <version>${slf4j.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-log4j12</artifactId>
+            <version>${slf4j.version}</version>
+        </dependency>        
     </dependencies>
     
 </project>
index 99d467e7c41eb9592255cd3127c3698f31a60e16..06125df32c0d75fc2aa5ae7c0299362a43d0c85f 100644 (file)
             <version>${project.version}</version>
             <scope>provided</scope>
         </dependency>    
+
         <dependency>
             <groupId>ro.fortsoft.pf4j.demo</groupId>
             <artifactId>pf4j-demo-api</artifactId>
index c1b5cb3587b02dbfeb4cd7b29a2281c38a385015..88e043795ce066c7eb60592c31cfaa09aac4cfa8 100644 (file)
             <version>${project.version}</version>
             <scope>provided</scope>
         </dependency>    
+
         <dependency>
             <groupId>ro.fortsoft.pf4j.demo</groupId>
             <artifactId>pf4j-demo-api</artifactId>
index feae21a2b57e3db2ff353fdfea8ce1233ce5e704..0a286273e3bc2a89117a405e97bef0f025a70f37 100644 (file)
         <url>git@github.com/decebals/pf4j.git</url>
     </scm>
         
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <slf4j.version>1.6.4</slf4j.version>
-    </properties>   
-
-    <build>
-        <resources>
-            <resource>
-                <filtering>false</filtering>
-                <directory>src/main/java</directory>
-                <excludes>
-                    <exclude>**/*.java</exclude>
-                </excludes>
-            </resource>
-            <resource>
-                <directory>src/main/resources</directory>
-            </resource>
-        </resources>
-    
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <version>2.3.2</version>
-                <configuration>
-                    <source>1.6</source>
-                    <target>1.6</target>
-                    <optimize>true</optimize>
-                </configuration>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-war-plugin</artifactId>
-                <version>2.1.1</version>
-                <configuration>
-                    <warName>root</warName>
-                </configuration>
-            </plugin>
-            
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-release-plugin</artifactId>
-                <version>2.3</version>
-                <configuration>
-                    <goals>deploy</goals>
-                    <autoVersionSubmodules>true</autoVersionSubmodules>
-                    <tagNameFormat>release-@{project.version}</tagNameFormat>
-                </configuration>
-            </plugin>           
-        </plugins>
-    </build>
-
     <dependencies>
            <dependency>
                    <groupId>commons-lang</groupId>
             <version>1.9</version>
         </dependency>
 
-        <!-- Logs -->
-        <dependency>
-            <groupId>log4j</groupId>
-            <artifactId>log4j</artifactId>
-            <version>1.2.16</version>
-        </dependency>
-
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
-            <version>${slf4j.version}</version>
+            <version>1.6.4</version>
         </dependency>
-
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>jul-to-slf4j</artifactId>
-            <version>${slf4j.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-log4j12</artifactId>
-            <version>${slf4j.version}</version>
-        </dependency>        
     </dependencies>
+
 </project>
diff --git a/pom.xml b/pom.xml
index aa9c67d7010fd9fd73c660a126a8469d9708f7a4..6f19cd2df1ae27e4721726e47adf8f0c81b3b9fa 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -1,6 +1,12 @@
 <?xml version="1.0"?>
 <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">
     
+    <parent>
+               <groupId>org.sonatype.oss</groupId>
+               <artifactId>oss-parent</artifactId>
+               <version>7</version>
+       </parent>
+
     <modelVersion>4.0.0</modelVersion>
     <groupId>ro.fortsoft.pf4j</groupId>
     <artifactId>pom</artifactId>
@@ -25,7 +31,6 @@
         
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <slf4j.version>1.6.4</slf4j.version>
     </properties>   
 
     <build>
                 </configuration>
             </plugin>
             
+            <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-javadoc-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>jar</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-source-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>jar</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-release-plugin</artifactId>
                <module>demo</module>
        </modules>
 
+    <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>
+                        <executions>
+                            <execution>
+                                <id>sign-artifacts</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>sign</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
 </project>