我想在依赖检查之前运行maven-install-plugin.我怎样才能做到这一点?插件配置:
<artifactId>maven-install-plugin</artifactId>
<executions>
<execution>
<id>install-library</id>
<phase>process-resources</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>my.assets</groupId>
<artifactId>myAsset</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>swc</packaging>
<file>libs/asset.swc</file>
</configuration>
</execution>
</executions>
Run Code Online (Sandbox Code Playgroud) 使用flexmojos进行编译时,我收到警告:
[警告]该部分或任何scope ="theme"依赖项中未明确定义任何主题.Flexmojos现在正试图找出要包含的主题.(为了避免此警告,您应该明确说明您的主题依赖项)
[警告]添加spark.css主题是因为spark.swc作为依赖项包含在内
我试过添加:
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>spark</artifactId>
<type>swc</type>
<scope>theme</scope>
<version>${flex.sdk.version}</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
但我只是得到一个错误:
com.adobe.flex.framework:spark:swc必须是[compile,runtime,system]之一,但是'theme'
我只想使用标准的Spark主题.
谢谢
如果我在http://flexmojos.sonatype.org/getting-started.html上尝试入门,我会遇到一些错误.有人可以帮帮我吗?我是maven的新手,但由于它是一个入门,我一直在跳'一切都会顺利......不是.
错误:
Missing:
----------
1) net.sf.saxon:saxon-dom:jar:9.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=net.sf.saxon -DartifactId=saxon-dom -Dv
ersion=9.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=net.sf.saxon -DartifactId=saxon-dom -Dver
sion=9.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
2) net.sf.saxon:saxon-dom:jar:9.0
2) org.graniteds:granite-generator-share:jar:2.0.0.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file …
Run Code Online (Sandbox Code Playgroud) 我无法在Maven中设置我的自定义主题,就像我在Eclipse中通过更改项目属性中的主题一样.
我注意到依赖关系中的主题swc,编译器创建了它,但主题没有改变.
谁知道如何在Maven中设置自定义主题?