db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Russell <Craig.Russ...@Sun.COM>
Subject Re: NetBeans+Maven not jarring properly
Date Fri, 22 Apr 2005 01:56:41 GMT
When I manually changed the "build" goal to perform  
"jar:install-snapshot", mevenide created a build.properties with a  
single line:

maven.netbeans.exec.build=jar:install-snapshot

It apparently doesn't use the maven.xml file at all...

Craig

On Apr 21, 2005, at 5:21 PM, Craig Russell wrote:

> Hi,
>
> I get the same result here.
>
> The bug seems to be in the Netbeans plugin Goal to IDE Action Mappings  
> (find this under JDO2 API right-click Properties).
>
> The Build goal is mapped to jar:install, whereas the goal in reality  
> was changed to jar:install-snapshot.
>
> I think that Netbeans didn't update its maven.xml after the recent  
> change of the default goal.
>
> I don't know how to tell Netbeans to update its goal to action  
> mappings. You can manually change it but that's not satisfying.
>
> Craig
>
> On Apr 21, 2005, at 4:16 PM, Matthew T. Adams wrote:
>
>> Hi,
>>
>>  
>> Running Maven from a command prompt in trunk/api20 results in  
>> different behavior than if run from within NetBeans.  I just did a  
>> completely fresh installation of NetBeans 4.0 (including deleting  
>> ~/.netbeans) with the Maven plug in in order to fix this problem, and  
>> it persists.
>>
>>  
>> Running Maven in NetBeans, I get the following output:
>>
>>  
>> [snip]
>>
>>  
>> jar:jar:
>>
>>     [jar] Building jar:  
>> C:\apache-jdo\jdo\trunk\api20\target\jdo2-api-2.0.jar
>>
>> Copying: from 'C:\apache-jdo\jdo\trunk\api20\target\jdo2-api-2.0.jar'  
>> to: 'C:\Documents and  
>> Settings\Matthew\.maven\repository\apache-jdo\jars\jdo2-api-2.0.jar'
>>
>> Copying: from 'C:\apache-jdo\jdo\trunk\api20\project.xml' to:  
>> 'C:\Documents and  
>> Settings\Matthew\.maven\repository\apache-jdo\poms\jdo2-api-2.0.pom'
>>
>>  
>> Running at the command line, however, yields:
>>
>>  
>> [snip]
>>
>>  
>> Installing snapshot  
>> of:'C:\apache-jdo\jdo\trunk\api20/target/jdo2-api-2.0.jar''
>>
>> Copying: from 'C:\apache-jdo\jdo\trunk\api20\target\jdo2-api-2.0.jar'  
>> to: 'C:\Documents and  
>> Settings\Matthew\.maven\repository\apache-jdo\jars\jdo2-api- 
>> SNAPSHOT.jar'
>>
>> Copying: from 'C:\apache-jdo\jdo\trunk\api20\target\jdo2-api-2.0.jar'  
>> to: 'C:\Documents and  
>> Settings\Matthew\.maven\repository\apache-jdo\jars\jdo2-api 
>> -20050421.231300.jar'
>>
>> Copying: from 'C:\apache-jdo\jdo\trunk\api20\project.xml' to:  
>> 'C:\Documents and  
>> Settings\Matthew\.maven\repository\apache-jdo\poms\jdo2-api- 
>> SNAPSHOT.pom'
>>
>> Copying: from 'C:\apache-jdo\jdo\trunk\api20\project.xml' to:  
>> 'C:\Documents and  
>> Settings\Matthew\.maven\repository\apache-jdo\poms\jdo2-api 
>> -20050421.231300.pom'
>>
>>  
>> Note that in the command line run, "jar:jar:" does not appear;  
>> instead the message "Installing snapshot..." does.  This is  
>> problematic because tck20 depends upon jdo2-api-SNAPSHOT.jar, and if  
>> I'm building all within NetBeans, that artifact is not produced.
>>
>>  
>> Can anyone tell me why this is happening?
>>
>>  
>> Thanks,
>>
>> Matthew
>>
>>  
>>  
>> Matthew T. Adams
>>
>> Corporate Technical Advisor & Senior Consultant
>>
>> Mobile:  +1 253 732 1051
>>
>> Phone:  +1 206 331 3833
>>
>> Fax:  +1 360 937 9616
>>
>> matthew.adams@xcalia.com
>>
>> P.O. Box 24163
>>
>> Federal Way, WA  98093
>>
>> www.xcalia.com
>>
>>  
>> <image.tiff> 
>> Xcalia helps businesses address the challenge of Enterprise  
>> Information Access in a heterogeneous environment.  We provide  
>> products and services that facilitate the two-way exchange of  
>> information between individuals, mission-critical applications, and  
>> databases.  Our customers enjoy improved performance, reduced  
>> operating and development costs, faster time to market, and  
>> rejuvenated legacy systems.
>>
>>  
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>
Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!

Mime
View raw message