在当前项目中找不到前缀“ hibernate3”的插件

时间:2019-07-05 10:31:01

标签: hibernate shell

你好,我尝试执行sShell脚本,但是我有这个问题

在当前项目和插件组[org.apache.maven.plugins,org.codehaus.mojo]中找不到前缀'hibernate3'的插件,可从存储库[本地(/ opt / local / m2-存储库)中找到)

POM:

<profile>
            <id>hibernate</id>
            <activation>
                <property>
                    <name>hibernate</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>hibernate3-maven-plugin</artifactId>
                        <version>2.2</version>
                        <configuration>
                            <components>
                                <component>
                                    <name>hbm2ddl</name>
                                    <implementation>annotationconfiguration</implementation>
                                    <outputDirectory>${outputdir}</outputDirectory>
                                </component>
                                <component>
                                    <name>hbm2java</name>
                                    <outputDirectory>src/main/java</outputDirectory>
                                </component>
                            </components>
                            <componentProperties>
                                <drop>${drop}</drop>
                                <export>${export}</export>
                                <format>true</format>
                                <create>${create}</create>
                                <update>false</update>
                                <jdk5>true</jdk5>
                                <delimiter>|</delimiter>
                                <propertyfile>target/classes/jdbc${jdbc_suffix}.properties</propertyfile>
                                <outputfilename>${outputfile}</outputfilename>
                                <templatepath>src/main/resources/hibernate/templates</templatepath>
                            </componentProperties>
                        </configuration>
                        <dependencies>
                            <dependency>
                                <groupId>${jdbc.groupId}</groupId>
                                <artifactId>${jdbc.artifactId}</artifactId>
                                <version>${jdbc.version}</version>
                            </dependency>
                            <dependency>
                                <groupId>org.hibernate</groupId>
                                <artifactId>hibernate</artifactId>
                                <version>3.6.0-Final</version>
                                <exclusions>
                                    <exclusion>  <!-- declare the exclusion here -->
                                        <groupId>commons-logging</groupId>
                                        <artifactId>commons-logging-api</artifactId>
                                    </exclusion>
                                </exclusions>
                            </dependency>
                        </dependencies>
                    </plugin>
                </plugins>
            </build>
        </profile>

    </profiles>

Thnqs

0 个答案:

没有答案