mirror of
https://github.com/apache/maven.git
synced 2025-03-08 01:30:33 +00:00
Added new IT to express the problems with caching the model before interpolation takes place.
Rolled back the changes to suppress usage of the cached model in MavenMetadataSource. Restored original functionality, to pre- last revision. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163848 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
34f9e44721
commit
56969982a1
@ -52,6 +52,9 @@ it0015: Test marmalade-driven mojo support. This will compile supporting java
|
||||
it0016: Test a WAR generation
|
||||
|
||||
it0017: Test an EJB generation
|
||||
|
||||
it0018: Ensure that managed dependencies for dependency POMs are calculated
|
||||
correctly when resolved.
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
- generated sources
|
||||
|
@ -14,3 +14,4 @@ it0013
|
||||
it0015
|
||||
it0016
|
||||
it0017
|
||||
it0018
|
10
maven-core-it/it0018/.cvsignore
Normal file
10
maven-core-it/it0018/.cvsignore
Normal file
@ -0,0 +1,10 @@
|
||||
*~
|
||||
*.log
|
||||
target
|
||||
*.ipr
|
||||
*.iws
|
||||
dist
|
||||
target
|
||||
.classpath
|
||||
.project
|
||||
log.txt
|
1
maven-core-it/it0018/expected-results.txt
Normal file
1
maven-core-it/it0018/expected-results.txt
Normal file
@ -0,0 +1 @@
|
||||
target/classes/org/apache/maven/it0018/Person.class
|
1
maven-core-it/it0018/goals.txt
Normal file
1
maven-core-it/it0018/goals.txt
Normal file
@ -0,0 +1 @@
|
||||
package
|
15
maven-core-it/it0018/pom.xml
Normal file
15
maven-core-it/it0018/pom.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<model>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core-it0018</artifactId>
|
||||
<version>1.0</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>marmalade</groupId>
|
||||
<artifactId>marmalade-el-commons</artifactId>
|
||||
<version>1.0-alpha-2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</model>
|
@ -87,15 +87,15 @@ public Set retrieve( Artifact artifact, ArtifactRepository localRepository, List
|
||||
// resolved. See note in DefaultMavenProjectBuilder, line 170 for
|
||||
// further discussion.
|
||||
|
||||
// if ( mavenProjectBuilder != null )
|
||||
// {
|
||||
// Model model = mavenProjectBuilder.getCachedModel( artifact.getGroupId(), artifact.getArtifactId(),
|
||||
// artifact.getVersion() );
|
||||
// if ( model != null )
|
||||
// {
|
||||
// dependencies = model.getDependencies();
|
||||
// }
|
||||
// }
|
||||
if ( mavenProjectBuilder != null )
|
||||
{
|
||||
Model model = mavenProjectBuilder.getCachedModel( artifact.getGroupId(), artifact.getArtifactId(),
|
||||
artifact.getVersion() );
|
||||
if ( model != null )
|
||||
{
|
||||
dependencies = model.getDependencies();
|
||||
}
|
||||
}
|
||||
|
||||
if ( dependencies == null )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user