小编Ami*_*nai的帖子

生命周期配置maven错误未涵盖插件执行

我导入了一个现有的maven项目但是我在pom.xml中遇到了一些错误:

Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-

 compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile) pom.xml 

 /org.squashtest.csp.tools.unittest line 50 Maven Project Build Lifecycle Mapping Problem
Run Code Online (Sandbox Code Playgroud)

但我不明白为什么,

这是pom.xml:

 <?xml version="1.0"?>
 <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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
<parent>
    <artifactId>squashtest-csp-tools</artifactId>
    <groupId>org.squashtest.tm</groupId>
    <version>1.2.0.RELEASE</version>
</parent>
<artifactId>org.squashtest.csp.tools.unittest</artifactId>
<name>Squashtest CSP - Tools module - Unit tests library</name>
<description>Library  of classes used for unit-testing other Squashtest        
     components</description>

<dependencies>
    <!-- ====== GROOVY ====== -->
    <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy-all</artifactId>
        <scope>compile</scope>
    </dependency>
    <!-- ====== /GROOVY ====== -->
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>org.squashtest.org.hibernate.core</artifactId>
        <version>${hibernate.version}</version>
        <scope>compile</scope> …
Run Code Online (Sandbox Code Playgroud)

maven

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

org.apache.maven.plugins目标执行失败

我正在尝试使用maven生成一个war文件但是我收到了这个错误(大部分下载日志输出被省略以使日志更清晰):

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.pom
Downloaded: 
...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building tn.talan.selenium Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ tn.talan.selenium ---
...
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ tn.talan.selenium ---
...
[INFO] --- maven-war-plugin:2.1.1:war (default-cli) @ tn.talan.selenium ---
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/2.4.1/maven-archiver-2.4.1.pom
Downloaded: 
...
[INFO] BUILD FAILURE
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-cli) on project tn.talan.selenium: Execution default-cli of goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: Plugin org.apache.maven.plugins:maven-war-plugin:2.1.1 or one of its dependencies could not be resolved: Could not transfer artifact org.codehaus.plexus:plexus-io:jar:1.0.1 …
Run Code Online (Sandbox Code Playgroud)

maven-plugin maven

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

音频无法使用phoneGap

