You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by gn...@apache.org on 2006/08/30 17:17:51 UTC
svn commit: r438518 - in /geronimo/xbean/trunk: pom.xml xbean-spring/pom.xml
Author: gnodet
Date: Wed Aug 30 08:17:51 2006
New Revision: 438518
URL: http://svn.apache.org/viewvc?rev=438518&view=rev
Log:
Hack to generate a correct source file for xbean-spring bundle
Modified:
geronimo/xbean/trunk/pom.xml
geronimo/xbean/trunk/xbean-spring/pom.xml
Modified: geronimo/xbean/trunk/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/pom.xml?rev=438518&r1=438517&r2=438518&view=diff
==============================================================================
--- geronimo/xbean/trunk/pom.xml (original)
+++ geronimo/xbean/trunk/pom.xml Wed Aug 30 08:17:51 2006
@@ -229,7 +229,14 @@
</dependencies>
+ <properties>
+ <performRelease>true</performRelease>
+ </properties>
+
<build>
+
+ <defaultGoal>install</defaultGoal>
+
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -247,7 +254,20 @@
<tagBase>https://svn.apache.org/repos/asf/geronimo/xbean/tags</tagBase>
</configuration>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
+
</build>
<modules>
Modified: geronimo/xbean/trunk/xbean-spring/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring/pom.xml?rev=438518&r1=438517&r2=438518&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-spring/pom.xml (original)
+++ geronimo/xbean/trunk/xbean-spring/pom.xml Wed Aug 30 08:17:51 2006
@@ -81,7 +81,7 @@
</dependency>
</dependencies>
-
+
<build>
<plugins>
<plugin>
@@ -96,6 +96,7 @@
</goals>
<configuration>
<outputDirectory>target/classes</outputDirectory>
+ <unpackMarkersDirectory>target/classes-marker</unpackMarkersDirectory>
<artifactItems>
<artifactItem>
<groupId>org.apache.xbean</groupId>
@@ -125,17 +126,60 @@
</artifactItems>
</configuration>
</execution>
+ <execution>
+ <id>get-sources</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>target/sources</outputDirectory>
+ <unpackMarkersDirectory>target/sources-marker</unpackMarkersDirectory>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.xbean</groupId>
+ <artifactId>xbean-spring-common</artifactId>
+ <version>${pom.version}</version>
+ <classifier>sources</classifier>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.apache.xbean</groupId>
+ <artifactId>xbean-spring-v1</artifactId>
+ <version>${pom.version}</version>
+ <classifier>sources</classifier>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.apache.xbean</groupId>
+ <artifactId>xbean-spring-v2</artifactId>
+ <version>${pom.version}</version>
+ <classifier>sources</classifier>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.apache.xbean</groupId>
+ <artifactId>xbean-spring-v2a</artifactId>
+ <version>${pom.version}</version>
+ <classifier>sources</classifier>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.apache.xbean</groupId>
+ <artifactId>xbean-spring-v2b</artifactId>
+ <version>${pom.version}</version>
+ <classifier>sources</classifier>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
</executions>
</plugin>
- <!--
- HACK: Need to copy classes for clover, since it deployes a -clover artifact
- and uses that for a dependency when other modules run (lame).
- -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
+ <!--
+ HACK: Need to copy classes for clover, since it deployes a -clover artifact
+ and uses that for a dependency when other modules run (lame).
+ -->
<execution>
<id>copy-classes-for-clover</id>
<phase>process-classes</phase>
@@ -153,7 +197,44 @@
</tasks>
</configuration>
</execution>
+
+ <execution>
+ <id>generate-source-jar</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <jar destfile="${pom.basedir}/target/${pom.artifactId}-${pom.version}-sources.jar"
+ basedir="${pom.basedir}/target/sources" />
+ </tasks>
+ </configuration>
+ </execution>
</executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>${pom.basedir}/target/${pom.artifactId}-${pom.version}-sources.jar</file>
+ <type>jar</type>
+ <classifier>sources</classifier>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>