Permalink
Browse files

Fix localization integration

  • Loading branch information...
1 parent 8406d5a commit 96c33c0aad66964e2f3468f80832fb0928a5fffd @mbastian mbastian committed Oct 23, 2012
Showing with 33 additions and 51 deletions.
  1. +33 −0 modules/application/pom.xml
  2. +0 −51 modules/branding/pom.xml
@@ -443,6 +443,17 @@
zip and the autoupdate site. It can be used with deploy-dmg to include the dmg as well. -->
<profile>
<id>deployment</id>
+
+ <!-- Localization dependency -->
+ <dependencies>
+ <dependency>
+ <groupId>org.netbeans</groupId>
+ <artifactId>platform-localization</artifactId>
+ <type>zip</type>
+ <version>${gephi.platform.localization.version}</version>
+ </dependency>
+ </dependencies>
+
<build>
<plugins>
@@ -498,6 +509,28 @@
</execution>
</executions>
</plugin>
+
+ <!-- Unpack the localization dependency -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>unpack-dependencies</goal>
+ </goals>
+ <configuration>
+ <includeGroupIds>org.netbeans</includeGroupIds>
+ <includeArtifactIds>platform-localization</includeArtifactIds>
+ <outputDirectory>
+ ${project.build.directory}/${brandingToken}
+ </outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
View
@@ -22,21 +22,6 @@
<build>
<plugins>
-
- <!-- Add localization as NBM resource -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>nbm-maven-plugin</artifactId>
- <configuration>
- <nbmResources>
- <nbmResource>
- <directory>${project.build.directory}/localization</directory>
- <targetPath>.</targetPath>
- </nbmResource>
- </nbmResources>
- </configuration>
- </plugin>
-
<!-- Copy and filtering tasks -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
@@ -84,46 +69,10 @@
</execution>
</executions>
</plugin>
-
- <!-- Unpack the localization dependency -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>unpack</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>unpack-dependencies</goal>
- </goals>
- <configuration>
- <includeGroupIds>org.netbeans</includeGroupIds>
- <includeArtifactIds>platform-localization</includeArtifactIds>
- <outputDirectory>
- ${project.build.directory}/localization
- </outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
<profiles>
- <profile>
- <!-- The deployment profile is built for daily releases. It builts everything except the installers -->
- <id>deployment</id>
- <!-- Dependency on the localization ZIP on the 3rd party repository -->
- <dependencies>
- <dependency>
- <groupId>org.netbeans</groupId>
- <artifactId>platform-localization</artifactId>
- <type>zip</type>
- <version>${gephi.platform.localization.version}</version>
- </dependency>
- </dependencies>
- </profile>
-
<!-- Release profile -->
<profile>
<id>release</id>

0 comments on commit 96c33c0

Please sign in to comment.