嗨,我尝试添加声音到我的游戏,我使用aphoneGap代码来做到这一点:

   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
                      "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>Media Example</title>

    <script type="text/javascript" charset="utf-8" src="js/phonegap-1.4.1.js"></script>
    <script type="text/javascript" charset="utf-8">

    // Wait for PhoneGap to load
    //
    document.addEventListener("deviceready", onDeviceReady, false);

    // PhoneGap is ready
    //
    function onDeviceReady() {
        playAudio("http://audio.ibeat.org/content/p1rj1s/p1rj1s_-_rockGuitar.mp3");
    }

    // Audio player
    //
    var my_media = null;
    var mediaTimer = null;

    // Play audio
    //
    function playAudio(src) {
        // Create Media object from src
        my_media = new Media(src, onSuccess, onError);

        // Play audio
        my_media.play();

        // Update my_media position every second …
Run Code Online (Sandbox Code Playgroud)

javascript html5 cordova

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

无法将工厂绑定到JNDI需要在环境或系统属性中指定类名


嗨,

我正在尝试运行一个导入的开源但运行后我遇到了这个错误:它让我发疯,这是一个巨大的项目,我不知道从哪里开始.

Running test.hibernate.softdelete.jointablewhere.SoftDeleteAssociationTest
main INFO [org.hibernate.cfg.Configuration] - configuring from resource: softdelete/softdelete-hibernate.cfg.xml

main INFO [org.hibernate.cfg.Configuration] - Configuration resource: softdelete/softdelete-hibernate.cfg.xml

main INFO [org.hibernate.cfg.Configuration] - Configured SessionFactory: java:hibernate/SessionFactory

main INFO [org.hibernate.cfg.AnnotationBinder] - Binding entity from annotated class: test.hibernate.softdelete.jointablewhere.Parent

main INFO [org.hibernate.cfg.annotations.EntityBinder] - Bind entity test.hibernate.softdelete.jointablewhere.Parent on table Parent

main INFO [org.hibernate.cfg.AnnotationBinder] - Binding entity from annotated class: test.hibernate.softdelete.jointablewhere.Child

main INFO [org.hibernate.cfg.annotations.EntityBinder] - Bind entity test.hibernate.softdelete.jointablewhere.Child on table Child

main INFO [org.hibernate.cfg.search.HibernateSearchEventListenerRegister] - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is …
Run Code Online (Sandbox Code Playgroud)

hibernate

9
推荐指数
2
解决办法
2万
查看次数

执行失败:java.io.IOException:无法运行程序"jarsigner.exe":CreateProcess

我正在尝试使用ANT运行buildXXX.xml文件,但我收到此错误:

Buildfile: C:\Users\Amira\Desktop\SaloméTMF\Salome TMF      
V3.1SourceCode\buildSOAPClient.xml
init:
prepare:
compile:
makesoapjar:
makeihmjar:
makecorejar:
makedatajar:
makeapijar:
makeloginjar:
maketoolsjar:
makeplugintoolsjar:
makeUpdatejar:
makebootjar:
makecodexjar:
makejar:
signjar:
   [signjar] Signing JAR: C:\Users\Amira\Desktop\SaloméTMF\Salome TMF    
   V3.1SourceCode\distrib\salome_tmf-soap-client\activation.jar to  
   C:\Users\Amira\Desktop\SaloméTMF\Salome TMF V3.1SourceCode\distrib\salome_tmf-soap- 
   client\activation.jar as salome_tmf

BUILD FAILED

C:\Users\Amira\Desktop\SaloméTMF\Salome TMF V3.1SourceCode\buildSOAPClient.xml:251:   
Execute failed: java.io.IOException: Cannot run program "jarsigner.exe": CreateProcess 
error=2, Le fichier spécifié est introuvable

Total time: 5 seconds
Run Code Online (Sandbox Code Playgroud)

我做了一个搜索,所以我发现我应该使用JDK而不是JRE,所以我改变了它,但同样的错误仍然存​​在.

任何想法都将受到赞赏

xml eclipse ant

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

使用Maven的liquibase插件错误

嗨,我是liquibase的新手,我在编译它后导入一个现有项目,但遇到构建失败,我无法理解原因和解决方案,我试图理解代码,但是我确实发现了要解决的问题它。

这是运行后的结果 mvn compile

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.squashtest.tm:squashtest-csp-distribution:pom:1.2.0.RELEASE
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: ${project.groupId}:org.squashtest.csp.core.log4j:jar -> duplicate declaration of version ${project.version} @ line 419, column 17
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: ${project.groupId}:org.squashtest.csp.core.jetty.start.osgi:jar -> duplicate declaration of version ${project.version} @ line 424, column 17
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: ${project.groupId}:org.squashtest.csp.core.service:jar -> duplicate declaration of version ${project.version} @ line 450, column 17
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: ${project.groupId}:squashtest-csp-launcher:jar -> duplicate …
Run Code Online (Sandbox Code Playgroud)

liquibase maven

4
推荐指数
2
解决办法
2万
查看次数

如何实施SSO

我想实现SSO单点登录.
我发现很多链接和文章都在讨论CAS OpenID和许多不同的东西,我真的输了,
所以我应该使用CAS吗?
我安装了CAS Server并将其深入到Tomcat中,下一步是什么?
或者这是错的?
你能解释一下我如何开发一个简单的HelloWorld来实现SSO.

非常感谢

openid cas single-sign-on

2
推荐指数
1
解决办法
1899
查看次数

使用maven-surefire-plugin将测试报告发送到不同的目录

我想生成我的报告所以我用过maven-surefire-plugin.

这是我的pom.xml:

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<executions> 
<execution> 
 <id>test-reports</id> 
    <phase>install</phase> 
    <configuration> 
      <tasks> 
<junitreport todir="./reports">
<fileset dir="./reports">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="./report/html"/>
</junitreport>
</tasks> 
    </configuration> 
    <goals> 
      <goal>test </goal> 
    </goals> 
  </execution> 
</executions> 
</plugin>
Run Code Online (Sandbox Code Playgroud)

但是当我运行maven测试时,我收到了这个错误:

 Tests run: 6, Failures: 2, Errors: 2, Skipped: 0
 [INFO] --------------------------------------------------------------------
 [INFO] BUILD FAILURE
 [INFO] --------------------------------------------------------------------
 [INFO] Total time: 10.403s
 [INFO] Finished at: Wed Oct 12 08:35:10 CEST 2011
 [INFO] Final Memory: 17M/126M
 [INFO] --------------------------------------------------------------------
 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-      plugin:2.10:test (default-test) on …
Run Code Online (Sandbox Code Playgroud)

junit maven-plugin maven-3

0
推荐指数
1
解决办法
6737
查看次数

ReferenceError:找不到变量:$

嗨所有我正在开发一个游戏,当我在Chrome上运行它工作,但当我在模拟器上尝试它我在我的javascript代码中得到一个错误,我无法理解来源或原因

这是错误:

05-13 11:53:11.726: E/Web Console(790): ReferenceError: Can't find variable: $ at file:///android_asset/www/js/html5games.matchgame6.js:5
Run Code Online (Sandbox Code Playgroud)

错误在第5行:这是我的javascript文件内容:

  var matchingGame = {};
  ***var uiPlay1 = $("#gamePlay1");***  //////line 5
  var uiPlay2 = $("#gamePlay2");
  var uiIntro = $("#popup");
  var uiExit = $("#gameExit");
  var uiNextLevel = $("#gameNextLevel");
  var uigameQuit =$("#gameQuit");
 var uiPlay3 = $("#gamePlay3");
 matchingGame.savingObject = {};

 matchingGame.savingObject.deck = [];

 matchingGame.savingObject.removedCards = [];

 // store the counting elapsed time.
  matchingGame.savingObject.currentElapsedTime = 0;

  //store the last-elapsed-time

//matchingGame.savingObject.LastElapsedTime = 0;//now


  // store the player name
  matchingGame.savingObject.palyerName=$("#player-name").html();
  matchingGame.savingObject.currentLevel="game6.html";
  // all …
Run Code Online (Sandbox Code Playgroud)

javascript html5 cordova

0
推荐指数
1
解决办法
2812
查看次数

Maven无法看到测试

我正在使用maven来运行我的硒测试,但它没有找到我把它放在下面的测试src/test/java.我的测试类是命名的, SeleniumTest.java所以它遵循convention(*Test.java)这里是代码:

<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.tests.functional.selenium</groupId>
    <artifactId>functionalTestsSelenium</artifactId>
    <packaging>war</packaging>
    <version>0.0.1-SNAPSHOT</version>
    <name>functionalTestsSelenium Maven Webapp</name>
    <url>http://maven.apache.org</url>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.seleniumhq.selenium.client-drivers</groupId>
            <artifactId>selenium-java-client-driver</artifactId>
            <version>1.0.2</version>
            <scope>test</scope>
        </dependency>

    </dependencies>
    <build>
        <finalName>functionalTestsSelenium</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.0.2</version>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>tomcat-maven-plugin</artifactId>
                <version>1.0-beta-1</version>
            </plugin>


            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>selenium-maven-plugin</artifactId>
            </plugin>


            <!-- Start the tomcat server and Deploy the war -->
            <plugin>
                <groupId>org.codehaus.cargo</groupId>
                <artifactId>cargo-maven2-plugin</artifactId>
                <configuration>
                    <wait>false</wait>
                    <container>
                        <containerId>tomcat6x</containerId>
                        <type>installed</type>
                        <home>${env.CATALINA_HOME}</home>
                    </container>
                </configuration>
                <executions>
                    <execution>
                        <id>start-container</id>
                        <phase>pre-integration-test</phase>
                        <goals> …
Run Code Online (Sandbox Code Playgroud)

selenium unit-testing maven

0
推荐指数
1
解决办法
1582
查看次数