_____________________________________________
Von: Stadelmann Josef
Gesendet: Donnerstag, 2. September 2010 15:15
An: 'Maven Users List'; 'Distributed NetBeans for OpenVMS';
'[email protected]'
Betreff: catch 22s building Maven-2.2.1 with NetBeans 5.5.1 using
distributet NetBeans from HP
I have a very nice catch 22 situation
Porting maven-2.2.1 to OpenVMS using NetBeans 5.5.1 and distributet
NetBeans from HP;
I build it first in VISTA SP1, using a DOS Windows running as
administrator. The build works perfect.
But building maven-2.2.1 using NetBeans 5.5. 1 with distributet NetBeans
from HP is a mess.
I get the following errors, (not running as administrator)
clean-bootstrap:
Deleting directory C:\asf\maven\maven-2\tags\maven-2.2.1\bootstrap
initTaskDefs:
isMavenHomeSet:
Using Maven home at: C:\Users\C770817\SW-UMGEBUNG\apache-maven-2.2.1
initLocalRepo:
Using the local repository at: C:\Users\C770817\.m2\repository
init:
maven.home = C:\Users\C770817\SW-UMGEBUNG\apache-maven-2.2.1
maven.assembly =
C:\asf\maven\maven-2\tags\maven-2.2.1\apache-maven\target\apache-maven-2
.2.1-bin.zip
read-poms:
Copying 1 file to C:\asf\maven\maven-2\tags\maven-2.2.1
Deleting: C:\asf\maven\maven-2\tags\maven-2.2.1\dependencies.xml
pull:
generate-sources:
Created dir: C:\asf\maven\maven-2\tags\maven-2.2.1\bootstrap\target
Created dir:
C:\asf\maven\maven-2\tags\maven-2.2.1\bootstrap\target\generated-sources
Generating sources for maven-model/src/main/mdo/maven.mdo
C:\asf\maven\maven-2\tags\maven-2.2.1\build.xml:147: The following error
occurred while executing this line:
C:\asf\maven\maven-2\tags\maven-2.2.1\build.xml:141: The following error
occurred while executing this line:
C:\asf\maven\maven-2\tags\maven-2.2.1\build.xml:123:
java.lang.SecurityException
BUILD FAILED (total time: 1 minute 5 seconds)
Why a security exception, how can I avoid it?
Then starting NetBeans 5.5.1 using RUN AS ADMINISTRATOR to hopefully
prevent the security exception
Is a no go too and results results in a crash and leaves two processes
on the system during startup of NB
Java.lang.NoClassDefFoundError:
org/netbenas/modules/project/ui/OpenProjectList
At
org.netbeans.modules.distributed.remotefs.MyURLMapperProxy.searchFS(Unkn
own Source)
At
org.netbeans.modules.distributed.remotefs.MyURLMapperProxy.MOUNTfs(Unkno
wn Source)
At
org.netbeans.modules.distributed.remotefs.MyURLMapperProxy.GETfILEOBJECT
S(Unknown Source)
At
org.OPENIDE.FILESYSTEM.urlmAPPER.FINDfILEoBJECT(urlmAPPER.Java:196))
.....
Why does Modello demand privileges to generate code using this target
during a maven-2.2.1 boot-strat-build
<target name="generate-sources" depends="pull" description="generates
Java sources from Modello mdo model files">
<mkdir dir="bootstrap/target"/>
<mkdir dir="bootstrap/target/generated-sources"/>
<macrodef name="modello-single-mode">
<attribute name="file"/>
<attribute name="mode"/>
<attribute name="version"/>
<sequential>
123 <java fork="fork" classname="org.codehaus.modello.ModelloCli"
failonerror="true">
<classpath refid="modello.pathid"/>
<arg file="@{file}"/> <!-- model file -->
<arg value="@{mode}"/> <!-- output type -->
<arg file="bootstrap/target/generated-sources"/> <!-- output
directory -->
<arg value="@{version}"/> <!-- model version -->
<arg value="false"/> <!-- package with version -->
<arg value="true"/> <!-- use Java 5 -->
<arg value="UTF-8"/> <!-- encoding -->
</java>
</sequential>
</macrodef>
<macrodef name="modello">
<attribute name="file"/>
<attribute name="version" default="1.0.0"/>
<sequential>
<echo taskname="modello" message="Generating sources for
@{file}"/>
141 <modello-single-mode file="@{file}" version="@{version}"
mode="java"/>
<modello-single-mode file="@{file}" version="@{version}"
mode="xpp3-reader"/>
<modello-single-mode file="@{file}" version="@{version}"
mode="xpp3-writer"/>
</sequential>
</macrodef>
147 <modello file="maven-model/src/main/mdo/maven.mdo" version="4.0.0"/>
<modello file="maven-plugin-descriptor/src/main/mdo/lifecycle.mdo"/>
<modello file="maven-plugin-registry/plugin-registry.mdo"/>
<modello
file="maven-plugin-parameter-documenter/src/main/mdo/paramdoc.mdo"/>
<modello file="maven-profile/src/main/mdo/profiles.mdo"/>
<modello file="maven-settings/src/main/mdo/settings.mdo"/>
<modello
file="maven-repository-metadata/src/main/mdo/metadata.mdo"/>
<modello file="maven-toolchain/src/main/mdo/toolchains.mdo"/>
</target>
I am open for any kind of hints, and I can't use maven 3 because we have
projects which are not yet mavenized for version3 of maven.
Also, I wan't to debug maven-2.2.1 to see if and how proxy
authentication works using the BASIC authentication scheme
on HP OpenVMS with JDK 5.0 e all.
And yes;
using a higher version of NetBeans leaves renders my netbeans project
files in a way that I can't open it thereafter in NetBeans 5.5.1
Beautifull dependencies :-)
Josef - with catch 22's