It's all about the answers!

Ask a question

The goal you specified requires a project to execute but there is no POM in this directory (/tmp/maven). Please verify you invoked Maven from the correct directory.


Silamparasan Navamani (8123) | asked Sep 17 '14, 8:14 a.m.
Hi All,
I was working in the building the maven based project using maven-scm-jazz provider and maven-release plugin.

I was able to run the prepare statement. And able to get the release.properties.

When I try to execute the mvn release:perform -DworkingDirectory=/tmp/maven.

I m able to check out the files from the jazz server to the working directory.
and on the next phase it is getting the below Issue.

[INFO] Executing goals 'deploy'...
[DEBUG] Using ${maven.home} of: '/opt/apache-maven-3.0'.
[DEBUG] Executing: /bin/sh -c cd /tmp/maven && /opt/apache-maven-3.0/bin/mvn -X -D maven.repo.local=/home/snavaman/.m2/repository -D performRelease=true deploy
[WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.
[INFO] Apache Maven 3.0 (r1004208; 2010-10-04 07:50:56-0400)
[INFO] Java version: 1.6.0
[INFO] Java home: /opt/ibm/java-i386-60/jre
[INFO] Default locale: en_US, platform encoding: UTF-8
[INFO] OS name: "linux" version: "2.6.18-274.7.1.el5" arch: "x86" Family: "unix"
[INFO] [INFO] Error stacktraces are turned on.
[INFO] [DEBUG] Reading user settings from /home/snavaman/.m2/settings.xml
[INFO] [DEBUG] Reading global settings from /opt/apache-maven-3.0/conf/settings.xml
[INFO] [DEBUG] Using local repository at /home/snavaman/.m2/repository
[INFO] [INFO] Scanning for projects...
[INFO] [DEBUG] Extension realms for project org.apache.maven:standalone-pom:pom:1: (none)
[INFO] [DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 0.122s
[INFO] [INFO] Finished at: Wed Sep 17 05:55:23 EDT 2014
[INFO] [INFO] Final Memory: 3M/6M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/tmp/maven). Please verify you invoked Maven from the correct directory. -> [Help 1]
[INFO] org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (/tmp/maven). Please verify you invoked Maven from the correct directory.
[INFO]  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:89)
[INFO]  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314)
[INFO]  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
[INFO]  at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
[INFO]  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
[INFO]  at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
[INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[INFO]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO]  at java.lang.reflect.Method.invoke(Method.java:600)
[INFO]  at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
[INFO]  at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
[INFO]  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
[INFO]  at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[INFO] [ERROR]
[INFO] [ERROR]
[INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ***** POM Application .............................. FAILURE [56.494s]
[INFO] ***** Web Application .............................. SKIPPED
[INFO] ***** EAR Application .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 57.056s
[INFO] Finished at: Wed Sep 17 05:55:23 EDT 2014
[INFO] Final Memory: 8M/23M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:perform (default-cli) on project *****: Maven execution failed, exit code: '1' -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:perform (default-cli) on project *****: Maven execution failed, exit code: '1'
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:600)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Maven execution failed, exit code: '1'
        at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:136)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
        ... 19 more
Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Maven execution failed, exit code: '1'
        at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:90)
        at org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:67)
        at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:343)
        at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:289)
        at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:269)
        at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:132)
        ... 21 more
Caused by: org.apache.maven.shared.release.exec.MavenExecutorException: Maven execution failed, exit code: '1'
        at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:399)
        at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:417)
        at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:82)
        ... 26 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


The Main Pom Structure for the project :
<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>****</groupId>
    <artifactId>*****</artifactId>
    <packaging>pom</packaging>
    <name>*** POM Application</name>
    <version>4.0.205-SNAPSHOT</version>
    <scm>
        <!--web_wkspc is a workspace name--!>
        <url>https://server.com:9443/jazz</url>
        <connection>scm:jazz:user;pass@https://server.com:9443/jazz:web_wkspc</connection>
        <developerConnection>scm:jazz:user;pass@https://server.com:9443/jazz:web_wkspc</developerConnection>
    </scm>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.3.2</version>
                    <configuration>
                        <source>${java-version}</source>
                        <target>${java-version}</target>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>2.1.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.7</version>
                    <configuration>
                        <skip>true</skip>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>2.5</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.1</version>
                    <configuration>
                                <releaseProfiles>releases</releaseProfiles>
                                <remoteTagging>false</remoteTagging>
                    </configuration>
                    <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-provider-jazz</artifactId>
                        <version>1.9</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-api</artifactId>
                        <version>1.9</version>
                    </dependency>
                </dependencies>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-scm-plugin</artifactId>
                <version>1.9</version>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-provider-jazz</artifactId>
                        <version>1.9</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-api</artifactId>
                        <version>1.9</version>
                    </dependency>
                </dependencies>
               
                <configuration>
                    <connectionType>developerConnection</connectionType>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <modules>
        <module>****-web</module>
        <module>****-ear</module>
    </modules>
    <repositories>
        <repository>
            <id>***-repository</id>
            <name>Shared internal Nexus repository</name>
            <url>http://server.com:8081/nexus/content/groups/public</url>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>***-repository</id>
            <name>Shared internal Nexus repository</name>
            <url>http://server.com:8081/nexus/content/groups/public</url>
        </pluginRepository>
    </pluginRepositories>
    <distributionManagement>
        <repository>
            <id>***-repository</id>
            <name>Releases</name>
            <url>http://server.com:8081/nexus/content/repositories/releases</url>
        </repository>
        <snapshotRepository>
            <id>***-repository</id>
            <name>Snapshots</name>
            <url>http://server.com:8081/nexus/content/repositories/snapshots</url>
        </snapshotRepository>
    </distributionManagement>
    <properties>
        <java-version>1.6</java-version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <profiles>
       <profile>
          <id>releases</id>
          <build>
             <plugins>
                <plugin>
                   <groupId>org.sonatype.plugins</groupId>
                   <artifactId>nexus-staging-maven-plugin</artifactId>
                   <version>1.5.1</version>
                   <executions>
                      <execution>
                         <id>default-deploy</id>
                         <phase>deploy</phase>
                         <goals>
                            <goal>deploy</goal>
                         </goals>
                         <configuration>
                                <pomFileName>${basedir}/pom.xml</pomFileName>
                        </configuration>
                      </execution>
                   </executions>
                   <configuration>
                      <serverId>nexus-releases</serverId>
                      <nexusUrl>http://server.com:8081/nexus/content/repositories/releases</nexusUrl>
                      <skipStaging>true</skipStaging>
                   </configuration>
                </plugin>
             </plugins>
          </build>
       </profile>
    </profiles>
</project>

Question 1)
Do we want any change in the POM.XML
Question 2)
Do we want to mention the POM.XML name explicitly in the perform command?
Question 3)
Do we want to add any other plugins in the pom.xml?

And also I would like to get any help for all to solve the issue.

Thanks a lot in advance. I  looking for all the helps...

One answer



permanent link
Silamparasan Navamani (8123) | answered Sep 18 '14, 9:17 a.m.
By Changing the Version of Maven-release Plugin from 2.1 to 2.2.1
I was able to build the maven project successfully and deploy.
And also I had removed the release Profile.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.