javabrett wrote:
> 
> Further, a build in m2eclipse 0.9.8.200905041414 using the Embedded mvn
> (which version is that?), _does_ throw the WARNING (which is what I want).
> 
> Does anyone know how these warnings are supposed to work and whether their
> behaviour has changed recently?  It's a shame if you can't force a
> relocation warning so the POM dependency artifact can be corrected.
> 
> Thanks
> Brett
> 
> 
> javabrett wrote:
>> 
>> Hi,
>> 
>> I'm trying to understand if there is a regression or deliberate change 
>> in WARNING reporting of relocated artifacts between Maven 2.0.9 and 
>> Maven 2.1.0.
>> 
>> I tested with a well-known relocated artifact servletapi:servletapi:2.3 
>> which is relocated to javax.servlet:servlet-api:2.3.  Test POM and test 
>> results follow.  Basically, no WARNING is issued in 2.1.0, whereas a 
>> clear one is issued in 2.0.9.  I've used dependency:resolve as the goal 
>> below, but the same happens for a full install lifecycle.
>> 
>> Regression or intended and if so, how should we be alerted to 
>> relocations? Apologies if this is well understood.
>> 
>> Thanks
>> Brett
>> 
>> Test POM:
>> 
>> <project xmlns="http://maven.apache.org/POM/4.0.0"; 
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
>> http://maven.apache.org/maven-v4_0_0.xsd";>
>>     <modelVersion>4.0.0</modelVersion>
>>     <groupId>test</groupId>
>>     <artifactId>relocation-warning</artifactId>
>>     <version>0.0.1-SNAPSHOT</version>
>>     <dependencies>
>>         <dependency>
>>             <groupId>servletapi</groupId>
>>             <artifactId>servletapi</artifactId>
>>             <version>2.3</version>
>>         </dependency>
>>     </dependencies>
>> </project>
>> 
>> Output of dependency:resolve 2.0.9 (snipped output):
>> 
>> mvn --version
>> Maven version: 2.0.9
>> Java version: 1.6.0_13
>> OS name: "linux" version: "2.6.28-13-generic" arch: "amd64" Family:
>> "unix"
>> 
>> #mvn dependency:resolve
>> <snip/>
>> [WARNING] While downloading servletapi:servletapi:2.3
>>   This artifact has been relocated to javax.servlet:servlet-api:2.3.
>> <snip/>
>> 
>> and 2.1.0 (full output):
>> 
>> mvn --version
>> Apache Maven 2.1.0 (r755702; 2009-03-19 06:10:27+1100)
>> Java version: 1.6.0_13
>> Java home: /usr/lib/jvm/java-6-sun-1.6.0.13/jre
>> Default locale: en_AU, platform encoding: UTF-8
>> OS name: "linux" version: "2.6.28-13-generic" arch: "amd64" Family:
>> "unix"
>> 
>> mvn dependency:resolve[INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'dependency'.
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] Building Unnamed - test:relocation-warning:jar:0.0.1-SNAPSHOT
>> [INFO]    task-segment: [dependency:resolve]
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] [dependency:resolve]
>> [INFO]
>> [INFO] The following files have been resolved:
>> [INFO]    javax.servlet:servlet-api:jar:2.3:compile
>> [INFO]
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESSFUL
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] Total time: 2 seconds
>> [INFO] Finished at: Tue Jul 07 16:49:30 EST 2009
>> [INFO] Final Memory: 21M/289M
>> [INFO] 
>> ------------------------------------------------------------------------
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 
>> 
> 
> 

I managed to locate the regression and have logged MNG-4275 [1].

Brett

[1] http://jira.codehaus.org/browse/MNG-4275

-- 
View this message in context: 
http://www.nabble.com/2.0.9-%3E2.1.0-change-regression-in-relocation-WARNING--tp24368186p24776484.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to