मैं अपने मैवेन मल्टी-मॉड्यूल प्रोजेक्ट में एंट्रिन प्लगइन के माध्यम से एक फ़ाइल कॉपी करने की कोशिश कर रहा हूं। फ़ाइल माता पिता परियोजना की जड़ में है:मेवेन-एंट्रून कोई चींटी लक्ष्य परिभाषित नहीं किया गया - SKIPPED
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<inherited>false</inherited>
<executions>
<execution>
<inherited>false</inherited>
<id>copy</id>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="copy and rename file">
<copy file="${basedir}/portal-ext.properties" tofile="${liferay.auto.deploy.dir}/../portal-ext.properties" />
</target>
</configuration>
</execution>
</executions>
मैं mvn antrun:run
के माध्यम से इस समस्या को चलाने मैं मिल "नहीं चींटी लक्ष्य परिभाषित - SKIPPED" है माता पिता पर और हर मॉड्यूल पर। मुझे केवल माता-पिता पर चलाने की आवश्यकता है और सोचा <inherited>false</inherited>
मदद करेगा लेकिन मैं नहीं करता। लेकिन क्यों "कोई चींटी लक्ष्य परिभाषित नहीं किया गया"?
यहां तक कि जब यह समझ में आता है, तो मेरे लिए काम नहीं करता , इस पोस्ट ने मुझे जवाब दिया: http://stackoverflow.com/a/11009854। पीएस .: मुझे अगली पोस्ट नहीं मिली। – Vielinko