You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Gonzalo Aguilar Delgado <ga...@aguilardelgado.com> on 2009/11/14 11:14:27 UTC

Eclipse build problem

I've done several test with eclipse and found that if you imports the
maven project
to eclipse all the config got messed but no changes done to the
configuration files.

It's quite strange. I performed a svn diff and nothing is shown.

But mvn install got .war created with the web.xml broken and possibly
other problems.

That's what I did, maybe others can try:


        1.- Import the svn trunk of jetspeed-2, j2-admin and
        apa-webcontent.
        2.-Import them to eclipse.
        3.-Set the .classpath file from etc/editors
        4.-$ mvn install -P init
        5.-$ mvn install


my .m2 repository shows the war as it was built correctly but web.xml is
almost empty.

Same thing done skipping step 2 and everything worked well!

Where can be the problem?

I used successfully eclipse for a long time with maven and never
reached this problem. I found that creating a server and letting eclipse
deploy the projects
is a great way to develop and debug. Other way to do it is as is shown
in apache documentation
but build times are greater (as it does clean everytime) and everything
comes less handy...

Thank you.

Re: Eclipse build problem

Posted by Gonzalo Aguilar Delgado <ga...@aguilardelgado.com>.
Hi people, 

I got problems reestructuring my project to be more Apache compliant.
Now nothing works
and portlets got deployed but not initialized. I spent two weeks on this
issue and finally I decided
to redo all configuration and project reassembly.

I have a few questions though...

I have to overly my own webcontent to be able to deploy my own themes
and contents. 

Also I have different small projects (portlet applications) that will go
to the jetspeed if customer 
decides to include them. So I build, and maintain separated. But this
makes difficult to build the
whole solution because you don't know what got updated since last build
so I have to rebuild by
hand every project before deploying the application.

Now I will build one big project that will contain submodules.

The problem here is that if I import project with submodules as
explained below only one big project
is created at top level and submodules archetypes are not recognized
under eclipse. So no jars or wars
are build under eclipse.

So every time I want to test my development I have to build, deploy with
maven, and restart the server. 

This is quite time consuming... Do you work that way?
----

Other way is materializing the projects and deploying to jetspeed with
eclipse but it works different
than with maven...

The good of this approach is that eclipse manages inter project
dependencies and projects got built when 
needed.



In brief...

I got problems when I have something that this:


project A
pom.xml
|
+---- Component 1
|                | pom.xml
|               +------- component-1-jar ( pom.xml)
|               +------- component-1-war( pom.xml)
|
+---- Component 2
                | pom.xml
                +------- component-2-jar( pom.xml)
                +------- component-2-war( pom.xml)


I my case Project A got imported to eclipse but not war nor jar are
built under eclipse.
I have to perform mvn install to make them build

Also, does it make sense to create custom build plugin?

Your experience building big projects will be of a great help...

Thank you very much.




El mar, 17-11-2009 a las 12:55 +0100, Gonzalo Aguilar Delgado escribió:

> 
> > 
> > Do you use the Maven Integration for Eclipse to import the project?
> 
> 
> Yes. It worked well until now. I use it for all my projects.
> 
> 
> > 
> > Thats what I've been using ... its dog slow at starting up though the  
> > first time
> > When importing make sure to unclick the advanced options
> 
> 
> I'm not sure if I unclicked advanced options... That was the problem!!!
> I reloaded everything
> and unchecked the advanced options and everything worked!!!
> 
> Great!
> 
> Thank you!
> 
> 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> > For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
> > 

Re: Eclipse build problem

Posted by Gonzalo Aguilar Delgado <ga...@aguilardelgado.com>.

> 
> Do you use the Maven Integration for Eclipse to import the project?


Yes. It worked well until now. I use it for all my projects.


> 
> Thats what I've been using ... its dog slow at starting up though the  
> first time
> When importing make sure to unclick the advanced options


I'm not sure if I unclicked advanced options... That was the problem!!!
I reloaded everything
and unchecked the advanced options and everything worked!!!

Great!

Thank you!


> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
> 

Re: Eclipse build problem

Posted by David Sean Taylor <d....@onehippo.com>.
On Nov 14, 2009, at 2:14 AM, Gonzalo Aguilar Delgado wrote:

> I've done several test with eclipse and found that if you imports the
> maven project
> to eclipse all the config got messed but no changes done to the
> configuration files.
>

Do you use the Maven Integration for Eclipse to import the project?

Thats what I've been using ... its dog slow at starting up though the  
first time
When importing make sure to unclick the advanced options


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org