Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump plexus-archiver from 3.4 to 4.2.5 #36

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -72,20 +72,16 @@ public void testDirectoryContent() throws Exception
Artifact mainArtifact = new Artifact( "localhost", "mrm-15", "1.0", "jar" );
assertNotNull( artifactStore.get( mainArtifact ) );

List<String> names = new ArrayList<String>();
JarInputStream jis = new JarInputStream( artifactStore.get( mainArtifact ) );
try
List<String> names = new ArrayList<>();

try (JarInputStream jis = new JarInputStream( artifactStore.get( mainArtifact ) ) )
{
JarEntry jarEntry;
while ( ( jarEntry = jis.getNextJarEntry() ) != null )
{
names.add( jarEntry.getName() );
}
}
finally
{
jis.close();
}

assertTrue( names.contains( "README.txt" ) );
}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Expand Up @@ -132,12 +132,12 @@
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.24</version>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-archiver</artifactId>
<version>3.4</version>
<version>4.2.5</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
Expand Down