我的项目使用YAJSW包装器。在构建项目时,我简单地将YAJSW所需的jars复制到程序集中。所以YAJSW的罐子很简单就被输入了我的svn。我不喜欢这样,因为我的项目拥有25 MB的空间,其中20 MB是YAJSW的库。
我想尝试:
如果有一个带有依赖项的YAJSW pom,这将是最好的,但我没有找到。也许是有人创造的,这样我才能把它上传到我的回购网站上?
发布于 2014-11-27 21:11:08
这是您需要在assembly循环中复制的最基本的东西:
<fileSet>
<directory>
your_yajsw_folder
</directory>
<outputDirectory>/yajsw</outputDirectory>
<includes>
<include>bat/</include>
<include>conf/</include>
<include>lib/</include>
<include>scripts/</include>
<include>wrapper.jar</include>
<include>wrapperApp.jar</include>
</includes>
</fileSet>现在,我正在尝试从maven中添加wrapper.jar和wrapperApp.jar,从而将其从非对称性文件中删除。但是,为此,我可能需要编辑脚本,以查找lib文件夹中的jar,而不是wrapper_home
我找到了maven依赖项:
<dependency>
<groupId>org.rzo.yajsw</groupId>
<artifactId>wrapper</artifactId>
<version>11.11</version>
</dependency>
<dependency>
<groupId>org.rzo.yajsw</groupId>
<artifactId>wrapperApp</artifactId>
<version>11.11</version>
</dependency>发布于 2014-07-28 14:03:07
事实上,我已经这样做了-请查看我的项目:
https://github.com/griels/yajsw-maven-mk2
我认为还有一些其他项目已经完成了这样的集成。
https://github.com/neo4j-attic/yajsw
但我找不到很多关于他们的信息。
或者,如果您能够找到从Maven运行YAJSW Gradle构建脚本的方法,您可能可以使用它。我不得不手工追踪大部分的依赖项。
https://stackoverflow.com/questions/24011831
复制相似问题