小编Col*_*age的帖子

com.jayway.maven.plugins.android.generation2:生命周期配置未涵盖插件执行?

我很难过.我们最近将我们的Android项目转换为Maven项目.我的合作伙伴正在使用IntelliJ而我正在使用Eclipse.他说这可以通过他的设置很好地构建.

我是Maven的新手并且已经按照教程阅读了我能找到的所有内容来尝试解决这个问题.

我的pom.xml文件中有以下错误:

Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.3.2:proguard (execution: default-proguard, 
 phase: process-classes)
- Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.3.2:generate-sources (execution: default-
 generate-sources, phase: generate-sources)
Run Code Online (Sandbox Code Playgroud)

这是我的pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.groupmd.clientandroid</groupId>
<artifactId>clientandroid</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>apk</packaging>
<name>GroupMD</name>

<dependencies>
    <dependency>
        <groupId>com.google.android</groupId>
        <artifactId>support-v4</artifactId>
        <version>r7</version>
    </dependency>
    <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>2.2.2</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>com.actionbarsherlock</groupId>
        <artifactId>actionbarsherlock</artifactId>
        <version>4.2.0</version>
        <type>apklib</type>
    </dependency>
</dependencies>
<build>
    <finalName>${project.artifactId}</finalName>
    <sourceDirectory>src</sourceDirectory>
    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>com.jayway.maven.plugins.android.generation2</groupId>
                <artifactId>android-maven-plugin</artifactId>
                <version>3.3.2</version>
                <extensions>true</extensions> …
Run Code Online (Sandbox Code Playgroud)

eclipse android maven android-maven-plugin

20
推荐指数
1
解决办法
1万
查看次数

start-stop-daemon和java程序

我有一点时间使用start-stop-daemon在java脚本中正确启动java程序.我已经编写了init脚本,它似乎运行但是之后从来没有一个进程表示正在运行的程序.

这是我的init脚本的片段

#! /bin/sh
#
#

DAEMON="/usr/bin/java"
DAEMON_ARGS="-server -cp <bunch of RMI arguments and classpath stuff> -jar <absolute path>/myprog.jar"

PIDFILE="/var/run/myprog.pid"

case "$1" in
start)
    echo -n "Starting myprog"
    start-stop-daemon --start --pidfile "$PIDFILE" --chuid "myuser" --verbose --background --make-pidfile --startas "$DAEMON" -- $DAEMON_ARGS
    echo "."
;;
Run Code Online (Sandbox Code Playgroud)

当我尝试通过/etc/init.d启动它时,我得到以下内容:

/etc/init.d# /etc/init.d/myscript start

启动myprogStarting/usr/bin/java ...

重启以启动/usr/bin/java..done.

.

之后,没有运行java解释器进程,执行myprog.jar

我已经尝试了--exec, - start的各种组合,或多或少相同的结果.如果我能更清楚地了解正在发生的事情,我相信我可以解决这个问题,但我不确定如何做到这一点.

有什么建议?

(我在嵌入式ARM平台上运行Angstrom,因此Java Service Wrapper实际上不是一个可行的选择,即我认为它不适用于ARM)

我被困了所以任何建议都会非常感激.

谢谢.

java arm start-stop-daemon angstrom-linux

8
推荐指数
2
解决办法
6486
查看次数

IntentService无法启动的原因?

我有一个行为奇怪的Android IntentService.我通过调用startService(intent)向它发送一个intent.

(我道歉,我离开了办公桌,无法粘贴任何实际代码.)

当我拨打上述电话时​​没有任何反应.在Intent Service中都没有调用构造函数和onHandleIntent方法.没有编译器警告或错误,我在控制台或日志中看不到任何兴趣.

当我继续调查这个时,我只是想知道是否有一个简短的列表,列出了为什么IntentService不会像这样开始而没有明显证据的原因.问题可能出在清单文件中吗?

service android android-intent intentservice

3
推荐指数
1
解决办法
2735
查看次数