You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ma...@apache.org on 2007/09/14 18:15:54 UTC
svn commit: r575740 - in /maven/shared/trunk/maven-dependency-analyzer: ./
src/test/java/org/apache/maven/shared/dependency/analyzer/
src/test/resources/jarWithDependency/
src/test/resources/jarWithDependency/project1/
src/test/resources/jarWithDepende...
Author: markh
Date: Fri Sep 14 09:15:52 2007
New Revision: 575740
URL: http://svn.apache.org/viewvc?rev=575740&view=rev
Log:
Added framework for testing ProjectDependencyAnalyzer with a couple of simple initial tests.
Added:
maven/shared/trunk/maven-dependency-analyzer/src/test/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzerTest.java (with props)
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/pom.xml (with props)
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/pom.xml (with props)
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/src/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/src/main/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/src/main/java/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/src/main/java/jarWithDependency/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/src/main/java/jarWithDependency/project1/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/src/main/java/jarWithDependency/project1/Project1.java (with props)
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/pom.xml (with props)
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/src/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/src/main/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/src/main/java/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/src/main/java/jarWithDependency/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/src/main/java/jarWithDependency/project2/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/src/main/java/jarWithDependency/project2/Project2.java (with props)
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/pom.xml (with props)
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/src/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/src/main/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/src/main/java/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/src/main/java/jarWithNoDependencies/
maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/src/main/java/jarWithNoDependencies/Project.java (with props)
Modified:
maven/shared/trunk/maven-dependency-analyzer/pom.xml
Modified: maven/shared/trunk/maven-dependency-analyzer/pom.xml
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-dependency-analyzer/pom.xml?rev=575740&r1=575739&r2=575740&view=diff
==============================================================================
--- maven/shared/trunk/maven-dependency-analyzer/pom.xml (original)
+++ maven/shared/trunk/maven-dependency-analyzer/pom.xml Fri Sep 14 09:15:52 2007
@@ -95,6 +95,12 @@
<version>2.0.5</version>
</dependency>
<dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>maven-plugin-testing-tools</artifactId>
+ <version>1.0-alpha-3-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>jmock</groupId>
<artifactId>jmock</artifactId>
<version>1.1.0</version>
Added: maven/shared/trunk/maven-dependency-analyzer/src/test/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzerTest.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-dependency-analyzer/src/test/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzerTest.java?rev=575740&view=auto
==============================================================================
--- maven/shared/trunk/maven-dependency-analyzer/src/test/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzerTest.java (added)
+++ maven/shared/trunk/maven-dependency-analyzer/src/test/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzerTest.java Fri Sep 14 09:15:52 2007
@@ -0,0 +1,118 @@
+/**
+ * $HeadURL$
+ *
+ * (c) 2007 IIZUKA Software Technologies Ltd. All rights reserved.
+ */
+package org.apache.maven.shared.dependency.analyzer;
+
+import java.io.File;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Properties;
+import java.util.Set;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.artifact.DefaultArtifact;
+import org.apache.maven.artifact.handler.ArtifactHandler;
+import org.apache.maven.artifact.handler.DefaultArtifactHandler;
+import org.apache.maven.artifact.versioning.VersionRange;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.shared.invoker.InvocationResult;
+import org.apache.maven.shared.test.plugin.BuildTool;
+import org.apache.maven.shared.test.plugin.ProjectTool;
+import org.apache.maven.shared.test.plugin.TestToolsException;
+import org.codehaus.plexus.PlexusTestCase;
+
+/**
+ * Tests <code>DefaultProjectDependencyAnalyzer</code>.
+ *
+ * @author Mark Hobson
+ * @version $Id$
+ * @see DefaultProjectDependencyAnalyzer
+ */
+public class DefaultProjectDependencyAnalyzerTest extends PlexusTestCase
+{
+ // fields -----------------------------------------------------------------
+
+ private BuildTool buildTool;
+
+ private ProjectTool projectTool;
+
+ private ProjectDependencyAnalyzer analyzer;
+
+ // TestCase methods -------------------------------------------------------
+
+ /*
+ * @see org.codehaus.plexus.PlexusTestCase#setUp()
+ */
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+
+ buildTool = (BuildTool) lookup( BuildTool.ROLE );
+
+ projectTool = (ProjectTool) lookup( ProjectTool.ROLE );
+
+ analyzer = (ProjectDependencyAnalyzer) lookup( ProjectDependencyAnalyzer.ROLE );
+ }
+
+ // tests ------------------------------------------------------------------
+
+ public void testJarWithNoDependencies() throws TestToolsException, ProjectDependencyAnalyzerException
+ {
+ compileProject( "jarWithNoDependencies/pom.xml" );
+
+ MavenProject project = getProject( "jarWithNoDependencies/pom.xml" );
+
+ ProjectDependencyAnalysis actualAnalysis = analyzer.analyze( project );
+
+ ProjectDependencyAnalysis expectedAnalysis = new ProjectDependencyAnalysis();
+
+ assertEquals( expectedAnalysis, actualAnalysis );
+ }
+
+ public void testJarWithDependency() throws TestToolsException, ProjectDependencyAnalyzerException
+ {
+ compileProject( "jarWithDependency/pom.xml" );
+
+ MavenProject project2 = getProject( "jarWithDependency/project2/pom.xml" );
+
+ ProjectDependencyAnalysis actualAnalysis = analyzer.analyze( project2 );
+
+ Artifact project1 = createArtifact( "org.apache.maven.shared.dependency-analyzer.tests", "jarWithDependency1", "jar", "1.0", "compile");
+ Set usedDeclaredArtifacts = Collections.singleton( project1 );
+ ProjectDependencyAnalysis expectedAnalysis = new ProjectDependencyAnalysis( usedDeclaredArtifacts, null, null );
+
+ assertEquals( expectedAnalysis, actualAnalysis );
+ }
+
+ // private methods --------------------------------------------------------
+
+ private void compileProject( String pomPath ) throws TestToolsException
+ {
+ File pom = getTestFile( "target/test-classes/", pomPath );
+ Properties properties = new Properties();
+ List goals = Arrays.asList( new String[] { "clean", "install" } );
+ File log = new File(pom.getParentFile(), "build.log");
+
+ InvocationResult result = buildTool.executeMaven( pom, properties, goals, log );
+ assertNull( "Error compiling test project", result.getExecutionException() );
+ assertEquals( "Error compiling test project", 0, result.getExitCode() );
+ }
+
+ private MavenProject getProject( String pomPath ) throws TestToolsException
+ {
+ File pom = getTestFile( "target/test-classes/", pomPath );
+
+ return projectTool.readProjectWithDependencies( pom );
+ }
+
+ private Artifact createArtifact( String groupId, String artifactId, String type, String version, String scope )
+ {
+ VersionRange versionRange = VersionRange.createFromVersion( version );
+ ArtifactHandler handler = new DefaultArtifactHandler();
+
+ return new DefaultArtifact( groupId, artifactId, versionRange, scope, type, null, handler );
+ }
+}
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzerTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzerTest.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/pom.xml
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/pom.xml?rev=575740&view=auto
==============================================================================
--- maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/pom.xml (added)
+++ maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/pom.xml Fri Sep 14 09:15:52 2007
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<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>org.apache.maven.shared.dependency-analyzer.tests</groupId>
+ <artifactId>jarWithDependency</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0</version>
+
+ <modules>
+ <module>project1</module>
+ <module>project2</module>
+ </modules>
+
+</project>
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/pom.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/pom.xml
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/pom.xml?rev=575740&view=auto
==============================================================================
--- maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/pom.xml (added)
+++ maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/pom.xml Fri Sep 14 09:15:52 2007
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<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>org.apache.maven.shared.dependency-analyzer.tests</groupId>
+ <artifactId>jarWithDependency1</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0</version>
+
+</project>
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/pom.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/src/main/java/jarWithDependency/project1/Project1.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/src/main/java/jarWithDependency/project1/Project1.java?rev=575740&view=auto
==============================================================================
--- maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/src/main/java/jarWithDependency/project1/Project1.java (added)
+++ maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/src/main/java/jarWithDependency/project1/Project1.java Fri Sep 14 09:15:52 2007
@@ -0,0 +1,36 @@
+package jarWithDependency.project1;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ *
+ *
+ * @author <a href="mailto:markhobson@gmail.com">Mark Hobson</a>
+ * @version $Id$
+ */
+public class Project1
+{
+ // constructors -----------------------------------------------------------
+
+ public Project1()
+ {
+ // no-op
+ }
+}
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/src/main/java/jarWithDependency/project1/Project1.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project1/src/main/java/jarWithDependency/project1/Project1.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/pom.xml
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/pom.xml?rev=575740&view=auto
==============================================================================
--- maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/pom.xml (added)
+++ maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/pom.xml Fri Sep 14 09:15:52 2007
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<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>org.apache.maven.shared.dependency-analyzer.tests</groupId>
+ <artifactId>jarWithDependency2</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.shared.dependency-analyzer.tests</groupId>
+ <artifactId>jarWithDependency1</artifactId>
+ <version>1.0</version>
+ </dependency>
+ </dependencies>
+
+</project>
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/pom.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/src/main/java/jarWithDependency/project2/Project2.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/src/main/java/jarWithDependency/project2/Project2.java?rev=575740&view=auto
==============================================================================
--- maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/src/main/java/jarWithDependency/project2/Project2.java (added)
+++ maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/src/main/java/jarWithDependency/project2/Project2.java Fri Sep 14 09:15:52 2007
@@ -0,0 +1,38 @@
+package jarWithDependency.project2;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import jarWithDependency.project1.Project1;
+
+/**
+ *
+ *
+ * @author <a href="mailto:markhobson@gmail.com">Mark Hobson</a>
+ * @version $Id$
+ */
+public class Project2
+{
+ // constructors -----------------------------------------------------------
+
+ public Project2()
+ {
+ Project1 project = new Project1();
+ }
+}
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/src/main/java/jarWithDependency/project2/Project2.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithDependency/project2/src/main/java/jarWithDependency/project2/Project2.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/pom.xml
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/pom.xml?rev=575740&view=auto
==============================================================================
--- maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/pom.xml (added)
+++ maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/pom.xml Fri Sep 14 09:15:52 2007
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<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>org.apache.maven.shared.dependency-analyzer.tests</groupId>
+ <artifactId>jarWithNoDependencies</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0</version>
+
+</project>
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/pom.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/src/main/java/jarWithNoDependencies/Project.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/src/main/java/jarWithNoDependencies/Project.java?rev=575740&view=auto
==============================================================================
--- maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/src/main/java/jarWithNoDependencies/Project.java (added)
+++ maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/src/main/java/jarWithNoDependencies/Project.java Fri Sep 14 09:15:52 2007
@@ -0,0 +1,36 @@
+package jarWithNoDependencies;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ *
+ *
+ * @author <a href="mailto:markhobson@gmail.com">Mark Hobson</a>
+ * @version $Id$
+ */
+public class Project
+{
+ // constructors -----------------------------------------------------------
+
+ public Project()
+ {
+ // no-op
+ }
+}
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/src/main/java/jarWithNoDependencies/Project.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/shared/trunk/maven-dependency-analyzer/src/test/resources/jarWithNoDependencies/src/main/java/jarWithNoDependencies/Project.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"