[jira] Commented: (MANTRUN-148) The basedir property is not changed when called from an imported file.
[ http://jira.codehaus.org/browse/MANTRUN-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229194#action_229194 ] Paul Gier commented on MANTRUN-148: --- I was using Maven 3.0-beta-1 and got the following error {quote} [ERROR] Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:2.4:descriptor (default-descriptor) on project testcompile-maven-plugin: Error extracting plugin descriptor: 'No mojo descriptors found in plugin.' -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:2.4:descriptor (default-descriptor) on project testcompile-maven-plugin: Error extracting plugin descriptor: 'No mojo descriptors found in plugin.' {quote} But Maven 2.2.1 seems to allow me to build ok. I guess Maven 3 does not allow a plugin with no mojos. If this is a valid use case for you, you should probably file an issue against Maven 3. > The basedir property is not changed when called from an imported file. > --- > > Key: MANTRUN-148 > URL: http://jira.codehaus.org/browse/MANTRUN-148 > Project: Maven 2.x Antrun Plugin > Issue Type: Bug > Environment: Windows XP professional edition >Reporter: Sander Rensen > Attachments: settings.xml, Temp.zip, test-auto-compile.zip > > > Dear Maven developers, > I want to call an ant script from maven using mojos. The issue I am facing is > that the basedir property does not change the moment this property is used > within an imported file. This needs to happen as the basedir from the > imported file is allocated in a different directory then the directory I am > calling the maven mojo from. Let me explain with an example I have attached. > 1. Please first extract the zip file test-auto-compile.zip. Install the mojo > plugin (mvn clean install). > 2. Make sure in the maven repository the settings xml file is changed. I have > attached this file separately. I have included a > test-auto-compile in the settings.xml file. > 3. Make sure the files ant-sca-package.xml and ant-sca-compile.xml are copied > in C:/Temp. For this please extract the zip file Temp.zip. > 4. run the test-auto-compile project typing: mvn testcompile:testcompile. > 5. The error is: Cannot find > D:\SopraGroup\Development\PoC\Mavin\test-auto-compile/ant-sca-compil > e.xml imported from C:\Temp\ant-sca-package.xml. > The file ant-sca-package.xml is imported from the build.xml file. This file > ant-sca-package.xml imports the ant-sca-compile file. This file is imported > using: > The basedir should be the directory from where the ant-sca-package is > imported. In this case c:/Temp. However it tries to find the > ant-sca-compile.xml file in the maven directory as his basedir. > When I am calling the same ant script directly from ant then the basedir > changes and the ant script is completed successfully. > The solution to this issue is very simple by changing the import statement in > the ant-sca-compile file. However I am not aloud to change this file!! > I hope you can assist with this bug. > Many Thanks > Sander Rensen -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MANTRUN-148) The basedir property is not changed when called from an imported file.
[ http://jira.codehaus.org/browse/MANTRUN-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229122#action_229122 ] Sander Rensen commented on MANTRUN-148: --- He Paul, I think I was unclear my apologize. The build of installing the mojo at my side is successful. The problem however as described happens during step 4 of running mvn testcompile:testcompile. This issue is not resolved. Please let me know what problems you encounter while building the mojo. Many Thanks. Sander > The basedir property is not changed when called from an imported file. > --- > > Key: MANTRUN-148 > URL: http://jira.codehaus.org/browse/MANTRUN-148 > Project: Maven 2.x Antrun Plugin > Issue Type: Bug > Environment: Windows XP professional edition >Reporter: Sander Rensen > Attachments: settings.xml, Temp.zip, test-auto-compile.zip > > > Dear Maven developers, > I want to call an ant script from maven using mojos. The issue I am facing is > that the basedir property does not change the moment this property is used > within an imported file. This needs to happen as the basedir from the > imported file is allocated in a different directory then the directory I am > calling the maven mojo from. Let me explain with an example I have attached. > 1. Please first extract the zip file test-auto-compile.zip. Install the mojo > plugin (mvn clean install). > 2. Make sure in the maven repository the settings xml file is changed. I have > attached this file separately. I have included a > test-auto-compile in the settings.xml file. > 3. Make sure the files ant-sca-package.xml and ant-sca-compile.xml are copied > in C:/Temp. For this please extract the zip file Temp.zip. > 4. run the test-auto-compile project typing: mvn testcompile:testcompile. > 5. The error is: Cannot find > D:\SopraGroup\Development\PoC\Mavin\test-auto-compile/ant-sca-compil > e.xml imported from C:\Temp\ant-sca-package.xml. > The file ant-sca-package.xml is imported from the build.xml file. This file > ant-sca-package.xml imports the ant-sca-compile file. This file is imported > using: > The basedir should be the directory from where the ant-sca-package is > imported. In this case c:/Temp. However it tries to find the > ant-sca-compile.xml file in the maven directory as his basedir. > When I am calling the same ant script directly from ant then the basedir > changes and the ant script is completed successfully. > The solution to this issue is very simple by changing the import statement in > the ant-sca-compile file. However I am not aloud to change this file!! > I hope you can assist with this bug. > Many Thanks > Sander Rensen -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MANTRUN-148) The basedir property is not changed when called from an imported file.
[ http://jira.codehaus.org/browse/MANTRUN-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229031#action_229031 ] Paul Gier commented on MANTRUN-148: --- So the problem is no longer happening? > The basedir property is not changed when called from an imported file. > --- > > Key: MANTRUN-148 > URL: http://jira.codehaus.org/browse/MANTRUN-148 > Project: Maven 2.x Antrun Plugin > Issue Type: Bug > Environment: Windows XP professional edition >Reporter: Sander Rensen > Attachments: settings.xml, Temp.zip, test-auto-compile.zip > > > Dear Maven developers, > I want to call an ant script from maven using mojos. The issue I am facing is > that the basedir property does not change the moment this property is used > within an imported file. This needs to happen as the basedir from the > imported file is allocated in a different directory then the directory I am > calling the maven mojo from. Let me explain with an example I have attached. > 1. Please first extract the zip file test-auto-compile.zip. Install the mojo > plugin (mvn clean install). > 2. Make sure in the maven repository the settings xml file is changed. I have > attached this file separately. I have included a > test-auto-compile in the settings.xml file. > 3. Make sure the files ant-sca-package.xml and ant-sca-compile.xml are copied > in C:/Temp. For this please extract the zip file Temp.zip. > 4. run the test-auto-compile project typing: mvn testcompile:testcompile. > 5. The error is: Cannot find > D:\SopraGroup\Development\PoC\Mavin\test-auto-compile/ant-sca-compil > e.xml imported from C:\Temp\ant-sca-package.xml. > The file ant-sca-package.xml is imported from the build.xml file. This file > ant-sca-package.xml imports the ant-sca-compile file. This file is imported > using: > The basedir should be the directory from where the ant-sca-package is > imported. In this case c:/Temp. However it tries to find the > ant-sca-compile.xml file in the maven directory as his basedir. > When I am calling the same ant script directly from ant then the basedir > changes and the ant script is completed successfully. > The solution to this issue is very simple by changing the import statement in > the ant-sca-compile file. However I am not aloud to change this file!! > I hope you can assist with this bug. > Many Thanks > Sander Rensen -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MANTRUN-148) The basedir property is not changed when called from an imported file.
[ http://jira.codehaus.org/browse/MANTRUN-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=228154#action_228154 ] Sander Rensen commented on MANTRUN-148: --- Hi Paul, Thanks for coming back to me. The example I have provided does not include any Java code. The mojo only calls an Ant task. I have tried a new mvn clean install from the extracted test-auto-compile folder and my build is successful. Can you please let me know the error you are receiving? Many Thanks Sander > The basedir property is not changed when called from an imported file. > --- > > Key: MANTRUN-148 > URL: http://jira.codehaus.org/browse/MANTRUN-148 > Project: Maven 2.x Antrun Plugin > Issue Type: Bug > Environment: Windows XP professional edition >Reporter: Sander Rensen > Attachments: settings.xml, Temp.zip, test-auto-compile.zip > > > Dear Maven developers, > I want to call an ant script from maven using mojos. The issue I am facing is > that the basedir property does not change the moment this property is used > within an imported file. This needs to happen as the basedir from the > imported file is allocated in a different directory then the directory I am > calling the maven mojo from. Let me explain with an example I have attached. > 1. Please first extract the zip file test-auto-compile.zip. Install the mojo > plugin (mvn clean install). > 2. Make sure in the maven repository the settings xml file is changed. I have > attached this file separately. I have included a > test-auto-compile in the settings.xml file. > 3. Make sure the files ant-sca-package.xml and ant-sca-compile.xml are copied > in C:/Temp. For this please extract the zip file Temp.zip. > 4. run the test-auto-compile project typing: mvn testcompile:testcompile. > 5. The error is: Cannot find > D:\SopraGroup\Development\PoC\Mavin\test-auto-compile/ant-sca-compil > e.xml imported from C:\Temp\ant-sca-package.xml. > The file ant-sca-package.xml is imported from the build.xml file. This file > ant-sca-package.xml imports the ant-sca-compile file. This file is imported > using: > The basedir should be the directory from where the ant-sca-package is > imported. In this case c:/Temp. However it tries to find the > ant-sca-compile.xml file in the maven directory as his basedir. > When I am calling the same ant script directly from ant then the basedir > changes and the ant script is completed successfully. > The solution to this issue is very simple by changing the import statement in > the ant-sca-compile file. However I am not aloud to change this file!! > I hope you can assist with this bug. > Many Thanks > Sander Rensen -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MANTRUN-148) The basedir property is not changed when called from an imported file.
[ http://jira.codehaus.org/browse/MANTRUN-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=228152#action_228152 ] Paul Gier commented on MANTRUN-148: --- The attached test-auto-compile plugin does not build. There is no java source to create a mojo. > The basedir property is not changed when called from an imported file. > --- > > Key: MANTRUN-148 > URL: http://jira.codehaus.org/browse/MANTRUN-148 > Project: Maven 2.x Antrun Plugin > Issue Type: Bug > Environment: Windows XP professional edition >Reporter: Sander Rensen > Attachments: settings.xml, Temp.zip, test-auto-compile.zip > > > Dear Maven developers, > I want to call an ant script from maven using mojos. The issue I am facing is > that the basedir property does not change the moment this property is used > within an imported file. This needs to happen as the basedir from the > imported file is allocated in a different directory then the directory I am > calling the maven mojo from. Let me explain with an example I have attached. > 1. Please first extract the zip file test-auto-compile.zip. Install the mojo > plugin (mvn clean install). > 2. Make sure in the maven repository the settings xml file is changed. I have > attached this file separately. I have included a > test-auto-compile in the settings.xml file. > 3. Make sure the files ant-sca-package.xml and ant-sca-compile.xml are copied > in C:/Temp. For this please extract the zip file Temp.zip. > 4. run the test-auto-compile project typing: mvn testcompile:testcompile. > 5. The error is: Cannot find > D:\SopraGroup\Development\PoC\Mavin\test-auto-compile/ant-sca-compil > e.xml imported from C:\Temp\ant-sca-package.xml. > The file ant-sca-package.xml is imported from the build.xml file. This file > ant-sca-package.xml imports the ant-sca-compile file. This file is imported > using: > The basedir should be the directory from where the ant-sca-package is > imported. In this case c:/Temp. However it tries to find the > ant-sca-compile.xml file in the maven directory as his basedir. > When I am calling the same ant script directly from ant then the basedir > changes and the ant script is completed successfully. > The solution to this issue is very simple by changing the import statement in > the ant-sca-compile file. However I am not aloud to change this file!! > I hope you can assist with this bug. > Many Thanks > Sander Rensen -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira