Java Merger Maven Plugin

Merger of Java classes or interfaces

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка
Группа

Группа

ch.cern.eam
Идентификатор

Идентификатор

javamerger-maven-plugin
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

Java Merger Maven Plugin
Merger of Java classes or interfaces
Ссылка на сайт

Ссылка на сайт

https://github.com/cern-eam/javamerger-maven-plugin
Организация-разработчик

Организация-разработчик

CERN European Organization for Nuclear Research
Система контроля версий

Система контроля версий

https://github.com/cern-eam/javamerger-maven-plugin

Скачать javamerger-maven-plugin

Как подключить последнюю версию

<plugin>
    <groupId>ch.cern.eam</groupId>
    <artifactId>javamerger-maven-plugin</artifactId>
    <version>1.0.0</version>
</plugin>

Зависимости

provided (4)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-plugin-api jar 3.3.9
org.apache.maven : maven-core jar 3.3.9
org.apache.maven : maven-artifact jar 3.3.9
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5.1

test (3)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-compat jar 3.3.9
junit : junit jar 4.12
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0

Модули Проекта

Данный проект не имеет модулей.

Java Merger

This project is a Maven Plugin that allows you to merge Java classes/interfaces during your project build.

This project was initially created to merge several JAX-WS generated classes into a single one, for performance reasons. Yet, it is generic and could be reused for other purposes.

Usage

<plugin>
    <groupId>ch.cern.eam</groupId>
    <artifactId>javamerger-maven-plugin</artifactId>
    <version>1.0.0</version>
    <executions>
        <execution>
            <phase>generate-sources</phase>
            <goals>
                <goal>merge</goal>
            </goals>
            <configuration>
                <sourceFiles>
                    <sourceFile>${project.build.directory}/generated-sources/wsimport/ch/cern/eam/example/Class1.java</sourceFile>
                    <sourceFile>${project.build.directory}/generated-sources/wsimport/ch/cern/eam/example/Class2.java</sourceFile>
                </sourceFiles>
                <destinationPackage>ch.cern.eam.example</destinationPackage>
                <classAnnotations>
                    <classAnnotation>@WebService(name = "InforWS", targetNamespace = "http://wsdls.datastream.net/WS")</classAnnotation>
                    <classAnnotation>@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)</classAnnotation>
                </classAnnotations>
                <additionalImports>
                    <additionalImport>import javax.jws.WebService;</additionalImport>
                    <additionalImport>import javax.jws.soap.SOAPBinding;</additionalImport>
                </additionalImports>
                <className>MergedClass</className>
                <type>class</type>
            </configuration>
        </execution>
    </executions>
</plugin>

Options

Option Description
sourceFiles List of source files to be merged
destinationPackage Package of the generated class/interface
className Name of the generated class/interface
classAnnotations Annotations to add to the generated class/interface
additionalImports Imports to add to the generated class/interface
type Type of the generated file. Can be "class" or "interface"

License

This software is published under the GNU General Public License v3.0 or later.

ch.cern.eam

CERN EAM

CERN Open Source Components for Infor EAM

Версии библиотеки

Версия
1.0.0