? 내가 프로젝트를 만들 때메이븐 웹 프로젝트
구조 대상이 그런
*.jsp
*.html
META-INF
MANIFEST (OSGI-CONFIG)
WEB-INF
classes
lib
web.xml
입니다
이 내 pom.xml 파일
프로젝트 속성이다
<groupId>com.aaaa</groupId>
<artifactId>first-maven-virgo-project</artifactId>
<version>1.0.0</version>
<packaging>war</packaging>
펠릭스 플러그인
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<supportedProjectTypes>
<supportedProjectType>war</supportedProjectType>
</supportedProjectTypes>
<instructions>
<Export-Package>com.roshka.servlet</Export-Package>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-ClassPath>.,WEB-INF/classes,{maven-dependencies}</Bundle-ClassPath>
<Embed-Directory>WEB-INF/lib</Embed-Directory>
<Embed-Dependency>*;scope=compile|runtime;</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
<Web-ContextPath>/hello</Web-ContextPath>
<Webapp-Context>hello</Webapp-Context>
</instructions>
</configuration>
</plugin>
그러나 mvn install
을 실행하면 패키지가 MANIFEST
파일을 만들지 않고 METAINF 폴더에 패키지됩니다.
펠릭스 프로젝트에 무슨 문제가 있습니까? OSGI BUNDLE과 WAR OSGI BUNDLE을 만드는 전형적인 pom.xml 템플릿은 무엇입니까?
p.s. 내가 바꾼다면 WAR에서 BUNDLE을 패키징 Maven 서술자로 변경하면 생성 된 JAR은 MANIFEST가 OK를 생성하여 OK로 동작한다. 그러나 그것은 WEB 구조가 아닙니다.
도움을 주신 Brad – jrey