Yes but you didn't change the configuration in the second execution so
it's probably going to be the same as the first. IIRC, there are issues
where the config isn't reset to a clean one in a second execution. So
the best bet is to first run the one closest to default, and then you
need to reset the defaults and change whatever else you want.

-----Original Message-----
From: youhaodeyi [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 22, 2008 10:51 AM
To: [email protected]
Subject: RE: How to set jar and test-jar separately?


Do you mean this configuration see below? The configuration setting
doesn't
work in this case.

<plugin>
        
<groupId>org.apache.maven.plugins</groupId>
        
<artifactId>maven-jar-plugin</artifactId>
                                <version>2.2</version>
                                <inherited>false</inherited>
                                <executions>
                                        <execution>
                                                <id>jar</id>
                                                <phase>package</phase>
                                                <goals>
                                                        <goal>jar</goal>
                                                </goals>
                                                <configuration>
        
<outputDirectory>target/</outputDirectory>
                                                        <excludes>
        
<exclude>src/main/resources/i18n/*.properties</exclude>
        
<exclude>src/main/resources/images/**</exclude>
        
<exclude>src/main/resources/**/protocols/**</exclude>
        
<exclude>src/main/resources/../report/**</exclude>
                                                        </excludes>

                                                        <archive>
        
<manifest>
        
<addClasspath>true</addClasspath>
        
<mainClass>com.ge.med.mict.ll.ui.Starter</mainClass>
        
<packageName>UI DEMO</packageName>
        
</manifest>
        
<manifestEntries>
        
<mode>development</mode>
        
</manifestEntries>
                                                        </archive>
                                                </configuration>
                                        </execution>

                                        <execution>
                                                <id>test</id>
                                                <phase>package</phase>
                                                <goals>
        
<goal>test-jar</goal>
                                                </goals>
                                        </execution>
                                </executions>


Brian E Fox wrote:
> 
> Put them in separate executions.
> 
> -----Original Message-----
> From: youhaodeyi [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 22, 2008 10:08 AM
> To: [email protected]
> Subject: How to set jar and test-jar separately?
> 
> 
> I use maven-jar-plugin like below. In this case, the test jar and jar
> will
> have the same configuration. How can I set them separately?
> 
> <plugin>
>       
> <groupId>org.apache.maven.plugins</groupId>
>       
> <artifactId>maven-jar-plugin</artifactId>
>                               <version>2.2</version>
>                               <inherited>false</inherited>
>                               <executions>
>                                       <execution>
>                                               <phase>package</phase>
>                                               <goals>
>       
> <goal>test-jar</goal>
>                                                       <goal>jar</goal>
>                                               </goals>
>                                       </execution>
>                               </executions>
>                               <configuration>
>       
> <outputDirectory>target/</outputDirectory>
>                                       <excludes>
>       
> <exclude>**/*.properties</exclude>
>       
> <exclude>**/images/**</exclude>
>       
> <exclude>**/protocols/**</exclude>
>       
> <exclude>**/report/**</exclude>
>                                       </excludes>
> 
>                                       <archive>
>                                               <manifest>
>       
> <addClasspath>true</addClasspath>
>       
> <mainClass>ui.Starter</mainClass>
>                                                       <packageName>UI
> DEMO</packageName>
>                                               </manifest>
>                                               <manifestEntries>
>       
> <mode>development</mode>
>                                               </manifestEntries>
>                                               
>                                       </archive>
>                               </configuration>
>                       </plugin>
> -- 
> View this message in context:
>
http://www.nabble.com/How-to-set-jar-and-test-jar-separately--tp20111475
> p20111475.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/How-to-set-jar-and-test-jar-separately--tp20111475
p20112387.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to