NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Korunks
Joined: 10 Oct 2008 Posts: 7
|
Posted: Wed Aug 25, 2010 8:59 pm Post subject: Netbeans 6.9.1 maven antrun issues |
|
|
I am running netbeans 6.9.1, and have created a new Maven RCP Application. I then create a new Maven Netbeans Module, lets call it Test. When I add the following to Test's pom.xml plugins section it will not run.
| Code: |
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<configuration>
<tasks>
<echo message="Hello World"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin> |
I am on the command line sitting in Test's root directory and enter "mvn antrun:run". It also does not run when the compile phase executes. Did I forget to configure something? |
|
| Back to top |
|
 |
daynok
Joined: 05 Oct 2010 Posts: 1 Location: Tustin Ca
|
Posted: Tue Oct 05, 2010 6:28 pm Post subject: Try commenting out pluginManagement |
|
|
Had similar issue, commented out <pluginManagement> tag and works
I dunno worth a try.
<build>
<!--<pluginManagement>-->
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>validate</phase>
<inherited>false</inherited>
<configuration>
<target>
<echo message="test"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<version>3.2</version>
<configuration>
<cluster>foobar</cluster>
</configuration>
</plugin>
<plugin>
<!-- netbeans modules in 6.9+ are 1.6 compatible -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<configuration>
<descriptors>
<descriptor>bin.xml</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
<!--</pluginManagement>-->
</build> |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|