Skip to content

Commit

Permalink
Maven SDL compatibility & plugin updates.
Browse files Browse the repository at this point in the history
maven-sources-plugin simply jars the sourceDirectory to create the
-sources artifact. We don't have empty dirs for the package path and
there's no way to configure maven-sources-plugin to prepend path.
Create a .mvn-compat directory at top level and symlink it
src/main/java/<pkg-path> to top level src/ directory.

Update's `pom.xml.in' with the new `sourceDirectory' and while there
add the missing version decleration to maven-sources-plugin and update
maven-jar-plugin.

Change-Id: Iea9882a52dee293be2d916c45c65b5bc878e16c3
Signed-off-by: Benoit Sigoure <[email protected]>
  • Loading branch information
bdd authored and tsuna committed Mar 6, 2012
1 parent acc717e commit 0ac8227
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .mvn-compat/src/main/java/org/hbase/async
1 change: 1 addition & 0 deletions .mvn-compat/src/test/java/org/hbase/async
5 changes: 3 additions & 2 deletions pom.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<packaging>jar</packaging>

<build>
<sourceDirectory>src</sourceDirectory>
<sourceDirectory>.mvn-compat/src/main/java</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory>

<plugins>
Expand All @@ -69,6 +69,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -81,7 +82,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<version>2.8.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down

0 comments on commit 0ac8227

Please sign in to comment.