Java 코드가 일부 파일을 생성했으며 내부적으로 zip으로 복사하려고했습니다. 그러나 일부 파일을 제외한 모든 파일이 복사됩니다. 나는 그 이유를 알 수 없다.생성 된 파일은 어셈블리 플러그인을 사용하여 Maven 프로젝트 zip으로 복사되지 않습니다.
내가 권한으로 복사하려고 시도한 폴더의 디렉토리 구조와 대상 폴더 (zip 파일)에 정확히 복사 된 내용을 추가 중입니다. 받는다는 플러그인을 사용하여 우편에서 모든 파일을 복사하려고
XYZ-MacBook-Pro:etl_configs XYZ$ pwd FILE_PATH_LOCATION/etl_configs XYZ-MacBook-Pro:etl_configs XYZ$ ls -l * -rw-r--r-- 1 XYZ staff 980 Jun 26 01:02 etl-spec.json -rwxr-xr-x 1 XYZ staff 2037 Jun 15 19:04 etl-without-transformation.json feeds: total 16 -rw-r--r-- 1 XYZ staff 612 Jun 26 00:54 feed_1.json -rw-r--r-- 1 XYZ staff 616 Jun 26 01:02 feed_2.json tables: total 16 -rw-r--r-- 1 XYZ staff 878 Jun 26 00:54 table_1.json -rw-r--r-- 1 XYZ staff 880 Jun 26 01:02 table_2.json
-
디렉토리 구조와 권한.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.5</version>
<configuration>
<descriptor>${project.basedir}/zip.xml</descriptor>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
zip.xml 파일이 포함 -
<fileSet>
<directory>${project.basedir}/etl_configs</directory>
<outputDirectory>/etl_configs</outputDirectory>
<includes>
<include>*</include>
</includes>
</fileSet>
대상 zip 파일이 이상적으로는 내부 지퍼 폴더 전체를 복사해야
XYZ-MacBook-Pro:etl-without-transformation-template-1.0-SNAPSHOT XYZ$ pwd
FILE_PATH_LOCATION/target/etl-without-transformation-template-1.0-SNAPSHOT-zip/etl-without-transformation-template-1.0-SNAPSHOT
XYZ-MacBook-Pro:etl-without-transformation-template-1.0-SNAPSHOT XYZ$ ls -l etl_configs/*
-rwxr-xr-x 1 XYZ staff 980 Jun 26 01:02 etl_configs/etl-spec.json
-rwxr-xr-x 1 XYZ staff 2037 Jun 15 19:04 etl_configs/etl-without-transformation.json
etl_configs/feeds:
etl_configs/tables:
을 contains-. 그러나 그것은 일어나지 않습니다.
그것은했다. 감사. – devsda