You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by kace <me...@hotmail.com> on 2008/05/14 16:36:42 UTC

running mvn idea:idea

Hi, 

I am using maven 2.0.9 and running mvn idea:idea and I get the following
message when I run IDEA

Cannot load module file
'C:\mobileanarchy\C:\mobileanarchy\data\common\common-core\mobileanarchy-data-common-core.iml':
File
C:\mobileanarchy\C:\mobileanarchy\data\common\common-core\mobileanarchy-data-common-core.iml
does not exist
Would you like to remove the module from the project?

All the java files have a circle with a diagonal line across it.  Anyone
know how I can fix this?

Regards, 

..kace

-- 
View this message in context: http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17232616.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: running mvn idea:idea

Posted by kace <me...@hotmail.com>.
Thanks Allyson, unfortunately it didnt work for me - so had to go back to
using IDEA's native maven support to generate the project.  Running it
through the command line did produce the project structure I am looking for
but still same issue with the source files.  

The project structure I get when generating the project from IDEA is
different - all the submodules are defined via there artifactId's instead of
the directory they are under - would you happen to know how I can resolve
this.

Regards, 

..kace 

-- 
View this message in context: http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17317595.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: running mvn idea:idea

Posted by Allyson Lister <a....@newcastle.ac.uk>.
Hi,

Though I'm not a maven expert, I've had this message when I've tried to run
mvn idea:idea without having run mvn install first. I have a lot of
autogenerated code, and if idea:idea is run before generating the code, even
though the sub-module iml files are generated, no code ("sources") is marked
for that module. Therefore I get messages like the ones you've described.
So, idea is expecting code, but doesn't get it. I get around it by just
running mvn install (or whatever equivalent command you need) first.

Hope this helps,
Allyson

On Wed, May 14, 2008 at 3:36 PM, kace <me...@hotmail.com> wrote:

>
> Hi,
>
> I am using maven 2.0.9 and running mvn idea:idea and I get the following
> message when I run IDEA
>
> Cannot load module file
>
> 'C:\mobileanarchy\C:\mobileanarchy\data\common\common-core\mobileanarchy-data-common-core.iml':
> File
>
> C:\mobileanarchy\C:\mobileanarchy\data\common\common-core\mobileanarchy-data-common-core.iml
> does not exist
> Would you like to remove the module from the project?
>
> All the java files have a circle with a diagonal line across it.  Anyone
> know how I can fix this?
>
> Regards,
>
> ..kace
>
> --
> View this message in context:
> http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17232616.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Thanks,
Allyson :)

Allyson Lister
Research Associate
Centre for Integrated Systems Biology for Ageing and Nutrition
Newcastle University
http://www.cisban.ac.uk
School of Computing Science
Newcastle University
Newcastle upon Tyne, NE1 7RU

Re: running mvn idea:idea

Posted by kace <me...@hotmail.com>.
Thanks, any idea when 2.2 will be released?

Regards, 

..kace
-- 
View this message in context: http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17270683.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: running mvn idea:idea

Posted by Dennis Lundberg <de...@apache.org>.
There are a couple of bugs in maven-idea-plugin when running under 
cygwin. These have been addressed in the upcoming 2.2 version of the 
plugin. You can try the current 2.2-SNAPSHOT if you want to verify that 
it works for you.

kace wrote:
> I am using version 7 and it worked fine once I imported it through IDEA -
> thanks.  
> 
> I have a folder structure 
> 
> module 1
>   - module a
>   - module b
> module 2
>   - module c
>   - module d
> 
> when I run the command mvn idea:idea through the command line(cygwin) it
> gives me the right project structure but then I have the problem I mentioned
> previously.  Running it through IDEA gives me the following structure:
> 
> module 1
> module a
> module b
> module 2
> module c
> module d
> 
> does anyone know how I can get the desired structure for my project - either
> through running it within IDEA or how to fix the problem the command line
> produces?
> 
> Regards, 
> 
> ..kace


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: running mvn idea:idea

Posted by kace <me...@hotmail.com>.
I am using version 7 and it worked fine once I imported it through IDEA -
thanks.  

I have a folder structure 

module 1
  - module a
  - module b
module 2
  - module c
  - module d

when I run the command mvn idea:idea through the command line(cygwin) it
gives me the right project structure but then I have the problem I mentioned
previously.  Running it through IDEA gives me the following structure:

module 1
module a
module b
module 2
module c
module d

does anyone know how I can get the desired structure for my project - either
through running it within IDEA or how to fix the problem the command line
produces?

Regards, 

..kace
-- 
View this message in context: http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17249471.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Overriding parent's distribution management

Posted by Manuel EVENO <ma...@gmail.com>.
I'm facing the same problem here at my client's.

We have a team internal repository use and visible only to our team.
We have a company-wide repository where we only put some of the
internaly-released artefacts. This way we can filter which version is
visible, usable, used by the other teams.
Then we have a third repository when we need to share artefacts with a
external company. This third repository exists because my client don't want
this external company to see (and possibly steal) any artefact (with
sources) produced internally. We have also have specific contractual rules
for this third repository.

What is maven best-practices for this ?
 - We want the first repo accessible with the default 'mvn deploy' command
 - The second repo accessible with profile activation : mvn -P
deploy-internal deploy
 - The third repo accessible with profile activation : mvn -P deploy-public
deploy

The real problem is to have a default behavior on 'mvn deploy' command ...

I've already look at the stage plugin but it does not fit our needs (and by
the way don't work at all).

Thanks !
Manuel

-- 
http://blog.xebia.fr
http://blog.xebia.com

On Fri, May 16, 2008 at 6:36 PM, Clifton <cl...@gmail.com> wrote:

>
> Thank you for asking this question. I had the very same problem and I'd
> love
> to hear a best practices approach. My workaround, not the best, is to
> define
> them separately in profiles. Then you can use cmd line properties to
> activate one or the other in the activation section of the profile. It may
> not work in your case if you actually want certain pieces to deploy with
> different dist mgmt settings than others in a single build command.
>
>
> Krishnamurthi, Venkat wrote:
> >
> > Hi,
> >
> > I'm trying to override a parent pom's distribution management through
> > the child's pom. (Deploy the artifacts in different directories). When I
> > tried adding a <distributionManagement> element in the child pom, it is
> > still picking up the details from the parent's pom. Please help me
> > resolve this issue.
> >
> > Thanks and Regards,
> > Venkat
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17279055.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Overriding parent's distribution management

Posted by Clifton <cl...@gmail.com>.
Thank you for asking this question. I had the very same problem and I'd love
to hear a best practices approach. My workaround, not the best, is to define
them separately in profiles. Then you can use cmd line properties to
activate one or the other in the activation section of the profile. It may
not work in your case if you actually want certain pieces to deploy with
different dist mgmt settings than others in a single build command.


Krishnamurthi, Venkat wrote:
> 
> Hi,
> 
> I'm trying to override a parent pom's distribution management through
> the child's pom. (Deploy the artifacts in different directories). When I
> tried adding a <distributionManagement> element in the child pom, it is
> still picking up the details from the parent's pom. Please help me
> resolve this issue.
> 
> Thanks and Regards,
> Venkat
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17279055.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Overriding parent's distribution management

Posted by "Krishnamurthi, Venkat " <ve...@citi.com>.
Hi,

I'm trying to override a parent pom's distribution management through
the child's pom. (Deploy the artifacts in different directories). When I
tried adding a <distributionManagement> element in the child pom, it is
still picking up the details from the parent's pom. Please help me
resolve this issue.

Thanks and Regards,
Venkat

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: running mvn idea:idea

Posted by Clifton <cl...@gmail.com>.
Interesting topic. I've been having trouble with Idea's native Maven support
and would like to consider using the Idea Maven plugin again. The problems I
have is synchronizing a single module. When I hit the synchronize button it
synchronizes all of the modules and I have one non-standard module that
wraps a JavaME Ant build. this module gets completely screwed up and I have
to manually go in and fix all of my paths. The other problems I've been
having is synchronizing sometimes obliterates any Idea module groupings I
have set up. Has anyone else been experiencing pain using Maven and Idea?
Does the Idea Maven plugin still work under version 7?


arikkfir wrote:
> 
> IDEA natively supports Maven as of version 7 - what version are you
> using?
> 
> 
> -----Original Message-----
> From: kace <me...@hotmail.com>
> To: users@maven.apache.org
> Subject: running mvn idea:idea
> Date: Wed, 14 May 2008 07:36:42 -0700 (PDT)
> 
> 
> Hi, 
> 
> I am using maven 2.0.9 and running mvn idea:idea and I get the following
> message when I run IDEA
> 
> Cannot load module file
> 'C:\mobileanarchy\C:\mobileanarchy\data\common\common-core\mobileanarchy-data-common-core.iml':
> File
> C:\mobileanarchy\C:\mobileanarchy\data\common\common-core\mobileanarchy-data-common-core.iml
> does not exist
> Would you like to remove the module from the project?
> 
> All the java files have a circle with a diagonal line across it.  Anyone
> know how I can fix this?
> 
> Regards, 
> 
> ..kace
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17274583.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: running mvn idea:idea

Posted by Arik Kfir <ar...@gmail.com>.
IDEA natively supports Maven as of version 7 - what version are you
using?


-----Original Message-----
From: kace <me...@hotmail.com>
To: users@maven.apache.org
Subject: running mvn idea:idea
Date: Wed, 14 May 2008 07:36:42 -0700 (PDT)


Hi, 

I am using maven 2.0.9 and running mvn idea:idea and I get the following
message when I run IDEA

Cannot load module file
'C:\mobileanarchy\C:\mobileanarchy\data\common\common-core\mobileanarchy-data-common-core.iml':
File
C:\mobileanarchy\C:\mobileanarchy\data\common\common-core\mobileanarchy-data-common-core.iml
does not exist
Would you like to remove the module from the project?

All the java files have a circle with a diagonal line across it.  Anyone
know how I can fix this?

Regards, 

..kace