[hibernate-dev] No successful builds since move to Maven

Emmanuel Bernard emmanuel at hibernate.org
Fri May 16 17:47:57 EDT 2008


On  May 16, 2008, at 13:51, Sanne Grinovero wrote:
> 3) EntityManager
> After having registered annotations, I find out that building
> entitymanager produces an empty jar
> registered in my maven repository; no errors, just no compiled classes
> in the jar.

Annotations, EntityManager, Validator, Search, commons-annotations,  
jpa-api do not use maven for type build system.
You still need to use ant jar or whatever. Ivy is finding the  
dependencies for you.
The ant build system does not publish the things to the maven repo.


>
>
> 4)Search
> Even when skipping or manually resolving the other issues, to build
> Search there is a
> dependency on lucene 2.3.1 but the URL appears to be wrong;
> I don't know how it finds the url, but he is downloading
> http://repository.jboss.com/maven2/org/apache/lucene/lucene-core/2.3.1/lucene-core-2.3.1.pom
> (the signature) instead of
> http://repository.jboss.com/maven2/org/apache/lucene/lucene-core/2.3.1/lucene-core-2.3.1.pom.xml
> And the same problem for "lucene-parent".

I think you use mvn something rather than ant something

>
>
> Also before 3.3.0CR1 I could link the projects together instead of  
> making
> jars, so it was easy to navigate the source to make experiments and  
> could skip
> all building activities until test phases.

The way I solve that is to manually link the various projects in the  
IDE.

>
>
> I know you are all quite busy, I can help myself (slowly) but my main
> concern is to understand if these problems are
> A) known, due the fact nobody completed the migration to maven.
> B) You all tested only on IDEA
> C) my environment is completely broken
>
> regarding option C, I deleted my workspace and all maven repository,
> fresh checkout and repeated all tests.. no luck.
>
> regards,
> Sanne
>
> 2008/5/16 Steve Ebersole <steve at hibernate.org>:
>> Currently the docbook plugin relies on some system tools for  
>> dealing with
>> translations.  You would need the GNU GetText toolset and the KDE  
>> poxml
>> toolset installed to do full doc builds.
>>
>> Or you could disable docs in the build by using - 
>> DdisableDistribution=true
>> That essentially skips the documentation and distribution modules.
>>
>> On May 15, 2008, at 12:03 PM, Hardy Ferentschik wrote:
>>
>>> Hi Sanne,
>>>
>>> I just updated core to the latest and ran 'mvn clean install'.  
>>> Everything
>>> worked fine. Admittedly I had to disable
>>> the doc profile in the master pom, because the docbook generation  
>>> failed,
>>> but that's a different issue. I am using maven 2.0.9 and JDK  
>>> 1.5.0_06.
>>>
>>> Maybe someone can make sense of the exception I get during  
>>> documentation
>>> generation:
>>>
>>> [INFO] [jdocbook:translate {execution: default}]
>>> [INFO] Processing translation [fr-FR]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] FATAL ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] unable to obtain appropriate runtime environment
>>> CreateProcess: po2xml
>>> D:\hibernate\core\documentation\manual\src\main\docbook\en-US 
>>> \content\association_
>>> mapping.xml
>>> D:\hibernate\core\documentation\manual\src\main\docbook\fr-FR 
>>> \content\association_mapping.po
>>> error=2
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Trace
>>> org.jboss.maven.shared.process.ExecutionException: unable to obtain
>>> appropriate runtime environment
>>> ...
>>> Caused by: java.io.IOException: CreateProcess: po2xml
>>> D:\hibernate\core\documentation\manual\src\main\docbook\en-US 
>>> \content\association_mapping.xml
>>> D:\Hardy\work\hibernate\core\documentation\manual\src\main\docbook 
>>> \fr-FR\content\association_mapping.po
>>> error=2
>>>
>>>
>>> Do your Hibernate Search changes effect the core as well? With the  
>>> latest
>>> changes you don't have compile the core
>>> anymore to build Hibernate Search. All the dependencies are  
>>> managed with
>>> ivy. Of course if your patches effect the core you will have to  
>>> still do it
>>> ;-) JDK5 should be fine though.
>>>
>>>
>>> --Hardy
>>>
>>>
>>>
>>> _______________________________________________
>>> hibernate-dev mailing list
>>> hibernate-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>
>>
>> -----------------------------
>> Steve Ebersole
>>
>> Project Lead
>> http://hibernate.org
>> steve at hibernate.org
>>
>>
>>
>>
>>




More information about the hibernate-dev mailing list