Flex Spring Hibernate Maven 架构

发布于 2024-11-17 17:05:14 字数 56 浏览 3 评论 0原文

是否有一个好的 Maven 架构可以用作 Flex Spring Hibernate 集成的模板?

Is there a good Maven archtype for Flex Spring Hibernate integration which can be used as template ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温柔嚣张 2024-11-24 17:05:14

您可以使用 sonatyp - flexMojo

<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>

例如,您可以使用此插件从以下位置生成 Flex“数据传输对象”: java 类。

例子:

<plugin>
    <groupId>org.sonatype.flexmojos</groupId>
    <artifactId>flexmojos-maven-plugin</artifactId>
    <version>3.8</version>
    <extensions>true</extensions>
    <executions>
        <execution>
            <id>flexDtoGenerate</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>generate</goal>
            </goals>
            <inherited>false</inherited>
            <configuration>
                <includeJavaClasses>
                    <includeClass>com.example.app.dto.*</includeClass>
                </includeJavaClasses>
                <excludeJavaClasses>
                    <excludeClasses>*.package-info</excludeClasses>
                </excludeJavaClasses>

                <beanTemplate>
                    <template>${project.basedir}/src/main/generatorTemplates/beanBase.gsp</template>
                    <template>${project.basedir}/src/main/generatorTemplates/bean.gsp</template>
                </beanTemplate>
                <entityTemplate>
                    <template>${project.basedir}/src/main/generatorTemplates/entityBase.gsp</template>
                    <template>${project.basedir}/src/main/generatorTemplates/entity.gsp</template>
                </entityTemplate>
                <enumTemplate>
                    <template>${project.basedir}/src/main/generatorTemplates/enum.gsp</template>
                </enumTemplate>
            </configuration>
        </execution>
    </executions>
    <dependencies>
        <dependency>
            <groupId>com.adobe.flex</groupId>
            <artifactId>compiler</artifactId>
            <version>4.1.0.16248</version>
            <type>pom</type>
        </dependency>
    </dependencies>
    <configuration>
        <targetPlayer>10.0.0</targetPlayer>
        <stripVersion>true</stripVersion>
        <sourceFile>com/example/app/Client.mxml</sourceFile>
        <defaultLocale>de_DE</defaultLocale>
        <locales>
            <locale>de_DE</locale>
        </locales>
        <runtimeLocales>
            <locale>de_DE</locale>
        </runtimeLocales>
        <compiledLocales>
            <locale>de_DE</locale>
        </compiledLocales>
        <useNetwork>true</useNetwork>
        <defaultSizeWidth>955</defaultSizeWidth>
        <defaultSizeHeight>600</defaultSizeHeight>

        <sourcePaths>
            <sourcePath>${project.basedir}/src/main/flex</sourcePath>
            <sourcePath>${project.build.directory}/generated-sources/flexmojos</sourcePath>
        </sourcePaths>
    </configuration>
</plugin>

You can use sonatyp - flexMojo

<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>

You can use this plugin for example to generate the Flex "Data Transfer Objects" from the java classes.

example:

<plugin>
    <groupId>org.sonatype.flexmojos</groupId>
    <artifactId>flexmojos-maven-plugin</artifactId>
    <version>3.8</version>
    <extensions>true</extensions>
    <executions>
        <execution>
            <id>flexDtoGenerate</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>generate</goal>
            </goals>
            <inherited>false</inherited>
            <configuration>
                <includeJavaClasses>
                    <includeClass>com.example.app.dto.*</includeClass>
                </includeJavaClasses>
                <excludeJavaClasses>
                    <excludeClasses>*.package-info</excludeClasses>
                </excludeJavaClasses>

                <beanTemplate>
                    <template>${project.basedir}/src/main/generatorTemplates/beanBase.gsp</template>
                    <template>${project.basedir}/src/main/generatorTemplates/bean.gsp</template>
                </beanTemplate>
                <entityTemplate>
                    <template>${project.basedir}/src/main/generatorTemplates/entityBase.gsp</template>
                    <template>${project.basedir}/src/main/generatorTemplates/entity.gsp</template>
                </entityTemplate>
                <enumTemplate>
                    <template>${project.basedir}/src/main/generatorTemplates/enum.gsp</template>
                </enumTemplate>
            </configuration>
        </execution>
    </executions>
    <dependencies>
        <dependency>
            <groupId>com.adobe.flex</groupId>
            <artifactId>compiler</artifactId>
            <version>4.1.0.16248</version>
            <type>pom</type>
        </dependency>
    </dependencies>
    <configuration>
        <targetPlayer>10.0.0</targetPlayer>
        <stripVersion>true</stripVersion>
        <sourceFile>com/example/app/Client.mxml</sourceFile>
        <defaultLocale>de_DE</defaultLocale>
        <locales>
            <locale>de_DE</locale>
        </locales>
        <runtimeLocales>
            <locale>de_DE</locale>
        </runtimeLocales>
        <compiledLocales>
            <locale>de_DE</locale>
        </compiledLocales>
        <useNetwork>true</useNetwork>
        <defaultSizeWidth>955</defaultSizeWidth>
        <defaultSizeHeight>600</defaultSizeHeight>

        <sourcePaths>
            <sourcePath>${project.basedir}/src/main/flex</sourcePath>
            <sourcePath>${project.build.directory}/generated-sources/flexmojos</sourcePath>
        </sourcePaths>
    </configuration>
</plugin>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文