NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Netbeans 6.9.1 maven antrun issues

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Korunks



Joined: 10 Oct 2008
Posts: 7

PostPosted: Wed Aug 25, 2010 8:59 pm    Post subject: Netbeans 6.9.1 maven antrun issues Reply with quote

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

PostPosted: Tue Oct 05, 2010 6:28 pm    Post subject: Try commenting out pluginManagement Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo