Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WINDUP-3311] Create additional assembly with indexer text data instead of lucene index #99

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.windup.maven</groupId>
<artifactId>nexus-indexer-data-text</artifactId>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.jboss.windup.rules</groupId>
<artifactId>windup-rulesets</artifactId>
Expand Down Expand Up @@ -203,6 +208,18 @@
</descriptors>
</configuration>
</execution>
<execution>
<id>distribution-offline-lucene</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>${multi.module.project.basedir}/src/main/assembly/assembly-offline-lucene.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
1 change: 1 addition & 0 deletions src/main/assembly/assembly-no-index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<useProjectArtifact>false</useProjectArtifact>
<excludes>
<exclude>org.jboss.windup.maven:nexus-indexer-data:zip:*</exclude>
<exclude>org.jboss.windup.maven:nexus-indexer-data-text:zip:*</exclude>
</excludes>
</dependencySet>
</dependencySets>
Expand Down
88 changes: 88 additions & 0 deletions src/main/assembly/assembly-offline-lucene.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">

<id>offline-lucene</id>
<formats>
<format>zip</format>
</formats>

<baseDirectory>${project.build.finalName}</baseDirectory>

<!-- Add distribution files -->
<fileSets>
<fileSet>
<directory>../src/main/resources</directory>
<outputDirectory/>
<filtered>true</filtered>
<includes>
<include>/cli-version.txt</include>
<include>/README.txt</include>
</includes>
</fileSet>
<fileSet>
<directory>../src/main/resources</directory>
<outputDirectory/>
<filtered>false</filtered>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>/cli-version.txt</exclude>
<exclude>/README.txt</exclude>
</excludes>
</fileSet>

<fileSet>
<directory>${project.build.directory}/addons</directory>
<outputDirectory>addons</outputDirectory>
<includes>
<include>**</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.build.directory}/cache</directory>
<outputDirectory>cache</outputDirectory>
<includes>
<include>**</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.build.directory}/rules</directory>
<outputDirectory>rules/migration-core</outputDirectory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>openrewrite/</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.build.directory}/rules/openrewrite</directory>
<outputDirectory>rules/openrewrite</outputDirectory>
<includes>
<include>**</include>
</includes>
</fileSet>
</fileSets>

<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<excludes>
<exclude>org.jboss.windup.maven:nexus-indexer-data:zip:*</exclude>
<exclude>org.jboss.windup.maven:nexus-indexer-data-text:zip:*</exclude>
</excludes>
</dependencySet>

<dependencySet>
<outputDirectory>cache/nexus-indexer-data/lucene</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<unpack>true</unpack>
<includes>
<include>org.jboss.windup.maven:nexus-indexer-data:zip:*</include>
</includes>
</dependencySet>
</dependencySets>
</assembly>
5 changes: 3 additions & 2 deletions src/main/assembly/assembly-offline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,16 @@
<useProjectArtifact>false</useProjectArtifact>
<excludes>
<exclude>org.jboss.windup.maven:nexus-indexer-data:zip:*</exclude>
<exclude>org.jboss.windup.maven:nexus-indexer-data-text:zip:*</exclude>
</excludes>
</dependencySet>

<dependencySet>
<outputDirectory>cache/nexus-indexer-data/</outputDirectory>
<outputDirectory>cache/nexus-indexer-data/text</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<unpack>true</unpack>
<includes>
<include>org.jboss.windup.maven:nexus-indexer-data:zip:*</include>
<include>org.jboss.windup.maven:nexus-indexer-data-text:zip:*</include>
</includes>
</dependencySet>
</dependencySets>
Expand Down