我使用的是netbeans,而不是maven。编译是正常的,但当试图运行它时,我得到了这个错误:无法执行目标组织。科德豪斯。project sic desktop上的mojo:exec maven插件:1.2.1:exec(默认cli):命令执行失败。进程已退出,但出现错误:-1(退出值:-1)-
下面是pom.xml
<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>
<parent>
<groupId>com.techint</groupId>
<artifactId>sic-parent</artifactId>
<version>1.0</version>
</parent>
<artifactId>sic-desktop</artifactId>
<dependencies>
<dependency>
<groupId>com.techint</groupId>
<artifactId>sic-core</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>com.techint</groupId>
<artifactId>sic-ca</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.external</groupId>
<artifactId>AbsoluteLayout</artifactId>
</dependency>
<dependency>
<groupId>org.jdesktop</groupId>
<artifactId>beansbinding</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.instrument</artifactId>
</dependency>
<!-- Spring Security -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-fonts</artifactId>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
</dependency>
<dependency>
<groupId>net.sourceforge.jtds</groupId>
<artifactId>jtds</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.techint.comissionamento.ComissionamentoMain</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.0</version>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<configuration>
<tasks>
<replace token="@buildnumber@" value="${project.version}.${buildNumber}"
dir="target/classes">
<include name="app.properties"/>
</replace>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<!--<finalName>${project.name}-${project.version}.${buildNumber}</finalName>-->
<finalName>Comissionamento</finalName>
</build>
<profiles>
<profile>
<id>dev</id>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<copy file="${project.parent.basedir}/config/epccom/app.dev.properties"
tofile="${project.build.outputDirectory}/app.properties"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<id>prod</id>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<copy file="${project.parent.basedir}/config/epccom/app.prod.properties"
tofile="${project.build.outputDirectory}/app.properties"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jasperreports-maven-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>compile-reports</goal>
</goals>
</execution>
</executions>
<configuration>
<sourceDirectory>src/main/jaspertreports</sourceDirectory>
<outputDirectory>${project.build.outputDirectory}/reports</outputDirectory>
</configuration>
<dependencies>
<!--note this must be repeated here to pick up correct xml validation -->
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>${jasperreports.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
如果您使用的是netbeans,那么请停止当前的运行进程并再次启动它。由于您有一个正在运行的进程,因此会出现此错误
我在运行项目时遇到了这个问题。 无法执行目标组织。科德豪斯。mojo:exec-maven插件:1.2.1:exec(默认cli)on project projectName:Command执行失败。进程退出,但出现错误:1(退出值:1)- 我正在使用Netbeans,我正在处理一个maven的项目,我的pom。xml如下所示: 我试过几种方法,但都解决不了问题,有人能帮我吗? 谢谢你的帮助:)
当我试图执行mvn-DskipTests=true-Passembly assembly:directory exec:exec命令以生成二进制文件时,我无法执行目标组织。科德豪斯。mojo:exec maven插件:项目ors上的1.6.0:exec(默认):参数“executable”丢失或错误无效。我还应用了源目标1.8内部配置,但仍然得到相同的错误。
嗨,我正在学习骆驼(在行动中使用骆驼)。当我尝试在cmd中运行Maven命令时,例如mvn compile exec:Java-dexec . main class = camel inactivation。GreetMeBean 我得到一个错误: [错误]无法在项目第2章上执行目标org.codehaus.mojo:exec maven插件:1.1.1:java(默认cli):执行java类时发
我已经创建了gwt maven项目,现在我想编译它并运行它。为了配合,我提供了作为目标,并运行,但它给我构建失败的例外: [INFO][INFO] 我不明白这里有什么问题 波姆。xml:::
目前,我正在使用Smoks(1.5版本)。在最后一步中,我更改了项目中的包的名称,并引发了以下错误: 无法在项目javaBindings上执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1:exec(default-cli):命令执行失败。进程退出,出现错误:1(退出值:1)->[帮助1]
我使用maven将角应用程序与java结合起来。POM的一部分看起来像这样 mvn包运行良好,项目在war文件中编译,但eclipse表示pom不正确。使用标签的解决方案pluginManagement不匹配,因为它不会执行命令。如何解决eclipse的问题?