meta-inf

Add .mf & .xml files in META-INF directory inside a Maven built EAR

依然范特西╮ 提交于 2019-12-13 13:33:26
问题 I have arbitrary .xml & .mf files that i have to add in the META-INF folder inside the ear itself. Build is done using maven2.2.1. Simply adding those files under ${basedir}/src/main/application/META-INF/ works fine, but it doesn't fit my needs. Is there another way to do such thing? I tried: <build> <resources> <resource> <directory>G:/WS/vermeg/ear2/XML's</directory> <targetPath>META-INF</targetPath> </resource> </resources> </build> but this doesn't add my xml files under the EAR itself. I

creating META-INF/services folder in Eclipse

人盡茶涼 提交于 2019-12-09 05:32:49
问题 I am trying to create an extensible app in Java and chose to use SPI. According to this tutorial I am following, I am supposed to create a specific file in META-INF/services in my jar, but don't know how. I know how to create jar with META-INF , but can't find a way how to create the services folder and particular file in this folder. (I am using Eclipse) Thanks for your help. 回答1: Since the tutorial is instructing to create it manually rather than using ant or maven or other build tools then

Maven: include files in JAR's META-INF

旧巷老猫 提交于 2019-12-07 07:19:24
问题 I'm using Maven to build a Java project, and I've got a couple files, CHANGELOG and LICENSE , that I'd like to copy to the META-INF directory inside the JAR file. So far what I've got working is the following: <build> <resources> <resource> <directory>${project.basedir}</directory> <includes> <include>CHANGELOG</include> <include>LICENSE</include> </includes> <targetPath>META-INF</targetPath> </resource> </resources> <plugins> ... but that also copies those two files to the classes/META-INF

Maven: include files in JAR's META-INF

假如想象 提交于 2019-12-05 16:29:12
I'm using Maven to build a Java project, and I've got a couple files, CHANGELOG and LICENSE , that I'd like to copy to the META-INF directory inside the JAR file. So far what I've got working is the following: <build> <resources> <resource> <directory>${project.basedir}</directory> <includes> <include>CHANGELOG</include> <include>LICENSE</include> </includes> <targetPath>META-INF</targetPath> </resource> </resources> <plugins> ... but that also copies those two files to the classes/META-INF directory when compiling. So I'd like the files to be included in the JAR file, but nowhere else. Is

Two Meta-Inf folders - normal structure?

試著忘記壹切 提交于 2019-12-03 17:00:01
I just "discovered" that we have two Meta-Inf folders ... In eclipse and also in the War file. The First one is (in the war): /META-INF/ The Second, and weird one ist: /WEB-INF/classes/META-INF/ In the second folder is a persistance.xml and a something.taglib.xml... If i move the files into the first meta-inf folder i get exceptions from hibernate.. What is the purpose of this second and oddly placed meta-inf folder ? Is this a normal folder structure ? The "weird one" location is correct; JSR-220/JSR-317 (Java Persistence API 1.0/2.0) in section 6.2/8.2 say: The jar file or directory whose

Apache Tomcat 7.0.14:build-impl.xml:1111: The module has not been deployed

江枫思渺然 提交于 2019-12-02 03:00:13
问题 While deploying a project in Netbeans7.4 It is not deploying project in Apache Tomcat 7.0.14 am it is showing following E:\Project\atom\nbproject\build-impl.xml:1111: The module has not been deployed. See the server log for details. BUILD FAILED (total time: 1 minute 22 seconds) line no:1111 at built-impl.xml is <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/> To resolve above problem I have followed this link My context.xml file contains <?xml

Apache Tomcat 7.0.14:build-impl.xml:1111: The module has not been deployed

我的梦境 提交于 2019-12-02 02:02:26
While deploying a project in Netbeans7.4 It is not deploying project in Apache Tomcat 7.0.14 am it is showing following E:\Project\atom\nbproject\build-impl.xml:1111: The module has not been deployed. See the server log for details. BUILD FAILED (total time: 1 minute 22 seconds) line no:1111 at built-impl.xml is <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/> To resolve above problem I have followed this link My context.xml file contains <?xml version="1.0" encoding="UTF-8"?> <Context antiJARLocking="true" path="/atom"/> And all permission is

Maven war has META-INF folder in two places

好久不见. 提交于 2019-11-30 11:30:48
问题 I'm working on a project which uses JAAS and unfortunately for me Tomcat requires a file to be put in a META-INF folder in the root of the war app.war |__META-INF | |___context.xml ... I think that it's already weird since the default META-INF location for WAR's is in the classes folders. app.war |__WEB-INF | |__classes | |__META-INF ... So I'm using Maven, which states that anything in src/main/resources/META-INF will be copied to the appropriate place, which it does. The weird thing is that

Maven war has META-INF folder in two places

﹥>﹥吖頭↗ 提交于 2019-11-30 02:01:25
I'm working on a project which uses JAAS and unfortunately for me Tomcat requires a file to be put in a META-INF folder in the root of the war app.war |__META-INF | |___context.xml ... I think that it's already weird since the default META-INF location for WAR's is in the classes folders. app.war |__WEB-INF | |__classes | |__META-INF ... So I'm using Maven, which states that anything in src/main/resources/META-INF will be copied to the appropriate place, which it does. The weird thing is that it is also creating a META-INF folder in the root of the file structure leaving me with 2 META-INF

Keep 'META-INF/services'-files in apk

房东的猫 提交于 2019-11-27 04:35:17
问题 I have a custom charset which is already working on JavaSE. The class of my CharsetProvider is specified in a file java.nio.charset.spi.CharsetProvider which is located in META-INF/services and everything get's loaded normally and works as expected. However now I'm using the lib on android as well, but the charset isn't loaded in Android-App. How can I integrate my charset, so that it can be used like expected in an Android-App? Charset.forName("MyCS"); At the moment I'm doing a workaround