Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.14 (Unreleased), 0.16
-
Fix Version/s: 0.14 (Unreleased)
-
Component/s: ASP support
-
Labels:None
-
Number of attachments :16
Description
http://docs.codehaus.org/display/MAVENUSER/NMaven+and+ASP+.NET
It should run
aspnet_compiler.exe -v /artifactId -p artifactId\ -u -f target\artifactId
-
Hide
- IT0021.zip
- 10/Sep/08 2:26 PM
- 7 kB
- Carlos Sanchez
-
- core-integration-tests/.../MavenITmng0021AspxCompilation.java 2 kB
- core-integration-tests/src/.../Class1.vb 0.2 kB
- core-integration-tests/src/.../Default.aspx 0.6 kB
- core-integration-tests/.../Default.aspx.vb 0.3 kB
- core-integration-tests/src/.../pom.xml 2 kB
- core-integration-tests/src/.../web.config 3 kB
-
Hide
- IT0021.zip
- 09/Sep/08 12:57 PM
- 7 kB
- Carlos Sanchez
-
- core-integration-tests/.../MavenITmng0021AspxCompilation.java 2 kB
- core-integration-tests/src/.../Class1.vb 0.2 kB
- core-integration-tests/src/.../Default.aspx 0.6 kB
- core-integration-tests/.../Default.aspx.vb 0.3 kB
- core-integration-tests/src/.../pom.xml 2 kB
- core-integration-tests/src/.../web.config 3 kB
-
Hide
- IT0021.zip
- 02/Sep/08 4:25 PM
- 8 kB
- Carlos Sanchez
-
- core-integration-tests/.../MavenITmng0021AspxCompilation.java 2 kB
- core-integration-tests/src/.../Class1.vb 0.2 kB
- core-integration-tests/src/.../assembly.xml 0.7 kB
- core-integration-tests/src/.../Default.aspx 0.6 kB
- core-integration-tests/.../Default.aspx.vb 0.3 kB
- core-integration-tests/.../NMaven.WebApplication.sln 2 kB
- core-integration-tests/src/.../pom.xml 2 kB
- core-integration-tests/src/.../web.config 3 kB
-
- maven-aspx-plugin.tgz
- 19/Sep/08 11:29 PM
- 5 kB
- Carlos Sanchez
-
Hide
- maven-aspx-plugin.zip
- 23/Sep/08 4:24 PM
- 10 kB
- Carlos Sanchez
-
- maven-aspx-plugin/pom.xml 2 kB
- maven-aspx-plugin/.../AspxBinDependencyResolver.java 2 kB
- maven-aspx-plugin/.../AspxCompilerMojo.java 11 kB
- maven-aspx-plugin/.../AspxPackageMojo.java 3 kB
- maven-aspx-plugin/src/.../components.xml 2 kB
-
Hide
- maven-aspx-plugin.zip
- 09/Sep/08 12:56 PM
- 6 kB
- Carlos Sanchez
-
- maven-aspx-plugin/pom.xml 2 kB
- maven-aspx-plugin/.../AspxCompilerMojo.java 7 kB
- maven-aspx-plugin/src/.../components.xml 3 kB
-
Hide
- maven-aspx-plugin.zip
- 08/Sep/08 1:29 PM
- 4 kB
- Carlos Sanchez
- Download Zip
-
Hide
- MavenITmng-0021-AspxCompilation.zip
- 23/Sep/08 4:24 PM
- 7 kB
- Carlos Sanchez
-
- src/.../MavenITmng0021AspxCompilation.java 3 kB
- src/test/resources/.../App_Code/Class1.vb 0.2 kB
- src/test/.../Default.aspx 0.6 kB
- src/test/.../Default.aspx.vb 0.3 kB
- src/test/.../pom.xml 2 kB
- src/test/.../web.config 3 kB
-
Hide
- MavenITmng-0021-AspxCompilation.zip
- 02/Sep/08 12:43 PM
- 5 kB
- Carlos Sanchez
-
- MavenITmng-0021-AspxCompilation/.../Class1.vb 0.2 kB
- MavenITmng-0021-AspxCompilation/assembly.xml 0.7 kB
- MavenITmng-0021-AspxCompilation/Default.aspx 0.6 kB
- MavenITmng-0021-AspxCompilation/Default.aspx.vb 0.3 kB
- MavenITmng-0021-AspxCompilation/NMaven.WebApplication.sln 2 kB
- MavenITmng-0021-AspxCompilation/pom.xml 2 kB
- MavenITmng-0021-AspxCompilation/web.config 3 kB
-
Hide
- MavenITmng-0022-AspxWebservice.zip
- 23/Sep/08 4:24 PM
- 27 kB
- Carlos Sanchez
-
- src/.../MavenITmng0022AspxWebservice.java 2 kB
- src/test/resources/.../MyLibrary/Class1.vb 0.9 kB
- src/test/.../Application.Designer.vb 0.4 kB
- src/test/.../My Project/Application.myapp 0.5 kB
- src/test/.../My Project/AssemblyInfo.vb 2 kB
- src/test/.../Resources.Designer.vb 3 kB
- src/test/.../My Project/Resources.resx 5 kB
- src/test/.../My Project/Settings.Designer.vb 3 kB
- src/test/.../My Project/Settings.settings 0.3 kB
- src/test/resources/.../MyLibrary/pom.xml 2 kB
- src/test/resources/.../App_Code/Service.vb 1 kB
- src/test/.../NMaven.WebService/pom.xml 1 kB
- src/test/.../NMaven.WebService/Service.asmx 0.8 kB
- src/test/.../NMaven.WebService/web.config 4 kB
- src/test/.../pom.xml 2 kB
- src/test/.../MyWebRef/Service.disco 1 kB
- src/test/.../MyWebRef/Service.discomap 1 kB
- src/test/resources/.../MyWebRef/Service.wsdl 5 kB
- src/test/resources/.../WebSite1/Default.aspx 1 kB
- src/test/.../WebSite1/Default.aspx.vb 1 kB
- src/test/resources/.../WebSite1/pom.xml 2 kB
- src/test/resources/.../WebSite1/web.config 3 kB
-
- NMaven.WebService.tgz
- 19/Sep/08 11:33 PM
- 15 kB
- Carlos Sanchez
-
Hide
- NMaven.WebService.zip
- 08/Sep/08 1:52 PM
- 23 kB
- Carlos Sanchez
-
- NMaven.WebService/MyLibrary/Class1.vb 0.9 kB
- NMaven.WebService/.../Application.Designer.vb 0.4 kB
- NMaven.WebService/.../Application.myapp 0.5 kB
- NMaven.WebService/.../AssemblyInfo.vb 2 kB
- NMaven.WebService/.../Resources.Designer.vb 3 kB
- NMaven.WebService/.../Resources.resx 5 kB
- NMaven.WebService/.../Settings.Designer.vb 3 kB
- NMaven.WebService/.../Settings.settings 0.3 kB
- NMaven.WebService/.../MyLibrary.vbproj 4 kB
- NMaven.WebService/MyLibrary/pom.xml 2 kB
- NMaven.WebService/.../Service.vb 1 kB
- NMaven.WebService/.../pom.xml 2 kB
- NMaven.WebService/.../Service.asmx 0.8 kB
- NMaven.WebService/.../web.config 4 kB
- NMaven.WebService/pom.xml 2 kB
- NMaven.WebService/WebSite1/.../Service.disco 2 kB
- NMaven.WebService/.../Service.discomap 1 kB
- NMaven.WebService/WebSite1/.../Service.wsdl 5 kB
- NMaven.WebService/WebSite1/Default.aspx 1 kB
- NMaven.WebService/.../Default.aspx.vb 1 kB
- NMaven.WebService/WebSite1/pom.xml 3 kB
- NMaven.WebService/WebSite1/web.config 3 kB
-
- nmaven-199.patch
- 08/Sep/08 1:27 PM
- 1 kB
- Carlos Sanchez
-
- NMAVEN-199-1.patch
- 09/Sep/08 11:58 AM
- 18 kB
- jan ancajas
-
Hide
- nmaven-199-2.zip
- 10/Sep/08 7:01 AM
- 7 kB
- jan ancajas
-
- maven-aspx-plugin.zip 6 kB
- nmaven-199-2.patch 7 kB
-
- NMAVEN-199-3.zip
- 15/Sep/08 8:37 AM
- 7 kB
- jan ancajas
Issue Links
- depends upon
-
NMAVEN-186
Integration test failures
-
-
NMAVEN-205
Auto inject log into CommandExecutor
-
Activity
In the attached example I've run
aspnet_compiler.exe -v /NMaven.It.It0021 -p .\ -u -f %TMP%\NMaven.It.It0021
and I've got in %TMP%\NMaven.It.It0021
./assembly.xml
./bin
./bin/App_Code.compiled
./bin/App_Code.dll
./bin/App_Web_oerzama_.dll
./Default.aspx
./NMaven.WebApplication.sln
./pom.xml
./PrecompiledApp.config
./web.config
Initial implementation.
Will add the built aspx pages as attached artifacts so they are used by the compiler plugin (they may be needed by a source file)
Patch needed to use attached artifacts as references during compilation
Plugin code after merging Jan's work with mine
I decided to use maven-aspx-plugin name so we can add more mojos related to aspx if needed and not limit the plugin just for compilation
The problem is that with a simple test I'm getting an error that wasn't able to figure out what's the problem yet, seems to be extensions related
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.dotnet.plugins:maven-resolver-plugin:0.14-incubating-SNAPSHOT:resolve': Unable to find the mojo 'org.apache.maven.dotnet.plugins:maven-resolver-plugin:0.14-incubating-SNAPSHOT:resolve' in the plugin 'org.apache.maven.dotnet.plugins:maven-resolver-plugin'
Component descriptor cannot be found in the component repository: org.apache.maven.artifact.handler.ArtifactHandlerasp.
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository: org.apache.maven.artifact.handler.ArtifactHandlerasp.
attached updated patch(nmaven-199-2.zip) after merging with carlos' changes yesterday.
changes
-commented unneeded entries / failing entries in components.xml (i'll dig deeper about the exception)
-added AspxCompiler.java and override "execute" to handle asp executable
-rearranged the parameters in the AspxCompilerMojo.java so that it won't be improperly quoted.
MavenITmng-0021-AspxCompilation should compile now.
i'd like to add the mojos:
-zipping the compiled asp project in the temp folder(because i'm not sure if we can still use maven-assembly-plugin)
-copying the zipped compiled asp project to local repo.
comments are welcome. ![]()
My mistake I had the wrong plugin name in the IT pom, attached the fixed IT. The compilation succeeds
After the aspnet compilation the files should be copied to the target folder from the temp folder
updated patch :
1. fix the ComponentLookupException ( was caused by missing artifact handler for asp in dotnet-artifact. )
2. reuse existing dotnet plugins applicable to aspx
3. copy the dependencies transitively to sourceDirectory/Bin folder
4. install the aspx artifact to local repository after compilation
(we can use the updated patch in NMAVEN-200 for zipping of artifact)
Attached more complex example of a WebService app
Currently if fails for me with
java.lang.NullPointerException
at org.apache.maven.dotnet.vendor.impl.StateMachineProcessorImpl.process(StateMachineProcessorImpl.java:122)
at org.apache.maven.dotnet.executable.impl.NetExecutableFactoryImpl.getCompilerExecutableFor(NetExecutableFactoryImpl.java:100)
at org.apache.maven.dotnet.plugin.aspx.AspxCompilerMojo.execute(AspxCompilerMojo.java:208)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
caused because in org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase:12
if ( object instanceof Initializable ) returns false
maybe a classpath issue?
First issue I've found is that the destination of the files can't be inside the folder you are compiling
ie. aspx files are in $
{basedir} then you can't compile to ${basedir}/target
maybe compile to a temporary place and then move the files?
Also seems that aspnet_compiler compiles source code too