2013-07-21 5 views
1

을 포장하지 않는 설치 :tomee MVN 어떤 META-INF 사용 치어 팩을하지 않는 전쟁 파일 받는다는을 구축하려고 할 때 META-INF

<modelVersion>4.0.0</modelVersion> 
<groupId>demo-test</groupId> 
<artifactId>core-parent</artifactId> 
<packaging>pom</packaging> 
<version>1.0.0</version> 
<name>test</name> 
<url>http://maven.apache.org</url> 

<properties> 
    <test.core.version>1.0.0</test.core.version> 
</properties> 

<modules> 
    <module>testDataModule</module> 
    <module>testFramework</module> 
    <module>testManagerModule</module> 
    <module>CoreWar</module> 
</modules> 

<dependencies> 
    <dependency> 
     <groupId>javax</groupId> 
     <artifactId>javaee-api</artifactId> 
     <version>6.0</version> 
     <!-- scope provided means the container delivers it --> 
     <scope>provided</scope> 
    </dependency> 
</dependencies> 

<build> 
    <finalName>test</finalName> 
    <plugins> 
     <plugin> 
      <groupId>org.apache.openejb.maven</groupId> 
      <artifactId>tomee-maven-plugin</artifactId> 
      <version>1.5.2</version> 
      <configuration> 
       <finalName>test</finalName> 
       <tomeeVersion>1.5.2</tomeeVersion> 
       <tomeeClassifier>plus</tomeeClassifier> 
       <path>C:\test\code\test.core\CoreWar\target\test.war</path> 
       <debug>true</debug> 
       <tomeeHost>localhost</tomeeHost> 
       <tomeeHttpPort>8080</tomeeHttpPort> 
       <libs> 
        <lib>mysql:mysql-connector-java:5.1.20</lib> 
       </libs> 
      </configuration> 
     </plugin> 
     <plugin> 
      <artifactId>maven-compiler-plugin</artifactId> 
      <configuration> 
       <source>1.6</source> 
       <target>1.6</target> 
      </configuration> 
     </plugin> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-war-plugin</artifactId> 
      <configuration> 
       <webXml>..\testFramework\WebFramework\src\webapp\WEB-INF\web.xml</webXml> 
       <outputFileNameMapping>@{groupId}@[email protected]{artifactId}@@{dashClassifier?}@[email protected]{extension}@</outputFileNameMapping> 
      </configuration> 
     </plugin> 
    </plugins> 
</build> 

을 나는 사방 META-INF를 퍼 팅 시도 . 및 대체하지 않습니다 tomee.xml 나는 다음과 같은 구조를 시도 :

myApp-> src-> 자원 -> META-INF/persistence.xml을 myApp-> src-> webapp-> META-INF/persistence.xml

답변

0

webapp/WEB-INF/persistence.xml을 사용해 보셨습니까?