|
26 | 26 | <artifactId>strongbox-db-schema</artifactId>
|
27 | 27 | <version>${project.version}</version>
|
28 | 28 | </dependency>
|
29 |
| - |
| 29 | + |
30 | 30 | <dependency>
|
31 | 31 | <groupId>org.springframework.boot</groupId>
|
32 | 32 | <artifactId>spring-boot-starter</artifactId>
|
|
52 | 52 | <goal>run</goal>
|
53 | 53 | </goals>
|
54 | 54 | <configuration>
|
55 |
| - <jvmArguments>-Xmx1024m</jvmArguments> |
56 |
| - <arguments> |
| 55 | + <jvmArguments> |
| 56 | + -Xmx1024m |
| 57 | + -Djdk.attach.allowAttachSelf=true |
| 58 | + --add-exports java.base/jdk.internal.misc=ALL-UNNAMED |
| 59 | + --add-exports java.base/jdk.internal.ref=ALL-UNNAMED |
| 60 | + --add-exports java.base/sun.nio.ch=ALL-UNNAMED |
| 61 | + --add-exports java.management.rmi/com.sun.jmx.remote.internal.rmi=ALL-UNNAMED |
| 62 | + --add-exports java.rmi/sun.rmi.registry=ALL-UNNAMED |
| 63 | + --add-exports java.rmi/sun.rmi.server=ALL-UNNAMED |
| 64 | + --add-exports java.sql/java.sql=ALL-UNNAMED |
| 65 | + |
| 66 | + --add-opens java.base/java.lang.module=ALL-UNNAMED |
| 67 | + --add-opens java.base/jdk.internal.loader=ALL-UNNAMED |
| 68 | + --add-opens java.base/jdk.internal.ref=ALL-UNNAMED |
| 69 | + --add-opens java.base/jdk.internal.reflect=ALL-UNNAMED |
| 70 | + --add-opens java.base/jdk.internal.math=ALL-UNNAMED |
| 71 | + --add-opens java.base/jdk.internal.module=ALL-UNNAMED |
| 72 | + --add-opens java.base/jdk.internal.util.jar=ALL-UNNAMED |
| 73 | + --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED |
| 74 | + </jvmArguments> |
| 75 | + <arguments>--strongbox.db.janus-graph.storage-root=${project.build.directory}/db</arguments> |
| 76 | + <arguments> |
57 | 77 | --strongbox.dbimport.root=${project.build.directory}
|
58 | 78 | </arguments>
|
59 | 79 | </configuration>
|
|
74 | 94 | <descriptors>
|
75 | 95 | <descriptor>src/main/assembly/db-schema.xml</descriptor>
|
76 | 96 | </descriptors>
|
77 |
| - </configuration> |
| 97 | + </configuration> |
78 | 98 | </execution>
|
79 | 99 | </executions>
|
80 |
| - </plugin> |
| 100 | + </plugin> |
81 | 101 | </plugins>
|
82 | 102 | </build>
|
83 | 103 |
|
| 104 | + <profiles> |
| 105 | + <profile> |
| 106 | + <id>jdk-default</id> |
| 107 | + <activation> |
| 108 | + <jdk>!11</jdk> |
| 109 | + </activation> |
| 110 | + <build> |
| 111 | + <plugins> |
| 112 | + <plugin> |
| 113 | + <groupId>org.springframework.boot</groupId> |
| 114 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 115 | + <executions> |
| 116 | + <execution> |
| 117 | + <id>strongbox-export-db</id> |
| 118 | + <phase>prepare-package</phase> <!-- bind to the packaging phase --> |
| 119 | + <goals> |
| 120 | + <goal>run</goal> |
| 121 | + </goals> |
| 122 | + <configuration> |
| 123 | + <jvmArguments> |
| 124 | + -Xmx1024m |
| 125 | + </jvmArguments> |
| 126 | + <arguments>--strongbox.db.janus-graph.storage-root=${project.build.directory}/db</arguments> |
| 127 | + <arguments> |
| 128 | + --strongbox.dbimport.root=${project.build.directory} |
| 129 | + </arguments> |
| 130 | + </configuration> |
| 131 | + </execution> |
| 132 | + </executions> |
| 133 | + </plugin> |
| 134 | + </plugins> |
| 135 | + </build> |
| 136 | + </profile> |
| 137 | + <profile> |
| 138 | + <id>jdk11</id> |
| 139 | + <activation> |
| 140 | + <jdk>11</jdk> |
| 141 | + </activation> |
| 142 | + <build> |
| 143 | + <plugins> |
| 144 | + <plugin> |
| 145 | + <groupId>org.springframework.boot</groupId> |
| 146 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 147 | + <executions> |
| 148 | + <execution> |
| 149 | + <id>strongbox-export-db</id> |
| 150 | + <phase>prepare-package</phase> <!-- bind to the packaging phase --> |
| 151 | + <goals> |
| 152 | + <goal>run</goal> |
| 153 | + </goals> |
| 154 | + <configuration> |
| 155 | + <jvmArguments> |
| 156 | + -Xmx1024m |
| 157 | + -Djdk.attach.allowAttachSelf=true |
| 158 | + --add-exports java.base/jdk.internal.misc=ALL-UNNAMED |
| 159 | + --add-exports java.base/jdk.internal.ref=ALL-UNNAMED |
| 160 | + --add-exports java.base/sun.nio.ch=ALL-UNNAMED |
| 161 | + --add-exports |
| 162 | + java.management.rmi/com.sun.jmx.remote.internal.rmi=ALL-UNNAMED |
| 163 | + --add-exports |
| 164 | + java.rmi/sun.rmi.registry=ALL-UNNAMED |
| 165 | + --add-exports |
| 166 | + java.rmi/sun.rmi.server=ALL-UNNAMED |
| 167 | + --add-exports |
| 168 | + java.sql/java.sql=ALL-UNNAMED |
| 169 | + |
| 170 | + --add-opens |
| 171 | + java.base/java.lang.module=ALL-UNNAMED |
| 172 | + --add-opens |
| 173 | + java.base/jdk.internal.loader=ALL-UNNAMED |
| 174 | + --add-opens |
| 175 | + java.base/jdk.internal.ref=ALL-UNNAMED |
| 176 | + --add-opens |
| 177 | + java.base/jdk.internal.reflect=ALL-UNNAMED |
| 178 | + --add-opens |
| 179 | + java.base/jdk.internal.math=ALL-UNNAMED |
| 180 | + --add-opens |
| 181 | + java.base/jdk.internal.module=ALL-UNNAMED |
| 182 | + --add-opens |
| 183 | + java.base/jdk.internal.util.jar=ALL-UNNAMED |
| 184 | + --add-opens |
| 185 | + jdk.management/com.sun.management.internal=ALL-UNNAMED |
| 186 | + </jvmArguments> |
| 187 | + <arguments>--strongbox.db.janus-graph.storage-root=${project.build.directory}/db</arguments> |
| 188 | + <arguments> |
| 189 | + --strongbox.dbimport.root=${project.build.directory} |
| 190 | + </arguments> |
| 191 | + </configuration> |
| 192 | + </execution> |
| 193 | + </executions> |
| 194 | + </plugin> |
| 195 | + </plugins> |
| 196 | + </build> |
| 197 | + </profile> |
| 198 | + </profiles> |
| 199 | + |
84 | 200 | </project>
|
0 commit comments