removing the extra plugins since they are not necessary.
This commit is contained in:
parent
836a94985c
commit
927106de3e
@ -52,55 +52,10 @@
|
||||
<build>
|
||||
<finalName>core-java-networking-3</finalName>
|
||||
<pluginManagement>
|
||||
<!-- lock down plugins versions to avoid using Maven defaults (may be
|
||||
moved to parent pom) -->
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
</plugin>
|
||||
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-clean-plugin</artifactId>
|
||||
<version>3.1.0</version>
|
||||
</plugin>
|
||||
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.0.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.8.0</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.22.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.0.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-install-plugin</artifactId>
|
||||
<version>2.5.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<version>2.8.2</version>
|
||||
</plugin>
|
||||
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
|
||||
<plugin>
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<version>3.7.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||
<version>3.0.0</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
|
@ -40,7 +40,7 @@ public class DownloadEmailAttachments {
|
||||
List<String> attachments = new ArrayList<String>();
|
||||
if (message.getContentType()
|
||||
.contains("multipart")) {
|
||||
attachments = downloadEmailMessages(message);
|
||||
attachments = downloadAttachments(message);
|
||||
}
|
||||
|
||||
System.out.println("Message #" + (i + 1) + ":");
|
||||
@ -53,7 +53,7 @@ public class DownloadEmailAttachments {
|
||||
store.close();
|
||||
}
|
||||
|
||||
public List<String> downloadEmailMessages(Message message) throws IOException, MessagingException {
|
||||
public List<String> downloadAttachments(Message message) throws IOException, MessagingException {
|
||||
List<String> downloadedAttachments = new ArrayList<String>();
|
||||
Multipart multiPart = (Multipart) message.getContent();
|
||||
int numberOfParts = multiPart.getCount();
|
||||
|
Loading…
x
Reference in New Issue
Block a user