[ 
https://issues.apache.org/jira/browse/NETBEANS-3690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17014196#comment-17014196
 ] 

Tobias Warneke commented on NETBEANS-3690:
------------------------------------------

Now comes my aha moment. 

The problem is / was I had another submodule made the main project using the 
projects explorer of Netbeans. Even if the profile configuration is within the 
toolbars list, it does not get activated. 

All works fine, if I have no main project definied.

> in maven multimodule project profile not propagated in submodule if choosen 
> via project config
> ----------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-3690
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3690
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Maven
>            Reporter: Tobias Warneke
>            Priority: Major
>
> I have a multimoduel project:
>  
> module A
>    - child module B
>  
> Within a profile defined in A I modified the configuration of my surefire 
> plugin, like:
> {{<profile>}}
> {{ <id>skip-longrunning-tests</id>}}
> {{ <build>}}
> {{ <plugins> }}
> {{ <plugin>}}
> {{ <groupId>org.apache.maven.plugins</groupId>}}
> {{ <artifactId>maven-surefire-plugin</artifactId>}}
> {{ <configuration>}}
> {{ <excludes>}}
> {{ <exclude>**/long*/*</exclude>}}
> {{ <exclude>**/LR_*</exclude>}}
> {{ </excludes>}}
> {{ <excludedGroups>LONGRUNNING</excludedGroups> }}
> {{</configuration>}}
> {{ </plugin>}}
> {{ </plugins>}}
> {{ </build>}}
> {{ </profile>}}
> Now Netbeans provides me a new "project configuration" within this toolbar 
> list called "skip-longrunning-tests". So far so good. 
> I was expecting that now that if I use this project configuration, that my 
> profile is attached to the maven call but it isn't.
> I expecting: *clean install -Plong-running-tests*
> but getting: *clean install*
>  
> If I run maven including manually this profile, it runs perfectly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to