[mevenide-user] problem with profile activation

"Mohni, Daniel" <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.user
Message-ID <B91E33CF995E4F46811E25CD877F384C028B739B@GBMK-EXCH3.eu.uis.unisys.com>
Hi,

I use a profile like the one generated by mevenide to build an 
assembly for my project. I want that this profile is active by default
using <activeByDefault> option...

in the pom I added this:

        <profile>
            <id>distribution-build</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-jar-plugin</artifactId>
                        <configuration>
                            <archive>
                                <manifest>
                                    <addClasspath>true</addClasspath>
 
<classpathPrefix>lib</classpathPrefix>
                                    <mainClass>Startup</mainClass>
                                </manifest>
                            </archive>
                        </configuration>
                    </plugin>
                    <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>dist</id>
                                <phase>install</phase>
                                <goals>
                                    <goal>assembly</goal>
                                </goals>
                                <configuration>
                                    <descriptors>
<descriptor>${basedir}/src/main/assemblies/service.xml</descriptor>
                                    </descriptors>
 
<finalName>${project.artifactId}</finalName>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

this profile will be active if I start maven from the commandline but
not
if I build the project inside Netbeans6.0b2.

I just want to let you know.....



for Milos:

<configuration>
 
<descriptor>${basedir}/src/main/assemblies/netbeans-run.xml</descriptor>
    <finalName>executable</finalName>
</configuration>

I got a warning with assebly-plugin version 2.2 beta 1 
that <descriptor> is now deprecated, and to use <descriptors>

<configuration>
    <descriptors>	    	
	
<descriptor>${basedir}/src/main/assemblies/netbeans-run.xml</descriptor>
    </descriptors>	    	    
    <finalName>executable</finalName>
</configuration>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.