
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
23.11.2012, 18:35:51
|
|||
|---|---|---|---|
|
|||
Сборка maven-проекта |
|||
|
#18+
Как запаковать отдельно стоящий jar в основной jar при сборке maven-проекта? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
23.11.2012, 19:05:29
|
|||
|---|---|---|---|
|
|||
Сборка maven-проекта |
|||
|
#18+
On 23.11.2012 19:35, Степовой А. С. wrote: > Как запаковать отдельно стоящий jar в основной jar при сборке maven-проекта? Посмотри на Maven Assembly plugin: http://maven.apache.org/plugins/maven-assembly-plugin/ Posted via ActualForum NNTP Server 1.5 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
23.11.2012, 20:02:18
|
|||
|---|---|---|---|
|
|||
Сборка maven-проекта |
|||
|
#18+
Степовой А. С., Посмотрите в сторону Apache Shade plugin . Вот пример использования И ещё один пример - там Java Mail API и MySQL Connector запаковывается в целевой jar. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
24.11.2012, 00:35:48
|
|||
|---|---|---|---|
|
|||
Сборка maven-проекта |
|||
|
#18+
Степовой А. С., посмотри на эти плагины: http://maven.apache.org/plugins/maven-dependency-plugin/ http://mojo.codehaus.org/truezip/truezip-maven-plugin/ ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
24.11.2012, 12:19:03
|
|||
|---|---|---|---|
Сборка maven-проекта |
|||
|
#18+
Степовой А. С., http://code.google.com/p/onejar-maven-plugin/ ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
24.11.2012, 13:15:10
|
|||
|---|---|---|---|
Сборка maven-проекта |
|||
|
#18+
Код: xml 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. Примерно вот так. По поводу Код: xml 1. 2. то заменит имена пакетов вначале - то есть если был например com.sun.media.jai.Class1, то получится my.cool.app.jai.Class1. Насчет Код: xml 1. 2. 3. надо уточнить. Можно посмотреть тут http://code.google.com/p/jarjar/wiki/CommandLineDocs jarjar wikiThe rules file is a text file, one rule per line. Leading and trailing whitespace is ignored. There are three types of rules: rule <pattern> <result> zap <pattern> keep <pattern> The standard rule (rule) is used to rename classes. All references to the renamed classes will also be updated. If a class name is matched by more than one rule, only the first one will apply. <pattern> is a class name with optional wildcards. ** will match against any valid class name substring. To match a single package component (by excluding . from the match), a single * may be used instead. <result> is a class name which can optionally reference the substrings matched by the wildcards. A numbered reference is available for every * or ** in the <pattern>, starting from left to right: @1, @2, etc. A special @0 reference contains the entire matched class name. The zap rule causes any matched class to be removed from the resulting jar file. All zap rules are processed before renaming rules. The keep rule marks all matched classes as "roots". If any keep rules are defined all classes which are not reachable from the roots via dependency analysis are discarded when writing the output jar. This is the last step in the process, after renaming and zapping. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=59&mobile=1&tid=2130492]: |
0ms |
get settings: |
17ms |
get forum list: |
21ms |
check forum access: |
7ms |
check topic access: |
7ms |
track hit: |
55ms |
get topic data: |
16ms |
get forum data: |
4ms |
get page messages: |
69ms |
get tp. blocked users: |
3ms |
| others: | 308ms |
| total: | 507ms |

| 0 / 0 |
