You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joern Huxhorn (JIRA)" <ji...@codehaus.org> on 2008/03/10 10:46:28 UTC
[jira] Commented: (MIDEA-102) Module filepath is generated
incorrectly for sibling parent
[ http://jira.codehaus.org/browse/MIDEA-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126692 ]
Joern Huxhorn commented on MIDEA-102:
-------------------------------------
I had to build using
mvn clean install -Dmaven.test.skip=true
because otherwise the build would fail with the following messages:
Running org.apache.maven.plugin.idea.IdeaModuleTest
[WARNING] An error occurred during dependency resolution of the following artifact:
org.apache.maven.plugin.test:plugin-test-1919
Caused by: required artifacts missing:
javax.sql:jdbc-stdext:jar:2.0
for the artifact:
org.apache.maven.plugin.test:plugin-test-19:jar:19
from the specified remote repositories:
test-repo (file://P:\misc\maven-idea-plugin\src\test\remote-repo)
[WARNING] An error occurred during dependency resolution of the following artifact:
org.apache.maven.plugin.test:plugin-test-2222
Caused by: required artifacts missing:
javax.sql:jdbc-stdext:jar:2.0
for the artifact:
org.apache.maven.plugin.test:plugin-test-22:jar:22
from the specified remote repositories:
test-repo (file://P:\misc\maven-idea-plugin\src\test\remote-repo)
[WARNING] Unable to get resource from repository test-repo (file://P:\misc\maven-idea-plugin\src\test\remote-repo)
[INFO] artifact junit:junit: checking for updates from test-repo
Tests run: 15, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.484 sec <<< FAILURE!
Running org.apache.maven.plugin.idea.LibraryTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.apache.maven.plugin.idea.IdeaMojoTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Results :
Failed tests:
testEjbProjectWithModulesConfigurations(org.apache.maven.plugin.idea.IdeaModuleTest)
Tests run: 37, Failures: 1, Errors: 0, Skipped: 0
But beside that, the current version works as expected for me.
> Module filepath is generated incorrectly for sibling parent
> -----------------------------------------------------------
>
> Key: MIDEA-102
> URL: http://jira.codehaus.org/browse/MIDEA-102
> Project: Maven 2.x IDEA Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Environment: $ mvn -v
> Maven version: 2.0.7
> Java version: 1.5.0_11
> OS name: "windows xp" version: "5.1" arch: "x86"
> cygwin
> Reporter: Joern Huxhorn
> Assignee: Dennis Lundberg
> Fix For: 2.2
>
> Attachments: maven-idea-plugin-MIDEA-102.patch
>
>
> I have a multi-module mvn project.
> When I do an mvn idea:clean idea:idea, the following ProjectModuleManager snippet in the top level .ipr is generated:
> <component name="ProjectModuleManager">
> <modules>
> <!-- module filepath="$$PROJECT_DIR$$/${pom.artifactId}.iml"/ -->
> <module filepath="$PROJECT_DIR$/gateway.iml"/>
> <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/domain/gateway-domain.iml"/>
> <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/instruction-store/gateway-instruction-store.iml"/>
> <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/parser/gateway-parser.iml"/>
> <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/psrgeneration/gateway-psr-generation.iml"/>
> <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/output/gateway-output.iml"/>
> <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/destination-resolver/gateway-destination-resolver.iml"/>
> <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/choreography/gateway-choreography.iml"/>
> <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/presentation/gateway-presentation.iml"/>
> <module filepath="$PROJECT_DIR$/C:/dev/voca/gateway/assembly/gateway-assembly.iml"/>
> </modules>
> </component>
> The $PROJECT_DIR in this case is C:/dev/voca/gateway/.
> But this path is being appended in a hard-coded fashion after the $PROJECT_DIR entry.
> The symptom in Intellij is the following error message:
> Cannot load module: File C:\dev\voca\gateway\C:\dev\voca\gateway\domain\gateway-domain.iml does not exist
> Would you like to remove the module from the project?
> The workaround is to delete the extra appended file path from each module entry in the above mentioned snippet.
--
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