2014-10-16 3 views
0

Maven 어셈블리 플러그인에서 "$ {}"을 (를) 허용합니까?Maven 어셈블리 플러그인 : <fileset> 요소

<assembly> 
    .. 
    <fileSets> 
    <fileSet> 

     <directory>${project.build.outputDirectory}</directory> 


     <includes> 
      <include>**/${item}*.class</include> 
     </includes> 
     <outputDirectory>/</outputDirectory> 

    </fileSet> 
    </fileSets> 
    .. 
    </assembly> 
+0

전체 조립 기술자를 보여주십시오 당신이 달성하기 위해 무엇을 좋아 설명해주십시오? – khmarbaise

+0

달성하고자하는 것이 무엇인지 설명해야합니다. 왜냐하면 당신의 발췌 부분이 이것이 maven-jar-plugin에 의해 이미 완료 되었기 때문에 javen 파일을 생성하는 이상한 현상이 발생합니다. 왜 당신은 maven-assembly-plugin을 통해이 작업을 수행하기를 좋아하는지 이해할 수 없습니까? – khmarbaise

답변

0

시도하십시오 :

   <modelVersion>4.0.0</modelVersion> 
       <groupId>1.2.3</groupId> 
       <artifactId>a</artifactId> 
       <version>src</version> 
       <build> 
        <plugins> 
         <plugin> 
          <artifactId>maven-assembly-plugin</artifactId> 
          <version>2.5.3</version> 
          <configuration> 
           <descriptor>assembly.xml</descriptor> 
           <finalName>sdm</finalName> 
          </configuration> 
          <executions> 
           <execution> 
            <id>create-archive</id> 
            <phase>package</phase> 
            <goals> 
             <goal>single</goal> 
            </goals> 
           </execution> 
          </executions> 
         </plugin> 
        </plugins> 
       </build> 

      </project> 


      <assembly xmlns="http://maven.apache.org/plugins/maven-assembly- 
       <id>arch</id> 

       <formats> 
       <format>zip</format> 
       </formats> 
       <fileSets> 
       <fileSet> 
        <directory>${basedir}/src/main/resources</directory> 
        <outputDirectory>/</outputDirectory> 
       </fileSet> 

       </fileSets> 
      </assembly> 
관련 문제