Maven Generate-sources не работает для кастора-maven-плагина в Eclipse - PullRequest
0 голосов
/ 25 марта 2020

Eclipse 2019-06 Версия

Преобразование XSD в Java.

Использование следующего в POM. XML Файл:

    <artifactId>systeam-hr</artifactId>
    <version>1.4-SNAPSHOT</version>
    <packaging>war</packaging>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>castor-maven-plugin</artifactId>
                    <version>1.5</version>
                    <executions>
                        <execution>
                            <id>genSysteamEmpsloyee</id>
                            <goals>
                                <goal>generate</goal>
                            </goals>
                            <configuration>
                                <properties>${basedir}/src/main/resources/xsd/castorbuilder.properties</properties>
                                <schemaDirectory>${basedir}/src/main/resources/xsd/systeamemployee</schemaDirectory>
                                <packaging>com.ery.integrator.binding.systeam.employee</packaging>
                                <generateImportedSchemas>true</generateImportedSchemas>
                            </configuration>
                        </execution>
                        <execution>
                            <id>genSysteamEmployeePhone</id>
                            <goals>
                                <goal>generate</goal>
                            </goals>
                            <configuration>
                                <properties>${basedir}/src/main/resources/xsd/castorbuilder.properties</properties>
                                <schemaDirectory>${basedir}/src/main/resources/xsd/systeamemployeephone</schemaDirectory>
                                <packaging>com.ery.integrator.binding.systeam.employeephone</packaging>
                                <generateImportedSchemas>true</generateImportedSchemas>
                            </configuration>
                        </execution>
                    </executions>
                    <dependencies>
                        <dependency>
                            <groupId>org.codehaus.castor</groupId>
                            <artifactId>castor-codegen</artifactId>
                            <version>1.3.1</version>
                        </dependency>
                    </dependencies>
            </plugin>
        </plugins>
        </pluginManagement>
    </build>
    <properties>

When i right clicked on Project  > Run  as > Maven Generate Sources then only following output comes:


[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------< com.ery.integrator.systeam:systeam-hr >---------------
[INFO] Building systeam-hr 1.4-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.712 s
[INFO] Finished at: 2020-03-25T14:05:35+05:30
[INFO] ------------------------------------------------------------------------

Любая идея, как генерировать источники, любые ошибки в пом. xml

...