[JBoss Microcontainer Development] New message: "Re: ScopeInfo's MetaData handling looks inconsistent"
by Ales Justin
User development,
A new message was posted in the thread "ScopeInfo's MetaData handling looks inconsistent":
http://community.jboss.org/message/524656#524656
Author : Ales Justin
Profile : http://community.jboss.org/people/alesj
Message:
--------------------------------------------------------------
I added this patch, which does lazy init on ControllerContext::getScopeInfo::getMetaData.
Or is keeping ControllerContext around bad aka too leaky?
This does remove the need for MDR::getMetaData call, which would otherwise initialize MDR.
Index: dependency/src/main/java/org/jboss/dependency/plugins/AbstractScopeInfo.java
===================================================================
--- dependency/src/main/java/org/jboss/dependency/plugins/AbstractScopeInfo.java (revision 76911)
+++ dependency/src/main/java/org/jboss/dependency/plugins/AbstractScopeInfo.java Sun Feb 07 23:37:34 CET 2010
@@ -64,7 +64,10 @@
/** The added scopes */
private CopyOnWriteArraySet<ScopeKey> addedScopes = new CopyOnWriteArraySet<ScopeKey>();
-
+
+ /** The owning context */
+ private ControllerContext context;
+
/**
* Create a new AbstractScopeInfo.
*
@@ -110,13 +113,21 @@
{
if (repository == null)
return null;
-
+
- return repository.getMetaData(getScope());
+ MetaData metaData = repository.getMetaData(getScope());
+ if (metaData == null)
+ {
+ initMetaDataRetrieval(repository, context);
+ metaData = repository.getMetaData(scopeKey);
- }
+ }
+ return metaData;
+ }
public void addMetaData(MutableMetaDataRepository repository, ControllerContext context)
{
this.repository = repository;
+ this.context = context;
+
ScopeKey scope = getMutableScope();
MetaDataRetrieval retrieval = repository.getMetaDataRetrieval(scope);
MutableMetaDataLoader mutable;
@@ -130,7 +141,7 @@
{
mutable = getMutableMetaDataLoader(retrieval);
}
-
+
if (mutable == null)
{
log.warn("MetaData context is not mutable: " + retrieval + " for " + context.toShortString());
@@ -176,8 +187,9 @@
}
}
addedScopes.clear();
- this.repository = null;
-
+
+ this.context = null;
+ this.repository = null;
}
/**
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524656#524656
16 years, 5 months
[JBoss Tools] New message: "Re: Importing and setting up a large Mavenized Seam project"
by Stephen Davidson
User development,
A new message was posted in the thread "Importing and setting up a large Mavenized Seam project":
http://community.jboss.org/message/524638#524638
Author : Stephen Davidson
Profile : http://community.jboss.org/people/northgorky
Message:
--------------------------------------------------------------
Greetings.
You might want to have a look at the m2eclipse plugin for Eclipse. Has the ability to import a maveninzed project, and seems to do a half-decent job. Not sure how well it will work with getting the Seam stuff set up, but for standard Java/J2EE and multimodule projects, its been doing a decent job of handling this for me.
Check out http://m2eclipse.sonatype.org/ for details. The "Gotcha's" I have found so far;
- you have to import your projects into Eclipse, you can't just "switch" them over (this may break Eclipse Seam settings, not sure)
- By default, will import each module as a seperate project. This behaviour can be changed by expanding the "Advanced" tab during the import, and unchecking the "make project for each module" box.
Regards,
Steve
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524638#524638
16 years, 5 months
[JBoss Tools] New message: "Maven - WEB-INF/lib libraries"
by German Escobar
User development,
A new message was posted in the thread "Maven - WEB-INF/lib libraries":
http://community.jboss.org/message/524635#524635
Author : German Escobar
Profile : http://community.jboss.org/people/germanescobar
Message:
--------------------------------------------------------------
Hi,
I've noticed that my Maven WAR module dependecies are being downloaded to the WEB-INF/lib libraries. This is a problem when I have to change dependencies in my POM. As a workaround, I just have to delete the WEB-INF/lib contents and they will be downloaded again. This is not the case, however, for the EAR libraries. The EAR lib folder is always empty and once the application is published, they are added to the generated package, which is what I would expect also for the WEB-INF/lib libraries.
Am I missing some configuration?
I'm using Eclipse 3.5, m2eclipse 0.9.9.200912xxx and JBoss Tools nightly build I downloaded a couple of days ago.
Thanks!
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524635#524635
16 years, 5 months
(sans objet)
by sympa
please, don't send to me any mail any longer.
16 years, 5 months
[JBoss Tools] New message: "Maven - Publishing after a mvn clean"
by German Escobar
User development,
A new message was posted in the thread "Maven - Publishing after a mvn clean":
http://community.jboss.org/message/524634#524634
Author : German Escobar
Profile : http://community.jboss.org/people/germanescobar
Message:
--------------------------------------------------------------
Hi,
I've been trying the Maven Integration for a Seam app lately and it works great!. However, I have a question regarding how the integration works. For example, if I do a "mvn clean" and then I try to publish the project, the META-INF folder of the EAR and JAR's are always empty. Is this the expected behaviour? I'm I doing something wrong?
In general, I would like to know if JBoss Tools runs somehow a "mvn package" or something to create the package or if it is a completely separate process.
Thanks!
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524634#524634
16 years, 5 months